-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from spacenomads/issue/95-sass-dart
Issue/95-sass-dart
- Loading branch information
Showing
13 changed files
with
1,961 additions
and
9,640 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
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,18 @@ | ||
@use 'core/core'; | ||
|
||
body { | ||
background-color: core.$color-bg; | ||
color: core.$color-correct-blue; | ||
font-size: core.rem(20); | ||
|
||
@include core.mq(600) { | ||
color: black; | ||
} | ||
} | ||
|
||
@include core.mq(600) { | ||
p { | ||
border: 1px solid orange; | ||
color: blue; | ||
} | ||
} |
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,3 @@ | ||
@forward 'vars'; | ||
@forward 'functions'; | ||
@forward 'mixins'; |
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 'vars'; | ||
|
||
// *** | ||
// Stylesheet _functions.scss | ||
// | ||
// Table of Contents: | ||
// 1. em() | ||
// 2. rem() | ||
// 3. px() | ||
// 4. per() | ||
// 5. img() | ||
// 6. lh() | ||
// | ||
// *** | ||
|
||
|
||
|
||
|
||
|
||
// 1. em() | ||
// --- | ||
@function em( $pixels, $context: vars.$font-size ) { | ||
@return calc($pixels / $context * 1em); | ||
} | ||
|
||
|
||
|
||
|
||
// 2. rem() | ||
// --- | ||
@function rem( $pixels ) { | ||
$context: vars.$font-size; | ||
@return calc($pixels / $context * 1rem); | ||
} | ||
|
||
|
||
|
||
|
||
// 3. px() | ||
// --- | ||
@function px( $pixels ) { | ||
@return calc($pixels * 1px); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// 4. per() | ||
// --- | ||
@function per( $pixels, $context: vars.$page-max-width ) { | ||
@return ( $pixels * 100% / $context ); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// 5. img() | ||
// --- | ||
@function img( $image, $path: vars.$theme ) { | ||
@return url( $path + $image ); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// 6. lh() | ||
// --- | ||
@function lh( $fline, $fsize: vars.$font-size ) { | ||
@return calc($fline * 100% / $fsize); | ||
} |
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,51 @@ | ||
@use 'vars'; | ||
@use 'functions' as fn; | ||
|
||
// *** | ||
// Stylesheet _mixins.scss | ||
// | ||
// Table of Contents: | ||
// 1. z() | ||
// 2. mq() | ||
// 3. screen-reader-only() | ||
// | ||
// *** | ||
|
||
|
||
|
||
|
||
|
||
// 1. z() | ||
// --- | ||
@mixin z($level, $list: vars.$levels) { | ||
z-index: index($list, $level); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// 2. mq() | ||
// --- | ||
@mixin mq($pixels, $width: min-width) { | ||
@media screen and ($width: fn.em($pixels)) { | ||
@content; | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// 3. screen-reader-only() | ||
// --- | ||
@mixin screen-reader-only() { | ||
clip: rect(1px, 1px, 1px, 1px); | ||
clip-path: inset(50%); | ||
height: 1px; | ||
margin: -1px; | ||
overflow: hidden; | ||
padding: 0; | ||
position: absolute; | ||
width: 1px; | ||
} |
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,51 @@ | ||
// *** | ||
// Stylesheet _vars.scss | ||
// | ||
// Table of Contents: | ||
// 1. Colors | ||
// 2. Fonts | ||
// 3. Dimensions | ||
// 4. Levels | ||
// 5. Themes | ||
// | ||
// *** | ||
|
||
|
||
|
||
|
||
|
||
// 1. Colors | ||
// --- | ||
$color-correct-blue: #007aff; | ||
$color-bg: #f4f5f6; | ||
|
||
|
||
|
||
|
||
|
||
// 2. Fonts | ||
// --- | ||
$font-size: 16; | ||
|
||
|
||
|
||
|
||
|
||
// 3. Dimensions | ||
// --- | ||
$page-max-width: 1280; | ||
|
||
|
||
|
||
|
||
// 4. Levels | ||
// --- | ||
$levels: footer, content, header; | ||
|
||
|
||
|
||
|
||
|
||
// 5. Themes | ||
// --- | ||
$theme: 'layout/' |
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,16 +1 @@ | ||
$color-correct-blue: #007aff; | ||
|
||
body { | ||
color: $color-correct-blue; | ||
|
||
@media screen and (min-width: 600px) { | ||
color: black; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 600px) { | ||
p { | ||
border: 1px solid orange; | ||
color: blue; | ||
} | ||
} | ||
@use 'sample-page'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.