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": [
"stylelint-config-standard",
"stylelint-config-css-modules",
"./node_modules/prettier-stylelint/config.js"
],
"syntax": "scss",
"rules": {
"indentation": 4,
"no-descending-specificity": null
}
"stylelint-prettier/recommended"
]
}

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,16 +1,16 @@
.content {
text-align: center;
height: 100%;
max-width: 35rem;
margin-left: auto;
margin-right: auto;
text-align: center;
height: 100%;
max-width: 35rem;
margin-left: auto;
margin-right: auto;
}
.content video {
display: block;
width: auto;
height: 300px;
box-shadow: 0 3px 5px 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;
display: block;
width: auto;
height: 300px;
box-shadow: 0 3px 5px 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;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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