103 lines
2.3 KiB
SCSS
103 lines
2.3 KiB
SCSS
// normal text color
|
|
$normal_color: hsl(0,0, 90%);
|
|
// the nice orange
|
|
$action_color: hsl(32, 100%, 50%);
|
|
// the blue
|
|
$alternate_color: hsl(204, 35%, 35%);
|
|
|
|
// standard size to size everything from that
|
|
$standard-width: 1em;
|
|
|
|
html {
|
|
font-size: 99%;
|
|
font-family: sans-serif;
|
|
/* original picture from http://subtlepatterns.com/iron-grip/ */
|
|
background-image: url('/images/irongrip-zero.png');
|
|
min-width: 300px;
|
|
width: 100%;
|
|
max-width: 1100px;
|
|
margin: auto;
|
|
}
|
|
|
|
code {
|
|
font-family: "PT mono", monospace;
|
|
}
|
|
pre {
|
|
border: $standard-width solid hsla(0, 0%, 0%, 0);
|
|
overflow-x: auto;
|
|
}
|
|
|
|
#header {
|
|
h1, h2 {
|
|
display: none;
|
|
margin: $standard-width / 2;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: $action-color;
|
|
}
|
|
|
|
.page {
|
|
margin-left: $standard-width;
|
|
margin-right: $standard-width;
|
|
display: block;
|
|
text-align: center;
|
|
padding: $standard-width;
|
|
font-size: $standard-width * 0.9;
|
|
font-weight: bold;
|
|
&.up {
|
|
border-top: $standard-width / 4 solid $alternate-color;
|
|
&:hover, &:focus, &:active {
|
|
border-top: $standard-width / 4 solid $action-color;
|
|
}
|
|
}
|
|
&.down {
|
|
border-bottom: $standard-width / 4 solid $alternate-color;
|
|
&:hover, &:focus, &:active {
|
|
border-bottom: $standard-width / 4 solid $action-color;
|
|
}
|
|
}
|
|
}
|
|
#content, pre {
|
|
background-color: fade-out($alternate-color, 0.7);
|
|
}
|
|
article {
|
|
color: $normal_color;
|
|
padding: $standard-width;
|
|
header {
|
|
padding: $standard-width / 4;
|
|
display: inline-block;
|
|
h1 { margin: 0;}
|
|
h1, h2 { display: inline-block; }
|
|
}
|
|
footer {
|
|
padding: $standard-width / 4;
|
|
display: inline-block;
|
|
font-size: $standard-width * 0.9;
|
|
div {
|
|
display: inline-block;
|
|
margin: $standard-width / 5;
|
|
font-weight: bold;
|
|
color: hsl(0, 0%, 60%);
|
|
}
|
|
.author:before { content: 'by '; }
|
|
.date:before { content: ' on '; }
|
|
.time { display: none; }
|
|
}
|
|
section {
|
|
border-top: $standard-width/5 solid $alternate-color;
|
|
word-wrap: break-word;
|
|
h1 { font-size: $standard-width * 1.3 }
|
|
h2 { font-size: $standard-width * 1.2 }
|
|
h3 { font-size: $standard-width * 1.1; font-weight: normal; }
|
|
h1, h2, h3 {
|
|
border-bottom: $standard-width / 10 solid $normal-color;
|
|
margin-right: 25%;
|
|
}
|
|
code, pre { word-wrap: initial; }
|
|
}
|
|
}
|