Skip to content

Commit

Permalink
Add SCSS src for Älg theme, modified version
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpitg committed Oct 3, 2016
1 parent 22d043a commit bf9b745
Showing 1 changed file with 380 additions and 0 deletions.
380 changes: 380 additions & 0 deletions _src/_sass/alg/_alg.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,380 @@
@import 'variables';
@import 'syntax';

body {
/* border-top: 7px solid $accent-secondary; */
}

header {
height: $nav-height;
margin-bottom: $nav-height / 4;
display: block;
width: 100%;
@include clearfix;

font-family: "Alegreya Sans", sans-serif;
font-weight: 300;

a.logo {
float: left;
max-height: $nav-height;

img {
max-height: $nav-height - 20;
margin-top: 10px;
margin-bottom: 10px;
}
}

#header-title {
float: left;

a {
line-height: $nav-height;
display: inline;
font-size: 1.5em;
color: #40526b;
}
}

#social-links-header {
float: right;
margin-left: 10px;

a {
line-height: $nav-height;
font-size: 1.1em;
color: #40526b;
}
}

nav {
float: right;
text-align: center;

ul li {
display: inline;
text-decoration: none;
line-height: $nav-height;
font-size: .9em;

a {
color: $accent-color;

&:hover {
color: darken($accent-color, 15);
}
}

:after {
content: " \00b7";
font-weight: bold;
}
}

li.no-bullet :after {
content: none;
}
}
}

section {
@include outer-container;

width: 720px;
margin: 10px auto;
padding-top: 10px;

@include media(min-width 680px max-width 760px) {
width: 600px;
}

@include media(min-width 500px max-width 680px) {
width: 520px;
}

@include media(max-width 500px) {
width: 300px;
}
}

article {
@include clearfix;
text-align: left;

h1 {
font-family: $sans-serif-article-2;
font-size: 1.2em;
color: $accent-color;
margin-bottom: .4em;

@include media($medium-screen) {
font-size: 1.7em;
}
}

h1.title {
font-size: 1.4em;

@include media($medium-screen) {
font-size: 1.9em;
}
}

h2 {
font-family: $sans-serif-article-2;
font-size: 1.2em;
font-weight: 400;
line-height: 1.4em;
margin-bottom: .3em;

@include media($medium-screen) {
font-size: 1.4em;
}
}

h3 {
font-family: $sans-serif-article-2;
font-size: 1.2em;
font-weight: 400;
line-height: 1.3em;
margin-bottom: .3em;
}

p.subtitle {
color: transparentize($base-font-color, .6);
font-family: $sans-serif-article;
font-size: .9em;
margin-bottom: .5em;
margin-top: .3em;

.date {
float: right;
}
}

p {
font-family: $sans-serif-article;
line-height: 1.4em;
font-size: 1.05em;
font-weight: 300;
margin-bottom: 1em;

span {
font-family: $sans-serif-article-2;
font-size: 0.9em;
}
}

p.author {
font-family: $sans-serif-article;
}

ul {
margin: 1em 0;
list-style: disc;
}

ol {
margin: 1em 0;
list-style: decimal-leading-zero;
}

pre code {
border: none;
font-size: 100%;
}

code {
border: 1px solid #ddd;
background-color: #eef;
font-size: 85%;
padding: 0 .3em;
}

hr {
width: 40%;
margin-left: auto;
margin-right: auto;
}

hr.fin {
width: 100%;
margin-left: 0;
margin-bottom: 15px;
margin-top: 60px;
}

blockquote {
font-size: 1.2em;
border-color: $accent-secondary;
font-style: italic;
}
}

footer {
@include media(max-width 760px) {
display: none;
}

@include outer-container;
padding-bottom: 30px;
font-size: .9em;
margin-top: 5px;

#bio {
@include span-columns(8);
display: table;
}

aside {
@include span-columns(4);
text-align: right;

p {
margin-bottom: 1em;
}
}

#bio-image img {
height: auto;
width: 100px;
max-width: none;
display: block;
}

#bio-image {
padding-right: .8em;
}

#bio-image, #bio-text {
display: table-cell;
vertical-align: top;
}

#bio-text {
p {
margin-bottom: 0.5em;
}
}

#bio-social {
margin-top: -12px;

a {
color: $accent-color;
font-size: 1.8em;
}

#social-links {
display: inline-block;
position: relative;
top: 4px;
left: 4px;
}
}

h3 {
font-size: 1em;
}
}

#writeup {
img {
padding: 5px;
border: 1px solid #AAA;
border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
display: block;
margin-bottom: 10px;
}

.book-summary {

a, span {
font-family: $sans-serif-article;
font-weight: 300;
font-size: 1.05em;
display: block;
}
}
}

#post {
img.emoji {
margin: 0;
display: inline;
}

img {
margin: 0 auto;
display: block;
}
}

#fine-print {
text-align: center;
font-size: 11px;
color: #666;
}

#series {
h3 {
color: $accent-color;
text-align: center;
font-family: "Alegreya Sans", sans-serif;
}

p {
color: $light-gray;
font-family: "Alegreya Sans", sans-serif;
text-align: center;
font-size: 0.9em;
width: 75%;
margin: 0 auto 0.75em auto;
}

ul {
overflow: hidden;
padding-bottom: 40px;
}

li {
text-align: center;
font-family: "Alegreya Sans", sans-serif;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 300;
color: $gold; //for ellipsis color

@include media($medium-screen) {
width: 48%;
margin-left: 1%;
margin-right: 1%;
float: left;
display: inline;
}

&.favorite {
font-weight: 700;
}
}

}

#archive {
h2 {
color: $light-gray;
}

ul {
margin: 0 0 1em 0;
font-family: "Alegreya Sans", sans-serif;
font-weight: 300;
}

.favorite {
font-weight: 700;
}
}

0 comments on commit bf9b745

Please sign in to comment.