2018-10-24 11:02:24 +02:00
|
|
|
/*
|
|
|
|
* 2 - Typography ( _typography.scss )
|
|
|
|
*
|
|
|
|
* This part of the (s)css handle everything related to the typography
|
|
|
|
* like paragraphs, blockquote, etc.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-10-24 10:20:55 +02:00
|
|
|
@import 'font-face';
|
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
/* 2.2 - Global Typography */
|
2018-10-24 10:20:55 +02:00
|
|
|
|
|
|
|
@mixin paragraph() {
|
|
|
|
padding:0;
|
|
|
|
padding-bottom:1.5em;
|
2018-10-24 11:02:24 +02:00
|
|
|
margin: 0;
|
2018-10-24 10:20:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
font-family: OpenSans, sans-serif;
|
|
|
|
text-align: left;
|
2018-10-24 11:02:24 +02:00
|
|
|
font-size: 4mm;
|
2018-10-24 10:20:55 +02:00
|
|
|
line-height: 1.5em;
|
2018-10-24 11:02:24 +02:00
|
|
|
color: $color-font;
|
2018-10-24 10:20:55 +02:00
|
|
|
font-weight: 400;
|
|
|
|
}
|
|
|
|
|
|
|
|
.night-mode {
|
|
|
|
color:#BBB;
|
|
|
|
}
|
|
|
|
|
|
|
|
strong {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
em {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2018-10-24 11:21:42 +02:00
|
|
|
color: $color-link;
|
2018-10-24 10:20:55 +02:00
|
|
|
text-decoration:none;
|
2018-10-24 11:21:42 +02:00
|
|
|
&:hover, &:active {
|
|
|
|
color: $color-link;
|
|
|
|
}
|
2018-10-24 10:20:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
@include paragraph();
|
|
|
|
&:last-child {
|
|
|
|
padding-bottom:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
@include paragraph();
|
|
|
|
ul {
|
|
|
|
padding-bottom:0;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
margin-left:1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
|
|
|
@include paragraph();
|
|
|
|
ol {
|
|
|
|
padding-bottom:0;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
margin-left:1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-10-24 11:21:42 +02:00
|
|
|
::selection { background: $color-selection; color: #fff; }
|
|
|
|
::-moz-selection { background: $color-selection; color: #fff; }
|
2018-10-24 10:20:55 +02:00
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
/* 2.2 - Text Wrapper */
|
2018-10-24 10:20:55 +02:00
|
|
|
|
2018-10-24 11:59:19 +02:00
|
|
|
.article-content {
|
|
|
|
font-size: calc(4mm + 0.4vw);
|
2018-10-24 10:20:55 +02:00
|
|
|
line-height: 1.5em;
|
2018-10-24 11:59:19 +02:00
|
|
|
padding: 1em;
|
|
|
|
font-weight:300;
|
|
|
|
p, em, p em {
|
|
|
|
font-weight:300;
|
2018-10-24 10:20:55 +02:00
|
|
|
}
|
2018-10-27 18:13:21 +02:00
|
|
|
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
2018-10-24 21:11:57 +02:00
|
|
|
.article-thumbnail {
|
|
|
|
padding-bottom: 1em;
|
|
|
|
text-align: center;
|
|
|
|
img {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2018-10-24 21:07:40 +02:00
|
|
|
.article-excerpt {
|
2018-10-25 18:35:37 +02:00
|
|
|
padding: 0.5em 0.5em 0.5em 0.5em;
|
2018-10-24 21:07:40 +02:00
|
|
|
font-style: italic;
|
|
|
|
font-size: calc(3.5mm + 0.4vw);
|
|
|
|
}
|
2018-10-25 18:35:37 +02:00
|
|
|
.article-author {
|
|
|
|
margin:0;
|
|
|
|
padding:0;
|
|
|
|
.card-meta {
|
|
|
|
margin:0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bypass-flex-fontsize {
|
|
|
|
font-size: 4mm;
|
|
|
|
line-height: 1.5em;
|
|
|
|
}
|
2018-10-24 10:20:55 +02:00
|
|
|
}
|
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
/* 2.3 - Titles */
|
2018-10-24 10:20:55 +02:00
|
|
|
|
|
|
|
@mixin title($size, $height, $top, $bottom, $weight) {
|
|
|
|
font-size: $size;
|
|
|
|
line-height: $height;
|
|
|
|
padding: $top 0 $bottom 0;
|
|
|
|
font-weight: $weight;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6, h7 {
|
2018-10-24 13:07:43 +02:00
|
|
|
font-family: 'Teko';
|
2018-10-24 10:20:55 +02:00
|
|
|
text-align: left;
|
|
|
|
font-size: 1em;
|
|
|
|
line-height: 1.5em;
|
|
|
|
padding:0;
|
|
|
|
margin:0;
|
|
|
|
font-weight:400;
|
2018-10-24 17:16:12 +02:00
|
|
|
|
|
|
|
&.page-title {
|
|
|
|
font-family: Teko;
|
|
|
|
color: $color-primary;
|
|
|
|
border-bottom: 3px solid $color-primary;
|
|
|
|
font-weight: 600;
|
|
|
|
text-shadow: 2px 2px 0px rgba(0,0,0,.2);
|
|
|
|
box-shadow: 0px 2px 0px rgba(0,0,0,.2);
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
padding: 0;
|
|
|
|
i {
|
|
|
|
font-size: 0.55em;
|
|
|
|
position: relative;
|
|
|
|
top: -0.175em;
|
|
|
|
}
|
2018-10-24 21:15:35 +02:00
|
|
|
|
|
|
|
&-flex {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
& > span, & > i, & > a {
|
|
|
|
display: block;
|
|
|
|
}
|
2018-10-24 21:48:18 +02:00
|
|
|
|
|
|
|
& > a {
|
|
|
|
color: $color-primary;
|
|
|
|
&:hover, &:focus, &:active {
|
|
|
|
color: darken($color-primary, 10%);
|
|
|
|
}
|
|
|
|
}
|
2018-10-24 21:15:35 +02:00
|
|
|
}
|
2018-10-24 17:16:12 +02:00
|
|
|
}
|
2018-10-24 10:20:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
|
|
|
@include title(2.3333333em, 1em, 0.333333em, 0.6em, 700);
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
@include title(2em, 1.5em, 0.333333em, 0.4em, 700);
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
@include title(1.5em, 1em, 0em, 1em, 700);
|
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
|
|
|
@include title(1.5em, 1em, 0em, 1em, 600);
|
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
|
|
|
@include title(1.333333em, 1em, 0.1em, 1.133333em, 600);
|
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
|
|
|
@include title(1.1em, 1.4em, 0.1em, 1.2em, 600);
|
|
|
|
}
|
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
/* 2.4 - hr */
|
2018-10-24 10:20:55 +02:00
|
|
|
|
|
|
|
hr {
|
|
|
|
border-top: 0px;
|
|
|
|
border-left: 0px;
|
|
|
|
border-right: 0px;
|
|
|
|
border-bottom: 1px;
|
|
|
|
border-color: rgba(1,1,1,0.15);
|
|
|
|
border-style: solid;
|
|
|
|
margin: 1.5em;
|
|
|
|
}
|
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
/* 2.5 - Wells and quotes */
|
2018-10-24 10:20:55 +02:00
|
|
|
|
|
|
|
@mixin well() {
|
|
|
|
border-width: 0 0 0 0.2em;
|
|
|
|
border-style: solid;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
margin: -0.75em -0.2em 0.75em -0.2em;
|
|
|
|
padding: 0.75em 1em 0.75em 1em;
|
|
|
|
|
|
|
|
max-width: 100%;
|
2018-10-24 11:26:37 +02:00
|
|
|
border-color: $color-primary;
|
2018-10-24 10:20:55 +02:00
|
|
|
}
|
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
blockquote, .quote, .well {
|
2018-10-24 10:20:55 +02:00
|
|
|
@include well();
|
|
|
|
}
|
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
pre, .pre, .well-pre {
|
2018-10-24 10:20:55 +02:00
|
|
|
@include well();
|
|
|
|
background-color:#EEE;
|
|
|
|
overflow-x: scroll;
|
|
|
|
|
|
|
|
.night-mode & {
|
|
|
|
background-color:#222;
|
|
|
|
border-color:rgba(255,255,255,0.20);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-10-24 11:02:24 +02:00
|
|
|
/* 2.6 - Special styling */
|
2018-10-24 10:20:55 +02:00
|
|
|
|
|
|
|
mark {
|
|
|
|
border-radius: 0.2em;
|
|
|
|
padding:0 0.2em 0 0.2em;
|
|
|
|
|
2018-10-24 11:23:44 +02:00
|
|
|
background-color: lighten($color-mark, 30%);
|
2018-10-24 10:20:55 +02:00
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.night-mode mark {
|
2018-10-24 11:02:24 +02:00
|
|
|
background-color: $color-primary;
|
2018-10-24 10:20:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.time {
|
|
|
|
font-style: italic;
|
|
|
|
text-align: right;
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
}
|
2018-10-24 11:30:53 +02:00
|
|
|
|
|
|
|
/* 2.6.1 - Colored texts */
|
|
|
|
|
|
|
|
@mixin text-color($text-color) {
|
|
|
|
color: $text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text {
|
|
|
|
&-blue { @include text-color($color-blue); }
|
|
|
|
&-violet { @include text-color($color-violet); }
|
|
|
|
&-purple { @include text-color($color-purple); }
|
|
|
|
&-red { @include text-color($color-red); }
|
|
|
|
&-orange { @include text-color($color-orange); }
|
|
|
|
&-green { @include text-color($color-green); }
|
|
|
|
&-skyblue { @include text-color($color-skyblue); }
|
|
|
|
&-dark { @include text-color($color-dark); }
|
|
|
|
&-light { @include text-color($color-light); }
|
|
|
|
&-turquoise { @include text-color($color-turquoise); }
|
|
|
|
&-yellow { @include text-color($color-yellow); }
|
|
|
|
&-brown { @include text-color($color-brown); }
|
|
|
|
&-grey { @include text-color($color-grey); }
|
|
|
|
|
|
|
|
&-primary { @include text-color($color-primary); }
|
|
|
|
&-secondary { @include text-color($color-secondary); }
|
|
|
|
&-warning { @include text-color($color-warning); }
|
|
|
|
&-danger { @include text-color($color-danger); }
|
|
|
|
&-info { @include text-color($color-info); }
|
|
|
|
&-success { @include text-color($color-success); }
|
|
|
|
}
|