selfdefined/_site/scss/base.scss

341 lines
5.2 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');
2018-09-23 01:17:30 +03:00
// COLORS //
:root {
2019-10-19 16:53:47 -04:00
--auto-grid-min-size: 17rem;
}
$primary-color: #0e4bff; //cobalt blue is so pretty//
$secondary-color: #f3f315; //
2018-09-23 01:17:30 +03:00
$black: #222222;
$white: #ffffff;
$pistachio: #e5ffe5;
$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
2018-09-23 01:17:30 +03: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;
2018-09-23 01:17:30 +03:00
2019-11-01 17:59:56 -07:00
//MIXINS
@mixin icon__avoid() {
content: '🚨';
2019-11-01 17:59:56 -07:00
}
@mixin icon__alt() {
content: '👍';
2019-11-01 17:59:56 -07:00
}
2019-11-02 17:29:36 -07:00
@mixin icon__tool() {
content: '🧰';
2019-11-02 17:29:36 -07:00
}
2019-11-01 17:59:56 -07:00
@mixin icon__hanging() {
margin-left: -2.15rem;
}
@mixin icon__embed() {
margin-right: 0.35rem;
2019-11-01 17:59:56 -07:00
}
2018-09-23 01:17:30 +03:00
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;
padding: 2rem;
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
}
p {
margin: 0.75rem 0;
font-size: 1.25rem;
line-height: 1.25;
}
a {
text-decoration: none;
color: black;
border-bottom: darkgrey solid 0.1em;
font-family: $ext-sans;
margin: 1rem 0;
&:hover {
border-bottom: red solid 0.1rem;
}
}
.subtitle {
2019-09-01 02:38:10 +01:00
font-family: $ext-sans;
font-weight: $regular;
letter-spacing: 0.1;
2019-10-19 17:49:03 -04:00
grid-column: span 2;
2018-09-23 01:17:30 +03:00
}
2019-09-01 02:38:10 +01:00
2019-10-19 17:49:03 -04:00
.summary {
grid-column: span 2;
2018-09-23 01:17:30 +03:00
}
2019-10-21 15:17:24 -04:00
.small {
font-size: 0.75em;
}
2019-10-21 15:17:24 -04:00
.title__thicc {
2019-11-01 14:59:00 -07:00
font-size: 8vh;
line-height: 0.75;
2019-10-21 15:17:24 -04:00
padding: 0;
margin: 0.5rem 0rem;
grid-column: span 2;
// transform: rotateZ(90deg);
// margin: 13rem -7rem;
}
2019-10-21 15:17:24 -04:00
.help {
margin: 1rem 0;
2019-10-21 15:17:24 -04:00
li {
margin: 0.75rem 0;
2019-10-21 15:17:24 -04:00
}
}
2019-10-21 15:17:24 -04:00
// GRID //
2018-09-23 01:17:30 +03:00
.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;
grid-template-columns: repeat(
auto-fill,
minmax(var(--auto-grid-min-size), 1fr)
);
grid-gap: 1rem;
}
.box {
background: black;
color: white;
padding: 1rem;
margin: 1rem 0.5rem;
height: auto;
2018-09-23 01:17:30 +03:00
a {
2019-10-19 17:49:03 -04:00
color: white;
}
}
2019-10-19 17:49:03 -04:00
.list {
ul {
padding: 0 0 0 1em;
margin: 0;
2019-10-19 17:49:03 -04:00
}
li {
list-style: none;
padding-bottom: 0.5em;
2019-11-01 15:57:22 -07:00
&.subterm {
2019-10-19 17:49:03 -04:00
padding-left: 10px;
}
&:last-child {
2019-10-19 17:49:03 -04:00
padding: 0;
}
&.subterm:before {
content: '\21B3 ';
2019-10-19 17:49:03 -04:00
padding-right: 5px;
}
}
}
2019-10-19 17:49:03 -04:00
2019-09-01 02:38:10 +01:00
.style__italics {
font-style: italic;
2019-09-01 02:38:10 +01:00
}
.word {
&__title {
font-family: $serif;
font-weight: 900;
font-size: 2.5rem;
line-height: 1.25;
margin: 0;
2019-09-01 02:38:10 +01:00
}
&__content {
align-items: stretch;
@supports (display: grid) {
// align-items: flex-start;
display: grid;
grid-template-columns: 1fr 4fr;
grid-gap: 1rem;
& > * {
margin: 0 !important;
}
}
& > p {
grid-column: 1 / -1;
font-family: $sans-serif;
font-size: 1.5rem;
}
& h4 {
grid-column: 1;
font-family: $con-sans;
font-size: 0.85rem;
flex: 0 1 auto;
text-transform: uppercase;
@supports (display: grid) {
text-align: right;
}
}
& h4 ~ p,
& h4 ~ ul {
border-left: 0.1rem solid lightgrey;
padding-left: 1rem;
grid-column: 2;
font-size: inherit;
}
2019-09-01 02:38:10 +01:00
}
&__speech {
font-size: 0.5em;
font-family: $sans-serif;
2019-09-01 02:38:10 +01:00
}
&__signal {
border-top: 1px solid currentcolor;
display: inline-block;
font-family: $ext-sans;
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.15rem;
padding: 0.5rem 0.75rem;
&__avoid {
color: red;
&:before {
@include icon__avoid();
@include icon__hanging();
2019-09-01 02:38:10 +01:00
}
}
2019-10-21 12:33:03 -04:00
&__better {
color: green;
&:before {
@include icon__avoid();
@include icon__hanging();
}
2019-10-21 12:33:03 -04:00
}
&__tool {
color: black;
&:before {
@include icon__tool();
@include icon__hanging();
}
}
2019-10-21 12:37:59 -04:00
}
}
2019-10-21 12:33:03 -04:00
.block__dictionary {
max-width: 50rem;
margin-left: auto;
margin-right: auto;
padding: 0 1rem;
}
.block__word {
grid-column: span 2;
display: flex;
flex-direction: column;
margin: 1rem;
}
2019-10-21 12:15:49 -04:00
.block__type {
display: grid;
grid-template-columns: 1fr 4fr;
align-items: flex-start;
}
.word__type {
text-align: right;
padding-right: 1rem;
font-family: $con-sans;
font-size: 0.85rem;
text-transform: uppercase;
}
.word__link {
text-decoration: none;
color: black;
border-bottom: darkgrey solid 0.1em;
font-family: $ext-sans;
}
.word__breakdown {
font-family: $sans-serif;
border-left: 0.1rem solid lightgrey;
padding-left: 1rem;
2019-11-01 14:59:00 -07:00
}
.flag__red {
2019-11-01 17:59:56 -07:00
background-color: rgb(255, 192, 203);
font-size: 0.9rem;
2019-11-01 14:59:00 -07:00
font-weight: bold;
border-radius: 1rem;
padding: 0.45rem 0.65rem;
margin: 0.25rem 0.75rem;
2019-11-01 15:57:22 -07:00
text-transform: lowercase;
2019-11-01 17:59:56 -07:00
&:before {
@include icon__avoid();
@include icon__embed();
}
}
.list-semicolon {
margin: 0;
padding: 0;
list-style: none;
& > li {
display: inline;
&:not(:last-child)::after {
content: '; ';
}
}
}