-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: main.scss and scss folder structure
closes #52 BREAKING CHANGE: scss folder structure is changed
- Loading branch information
Showing
53 changed files
with
530 additions
and
374 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ | |
display: table; | ||
margin: 0 auto; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
text-emphasis-position: under; | ||
-webkit-text-emphasis-position: under; | ||
-moz-text-emphasis-position: under; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@font-face { | ||
font-family: 'glyph-correction'; | ||
font-display: swap; | ||
font-weight: inherit; | ||
font-style: inherit; | ||
src: url('/fonts/glyph-correction.woff2') format('woff2'), | ||
url('/fonts/glyph-correction.woff') format('woff'), | ||
url('/fonts/glyph-correction.ttf') format('truetype'), | ||
url('/fonts/glyph-correction.eot') format('embedded-opentype'); | ||
unicode-range: U+00B7, U+2014, U+2022, U+2026; | ||
text-rendering: optimizeLegibility; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
.drop-cap { | ||
margin-top: var(--font-size) !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$maxWidth: $fontSize * (strip-unit($greaterWidth) + 5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@media (max-width: $maxWidth) { | ||
.main-inner { | ||
width: auto !important; | ||
} | ||
.anchor-link { | ||
position: relative; | ||
transform: none; | ||
float: right; | ||
} | ||
.menu { | ||
display: flex; | ||
justify-content: space-around; | ||
word-break: break-all; | ||
} | ||
.menu-item { | ||
margin: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ | |
.back-to-top { | ||
bottom: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
&:hover { | ||
background-color: alpha(var(--color-primary), 0.3); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#theme-toggle { | ||
padding: 1em; | ||
cursor: pointer; | ||
float: right; | ||
position: relative; | ||
z-index: 4; | ||
} | ||
|
||
[data-theme="dark"] img { | ||
filter: brightness(50%); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ts/scss/_common/minimal-footer-about.scss → ...css/components/_minimal-footer-about.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
padding: 0; | ||
list-style: none; | ||
display: none; | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ | |
margin-left: auto; | ||
text-align: right; | ||
max-width: 42%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ | |
.related-link { | ||
line-height: 1.5; | ||
display: inline-block; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
|
||
.updated-badge-right { | ||
fill: alpha(var(--color-primary), 0.5); | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.footer { | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
font-size: 90%; | ||
color: var(--color-contrast-medium); | ||
a { | ||
color: var(--color-contrast-medium); | ||
&:hover { | ||
color: var(--color-primary); | ||
} | ||
} | ||
} | ||
|
||
.footer-inner { | ||
padding: 1em; | ||
text-align: center; | ||
} | ||
|
||
.footer-icon { | ||
margin: 0 0.25em 0.3em; | ||
} | ||
|
||
@if variable-exists("iconColor") { | ||
.footer-icon { | ||
fill: $iconColor; | ||
} | ||
} | ||
|
||
@if ($iconAnimation) { | ||
@keyframes heartbeat { | ||
0%, 100% { | ||
transform: scale(1); | ||
} | ||
10%, 30% { | ||
transform: scale(0.9); | ||
} | ||
20%, 40%, 50%, 60%, 70%, 80% { | ||
transform: scale(1.1); | ||
} | ||
} | ||
.footer-icon { | ||
animation: heartbeat 1.33s ease-in-out infinite; | ||
} | ||
} |
Oops, something went wrong.
abba97f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reference: https://itnext.io/structuring-your-sass-projects-c8d41fa55ed4