-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Modularized the Sass architecture to enhance code maintainability and reduce the output file size - Replaced deprecated `@import` with `@use` / `@forward`
- Loading branch information
Showing
45 changed files
with
2,523 additions
and
2,502 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,5 @@ package-lock.json | |
!.vscode/tasks.json | ||
|
||
# Misc | ||
_sass/dist | ||
_sass/vendors | ||
assets/js/dist |
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 |
---|---|---|
|
@@ -70,7 +70,7 @@ | |
|
||
<!-- Bootstrap --> | ||
{% unless jekyll.environment == 'production' %} | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].2/dist/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected].3/dist/css/bootstrap.min.css"> | ||
{% endunless %} | ||
|
||
<!-- Theme style --> | ||
|
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,73 @@ | ||
@use 'sass:map'; | ||
|
||
$-breakpoints: ( | ||
// 1 column | ||
sm: 576px, | ||
md: 768px, | ||
// 2 columns | ||
lg: 850px, | ||
// 3 columns | ||
xl: 1200px, | ||
xxl: 1400px, | ||
xxxl: 1650px | ||
); | ||
|
||
@function get($breakpoint) { | ||
@return map.get($-breakpoints, $breakpoint); | ||
} | ||
|
||
/* Less than the given width */ | ||
@mixin lt($width) { | ||
@media all and (max-width: calc(#{$width} - 1px)) { | ||
@content; | ||
} | ||
} | ||
|
||
/* Less than or equal to the given width */ | ||
@mixin lte($width) { | ||
@media all and (max-width: $width) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin sm { | ||
@media all and (min-width: get(sm)) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin md { | ||
@media all and (min-width: get(md)) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin lg { | ||
@media all and (min-width: get(lg)) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin xl { | ||
@media all and (min-width: get(xl)) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin xxl { | ||
@media all and (min-width: get(xxl)) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin xxxl { | ||
@media all and (min-width: get(xxxl)) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin between($min, $max) { | ||
@media all and (min-width: $min) and (max-width: $max) { | ||
@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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@forward 'variables'; | ||
@forward 'mixins'; | ||
@forward 'placeholders'; | ||
@forward 'breakpoints'; |
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,80 @@ | ||
@mixin text-ellipsis { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
|
||
@mixin mt-mb($value) { | ||
margin-top: $value; | ||
margin-bottom: $value; | ||
} | ||
|
||
@mixin ml-mr($value) { | ||
margin-left: $value; | ||
margin-right: $value; | ||
} | ||
|
||
@mixin pt-pb($val) { | ||
padding-top: $val; | ||
padding-bottom: $val; | ||
} | ||
|
||
@mixin pl-pr($val, $important: false) { | ||
@if $important { | ||
padding-left: $val !important; | ||
padding-right: $val !important; | ||
} @else { | ||
padding-left: $val; | ||
padding-right: $val; | ||
} | ||
} | ||
|
||
@mixin placeholder { | ||
color: var(--text-muted-color) !important; | ||
} | ||
|
||
@mixin placeholder-focus { | ||
opacity: 0.6; | ||
} | ||
|
||
@mixin label($font-size: 1rem, $font-weight: 600, $color: var(--label-color)) { | ||
color: $color; | ||
font-size: $font-size; | ||
font-weight: $font-weight; | ||
} | ||
|
||
@mixin align-center { | ||
position: relative; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
} | ||
|
||
@mixin prompt($type, $fa-content, $fa-style: 'solid', $rotate: 0) { | ||
&.prompt-#{$type} { | ||
background-color: var(--prompt-#{$type}-bg); | ||
|
||
&::before { | ||
content: $fa-content; | ||
color: var(--prompt-#{$type}-icon-color); | ||
font: var(--fa-font-#{$fa-style}); | ||
|
||
@if $rotate != 0 { | ||
transform: rotate(#{$rotate}deg); | ||
} | ||
} | ||
} | ||
} | ||
|
||
@mixin slide($append: null) { | ||
$basic: transform 0.4s ease; | ||
|
||
@if $append { | ||
transition: $basic, $append; | ||
} @else { | ||
transition: $basic; | ||
} | ||
} | ||
|
||
@mixin max-w-100 { | ||
max-width: 100%; | ||
} |
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,7 +1,3 @@ | ||
/* | ||
* The SCSS variables | ||
*/ | ||
|
||
/* sidebar */ | ||
|
||
$sidebar-width: 260px !default; /* the basic width */ | ||
|
Oops, something went wrong.