1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

simplify stylelint/prettier setup

This commit is contained in:
Matthias Kretschmann 2020-03-22 00:27:33 +01:00
parent d1d4d09980
commit 1abeaf427b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
28 changed files with 586 additions and 2152 deletions

View File

@ -1,12 +1,5 @@
{ {
"extends": [ "extends": [
"stylelint-config-standard", "stylelint-prettier/recommended"
"stylelint-config-css-modules", ]
"./node_modules/prettier-stylelint/config.js"
],
"syntax": "scss",
"rules": {
"indentation": 4,
"no-descending-specificity": null
}
} }

1575
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,8 +14,7 @@
"lint:css": "stylelint ./src/**/*.{css,scss}", "lint:css": "stylelint ./src/**/*.{css,scss}",
"lint": "npm run lint:js && npm run lint:css", "lint": "npm run lint:js && npm run lint:css",
"build": "gatsby build", "build": "gatsby build",
"format": "prettier --write 'src/**/*.{js,jsx}'", "format": "prettier --write 'src/**/*.{js,jsx,css,scss}'",
"format:css": "prettier-stylelint --write --quiet 'src/**/*.{css,scss}'",
"test": "npm run lint && jest --coverage --silent", "test": "npm run lint && jest --coverage --silent",
"test:watch": "npm run lint && jest --coverage --watch", "test:watch": "npm run lint && jest --coverage --watch",
"deploy": "./scripts/deploy.sh", "deploy": "./scripts/deploy.sh",
@ -88,11 +87,10 @@
"postcss-preset-env": "^6.7.0", "postcss-preset-env": "^6.7.0",
"prepend": "^1.0.2", "prepend": "^1.0.2",
"prettier": "^2.0.0", "prettier": "^2.0.0",
"prettier-stylelint": "^0.4.2",
"slugify": "^1.4.0", "slugify": "^1.4.0",
"stylelint": "^13.2.1", "stylelint": "^13.2.1",
"stylelint-config-css-modules": "^2.2.0", "stylelint-config-prettier": "^8.0.1",
"stylelint-config-standard": "^20.0.0" "stylelint-prettier": "^1.1.2"
}, },
"browserslist": [ "browserslist": [
">0.2%", ">0.2%",

View File

@ -1,15 +1,15 @@
.screen { .screen {
margin-top: calc(var(--spacer) * var(--line-height)); margin-top: calc(var(--spacer) * var(--line-height));
} }
.screen > article { .screen > article {
display: grid; display: grid;
grid-template-columns: grid-template-columns:
[full-start] minmax(var(--spacer), 1fr) [full-start] minmax(var(--spacer), 1fr)
[main-start] minmax(0, 38rem) [main-end] [main-start] minmax(0, 38rem) [main-end]
minmax(var(--spacer), 1fr) [full-end]; minmax(var(--spacer), 1fr) [full-end];
} }
.screen > article > * { .screen > article > * {
grid-column: main; grid-column: main;
} }

View File

@ -1,42 +1,42 @@
.button { .button {
display: block; display: block;
width: 100%; width: 100%;
color: var(--brand-cyan); color: var(--brand-cyan);
text-align: center; text-align: center;
border-radius: var(--border-radius); border-radius: var(--border-radius);
padding: calc(var(--spacer) / 4) calc(var(--spacer) / 2); padding: calc(var(--spacer) / 4) calc(var(--spacer) / 2);
transition-property: all; transition-property: all;
background: var(--box-background-color); background: var(--box-background-color);
border: 0.05rem solid var(--brand-cyan); border: 0.05rem solid var(--brand-cyan);
font-size: var(--font-size-small); font-size: var(--font-size-small);
text-transform: uppercase; text-transform: uppercase;
cursor: pointer; cursor: pointer;
} }
@media (min-width: 30rem) { @media (min-width: 30rem) {
.button { .button {
display: inline-block; display: inline-block;
width: auto; width: auto;
} }
} }
.button svg { .button svg {
margin-right: calc(var(--spacer) / 4); margin-right: calc(var(--spacer) / 4);
transition: 0.2s var(--easing); transition: 0.2s var(--easing);
margin-bottom: -0.1rem; margin-bottom: -0.1rem;
width: var(--font-size-small); width: var(--font-size-small);
height: var(--font-size-small); height: var(--font-size-small);
} }
.button:hover, .button:hover,
.button:focus { .button:focus {
color: #5ebeb1; color: #5ebeb1;
border-color: #5ebeb1; border-color: #5ebeb1;
transform: translate3d(0, -0.1rem, 0); transform: translate3d(0, -0.1rem, 0);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
} }
.button:active { .button:active {
transition: none; transition: none;
background: var(--box-background-color); background: var(--box-background-color);
} }

View File

@ -1,3 +1,3 @@
.fullWidth { .fullWidth {
grid-column: full !important; grid-column: full !important;
} }

View File

@ -1,16 +1,16 @@
.hostnameInfo { .hostnameInfo {
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 99; z-index: 99;
padding: calc(var(--spacer) / 3); padding: calc(var(--spacer) / 3);
font-size: var(--font-size-small); font-size: var(--font-size-small);
font-weight: bold; font-weight: bold;
background: var(--brand-light); background: var(--brand-light);
} }
.hostnameInfo p { .hostnameInfo p {
margin: auto; margin: auto;
margin-bottom: 0; margin-bottom: 0;
max-width: 70em; max-width: 70em;
text-align: center; text-align: center;
} }

View File

@ -1,10 +1,10 @@
.icon { .icon {
width: var(--font-size-base); width: var(--font-size-base);
height: var(--font-size-base); height: var(--font-size-base);
stroke: currentColor; stroke: currentColor;
stroke-width: 0.1rem; stroke-width: 0.1rem;
stroke-linecap: round; stroke-linecap: round;
stroke-linejoin: round; stroke-linejoin: round;
fill: none; fill: none;
vertical-align: baseline; vertical-align: baseline;
} }

View File

@ -1,18 +1,18 @@
.projectImage { .projectImage {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
display: block; display: block;
border-radius: var(--border-radius); border-radius: var(--border-radius);
overflow: hidden; overflow: hidden;
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
} }
@media (min-width: 1200px) { @media (min-width: 1200px) {
.projectImage { .projectImage {
max-width: var(--projectImageMaxWidth); max-width: var(--projectImageMaxWidth);
} }
} }
.projectImage img { .projectImage img {
display: block; display: block;
} }

View File

@ -1,22 +1,22 @@
.availability { .availability {
border-radius: var(--border-radius); border-radius: var(--border-radius);
color: var(--text-color-light); color: var(--text-color-light);
z-index: 2; z-index: 2;
padding: calc(var(--spacer) / 2); padding: calc(var(--spacer) / 2);
display: block; display: block;
margin-top: auto; margin-top: auto;
} }
.availability p { .availability p {
margin-bottom: 0; margin-bottom: 0;
} }
.available { .available {
background: var(--body-background-color); background: var(--body-background-color);
color: var(--text-color); color: var(--text-color);
position: fixed; position: fixed;
bottom: var(--spacer); bottom: var(--spacer);
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
} }

View File

@ -1,68 +1,68 @@
.logounit { .logounit {
pointer-events: none; pointer-events: none;
display: block; display: block;
width: 100%; width: 100%;
} }
.logo { .logo {
display: block; display: block;
width: 1.5rem; width: 1.5rem;
height: 1.5rem; height: 1.5rem;
fill: var(--text-color-light); fill: var(--text-color-light);
margin-bottom: calc(var(--spacer) / 2); margin-bottom: calc(var(--spacer) / 2);
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.title, .title,
.description { .description {
display: inline-block; display: inline-block;
margin-bottom: 0; margin-bottom: 0;
} }
.title { .title {
font-size: var(--font-size-h3); font-size: var(--font-size-h3);
margin-right: calc(var(--spacer) / 4); margin-right: calc(var(--spacer) / 4);
line-height: var(--line-height); line-height: var(--line-height);
} }
.description { .description {
font-size: var(--font-size-h4); font-size: var(--font-size-h4);
color: var(--text-color); color: var(--text-color);
} }
.description::before, .description::before,
.description::after { .description::after {
opacity: 0.4; opacity: 0.4;
} }
.description::before { .description::before {
content: '{ '; content: '{ ';
} }
.description::after { .description::after {
content: ' }'; content: ' }';
} }
.minimal { .minimal {
composes: logounit; composes: logounit;
pointer-events: all; pointer-events: all;
} }
.minimal, .minimal,
.minimal:hover, .minimal:hover,
.minimal:focus { .minimal:focus {
transform: scale(0.7); transform: scale(0.7);
transform-origin: top center; transform-origin: top center;
transform-box: border-box; transform-box: border-box;
} }
.minimal .title, .minimal .title,
.minimal .description { .minimal .description {
color: var(--text-color-light); color: var(--text-color-light);
} }
.minimal .logo { .minimal .logo {
margin-bottom: calc(var(--spacer) / 3); margin-bottom: calc(var(--spacer) / 3);
opacity: 0.5; opacity: 0.5;
} }

View File

@ -1,68 +1,68 @@
.networks { .networks {
margin-top: calc(var(--spacer) * var(--line-height)); margin-top: calc(var(--spacer) * var(--line-height));
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: 100%; width: 100%;
text-align: center; text-align: center;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
} }
.title { .title {
display: block; display: block;
font-size: var(--font-size-mini); font-size: var(--font-size-mini);
color: var(--brand-grey-light); color: var(--brand-grey-light);
opacity: 0; opacity: 0;
transform: translate3d(0, 0.5rem, 0); transform: translate3d(0, 0.5rem, 0);
transition: 0.2s var(--easing); transition: 0.2s var(--easing);
} }
.link { .link {
margin-left: calc(var(--spacer) / var(--line-height)); margin-left: calc(var(--spacer) / var(--line-height));
margin-right: calc(var(--spacer) / var(--line-height)); margin-right: calc(var(--spacer) / var(--line-height));
margin-bottom: calc(var(--spacer) / 2); margin-bottom: calc(var(--spacer) / 2);
text-align: center; text-align: center;
display: inline-block; display: inline-block;
flex: 0 1; flex: 0 1;
min-width: 2.5rem; min-width: 2.5rem;
} }
.link, .link,
.link svg { .link svg {
transition: 0.2s var(--easing); transition: 0.2s var(--easing);
} }
.link svg { .link svg {
stroke: var(--brand-grey-light); stroke: var(--brand-grey-light);
width: 24px; width: 24px;
height: 24px; height: 24px;
} }
.link:hover svg, .link:hover svg,
.link:focus svg { .link:focus svg {
stroke: var(--brand-cyan); stroke: var(--brand-cyan);
} }
.link:hover .title, .link:hover .title,
.link:focus .title { .link:focus .title {
opacity: 1; opacity: 1;
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.small { .small {
composes: networks; composes: networks;
} }
.small .link { .small .link {
padding: calc(var(--spacer) / 4); padding: calc(var(--spacer) / 4);
margin-left: calc(var(--spacer) / 7); margin-left: calc(var(--spacer) / 7);
margin-right: calc(var(--spacer) / 7); margin-right: calc(var(--spacer) / 7);
margin-bottom: calc(var(--spacer) / 4); margin-bottom: calc(var(--spacer) / 4);
} }
.small svg { .small svg {
width: var(--font-size-base); width: var(--font-size-base);
height: var(--font-size-base); height: var(--font-size-base);
opacity: 0.8; opacity: 0.8;
} }

View File

@ -1,28 +1,28 @@
.projectLinks ul { .projectLinks ul {
padding: 0; padding: 0;
} }
.projectLinks li { .projectLinks li {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: calc(var(--spacer) / 2.1); margin-bottom: calc(var(--spacer) / 2.1);
} }
.projectLinks a { .projectLinks a {
display: block; display: block;
width: 100%; width: 100%;
text-transform: none; text-transform: none;
text-align: left; text-align: left;
padding-left: 1.8rem; padding-left: 1.8rem;
} }
.projectLinks svg { .projectLinks svg {
stroke: var(--text-color-light); stroke: var(--text-color-light);
width: var(--font-size-small); width: var(--font-size-small);
height: var(--font-size-small); height: var(--font-size-small);
margin-left: -1.2rem; margin-left: -1.2rem;
} }
.title { .title {
composes: metatitle from '../templates/Project.module.css'; composes: metatitle from '../templates/Project.module.css';
} }

View File

@ -1,51 +1,51 @@
.projectNav { .projectNav {
white-space: nowrap; white-space: nowrap;
overflow-y: hidden; overflow-y: hidden;
overflow-x: auto; overflow-x: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
.projectNav::-webkit-scrollbar, .projectNav::-webkit-scrollbar,
.projectNav::-moz-scrollbar { .projectNav::-moz-scrollbar {
display: none; display: none;
} }
.projectNav::-webkit-scrollbar { .projectNav::-webkit-scrollbar {
width: 6px; width: 6px;
height: 6px; height: 6px;
} }
.projectNav::-webkit-scrollbar-thumb { .projectNav::-webkit-scrollbar-thumb {
background: var(--brand-grey-dimmed); background: var(--brand-grey-dimmed);
} }
.projectNav::-webkit-scrollbar-track { .projectNav::-webkit-scrollbar-track {
background: var(--box-background-color); background: var(--box-background-color);
} }
.item { .item {
display: inline-block; display: inline-block;
width: 60vw; width: 60vw;
margin-left: var(--spacer); margin-left: var(--spacer);
} }
.item:last-child { .item:last-child {
margin-right: calc(var(--spacer) * 2); margin-right: calc(var(--spacer) * 2);
} }
@media (min-width: 30em) { @media (min-width: 30em) {
.item { .item {
width: 40vw; width: 40vw;
max-width: 500px; max-width: 500px;
margin-left: calc(var(--spacer) * 2); margin-left: calc(var(--spacer) * 2);
} }
} }
.title { .title {
visibility: hidden; visibility: hidden;
font-size: 0; font-size: 0;
} }
.link { .link {
display: block; display: block;
} }

View File

@ -1,23 +1,23 @@
.projectTechstack ul { .projectTechstack ul {
padding: 0; padding: 0;
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: calc(var(--spacer) / 2); gap: calc(var(--spacer) / 2);
} }
.projectTechstack li { .projectTechstack li {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: calc(var(--spacer) / 4); padding: calc(var(--spacer) / 4);
text-align: center; text-align: center;
background: var(--box-background-color); background: var(--box-background-color);
border-radius: var(--border-radius); border-radius: var(--border-radius);
border: 0.05rem solid transparent; border: 0.05rem solid transparent;
color: var(--text-color-light); color: var(--text-color-light);
font-size: var(--font-size-small); font-size: var(--font-size-small);
} }
.title { .title {
composes: metatitle from '../templates/Project.module.css'; composes: metatitle from '../templates/Project.module.css';
} }

View File

@ -1,51 +1,51 @@
.repo { .repo {
padding: var(--spacer); padding: var(--spacer);
border-radius: var(--border-radius); border-radius: var(--border-radius);
background: var(--box-background-color); background: var(--box-background-color);
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: flex-start; align-items: flex-start;
box-shadow: var(--box-shadow); box-shadow: var(--box-shadow);
} }
.repo > * { .repo > * {
width: 100%; width: 100%;
} }
.repo p { .repo p {
font-size: var(--font-size-small); font-size: var(--font-size-small);
} }
.repo p:last-child { .repo p:last-child {
margin: 0; margin: 0;
} }
.repoTitle { .repoTitle {
font-size: var(--font-size-h5); font-size: var(--font-size-h5);
margin-bottom: calc(var(--spacer) / 2); margin-bottom: calc(var(--spacer) / 2);
} }
.meta { .meta {
font-size: var(--font-size-small); font-size: var(--font-size-small);
align-self: flex-end; align-self: flex-end;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.meta a { .meta a {
display: inline-block; display: inline-block;
color: var(--text-color-light); color: var(--text-color-light);
font-variant-numeric: lining-nums; font-variant-numeric: lining-nums;
} }
.meta a:hover, .meta a:hover,
.meta a:focus { .meta a:focus {
color: var(--brand-cyan); color: var(--brand-cyan);
} }
.meta svg { .meta svg {
width: var(--font-size-small); width: var(--font-size-small);
height: var(--font-size-small); height: var(--font-size-small);
margin-right: calc(var(--spacer) / 12); margin-right: calc(var(--spacer) / 12);
margin-bottom: -0.1rem; margin-bottom: -0.1rem;
} }

View File

@ -1,77 +1,77 @@
.themeSwitch { .themeSwitch {
position: absolute; position: absolute;
top: calc(var(--spacer) / 2); top: calc(var(--spacer) / 2);
right: var(--spacer); right: var(--spacer);
z-index: 10; z-index: 10;
} }
.themeSwitch svg { .themeSwitch svg {
stroke: var(--brand-grey-light); stroke: var(--brand-grey-light);
width: var(--font-size-base); width: var(--font-size-base);
height: var(--font-size-base); height: var(--font-size-base);
margin-top: -0.05rem; margin-top: -0.05rem;
} }
.themeSwitch svg:last-child { .themeSwitch svg:last-child {
width: calc(var(--font-size-base) * 0.9); width: calc(var(--font-size-base) * 0.9);
height: calc(var(--font-size-base) * 0.9); height: calc(var(--font-size-base) * 0.9);
} }
@media print { @media print {
.themeSwitch { .themeSwitch {
display: none; display: none;
} }
} }
.checkboxContainer { .checkboxContainer {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.checkboxFake { .checkboxFake {
--knob-size: 7px; --knob-size: 7px;
--knob-space: 1px; --knob-space: 1px;
display: block; display: block;
position: relative; position: relative;
width: calc((var(--knob-size) + var(--knob-space) * 2) * 2); width: calc((var(--knob-size) + var(--knob-space) * 2) * 2);
height: calc(var(--knob-size) + var(--knob-space) * 4); height: calc(var(--knob-size) + var(--knob-space) * 4);
border: 1px solid var(--brand-grey-light); border: 1px solid var(--brand-grey-light);
border-radius: 15rem; border-radius: 15rem;
margin-left: calc(var(--spacer) / 3); margin-left: calc(var(--spacer) / 3);
margin-right: calc(var(--spacer) / 3); margin-right: calc(var(--spacer) / 3);
} }
.checkboxFake::after { .checkboxFake::after {
content: ''; content: '';
position: absolute; position: absolute;
top: var(--knob-space); top: var(--knob-space);
left: var(--knob-space); left: var(--knob-space);
width: var(--knob-size); width: var(--knob-size);
height: var(--knob-size); height: var(--knob-size);
background-color: var(--brand-grey-light); background-color: var(--brand-grey-light);
border-radius: 15rem; border-radius: 15rem;
transition: transform 0.2s var(--easing); transition: transform 0.2s var(--easing);
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.checkbox { .checkbox {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
} }
.checkbox [type='checkbox'], .checkbox [type='checkbox'],
.checkbox .label { .checkbox .label {
width: 1px; width: 1px;
height: 1px; height: 1px;
border: 0; border: 0;
clip: rect(0 0 0 0); clip: rect(0 0 0 0);
margin: -1px; margin: -1px;
overflow: hidden; overflow: hidden;
padding: 0; padding: 0;
position: absolute; position: absolute;
} }
.checkbox [type='checkbox']:checked + .checkboxContainer .checkboxFake::after { .checkbox [type='checkbox']:checked + .checkboxContainer .checkboxFake::after {
transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0);
} }

View File

@ -1,30 +1,30 @@
.footer { .footer {
padding: var(--spacer); padding: var(--spacer);
padding-top: calc(var(--spacer) * 4); padding-top: calc(var(--spacer) * 4);
text-align: center; text-align: center;
color: var(--text-color-light); color: var(--text-color-light);
} }
.footer, .footer,
.footer small { .footer small {
font-size: var(--font-size-mini); font-size: var(--font-size-mini);
} }
.footer > aside { .footer > aside {
margin-top: 0; margin-top: 0;
margin-bottom: calc(var(--spacer) * 2); margin-bottom: calc(var(--spacer) * 2);
} }
.actions a { .actions a {
display: inline-block; display: inline-block;
padding: 0 calc(var(--spacer) / 4); padding: 0 calc(var(--spacer) / 4);
font-size: var(--font-size-small); font-size: var(--font-size-small);
margin-left: calc(var(--spacer) / 2); margin-left: calc(var(--spacer) / 2);
margin-right: calc(var(--spacer) / 2); margin-right: calc(var(--spacer) / 2);
margin-bottom: calc(var(--spacer) / 2); margin-bottom: calc(var(--spacer) / 2);
color: var(--text-color-light); color: var(--text-color-light);
} }
.copyright a { .copyright a {
color: inherit; color: inherit;
} }

View File

@ -1,18 +1,18 @@
.header { .header {
position: relative; position: relative;
padding: var(--spacer); padding: var(--spacer);
padding-top: 30vh; padding-top: 30vh;
min-height: calc(100vh - var(--spacer)); min-height: calc(100vh - var(--spacer));
max-height: 1000px; max-height: 1000px;
text-align: center; text-align: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: flex-start;
} }
.minimal { .minimal {
composes: header; composes: header;
min-height: 0; min-height: 0;
padding-top: calc(var(--spacer) * 2); padding-top: calc(var(--spacer) * 2);
padding-bottom: 0; padding-bottom: 0;
} }

View File

@ -1,24 +1,24 @@
.section { .section {
margin: calc(var(--spacer) * 3) auto 0 auto; margin: calc(var(--spacer) * 3) auto 0 auto;
max-width: calc(var(--projectImageMaxWidth) + var(--spacer) * 2); max-width: calc(var(--projectImageMaxWidth) + var(--spacer) * 2);
padding-left: var(--spacer); padding-left: var(--spacer);
padding-right: var(--spacer); padding-right: var(--spacer);
} }
.sectionTitle { .sectionTitle {
font-size: var(--font-size-h3); font-size: var(--font-size-h3);
margin-bottom: calc(var(--spacer) * 2); margin-bottom: calc(var(--spacer) * 2);
text-align: center; text-align: center;
} }
.repos { .repos {
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: calc(var(--spacer) * 2); gap: calc(var(--spacer) * 2);
} }
@media (min-width: 18rem) { @media (min-width: 18rem) {
.repos { .repos {
grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
} }
} }

View File

@ -1,49 +1,49 @@
.imageWrap { .imageWrap {
margin-bottom: calc(var(--spacer) * 3); margin-bottom: calc(var(--spacer) * 3);
} }
.title { .title {
font-size: var(--font-size-h2); font-size: var(--font-size-h2);
} }
@media (min-width: 30em) { @media (min-width: 30em) {
.imageWrap { .imageWrap {
margin-bottom: calc(var(--spacer) * 6); margin-bottom: calc(var(--spacer) * 6);
} }
.title { .title {
font-size: var(--font-size-h1); font-size: var(--font-size-h1);
} }
} }
.description { .description {
font-size: var(--font-size-base); font-size: var(--font-size-base);
margin-bottom: calc(var(--spacer) * 2); margin-bottom: calc(var(--spacer) * 2);
} }
.meta { .meta {
margin-top: -2rem; margin-top: -2rem;
margin-bottom: calc(var(--spacer) * 5); margin-bottom: calc(var(--spacer) * 5);
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: calc(var(--spacer) * 2); gap: calc(var(--spacer) * 2);
} }
@media (min-width: 40em) { @media (min-width: 40em) {
.meta { .meta {
grid-template-columns: 2fr 3fr; grid-template-columns: 2fr 3fr;
} }
} }
.metatitle { .metatitle {
font-size: var(--font-size-h3); font-size: var(--font-size-h3);
margin-bottom: calc(var(--spacer) * 1.5); margin-bottom: calc(var(--spacer) * 1.5);
} }
.metatitle span { .metatitle span {
display: block; display: block;
margin-top: calc(var(--spacer) / 3); margin-top: calc(var(--spacer) / 3);
font-size: var(--font-size-base); font-size: var(--font-size-base);
font-family: var(--font-family-base); font-family: var(--font-family-base);
color: var(--brand-grey-light); color: var(--brand-grey-light);
} }

View File

@ -1,16 +1,16 @@
.content { .content {
text-align: center; text-align: center;
height: 100%; height: 100%;
max-width: 35rem; max-width: 35rem;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
.content video { .content video {
display: block; display: block;
width: auto; width: auto;
height: 300px; height: 300px;
box-shadow: 0 3px 5px rgba(var(--brand-main), 0.15), box-shadow: 0 3px 5px rgba(var(--brand-main), 0.15),
0 5px 16px rgba(var(--brand-main), 0.15); 0 5px 16px rgba(var(--brand-main), 0.15);
margin: calc(var(--spacer) / 4) auto calc(var(--spacer) / 2) auto; margin: calc(var(--spacer) / 4) auto calc(var(--spacer) / 2) auto;
} }

View File

@ -1,81 +1,81 @@
.projects { .projects {
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: calc(var(--spacer) * 3); gap: calc(var(--spacer) * 3);
max-width: calc(var(--projectImageMaxWidth) + var(--spacer) * 2); max-width: calc(var(--projectImageMaxWidth) + var(--spacer) * 2);
margin: 0 auto; margin: 0 auto;
padding-left: var(--spacer); padding-left: var(--spacer);
padding-right: var(--spacer); padding-right: var(--spacer);
} }
@media (min-width: 30rem) { @media (min-width: 30rem) {
.projects { .projects {
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr)); grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
} }
} }
.title { .title {
font-size: var(--font-size-h4); font-size: var(--font-size-h4);
opacity: 0; opacity: 0;
position: absolute; position: absolute;
top: 15%; top: 15%;
left: 0; left: 0;
margin: 0; margin: 0;
z-index: 2; z-index: 2;
padding: calc(var(--spacer) / 3) var(--spacer); padding: calc(var(--spacer) / 3) var(--spacer);
color: #fff !important; color: #fff !important;
background: var(--brand-cyan); background: var(--brand-cyan);
transform: translate3d(0, -1rem, 0); transform: translate3d(0, -1rem, 0);
transition: transform 0.2s ease-out; transition: transform 0.2s ease-out;
} }
.project { .project {
position: relative; position: relative;
} }
.project a { .project a {
display: block; display: block;
position: relative; position: relative;
} }
.project a::after { .project a::after {
content: ''; content: '';
position: absolute; position: absolute;
left: 0; left: 0;
right: 0; right: 0;
top: 0; top: 0;
bottom: 0; bottom: 0;
z-index: 1; z-index: 1;
background: transparent; background: transparent;
transition: background 0.2s ease-out; transition: background 0.2s ease-out;
} }
.project a:hover::after, .project a:hover::after,
.project a:focus::after { .project a:focus::after {
background: rgba(var(--brand-cyan), 0.05); background: rgba(var(--brand-cyan), 0.05);
} }
.project a:hover .title, .project a:hover .title,
.project a:focus .title, .project a:focus .title,
.project a:hover .imageCount, .project a:hover .imageCount,
.project a:focus .imageCount { .project a:focus .imageCount {
opacity: 1; opacity: 1;
transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
} }
.imageCount { .imageCount {
position: absolute; position: absolute;
bottom: 5%; bottom: 5%;
right: 2%; right: 2%;
color: var(--brand-cyan); color: var(--brand-cyan);
font-size: var(--font-size-small); font-size: var(--font-size-small);
z-index: 10; z-index: 10;
opacity: 0; opacity: 0;
transform: translate3d(0, calc(var(--spacer) / 2), 0); transform: translate3d(0, calc(var(--spacer) / 2), 0);
transition: transform 0.25s ease-out; transition: transform 0.25s ease-out;
} }
.imageCount svg { .imageCount svg {
width: var(--font-size-base); width: var(--font-size-base);
height: var(--font-size-base); height: var(--font-size-base);
} }

View File

@ -1,57 +1,57 @@
.title { .title {
font-size: var(--font-size-h2); font-size: var(--font-size-h2);
margin-bottom: calc(var(--spacer) / 4); margin-bottom: calc(var(--spacer) / 4);
} }
@media print { @media print {
.title { .title {
margin-bottom: 0; margin-bottom: 0;
} }
} }
.label { .label {
font-size: var(--font-size-h3); font-size: var(--font-size-h3);
color: var(--text-color); color: var(--text-color);
margin-bottom: 0; margin-bottom: 0;
} }
.contact { .contact {
list-style: none; list-style: none;
padding: 0; padding: 0;
} }
.contact li, .contact li,
.contact p { .contact p {
margin-bottom: calc(var(--spacer) / 4); margin-bottom: calc(var(--spacer) / 4);
} }
.contact svg { .contact svg {
stroke: var(--text-color-light); stroke: var(--text-color-light);
margin-right: calc(var(--spacer) / 4); margin-right: calc(var(--spacer) / 4);
margin-bottom: -0.1rem; margin-bottom: -0.1rem;
} }
@media (min-width: 60em) { @media (min-width: 60em) {
.contact { .contact {
margin-top: calc(var(--spacer) * 2.25); margin-top: calc(var(--spacer) * 2.25);
} }
} }
.languages svg { .languages svg {
display: inline-block; display: inline-block;
} }
.languages p { .languages p {
margin-left: calc(var(--spacer) / 1.1); margin-left: calc(var(--spacer) / 1.1);
} }
.languages p:first-of-type { .languages p:first-of-type {
margin-left: 0; margin-left: 0;
display: inline-block; display: inline-block;
} }
.languages span { .languages span {
font-size: var(--font-size-small); font-size: var(--font-size-small);
margin-left: calc(var(--spacer) / 4); margin-left: calc(var(--spacer) / 4);
color: var(--text-color-light); color: var(--text-color-light);
} }

View File

@ -1,66 +1,66 @@
.resumeItem { .resumeItem {
padding-bottom: calc(var(--spacer) * 3); padding-bottom: calc(var(--spacer) * 3);
padding-left: var(--spacer); padding-left: var(--spacer);
position: relative; position: relative;
border-left: 0.1rem solid var(--text-color-light); border-left: 0.1rem solid var(--text-color-light);
} }
.resumeItem::before { .resumeItem::before {
content: ''; content: '';
display: block; display: block;
width: var(--font-size-mini); width: var(--font-size-mini);
height: var(--font-size-mini); height: var(--font-size-mini);
border-radius: 50%; border-radius: 50%;
background: var(--color-headings); background: var(--color-headings);
border: 0.1rem solid var(--color-headings); border: 0.1rem solid var(--color-headings);
position: absolute; position: absolute;
left: -0.4rem; left: -0.4rem;
top: 0.4rem; top: 0.4rem;
} }
.resumeItem:last-child { .resumeItem:last-child {
border: none; border: none;
} }
.resumeItem p:last-child { .resumeItem p:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.title { .title {
margin-bottom: calc(var(--spacer) / 3); margin-bottom: calc(var(--spacer) / 3);
font-size: var(--font-size-h4); font-size: var(--font-size-h4);
} }
.subTitle { .subTitle {
color: var(--text-color-light); color: var(--text-color-light);
font-size: var(--font-size-h5); font-size: var(--font-size-h5);
} }
.time { .time {
display: block; display: block;
margin-bottom: calc(var(--spacer) / 2); margin-bottom: calc(var(--spacer) / 2);
white-space: nowrap; white-space: nowrap;
font-style: italic; font-style: italic;
} }
@media (min-width: 60em) { @media (min-width: 60em) {
.time { .time {
text-align: right; text-align: right;
position: absolute; position: absolute;
top: -0.3rem; top: -0.3rem;
right: 105%; right: 105%;
} }
} }
@media print { @media print {
.resumeItem { .resumeItem {
padding-bottom: calc(var(--spacer) * 2); padding-bottom: calc(var(--spacer) * 2);
} }
.time { .time {
text-align: left; text-align: left;
position: relative; position: relative;
top: auto; top: auto;
right: auto; right: auto;
} }
} }

View File

@ -1,48 +1,48 @@
.resume { .resume {
padding: var(--spacer); padding: var(--spacer);
display: grid; display: grid;
grid-gap: calc(var(--spacer) * 4); grid-gap: calc(var(--spacer) * 4);
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }
@media (min-width: 60em) { @media (min-width: 60em) {
.resume { .resume {
grid-template-columns: 1fr 2fr; grid-template-columns: 1fr 2fr;
max-width: calc(var(--projectImageMaxWidth) + var(--spacer) * 2); max-width: calc(var(--projectImageMaxWidth) + var(--spacer) * 2);
margin: 0 auto; margin: 0 auto;
padding: var(--spacer) calc(var(--spacer) * 3); padding: var(--spacer) calc(var(--spacer) * 3);
} }
} }
.subTitle { .subTitle {
font-size: var(--font-size-h3); font-size: var(--font-size-h3);
margin-bottom: 0; margin-bottom: 0;
margin-top: -(calc(var(--spacer) / 3)); margin-top: -(calc(var(--spacer) / 3));
} }
.subTitle svg { .subTitle svg {
width: var(--font-size-large); width: var(--font-size-large);
height: var(--font-size-large); height: var(--font-size-large);
margin-right: calc(var(--spacer) / 4); margin-right: calc(var(--spacer) / 4);
stroke: var(--brand-grey-light); stroke: var(--brand-grey-light);
} }
@media print { @media print {
:global(html) { :global(html) {
font-size: 8pt; font-size: 8pt;
} }
:global(body) { :global(body) {
background: #fff !important; background: #fff !important;
margin: 1cm; margin: 1cm;
} }
p { p {
color: silver; color: silver;
} }
.resume { .resume {
grid-template-columns: 1fr; grid-template-columns: 1fr;
max-width: 100%; max-width: 100%;
} }
} }

View File

@ -1,62 +1,62 @@
:root { :root {
/* Colors */ /* Colors */
--brand-main: #015565; --brand-main: #015565;
--brand-cyan: #43a699; --brand-cyan: #43a699;
--brand-main-light: #88bec8; --brand-main-light: #88bec8;
--brand-light: #e7eef4; --brand-light: #e7eef4;
--brand-grey: #4e5d63; --brand-grey: #4e5d63;
--brand-grey-light: #70858e; --brand-grey-light: #70858e;
--brand-grey-dimmed: #97abb3; --brand-grey-dimmed: #97abb3;
/* Backgrounds */ /* Backgrounds */
--body-background-color: var(--brand-light); --body-background-color: var(--brand-light);
--box-background-color: rgba(255, 255, 255, 0.2); --box-background-color: rgba(255, 255, 255, 0.2);
/* Text Colors */ /* Text Colors */
--text-color: var(--brand-grey); --text-color: var(--brand-grey);
--text-color-light: var(--brand-grey-light); --text-color-light: var(--brand-grey-light);
--color-headings: var(--brand-main); --color-headings: var(--brand-main);
/* Typography */ /* Typography */
--font-size-root: 18px; --font-size-root: 18px;
--font-size-base: 1rem; --font-size-base: 1rem;
--font-size-large: 1.2rem; --font-size-large: 1.2rem;
--font-size-small: 0.8rem; --font-size-small: 0.8rem;
--font-size-mini: 0.7rem; --font-size-mini: 0.7rem;
--font-size-h1: 2.5rem; --font-size-h1: 2.5rem;
--font-size-h2: 2rem; --font-size-h2: 2rem;
--font-size-h3: 1.65rem; --font-size-h3: 1.65rem;
--font-size-h4: 1.45rem; --font-size-h4: 1.45rem;
--font-size-h5: var(--font-size-large); --font-size-h5: var(--font-size-large);
--font-size-h6: var(--font-size-base); --font-size-h6: var(--font-size-base);
--line-height: 1.6; --line-height: 1.6;
--line-height-small: 1.1428571429; --line-height-small: 1.1428571429;
--font-family-base: 'ff-tisa-sans-web-pro', 'Trebuchet MS', 'Helvetica Neue', --font-family-base: 'ff-tisa-sans-web-pro', 'Trebuchet MS', 'Helvetica Neue',
'Helvetica', 'Arial', 'sans-serif'; 'Helvetica', 'Arial', 'sans-serif';
--font-weight-base: 400; --font-weight-base: 400;
--font-weight-bold: 700; --font-weight-bold: 700;
--font-family-monospace: 'Menlo', 'Monaco', 'Consolas', 'Courier New', --font-family-monospace: 'Menlo', 'Monaco', 'Consolas', 'Courier New',
'monospace'; 'monospace';
--font-family-headings: 'brandon-grotesque', 'Avenir Next', 'Helvetica Neue', --font-family-headings: 'brandon-grotesque', 'Avenir Next', 'Helvetica Neue',
'Helvetica', 'Arial', 'sans-serif'; 'Helvetica', 'Arial', 'sans-serif';
--font-weight-headings: 400; --font-weight-headings: 400;
--line-height-headings: 1.1; --line-height-headings: 1.1;
/* Components spacing */ /* Components spacing */
--spacer: 1.5rem; --spacer: 1.5rem;
--border-radius: 0.25rem; --border-radius: 0.25rem;
/* Miscellanious */ /* Miscellanious */
--projectImageMaxWidth: 1440px; --projectImageMaxWidth: 1440px;
--easing: cubic-bezier(0.75, 0, 0.08, 1); --easing: cubic-bezier(0.75, 0, 0.08, 1);
--box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05), 0 5px 16px rgba(0, 0, 0, 0.05); --box-shadow: 0 3px 5px rgba(0, 0, 0, 0.05), 0 5px 16px rgba(0, 0, 0, 0.05);
} }
.dark { .dark {
--text-color: #7e9199; --text-color: #7e9199;
--text-color-light: var(--brand-grey); --text-color-light: var(--brand-grey);
--color-headings: var(--brand-main-light); --color-headings: var(--brand-main-light);
--body-background-color: #1d2224; --body-background-color: #1d2224;
--box-background-color: rgba(255, 255, 255, 0.03); --box-background-color: rgba(255, 255, 255, 0.03);
--box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25), 0 5px 16px rgba(0, 0, 0, 0.25); --box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25), 0 5px 16px rgba(0, 0, 0, 0.25);
} }

View File

@ -3,65 +3,65 @@
*, *,
*::before, *::before,
*::after { *::after {
box-sizing: border-box; box-sizing: border-box;
} }
html, html,
body { body {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
html { html {
font-size: var(--font-size-root); font-size: var(--font-size-root);
background: var(--body-background-color); background: var(--body-background-color);
} }
body { body {
font-family: var(--font-family-base); font-family: var(--font-family-base);
font-weight: var(--font-weight-base); font-weight: var(--font-weight-base);
font-size: var(--font-size-base); font-size: var(--font-size-base);
line-height: var(--line-height); line-height: var(--line-height);
color: var(--text-color); color: var(--text-color);
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
font-feature-settings: 'liga', 'kern'; font-feature-settings: 'liga', 'kern';
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
min-height: 100vh; min-height: 100vh;
background: var(--body-background-color); background: var(--body-background-color);
transition: background 0.2s var(--easing); transition: background 0.2s var(--easing);
} }
p, p,
ul, ul,
ol { ol {
margin: 0 0 var(--spacer); margin: 0 0 var(--spacer);
} }
/* Headings */ /* Headings */
h1 { h1 {
font-size: var(--font-size-h1); font-size: var(--font-size-h1);
} }
h2 { h2 {
font-size: var(--font-size-h2); font-size: var(--font-size-h2);
} }
h3 { h3 {
font-size: var(--font-size-h3); font-size: var(--font-size-h3);
} }
h4 { h4 {
font-size: var(--font-size-h4); font-size: var(--font-size-h4);
} }
h5 { h5 {
font-size: var(--font-size-h5); font-size: var(--font-size-h5);
} }
h6 { h6 {
font-size: var(--font-size-h6); font-size: var(--font-size-h6);
} }
h1, h1,
@ -70,36 +70,36 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
font-family: var(--font-family-headings); font-family: var(--font-family-headings);
line-height: var(--line-height-headings); line-height: var(--line-height-headings);
color: var(--color-headings); color: var(--color-headings);
font-weight: var(--font-weight-headings); font-weight: var(--font-weight-headings);
margin: 0 0 var(--spacer); margin: 0 0 var(--spacer);
} }
/* Links */ /* Links */
a { a {
color: var(--brand-cyan); color: var(--brand-cyan);
text-decoration: none; text-decoration: none;
transition: 0.2s ease-out; transition: 0.2s ease-out;
} }
a:hover, a:hover,
a:focus { a:focus {
color: #5ebeb1; color: #5ebeb1;
} }
/* Media */ /* Media */
img, img,
video, video,
svg { svg {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
margin: 0; margin: 0;
} }
#___gatsby { #___gatsby {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
flex-direction: column; flex-direction: column;
} }