Skip to content

Commit

Permalink
fix(css): format css
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Dec 12, 2023
1 parent 2773eee commit 49dea22
Show file tree
Hide file tree
Showing 21 changed files with 144 additions and 151 deletions.
30 changes: 15 additions & 15 deletions src/components/anchored.module.scss
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
.small {
font-weight: bold;
font-weight: bold;
}

a.icon {
display: none;
width: var(--column);
height: var(--vRythm);
background: var(--tertiary);
mask-repeat: no-repeat;
mask-position: left center;
-webkit-mask-size: calc(var(--vRythm) * 1);
mask-size: calc(var(--vRythm) * 1);
display: none;
width: var(--column);
height: var(--vRythm);
background: var(--tertiary);
mask-repeat: no-repeat;
mask-position: left center;
-webkit-mask-size: calc(var(--vRythm) * 1);
mask-size: calc(var(--vRythm) * 1);
}

.root:hover a.icon {
display: inline-block;
mask-image: url('/images/icons/link.svg');
display: inline-block;
mask-image: url('/images/icons/link.svg');
}

a.icon:target {
display: inline-block;
mask-image: url('/images/icons/target.svg');
display: inline-block;
mask-image: url('/images/icons/target.svg');
}

a.icon span {
display: none;
}
display: none;
}
12 changes: 6 additions & 6 deletions src/components/article.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.root {
padding: var(--vRythm) 0;
}
.root:not(:last-child) {
border-bottom: var(--border) solid var(--dark);
}
.root {
padding: var(--vRythm) 0;
}
.root:not(:last-child) {
border-bottom: var(--border) solid var(--dark);
}
14 changes: 7 additions & 7 deletions src/components/blockquote.module.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.root {
font-family: var(--writingFont);
font-size: var(--greatFontSize);
line-height: var(--greatLineHeight);
margin: 0 0 var(--vRythm) 0;
padding: 0 0 0 var(--gutter);
border-left: var(--border) solid var(--green2);
}
font-family: var(--writingFont);
font-size: var(--greatFontSize);
line-height: var(--greatLineHeight);
margin: 0 0 var(--vRythm) 0;
padding: 0 0 0 var(--gutter);
border-left: var(--border) solid var(--green2);
}
9 changes: 3 additions & 6 deletions src/components/cite.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* cite.module.scss */

.root {
color: var(--primary);
text-decoration: underline;
}

color: var(--primary);
text-decoration: underline;
}
9 changes: 3 additions & 6 deletions src/components/code.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* code.module.scss */

.root {
text-decoration: none;
font-family: monospace;
}

text-decoration: none;
font-family: monospace;
}
20 changes: 10 additions & 10 deletions src/components/contentBlock.module.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
@import "../layouts/variables.scss";
@import '../layouts/variables.scss';

.root {
background-color: var(--light);
padding: calc(var(--vRythm) * 2) var(--gutter);
background-color: var(--light);
padding: calc(var(--vRythm) * 2) var(--gutter);
}

@media screen and (min-width: $CSS_BREAKPOINT_START_L) {
.root {
padding: calc(var(--vRythm) * 2) calc(var(--gutter) * 2);
}
.root {
padding: calc(var(--vRythm) * 2) calc(var(--gutter) * 2);
}
}

@media screen and (min-width: $CSS_BREAKPOINT_START_XL) {
.root {
padding: calc(var(--vRythm) * 3) calc(var(--gutter) * 8);
}
}
.root {
padding: calc(var(--vRythm) * 3) calc(var(--gutter) * 8);
}
}
7 changes: 3 additions & 4 deletions src/components/em.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* em.module.scss */

.root {
text-decoration: none;
font-style: italic;
}

text-decoration: none;
font-style: italic;
}
60 changes: 30 additions & 30 deletions src/components/footer.module.scss
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
@import "../layouts/variables.scss";
@import '../layouts/variables.scss';

.footer {
display: block;
width: 100%;
background-color: var(--dark);
display: block;
width: 100%;
background-color: var(--dark);
}
.p {
color: var(--light);
margin: 0 auto;
text-align: center;
line-height: var(--vRythm);
}
.a,
.a:visited,
.a:hover {
color: var(--light);
}
@media screen and (max-width: $CSS_BREAKPOINT_END_S) {
.footer {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 4;
grid-row-end: 5;
}
.p {
color: var(--light);
margin: 0 auto;
text-align: center;
line-height: var(--vRythm);
}
@media screen and (min-width: $CSS_BREAKPOINT_START_M) {
.footer {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 4;
grid-row-end: 5;
}
.a,
.a:visited,
.a:hover {
color: var(--light);
}
@media screen and (max-width: $CSS_BREAKPOINT_END_S) {
.footer {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 4;
grid-row-end: 5;
}
}
@media screen and (min-width: $CSS_BREAKPOINT_START_M) {
.footer {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 4;
grid-row-end: 5;
}
}
}
16 changes: 8 additions & 8 deletions src/components/h1.module.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.root {
color: var(--primary);
font-family: var(--headingFont);
font-size: var(--giantFontSize);
line-height: var(--giantLineHeight);
font-weight: bold;
margin: 0 0 calc(var(--vRythm) * 2) 0;
text-align: center;
}
color: var(--primary);
font-family: var(--headingFont);
font-size: var(--giantFontSize);
line-height: var(--giantLineHeight);
font-weight: bold;
margin: 0 0 calc(var(--vRythm) * 2) 0;
text-align: center;
}
14 changes: 7 additions & 7 deletions src/components/h2.module.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.root {
color: var(--quinary);
font-family: var(--headingFont);
font-size: var(--greatFontSize);
line-height: var(--greatLineHeight);
font-weight: normal;
margin: var(--vRythm) 0 0 0;
}
color: var(--quinary);
font-family: var(--headingFont);
font-size: var(--greatFontSize);
line-height: var(--greatLineHeight);
font-weight: normal;
margin: var(--vRythm) 0 0 0;
}
14 changes: 7 additions & 7 deletions src/components/h3.module.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.root {
font-family: var(--headingFont);
font-size: var(--bigFontSize);
line-height: var(--bigLineHeight);
text-decoration: underline;
font-weight: normal;
margin: var(--vRythm) 0 0 0;
}
font-family: var(--headingFont);
font-size: var(--bigFontSize);
line-height: var(--bigLineHeight);
text-decoration: underline;
font-weight: normal;
margin: var(--vRythm) 0 0 0;
}
10 changes: 5 additions & 5 deletions src/components/h4.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.root {
font-family: var(--headingFont);
font-size: var(--bigFontSize);
line-height: var(--bigLineHeight);
margin: 0 0 var(--vRythm) 0;
}
font-family: var(--headingFont);
font-size: var(--bigFontSize);
line-height: var(--bigLineHeight);
margin: 0 0 var(--vRythm) 0;
}
10 changes: 5 additions & 5 deletions src/components/h5.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.root {
font-family: var(--headingFont);
font-size: var(--mediumFontSize);
line-height: var(--mediumLineHeight);
margin: 0 0 var(--vRythm) 0;
}
font-family: var(--headingFont);
font-size: var(--mediumFontSize);
line-height: var(--mediumLineHeight);
margin: 0 0 var(--vRythm) 0;
}
10 changes: 5 additions & 5 deletions src/components/h6.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.root {
font-family: var(--headingFont);
font-size: var(--mediumFontSize);
line-height: var(--mediumLineHeight);
margin: 0 0 var(--vRythm) 0;
}
font-family: var(--headingFont);
font-size: var(--mediumFontSize);
line-height: var(--mediumLineHeight);
margin: 0 0 var(--vRythm) 0;
}
6 changes: 3 additions & 3 deletions src/components/hr.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.root {
border-bottom: var(--border) solid var(--green2);
margin: 0 0 var(--vRythm) 0;
}
border-bottom: var(--border) solid var(--green2);
margin: 0 0 var(--vRythm) 0;
}
10 changes: 5 additions & 5 deletions src/components/li.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.root > :global(:first-child:last-child) {
margin: 0;
}
li {
margin-left: 50px;
}
margin: 0;
}
li {
margin-left: 50px;
}
4 changes: 2 additions & 2 deletions src/components/ol.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.root {
margin: 0 0 var(--vRythm) 0;
}
margin: 0 0 var(--vRythm) 0;
}
4 changes: 2 additions & 2 deletions src/components/p.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.root {
margin: 0 0 var(--vRythm) 0;
}
margin: 0 0 var(--vRythm) 0;
}
30 changes: 15 additions & 15 deletions src/components/tootList.module.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
.root {
margin: 0 0 var(--vRythm) 0;
margin: 0 0 var(--vRythm) 0;
}

.toot :global(a) {
color: #205370;
color: #205370;
}

.toot :global(p) {
margin-left: 2%;
margin-left: 2%;
}

.toot :global(a):hover {
color: #14171a;
color: #14171a;
}

.tootList {
margin-top: var(--vRythm);
display: flex;
flex-direction: row;
gap: var(--gutter);
margin-top: var(--vRythm);
display: flex;
flex-direction: row;
gap: var(--gutter);
}

.toot {
border-style: solid;
border-color: var(--grey);
border-width: var(--borderSize);
border-radius: var(--borderRadius);
width: var(--block);
padding: calc(var(--vRythm) / 2) calc(var(--gutter) / 2);
}
border-style: solid;
border-color: var(--grey);
border-width: var(--borderSize);
border-radius: var(--borderRadius);
width: var(--block);
padding: calc(var(--vRythm) / 2) calc(var(--gutter) / 2);
}
4 changes: 2 additions & 2 deletions src/components/ul.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.root {
margin: 0 0 var(--vRythm) 0;
}
margin: 0 0 var(--vRythm) 0;
}
2 changes: 1 addition & 1 deletion src/layouts/main.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "./variables";
@import './variables';

.root {
min-height: 100vh;
Expand Down

0 comments on commit 49dea22

Please sign in to comment.