findcommonground.uk/scss/style.scss

181 lines
2.4 KiB
SCSS
Raw Normal View History

2014-02-07 00:18:00 +00:00
//
// IMPORTS
//
@import "_reset";
@import "_variables";
2014-02-07 13:35:17 +00:00
@import "_highlights";
// TODO - Tempted to move this to the end of the file, so that it shows up at the end of the .css. Or remove it entirely and find a better way to include highlighting.
2014-02-07 00:18:00 +00:00
//
// BASE RULES
//
html {
font-size: 100%;
}
body {
2014-02-13 01:42:49 +00:00
max-width: 680px;
2014-02-07 00:18:00 +00:00
margin: 0 auto;
background: $white;
font: 18px/1.4 $helvetica;
color: $darkGray;
}
2014-02-13 01:42:49 +00:00
h1, h2, h3, h4, h5, h6 {
2014-02-07 00:18:00 +00:00
font-family: $helveticaNeue;
color: $darkerGray;
2014-02-13 01:42:49 +00:00
font-weight: 400;
2014-02-07 00:18:00 +00:00
line-height: 1.7;
2014-02-13 01:42:49 +00:00
margin: 1em 0 15px;
2014-02-07 00:18:00 +00:00
padding: 0;
}
2014-02-13 01:42:49 +00:00
2014-02-07 00:18:00 +00:00
h1 {
2014-02-13 01:42:49 +00:00
font-size: 2.2rem;
2014-02-07 00:18:00 +00:00
@include mobile {
2014-02-13 01:42:49 +00:00
font-size: 2.2rem;
2014-02-07 00:18:00 +00:00
}
}
h2 {
letter-spacing: 1px;
font-weight: 300;
font-size: 1.7rem;
@include mobile {
font-size: 1.5rem;
}
}
h3 {
font-weight: 600;
font-size: 1.2rem;
@include mobile {
font-size: 1.2rem;
}
}
h4 {
font-size: 1rem;
@include mobile {
font-size: 1rem;
}
}
p {
margin: 15px 0;
}
a {
text-decoration: none;
cursor: pointer;
2014-02-11 14:11:56 +00:00
color: $blue;
&:hover, &:active {
2014-02-07 00:18:00 +00:00
text-decoration: underline;
}
}
ul {
padding-left: 30px;
list-style-type: disc;
}
2014-02-13 01:42:49 +00:00
img {
max-width: 100%;
}
2014-02-07 00:18:00 +00:00
// Specify the color of the selection
::-moz-selection {
color: $black;
background: $lighterGray;
}
::selection {
color: $black;
background: $lighterGray;
}
//
// LAYOUT / SECTIONS
//
.logo {
float: left;
a {
text-decoration: none;
cursor: pointer;
color: $darkGray;
&:hover, &:active {
color: $blue;
}
}
}
2014-02-13 01:42:49 +00:00
.avatar {
border-radius: 6px;
}
2014-02-07 00:18:00 +00:00
nav {
float: right;
font-family: $helveticaNeue;
font-size: 1.1rem;
@include mobile {
font-size: 1rem;
}
2014-02-11 14:11:56 +00:00
// nav has it's own link highlighting
2014-02-07 00:18:00 +00:00
a {
margin-left: 25px;
text-align: right;
font-weight: 300;
letter-spacing: 1px;
color: $gray;
&:hover, &:active {
text-decoration: none;
cursor: pointer;
color: $darkGray;
&:hover, &:active {
color: $blue;
}
}
}
}
.logo, nav {
@include mobile {
float: none;
width: 100%;
text-align: center;
}
}
2014-02-13 01:42:49 +00:00
.posts > .post {
padding-bottom: 2em;
border-bottom: 1px solid $lighterGray;
}
2014-02-07 00:18:00 +00:00
2014-02-13 01:42:49 +00:00
.post {
2014-02-07 00:18:00 +00:00
blockquote {
border-left: 2px solid $gray;
font-size: 1.2em;
font-style: italic;
margin: 1.8em .8em;
padding: 0.1em 1em;
color: $gray;
}
}
footer {
2014-02-07 13:35:17 +00:00
// border-top: 1px $lightGray solid;
2014-02-07 00:18:00 +00:00
padding: 1rem 0;
}