-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace legacy sass grammer with newer
- Loading branch information
1 parent
ef30ec7
commit 0bff71f
Showing
5 changed files
with
132 additions
and
135 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@use 'variables' as *; | ||
|
||
/* | ||
* Site Header | ||
*/ | ||
|
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,66 @@ | ||
@use "sass:color"; | ||
|
||
// Our variables | ||
$base-font-family: 'Fira Sans', | ||
'Source Han Sans', | ||
'Source Han Sans JP', | ||
'Noto Sans CJK', | ||
'Noto Sans CJK JP', | ||
'Yu Gothic', | ||
'YuGothic', | ||
'Hiragino Kaku Gothic Std', | ||
'HGPGothicE', | ||
sans-serif; | ||
$code-font-family: 'Fira Mono', | ||
//'Osaka-Mono', | ||
'Droid Sans Mono', | ||
monospace; | ||
$base-font-size: 16px; | ||
$small-font-size: $base-font-size * 0.875; | ||
$base-line-height: 1.5; | ||
$long-line-height: 1.75; | ||
|
||
$spacing-unit: 30px; | ||
|
||
$text-color: #333; | ||
$background-color: #F9F9F9; | ||
$primary-color: #FFC107; | ||
$accent-color: #03A9F4; | ||
$alt-color: #FF5252; | ||
|
||
|
||
$grey-color: #c6c6c6; | ||
$grey-color-light: #efefef; | ||
$grey-color-dark: #5c5c5c; | ||
|
||
$link-color: $accent-color; | ||
$active-link-color: $alt-color; | ||
$visited-link-color: color.adjust($accent-color, $lightness: -25%, $space: hsl); | ||
|
||
$on-palm: 600px; | ||
$on-laptop: 800px; | ||
|
||
// Vertical Writing | ||
@mixin vertical-writing { | ||
@supports ((writing-mode: vertical-rl) or (-webkit-writing-mode: vertical-rl)) { | ||
@content; | ||
} | ||
} | ||
|
||
// Using media queries with like this: | ||
// @include media-query($palm) { | ||
// .wrapper { | ||
// padding-right: $spacing-unit / 2; | ||
// padding-left: $spacing-unit / 2; | ||
// } | ||
// } | ||
@mixin media-query($device) { | ||
@media screen and (max-width: $device) { | ||
@content; | ||
} | ||
} | ||
@mixin media-query-vertical($device) { | ||
@media screen and (max-height: $device) { | ||
@content; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,73 +1,7 @@ | ||
--- | ||
# Only the main Sass file needs front matter (the dashes are enough) | ||
--- | ||
@charset "utf-8"; | ||
|
||
// Our variables | ||
$base-font-family: 'Fira Sans', | ||
'Source Han Sans', | ||
'Source Han Sans JP', | ||
'Noto Sans CJK', | ||
'Noto Sans CJK JP', | ||
'Yu Gothic', | ||
'YuGothic', | ||
'Hiragino Kaku Gothic Std', | ||
'HGPGothicE', | ||
sans-serif; | ||
$code-font-family: 'Fira Mono', | ||
//'Osaka-Mono', | ||
'Droid Sans Mono', | ||
monospace; | ||
$base-font-size: 16px; | ||
$small-font-size: $base-font-size * 0.875; | ||
$base-line-height: 1.5; | ||
$long-line-height: 1.75; | ||
|
||
$spacing-unit: 30px; | ||
|
||
$text-color: #333; | ||
$background-color: #F9F9F9; | ||
$primary-color: #FFC107; | ||
$accent-color: #03A9F4; | ||
$alt-color: #FF5252; | ||
|
||
|
||
$grey-color: #c6c6c6; | ||
$grey-color-light: #efefef; | ||
$grey-color-dark: #5c5c5c; | ||
|
||
$link-color: $accent-color; | ||
$active-link-color: $alt-color; | ||
$visited-link-color: darken($accent-color, 25%); | ||
|
||
$on-palm: 600px; | ||
$on-laptop: 800px; | ||
|
||
|
||
|
||
// Using media queries with like this: | ||
// @include media-query($palm) { | ||
// .wrapper { | ||
// padding-right: $spacing-unit / 2; | ||
// padding-left: $spacing-unit / 2; | ||
// } | ||
// } | ||
@mixin media-query($device) { | ||
@media screen and (max-width: $device) { | ||
@content; | ||
} | ||
} | ||
@mixin media-query-vertical($device) { | ||
@media screen and (max-height: $device) { | ||
@content; | ||
} | ||
} | ||
|
||
|
||
|
||
// Import partials from `sass_dir` (defaults to `_sass`) | ||
@import | ||
"base", | ||
"layout", | ||
"syntax-highlighting" | ||
; | ||
@use 'base'; | ||
@use 'layout'; | ||
@use 'syntax-highlighting' |