Skip to content

Commit

Permalink
rework of scss
Browse files Browse the repository at this point in the history
  • Loading branch information
beumsk committed Mar 21, 2024
1 parent bc82568 commit 1c5a6b3
Show file tree
Hide file tree
Showing 13 changed files with 276 additions and 227 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ This will trigger Github Action and deploy the changes to gh-pages.

## TODO

- shorten cv old web experience?
- add new projects (todolist?)
- shorten cv old web experience? + add senior dev? + new skills to filter?
- switch to TS
- optimize images with script
- add new projects (tripser, kineval, todolist?)
- review images (avoid bg-img, use different resolutions: https://dev.to/builderio/optimal-images-in-html-5bg9)
- review design: https://anthonyhobday.com/sideprojects/saferules/

Expand Down
2 changes: 1 addition & 1 deletion data/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const posts = [
intro: 'How to set up Sass with the best compiling settings and start developing with it',
img: '/images/posts/set-up-sass-in-the-best-way.jpg',
published: '2023-04-06',
modified: '2023-04-07',
modified: '2023-11-27',
categories: 'sass, css, tutorial',
link: '/blog/set-up-sass-in-the-best-way',
url: 'https://remybeumier.be/blog/set-up-sass-in-the-best-way',
Expand Down
8 changes: 4 additions & 4 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@

<url>
<loc>https://remybeumier.be/projects/omega</loc>
<lastmod>2023-04-27</lastmod>
<lastmod>2023-11-27</lastmod>
<changefreq>yearly</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://remybeumier.be/projects/padel</loc>
<lastmod>2023-04-27</lastmod>
<lastmod>2023-11-27</lastmod>
<changefreq>yearly</changefreq>
<priority>0.6</priority>
</url>

<url>
<loc>https://remybeumier.be/projects/onomo</loc>
<lastmod>2023-04-27</lastmod>
<lastmod>2023-11-27</lastmod>
<changefreq>yearly</changefreq>
<priority>0.6</priority>
</url>
Expand Down Expand Up @@ -279,7 +279,7 @@

<url>
<loc>https://remybeumier.be/blog/set-up-sass-in-the-best-way</loc>
<lastmod>2023-04-07</lastmod>
<lastmod>2023-11-27</lastmod>
<changefreq>yearly</changefreq>
<priority>0.6</priority>
</url>
Expand Down
227 changes: 18 additions & 209 deletions public/styles/base/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ body {
font-family: system-ui;
font-size: 1rem;
min-width: 320px;
color-scheme: light dark;
scroll-behavior: smooth;
}

#__next main {
Expand All @@ -19,6 +21,8 @@ main {
font-family: var(--font-body);
background-color: var(--bg);
color: var(--text2);
display: flex;
flex-direction: column;
}

h1 {
Expand Down Expand Up @@ -109,6 +113,7 @@ a {
&:hover,
&:focus {
color: var(--primary);
transition: all var(--transition);
}
}

Expand All @@ -122,6 +127,10 @@ p {
}
}

strong {
color: var(--primary);
}

ul,
ol {
margin: 0;
Expand Down Expand Up @@ -154,147 +163,18 @@ figure {
button {
line-height: 1.4;
color: inherit;
border: solid 1px var(--text);
background: none;
margin: 0;
padding: 0.25rem 0.5rem;
cursor: pointer;

&:hover,
&:focus {
color: var(--primary);
}
}

strong {
color: var(--primary);
}

main {
display: flex;
flex-direction: column;
}

.sr-only {
text-indent: -10000px;
height: 0;
}

.ch-80 {
max-width: 80ch;
}

.container {
width: 100%;
max-width: calc(100% - 40px);
margin: 0 auto;

@media screen and (min-width: 768px) {
max-width: 720px;
}

@media screen and (min-width: 992px) {
max-width: 960px;
}

@media screen and (min-width: 1200px) {
max-width: 1140px;
}

&.narrow {
@media screen and (min-width: 768px) {
max-width: 80ch;
}
}
}

.cols {
display: flex;
margin-left: -1rem;
margin-right: -1rem;

&.cols-md,
&.cols-lg,
&.cols-xl {
display: block;
}

.col {
flex-basis: 0;
flex-grow: 1;
flex-shrink: 1;
padding-left: 1rem;
padding-right: 1rem;

&.is-3 {
flex: none;
width: 25%;
}

&.is-4 {
flex: none;
width: 33.33333%;
}

&.is-6 {
flex: none;
width: 50%;
}

&.is-8 {
flex: none;
width: 66.66667%;
}

&.is-9 {
flex: none;
width: 75%;
}
}
}

@media screen and (min-width: 768px) {
.cols.cols-md {
display: flex;
}
}

@media screen and (min-width: 992px) {
.cols.cols-lg {
display: flex;
}
}

@media screen and (min-width: 1200px) {
.cols.cols-xl {
display: flex;
&:disabled {
cursor: not-allowed;
opacity: 0.5;
}
}

.over-h {
overflow: hidden;
}

.centered {
display: flex;
justify-content: center;
align-items: center;
}

.centered-v {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.space-between-x {
display: flex;
flex-direction: row;
justify-content: space-between;
}

.space-between-y {
display: flex;
flex-direction: column;
justify-content: space-between;
}

.btn,
button {
color: var(--text2);
Expand All @@ -309,7 +189,7 @@ button {
left: -0.125rem;
box-shadow: 4px 4px var(--primary-light);
cursor: pointer;
transition: all 0.2s;
transition: all var(--transition);

@media screen and (min-width: 768px) {
top: 0;
Expand All @@ -323,82 +203,11 @@ button {
border-color: var(--text2);
}


&:not(.active):hover,
&:not(.active):focus {
color: var(--primary);
top: -0.125rem;
left: -0.125rem;
box-shadow: 4px 4px var(--primary-light);
}
}

.t-center {
text-align: center;
}

.t-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}

.skewed {
position: relative;

&:nth-of-type(even)::before {
background: var(--bg2);
}

&::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: skewY(2deg);
z-index: 0;
}
}

/* target IE10 & IE11 */
#ie-banner {
display: none;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
#ie-banner {
display: block;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 100;
background: #009688;
color: #ffffff;
height: 60px;
line-height: 60px;
font-size: 20px;
text-align: center;
}

.grid .card {
margin-bottom: 32px;
}

@media screen and (min-width: 768px) {
.grid {
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;

.card {
width: 30%;
}
}
}
}
Loading

0 comments on commit 1c5a6b3

Please sign in to comment.