selfdefined/scss/base.scss

174 lines
2.4 KiB
SCSS
Raw Normal View History

2018-09-23 01:17:30 +03:00
@charset 'utf-8';
@import url('https://fonts.googleapis.com/css?family=Inconsolata|Noto+Serif+KR');
@import url("https://use.typekit.net/qlo3dpu.css");
// COLORS //
$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
// TYPOGRAPHY //
$sans-serif: Inconsolata, Helvetica, sans-serif;
$serif: 'Noto Serif KR', Georgia, serif;
$mono: Courier, mono;
$thin: 200;
$light: 300;
$regular: 400;
$medium: 500;
$bold: 700;
body {
font-family: $sans-serif;
font-size: 20px;
background: #e5ffe5;
}
h1 {
font-family: $serif;
font-weight: $thin;
2018-09-23 03:20:30 +03:00
border-bottom: .25em $white solid;
2018-09-23 01:17:30 +03:00
}
2018-09-23 02:21:52 +03:00
h2, h3 {
2018-09-23 01:17:30 +03:00
font-family: $serif;
font-weight: $bold;
}
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]);
2018-09-23 03:20:30 +03:00
grid-template-rows: fit-content, fit-content, auto;
2018-09-23 01:17:30 +03:00
grid-row-gap: 2em;
grid-column-gap: 1em;
2018-09-23 03:20:30 +03:00
}
.item {
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;
}
2018-09-23 01:17:30 +03:00
h1 {
2018-09-23 03:20:30 +03:00
font-size: 3em;
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;
grid-row: 2;
}
#summary {
grid-column: 3 / span 2;
grid-row: 1;
}
#description {
grid-column: span 4;
}
2018-09-23 01:17:30 +03:00
.item {
grid-column: span 2;
}
h1 {
font-size: 4em;
}
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;
}
}