findcommonground.uk/style.scss.org

295 lines
3.8 KiB
Org Mode
Raw Normal View History

---
---
2014-02-07 00:18:00 +00:00
//
// IMPORTS
//
@import "reset";
@import "variables";
2014-07-30 22:53:22 +00:00
// Syntax highlighting @import is at the bottom of this file
2014-02-07 00:18:00 +00:00
2014-07-30 22:53:22 +00:00
/**************/
/* BASE RULES */
/**************/
2014-02-07 00:18:00 +00:00
html {
font-size: 100%;
}
body {
background: $white;
font: 18px/1.4 $helvetica;
color: $darkGray;
}
.container {
margin: 0 auto;
max-width: 740px;
2014-06-02 23:10:43 +00:00
padding: 0 10px;
width: 100%;
}
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-08-22 12:45:24 +00:00
font-weight: bold;
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-05-28 00:58:58 +00:00
@include mobile {
line-height: 1.4;
}
2014-02-07 00:18:00 +00:00
}
h1 {
font-size: 30px;
a {
color: inherit;
}
2014-02-07 00:18:00 +00:00
}
h2 {
2014-06-01 23:00:30 +00:00
font-size: 24px;
2014-02-07 00:18:00 +00:00
}
h3 {
font-size: 20px;
}
h4 {
font-size: 18px;
color: $gray;
2014-02-07 00:18:00 +00:00
}
p {
margin: 15px 0;
}
a {
color: $blue;
2014-02-07 00:18:00 +00:00
text-decoration: none;
cursor: pointer;
2014-02-11 14:11:56 +00:00
&:hover, &:active {
color: $blue;
2014-02-07 00:18:00 +00:00
}
}
ul, ol {
margin: 15px 0;
2014-02-07 00:18:00 +00:00
padding-left: 30px;
}
ul {
2014-02-07 00:18:00 +00:00
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
ol ul, ul ol, ul ul, ol ol {
margin: 0;
}
ul ul, ol ul {
list-style-type: circle;
}
em, i {
font-style: italic;
}
strong, b {
2014-08-22 12:45:24 +00:00
font-weight: bold;
}
2014-02-13 01:42:49 +00:00
img {
max-width: 100%;
}
// Fixes images in popup boxes from Google Translate
.gmnoprint img {
max-width: none;
}
.date {
font-style: italic;
color: $gray;
}
2015-11-06 15:33:30 +00:00
.info {
font-size: smaller;
2015-11-06 15:44:52 +00:00
color: $gray;
2015-11-06 15:33:30 +00:00
}
2014-02-07 00:18:00 +00:00
// Specify the color of the selection
::-moz-selection {
color: $black;
2014-06-01 22:20:29 +00:00
background: $lightGray;
2014-02-07 00:18:00 +00:00
}
::selection {
color: $black;
2014-06-01 22:20:29 +00:00
background: $lightGray;
2014-02-07 00:18:00 +00:00
}
// Nicolas Gallagher's micro clearfix hack
// http://nicolasgallagher.com/micro-clearfix-hack/
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
2014-02-07 00:18:00 +00:00
2014-07-30 22:53:22 +00:00
/*********************/
/* LAYOUT / SECTIONS */
/*********************/
2014-02-07 00:18:00 +00:00
2014-02-17 15:07:14 +00:00
//
// .masthead
//
.wrapper-masthead {
margin-bottom: 50px;
}
2014-02-17 15:07:14 +00:00
.masthead {
2014-05-18 23:13:54 +00:00
padding: 20px 0;
2014-06-01 22:20:29 +00:00
border-bottom: 1px solid $lightGray;
@include mobile {
text-align: center;
}
2014-02-17 15:07:14 +00:00
}
.site-avatar {
2014-02-07 00:18:00 +00:00
float: left;
width: 70px;
2014-05-18 23:30:00 +00:00
height: 70px;
margin-right: 15px;
@include mobile {
float: none;
display: block;
margin: 0 auto;
}
img {
border-radius: 5px;
}
2014-02-17 15:07:14 +00:00
}
.site-info {
2014-02-17 15:07:14 +00:00
float: left;
@include mobile {
float: none;
display: block;
margin: 0 auto;
2014-02-17 15:07:14 +00:00
}
}
2014-02-17 15:07:14 +00:00
.site-name {
margin: 0;
color: $darkGray;
2014-02-17 15:07:14 +00:00
cursor: pointer;
font-family: $helveticaNeue;
font-weight: 300;
font-size: 28px;
letter-spacing: 1px;
2014-02-07 00:18:00 +00:00
}
2014-02-17 15:07:14 +00:00
.site-description {
margin: -5px 0 0 0;
color: $gray;
font-size: 16px;
@include mobile {
margin: 3px 0;
}
2014-02-13 01:42:49 +00:00
}
2014-02-07 00:18:00 +00:00
nav {
float: right;
margin-top: 23px; // @TODO: Vertically middle align
font-family: $helveticaNeue;
font-size: 18px;
2014-02-07 00:18:00 +00:00
@include mobile {
float: none;
2014-06-01 21:31:39 +00:00
margin-top: 9px;
display: block;
font-size: 16px;
2014-02-07 00:18:00 +00:00
}
a {
2014-06-20 20:58:10 +00:00
margin-left: 20px;
color: $darkGray;
2014-02-07 00:18:00 +00:00
text-align: right;
font-weight: 300;
letter-spacing: 1px;
2014-06-01 21:31:39 +00:00
@include mobile {
margin: 0 10px;
2014-06-01 21:31:39 +00:00
color: $blue;
}
2014-02-07 00:18:00 +00:00
}
}
2014-02-17 15:07:14 +00:00
//
// .main
//
2014-02-13 01:42:49 +00:00
.posts > .post {
padding-bottom: 2em;
2014-06-01 22:20:29 +00:00
border-bottom: 1px solid $lightGray;
2014-02-13 01:42:49 +00:00
}
2014-02-07 00:18:00 +00:00
.posts > .post:last-child {
padding-bottom: 1em;
border-bottom: none;
}
.post {
2014-02-07 00:18:00 +00:00
blockquote {
margin: 1.8em .8em;
border-left: 2px solid $gray;
2014-02-07 00:18:00 +00:00
padding: 0.1em 1em;
color: $gray;
font-size: 22px;
font-style: italic;
2014-02-07 00:18:00 +00:00
}
2014-06-11 13:07:22 +00:00
.comments {
margin-top: 10px;
}
2014-07-02 12:46:40 +00:00
.read-more {
text-transform: uppercase;
font-size: 15px;
}
2014-02-07 00:18:00 +00:00
}
.wrapper-footer {
margin-top: 50px;
border-top: 1px solid #ddd;
2014-06-03 00:04:06 +00:00
border-bottom: 1px solid #ddd;
2014-06-01 22:20:29 +00:00
background-color: $lightGray;
}
2014-02-07 00:18:00 +00:00
footer {
padding: 20px 0;
text-align: center;
}
// Settled on moving the import of syntax highlighting to the bottom of the CSS
// ... Otherwise it really bloats up the top of the CSS file and makes it difficult to find the start
@import "highlights";
@import "svg-icons";