1
0
Fork 0
mirror of https://github.com/treffynnon/sqlstyle.guide.git synced 2025-03-09 12:49:51 -05:00
sqlstyle.guide/static/style.css

239 lines
3.8 KiB
CSS
Raw Normal View History

2015-07-03 08:24:10 -05:00
---
layout: nil
---
2015-07-06 10:53:43 -05:00
{% assign primary_colour = '#DE1B1B' %}
2015-07-04 18:34:25 -05:00
/*
Begin styles from codeguide.co by @mdo
*/
html {
font-size: 16px;
}
@media (min-width: 48em) {
html {
font-size: 20px;
}
}
body {
margin: 0;
2018-05-09 18:57:58 -05:00
font: 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
2015-07-06 07:58:19 -05:00
color: #333;
2015-07-04 18:34:25 -05:00
}
/*
End styles from codeguide.co by @mdo
*/
2015-07-06 10:53:43 -05:00
/*
* Page navigation
*/
#page-nav {
bottom: 0.5em;
right: 0.5em;
position: fixed;
text-align: center;
font-weight: bold;
2015-07-06 07:58:19 -05:00
}
2015-07-06 10:53:43 -05:00
/*
* Typography
*/
2018-05-09 18:57:58 -05:00
h1, h2, h3 {
2015-07-06 07:58:19 -05:00
font-family: 'Roboto Slab', serif;
font-weight: 400;
}
h2 {
border-bottom: 0.25em solid #e2e2e2;
padding-bottom: 0.3em;
}
h3:before {
content: '➤';
width: 1.5em;
display: inline-block;
margin-left: -1.5em;
2015-07-06 11:01:39 -05:00
color: {{ primary_colour }};
2015-07-06 07:58:19 -05:00
font-weight: normal;
}
2015-07-06 10:53:43 -05:00
a {
color: #333;
border-bottom: 1px solid {{ primary_colour }};
text-decoration: none;
-o-transition:.2s;
-ms-transition:.2s;
-moz-transition:.2s;
-webkit-transition:.2s;
transition:.3s;
}
a:hover {
color: {{ primary_colour }};
border-color: #333;
}
#translation-bar {
background: linear-gradient(top, #444, #111);
background: -ms-linear-gradient(top, #444, #111);
background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));
background: -moz-linear-gradient(top, #444, #111);
text-align: right;
color: #999;
}
#translation-bar .wrap {
padding: .5% 10%;
}
#translation-bar nav {
font-size: .7em;
}
#translation-bar a {
color: inherit;
}
#translation-bar .language-ico { display: inline }
#translation-bar .language-ico svg {
width: 25px;
margin-bottom: -10px;
fill: {{ primary_colour }};
margin-left: 10px;
}
#translation-bar .language-drop {
height: 25px;
color: #999;
background-color: #222;
}
2015-07-06 10:53:43 -05:00
header.top {
background: {{ primary_colour }};
2015-07-11 17:36:58 -05:00
color: #333;
2015-07-06 10:53:43 -05:00
}
header.top h1 {
color: #fff;
2015-07-11 17:36:58 -05:00
margin-bottom: 0;
}
header.top p.author {
margin-top: 0;
}
header.top p.translator {
font-size: smaller;
}
2015-07-11 17:36:58 -05:00
header.top a {
color: #333;
border-color: #333;
}
header.top a:hover {
border: none;
text-decoration: none;
}
header.top p.twitter {
float: right;
margin-top: -3em;
2015-07-06 10:53:43 -05:00
}
2015-07-13 06:14:17 -05:00
@media (max-width: 28.75em) {
header.top p.twitter {
float: none;
margin-top: 0;
}
}
2015-07-06 10:53:43 -05:00
.wrap {
padding: 2% 10%;
max-width: 48em;
margin: 0 auto;
}
#content h1 {
display: none;
}
2015-07-07 03:45:27 -05:00
ul#markdown-toc {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 1em;
-moz-column-gap: 1em;
column-gap: 1em;
margin-bottom: 2.8em;
}
.foot hr {
font-family: 'Roboto Slab', serif;
padding: 0;
border: none;
border-top: 0.1em solid #E2E2E2;
color: #E2E2E2;
text-align: center;
2018-06-28 18:30:00 -05:00
overflow: visible;
}
.foot hr:after {
content: "§";
display: inline-block;
position: relative;
top: -0.925em;
font-size: 1.5em;
padding: 0 0.25em;
background: white;
}
.foot .buttons {
margin-top: 3em;
}
.quick-links {
list-style: none;
margin-left: 0;
text-align: center;
}
.quick-links li {
display: inline;
2015-07-07 03:45:27 -05:00
}
2015-07-06 10:53:43 -05:00
2015-07-06 07:06:16 -05:00
/* Syntax highlighting */
div.highlighter-rouge {
max-height: 450px;
overflow-y: auto;
border: 2px solid #eee;
margin: 1em 0;
background-color: #fefefe
}
div.highlighter-rouge div.highlight {
padding: .5em .825em;
}
div.highlighter-rouge pre.highlight {
margin: 0;
display: block;
line-height: 1.1;
}
code {
font-size: .825em;
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, "Fira Code", "Hack Regular", Courier, monospace;
color: #555;
}
{% include static/manni.css %}
2015-07-06 07:06:16 -05:00
.anchorjs-link {
2015-07-06 10:53:43 -05:00
color: {{ primary_colour }};
border: none;
}