selfdefined/_site/scss/base.scss

367 lines
5.3 KiB
SCSS
Raw Normal View History

2018-09-23 01:17:30 +03:00
@charset 'utf-8';
@import url("https://use.typekit.net/qlo3dpu.css");
// COLORS //
:root {
--auto-grid-min-size: 32rem;
}
2018-09-23 01:17:30 +03:00
$primary-color: #0e4bff; //cobalt blue is so pretty//
$secondary-color: #F3F315; //
$black: #222222;
$white: #ffffff;
$pistachio: #e5ffe5;
2018-09-23 03:20:30 +03:00
$yellow: #ffff00;
2018-09-23 01:17:30 +03:00
$dark-grey: #4F4F4F;
$mid-grey: #767676; // the lightest shade of grey you can get away with, #a11y
$light-grey: #eeeeee; // for backgrounds only
2019-09-01 02:38:10 +01:00
// TYPOGRAPHY //
$sans-serif: monotype-grotesque, 'Lucida Sans', sans-serif;
$serif: orpheuspro, Palatino, Times, serif;
$ext-sans: monotype-grotesque-extended, Arial Black, sans-serif;
$con-sans: monotype-grotesque-condensed, Arial Narrow, sans-serif;
2018-09-23 01:17:30 +03:00
$thin: 200;
$light: 300;
$regular: 400;
$medium: 500;
$bold: 700;
body {
2019-09-01 03:22:41 +01:00
border-top: 1rem solid red;
2018-09-23 01:17:30 +03:00
font-family: $sans-serif;
font-size: 20px;
2019-09-01 03:22:41 +01:00
padding: 0; margin:0;
2018-09-23 01:17:30 +03:00
}
h1 {
2019-09-01 02:38:10 +01:00
font-family: $ext-sans;
font-weight: $bold;
2018-09-23 01:17:30 +03:00
}
.subtitle {
2019-09-01 02:38:10 +01:00
font-family: $ext-sans;
font-weight: $regular;
letter-spacing: .1;
2018-09-23 01:17:30 +03:00
}
2019-09-01 02:38:10 +01:00
2018-09-23 05:10:28 +03:00
ul {
padding: 0 0 0 1em;
margin: 0;
}
2018-09-23 01:17:30 +03:00
li {
list-style: none;
padding-bottom: .5em;
text-transform: capitalize;
2018-09-23 05:10:28 +03:00
&.subterm {
padding-left: 10px;
}
&:last-child {
padding: 0;
}
&.subterm:before {
content: "\21B3 ";
padding-right: 5px;
}
2018-09-23 01:17:30 +03:00
}
// GRID //
.grid {
display: grid;
grid-template-columns: repeat(4, [col] 1fr [col]);
grid-template-rows: fit-content, fit-content, auto;
grid-row-gap: 10rem;
grid-column-gap: 4rem;
}
2019-09-01 02:38:10 +01:00
.auto-grid {
2018-09-23 01:17:30 +03:00
display: grid;
2019-09-01 02:38:10 +01:00
grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
grid-gap: 1rem;
}
2018-09-23 01:17:30 +03:00
2018-09-23 03:20:30 +03:00
// MEDIA //
2018-09-23 01:17:30 +03:00
@media screen and (min-width: 200px) {
2018-09-23 03:20:30 +03:00
#title, #description, #summary {
grid-column: span 4;
}
body {
padding: 1em;
}
.list, .item {
2018-09-23 01:17:30 +03:00
grid-column: span 4;
}
2018-09-23 05:10:28 +03:00
.list {
padding: 0 auto;
margin: 0;
}
2019-09-01 03:22:41 +01:00
.title__thicc {
font-size: 9vw;
line-height: .75;
padding: 0;
margin: -1.5rem -2rem;
2018-09-23 01:17:30 +03:00
}
h2 {
2018-09-23 03:20:30 +03:00
font-size: 1.25em;
2018-09-23 01:17:30 +03:00
}
}
@media screen and (min-width: 600px) {
2018-09-23 03:20:30 +03:00
body {
2018-09-23 05:10:28 +03:00
padding: 2em;
2018-09-23 03:20:30 +03:00
}
2018-09-23 05:10:28 +03:00
.grid {
grid-row-gap: 1em;
2018-09-23 03:20:30 +03:00
}
2018-09-23 05:10:28 +03:00
#title {
grid-column: 1 / span 2;
2018-09-23 21:53:28 +03:00
grid-row: 1;
2018-09-23 05:10:28 +03:00
}
#summary {
grid-column: 3 / span 2;
grid-row: 1;
}
#description {
grid-column: span 4;
2018-09-23 21:53:28 +03:00
grid-row: 2;
2018-09-23 05:10:28 +03:00
}
2018-09-23 01:17:30 +03:00
.item {
grid-column: span 2;
}
h1 {
2018-09-23 21:53:28 +03:00
font-size: 3.5em;
2018-09-23 01:17:30 +03:00
}
h2 {
2018-09-23 03:20:30 +03:00
font-size: 1.3em;
2018-09-23 01:17:30 +03:00
}
}
2018-09-23 05:10:28 +03:00
.small {
font-size: .75em;
}
2018-09-23 01:17:30 +03:00
@media screen and (min-width: 1024px) {
2018-09-23 03:20:30 +03:00
#title {
grid-column: 1 / span 1;
grid-row: 1
}
#description {
grid-column: 2 / span 1;
grid-row: 1
}
#summary {
2018-09-23 03:29:31 +03:00
grid-column: 1 / span 1;
2018-09-23 03:20:30 +03:00
grid-row: 2
}
.list {
grid-row: span 3;
2018-09-23 01:17:30 +03:00
grid-column: span 1;
}
2019-09-01 02:38:10 +01:00
}
.block__dictionary {
max-width: 50rem;
margin-left: auto;
margin-right: auto;
padding: 0 1rem;
}
.block__word {
display: flex;
flex-direction: column;
margin: 1rem;
}
p {
margin: .75rem 0;
font-size: 1.25rem;
}
.style__italics {
font-style: italic;
}
.word {
&__title {
font-family: $serif;
font-weight: 900;
font-size: 2.5rem;
line-height: 1.25;
}
&__definition {
font-family: $sans-serif;
font-size: 1.5rem;
}
&__speech {
font-size: .5em;
font-family: $sans-serif;
}
&__signal {
border-top: 1px solid currentcolor;
// border-radius: 100px;
display: inline-block;
font-family: $ext-sans;
text-transform: uppercase;
font-size: .75rem;
letter-spacing: .15rem;
padding: .5rem .75rem;
}
&__link {
text-decoration: none;
color: black;
border-bottom: darkgrey solid .1em;
font-family: $ext-sans;
}
2019-09-01 02:38:10 +01:00
&__avoid {
color: red;
&:before {
content: "🚨";
margin-left: -2.15rem;
}
}
&__better {
color: green;
&:before {
content: "👍";
margin-left: -2.15rem;
}
}
}
.block__dictionary {
max-width: 50rem;
margin-left: auto;
margin-right: auto;
padding: 0 1rem;
}
.auto-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
grid-gap: 1rem;
}
.block__word {
display: flex;
flex-direction: column;
margin: 1rem;
}
p {
margin: .75rem 0;
font-size: 1.25rem;
}
.style__italics {
font-style: italic;
}
.word {
&__title {
font-family: $serif;
font-weight: 900;
font-size: 2.5rem;
line-height: 1.25;
}
&__definition {
font-family: $sans-serif;
font-size: 1.5rem;
}
&__speech {
font-size: .5em;
font-family: $sans-serif;
}
&__signal {
border-top: 1px solid currentcolor;
// border-radius: 100px;
display: inline-block;
font-family: $ext-sans;
text-transform: uppercase;
font-size: .75rem;
letter-spacing: .15rem;
padding: .5rem .75rem;
&__avoid {
color: red;
&:before {
content: "🚨";
margin-left: -2.15rem;
}
}
&__better {
color: green;
&:before {
content: "👍";
margin-left: -2.15rem;
}
}
}
}
.word__issue {
text-align: right;
padding-right: 1rem;
font-family: $con-sans;
font-size: .85rem;
text-transform: uppercase;
}
.word__link {
text-decoration: none;
color: black;
border-bottom: darkgrey solid .1em;
font-family: $ext-sans;
}
.block__issue {
display: grid;
grid-template-columns: 1fr 4fr;
align-items: baseline;
}
.word__breakdown {
font-family: $sans-serif;
border-left: .1rem solid lightgrey;
padding-left: 1rem;
2018-09-23 01:17:30 +03:00
}