2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

Merge pull request #10 from offen/sassify

Enable sass in assets plugin
This commit is contained in:
Hendrik Niefeld 2019-10-26 10:43:09 +02:00 committed by GitHub
commit 48acf966e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 49 deletions

View File

@ -2,3 +2,4 @@ pelican==4.0.1
markdown==3.1.1 markdown==3.1.1
webassets==0.12.1 webassets==0.12.1
cssmin==0.2.0 cssmin==0.2.0
libsass==0.19.3

View File

@ -3,16 +3,13 @@
/* --------------------------------------------------- /* ---------------------------------------------------
ROOTS ROOTS
----------------------------------------------------*/ ----------------------------------------------------*/
:root { $yellow-mid: #F7BF08;
--yellow-mid: #F7BF08; $yellow-bright: #fde28c;
--yellow-bright: #fde28c; $mint-mid: #BBD9D3;
--mint-mid: #BBD9D3; $black-mid: #39352A;
--black-mid: #39352A; $grey-mid: #898989;
--grey-mid: #898989; $grey-bright: #D5D5D5;
--grey-bright: #D5D5D5; $white: #FFF;
--white: #FFF;
}
/* --------------------------------------------------- /* ---------------------------------------------------
BASICS BASICS
@ -34,28 +31,28 @@ LAYOUT & SPACER
z-index: 1; z-index: 1;
top: 0; top: 0;
right: 0; right: 0;
background-color: var(--yellow-mid); background-color: $yellow-mid;
} }
.intro { .intro {
width: 100%; width: 100%;
margin: 70px 0 0 0; margin: 70px 0 0 0;
background-color: var(--yellow-mid); background-color: $yellow-mid;
} }
.feature { .feature {
width: 100%; width: 100%;
} }
.cta-top { .cta-top {
width: 100%; width: 100%;
color: var(--yellow-mid); color: $yellow-mid;
} }
.content { .content {
width: 100%; width: 100%;
margin: 70px 0 0 0; margin: 70px 0 0 0;
background-color: var(--white); background-color: $white;
} }
.content-index { .content-index {
width: 100%; width: 100%;
background-color: var(--white); background-color: $white;
} }
.cta-bottom, .cta-bottom,
.outro { .outro {
@ -64,8 +61,8 @@ LAYOUT & SPACER
.footer { .footer {
width: 100%; width: 100%;
min-height: 300px; min-height: 300px;
color: var(--grey-mid); color: $grey-mid;
background-color: var(--black-mid); background-color: $black-mid;
} }
.spacer-intro { .spacer-intro {
width: 430px; width: 430px;
@ -135,7 +132,7 @@ CARDS
} }
.card { .card {
max-width: 300px; max-width: 300px;
color: var(--black-mid); color: $black-mid;
} }
.card h2, .card h2,
.card p { .card p {
@ -199,25 +196,25 @@ CARDS
TYPO TYPO
----------------------------------------------------*/ ----------------------------------------------------*/
body { body {
background-color: var(--white); background-color: $white;
font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px; font-size: 14px;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;
word-wrap: break-word; word-wrap: break-word;
color: var(--grey-mid); color: $grey-mid;
} }
h1, h1,
h2 { h2 {
font-weight: 700; font-weight: 700;
line-height: 1.3; line-height: 1.3;
color: var(--black-mid); color: $black-mid;
} }
h3, h3,
h4 { h4 {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: var(--black-mid); color: $black-mid;
} }
h3 { h3 {
margin: 0 0 20px 0; margin: 0 0 20px 0;
@ -226,7 +223,7 @@ p + h3 {
margin: 60px 0 20px 0; margin: 60px 0 20px 0;
} }
h4 { h4 {
color: var(--grey-mid); color: $grey-mid;
} }
/* Desktop Styles */ /* Desktop Styles */
@media only screen and (min-width: 481px) { @media only screen and (min-width: 481px) {
@ -257,7 +254,7 @@ LINKS
a, a,
a:hover, a:hover,
a:focus { a:focus {
color: var(--grey-mid); color: $grey-mid;
text-decoration: none; text-decoration: none;
} }
p a, p a,
@ -268,7 +265,7 @@ p a:focus {
ol li p a, ol li p a,
ol li p a:hover, ol li p a:hover,
ol li p a:focus { ol li p a:focus {
color: var(--grey-bright); color: $grey-bright;
} }
@ -276,7 +273,7 @@ color: var(--grey-bright);
TYPO ELEMENTS TYPO ELEMENTS
----------------------------------------------------*/ ----------------------------------------------------*/
h1 + p { h1 + p {
color: var(--black-mid); color: $black-mid;
} }
.bg h2 { .bg h2 {
margin: 0 0 10px 0; margin: 0 0 10px 0;
@ -294,11 +291,11 @@ h1 + p {
} }
#bg-cta-top h2, #bg-cta-top h2,
#bg-cta-top p { #bg-cta-top p {
color: var(--white); color: $white;
} }
#bg-outro h2, #bg-outro h2,
#bg-outro p { #bg-outro p {
color: var(--black-mid); color: $black-mid;
} }
strong, strong,
h1 + p strong, h1 + p strong,
@ -307,16 +304,16 @@ h1 + p strong,
} }
.container-reader h2 { .container-reader h2 {
margin: 0 0 20px 0; margin: 0 0 20px 0;
color: var(--grey-bright); color: $grey-bright;
} }
strong, strong,
h3 strong { h3 strong {
text-decoration: none; text-decoration: none;
font-weight: 400; font-weight: 400;
color: var(--black-mid); color: $black-mid;
} }
.cta-top strong { .cta-top strong {
color: var(--white); color: $white;
} }
.content-index p, .content-index p,
.content p { .content p {
@ -325,32 +322,32 @@ h3 strong {
hr { hr {
height: 0; height: 0;
margin: 80px 0 20px 0; margin: 80px 0 20px 0;
border-top: 1px solid var(--grey-bright); border-top: 1px solid $grey-bright;
} }
blockquote { blockquote {
margin: 0; margin: 0;
padding: 0 0 0 20px; padding: 0 0 0 20px;
font-style: italic; font-style: italic;
border-left: 1px solid var(--grey-bright); border-left: 1px solid $grey-bright;
} }
ol { ol {
padding-inline-start: 20px; padding-inline-start: 20px;
} }
em { em {
background: linear-gradient(transparent 66%, var(--yellow-bright) 66%); background: linear-gradient(transparent 66%, $yellow-bright 66%);
font-style: normal; font-style: normal;
} }
.footer-card h3 strong { .footer-card h3 strong {
font-weight: 700; font-weight: 700;
color: var(--yellow-mid); color: $yellow-mid;
} }
.footer h3, .footer h3,
.footer h4 { .footer h4 {
color: var(--yellow-mid); color: $yellow-mid;
margin: 0 0 2px 0; margin: 0 0 2px 0;
} }
.footnote { .footnote {
color: var(--grey-bright); color: $grey-bright;
} }
/* reposition for fixed menu */ /* reposition for fixed menu */
.footnote li { .footnote li {
@ -379,8 +376,8 @@ BUTTONS
.btn-color-yellow:hover, .btn-color-yellow:hover,
.btn-color-yellow:active { .btn-color-yellow:active {
font-weight: 700; font-weight: 700;
color: var(--yellow-mid); color: $yellow-mid;
border: solid var(--yellow-mid) 5px; border: solid $yellow-mid 5px;
} }
.btn-color-black, .btn-color-black,
.btn-color-black:visited, .btn-color-black:visited,
@ -388,8 +385,8 @@ BUTTONS
.btn-color-black:hover, .btn-color-black:hover,
.btn-color-black:active { .btn-color-black:active {
font-weight: 700; font-weight: 700;
color: var(--black-mid); color: $black-mid;
border: solid var(--black-mid) 5px; border: solid $black-mid 5px;
} }
.btn-color-white, .btn-color-white,
.btn-color-white:visited, .btn-color-white:visited,
@ -397,8 +394,8 @@ BUTTONS
.btn-color-white:hover, .btn-color-white:hover,
.btn-color-white:active { .btn-color-white:active {
font-weight: 700; font-weight: 700;
color: var(--white); color: $white;
border: solid var(--white) 5px; border: solid $white 5px;
} }
@ -442,12 +439,12 @@ nav ul li a:visited {
line-height: 70px; line-height: 70px;
text-decoration: none; text-decoration: none;
font-weight: 700; font-weight: 700;
background: var(--yellow-mid); background: $yellow-mid;
color: var(--black-mid); color: $black-mid;
} }
nav ul li a:hover, nav ul li a:hover,
nav ul li a:visited:hover { nav ul li a:visited:hover {
color: var(--black-mid); color: $black-mid;
} }
nav ul li a:not(:only-child):after, nav ul li a:not(:only-child):after,
nav ul li a:visited:not(:only-child):after { nav ul li a:visited:not(:only-child):after {
@ -471,7 +468,7 @@ nav ul li ul li a {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
background: var(--yellow-mid); background: $yellow-mid;
height: 70px; height: 70px;
width: 70px; width: 70px;
} }
@ -531,7 +528,7 @@ nav ul li ul li a {
border-radius: 1px; border-radius: 1px;
height: 2px; height: 2px;
width: 25px; width: 25px;
background: var(--black-mid); background: $black-mid;
position: absolute; position: absolute;
display: block; display: block;
content: ''; content: '';

View File

@ -19,7 +19,7 @@
<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:card" content="summary_large_image">
<link rel="canonical" href="{{ SITEURL }}/{{ page.save_as }}"> <link rel="canonical" href="{{ SITEURL }}/{{ page.save_as }}">
<link rel="shortcut icon" type="image/x-icon" href="/theme/images/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="/theme/images/favicon.ico">
{% assets filters="cssmin", output="css/style.min.css", "css/normalize.css", "css/fonts.css", "css/style.css" %} {% assets filters="libsass,cssmin", output="css/style.min.css", "css/normalize.css", "css/fonts.css", "css/style.scss" %}
<link rel="stylesheet" href="/{{ ASSET_URL }}"> <link rel="stylesheet" href="/{{ ASSET_URL }}">
{% endassets %} {% endassets %}
{% if OFFEN_ACCOUNT_ID and not page.no_stats %} {% if OFFEN_ACCOUNT_ID and not page.no_stats %}