-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hotfix/2.1.3: (46 commits) fix(package): update project version number from `2.1.2` to `2.1.3` refactor(sass): remove empty and unused sections from `styles.sass` refactor(sass): remove unused vendor import and add `animations-animate-css` import refactor(sass): rename `animation` to `animations-animate` refactor(sass): use double quotes instead of single quotes refactor(sass): sort imports from the `abstracts` folder as `functions`, `mixins` and `variables` refactor(sass): update import paths to reflect renamed files refactor(sass): update section title from `BODY and RESET FONT` to `BODY` for clarity refactor(sass): add 5 line breaks to improve readability in color variables file refactor(sass): update `KEYFRAMES` and `MIXINS` section titles for consistency refactor(sass): correct typo in section title from `TYPOGRAFY` to `FONTS` refactor(sass): rename `base-typography` to `base-fonts` refactor(sass): rename `abstracts-variables-typography` to `abstracts-variables-fonts` refactor(sass): update section titles in typography variables for better organization refactor(sass): rename `abstracts-mixins-media-queries` to `abstracts-mixins-media` refactor(sass): add spaces around `+` operator for improved readability refactor(sass): add break lines in `media` mixin for improved readability refactor(sass): correct syntax error in `contains` function by adding space before `!= null` refactor(sass): fix `Helvetica` font style in `$font-brand-1` refactor(sass): rename variables `$font-family` to `$font-brand-1` ...
- Loading branch information
Showing
35 changed files
with
319 additions
and
496 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
30 changes: 2 additions & 28 deletions
30
src/sass/abstracts/functions/_abstracts-functions-contains.sass
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,36 +1,10 @@ | ||
// ABSTRACTS - FUNCTIONS | ||
// contain (find contain in a list) | ||
// CONTAINS | ||
// ================================================= | ||
// Description: | ||
// ------------------------------------ | ||
// This function 'contains' check whether an item belongs to a list or not. For example it`s using in the mixin mediaquery. | ||
// Require: | ||
// ------------------------------------ | ||
// This function require: | ||
// | ||
// Args: | ||
// ------------------ | ||
// - $list | ||
// @param {List} List of items to check into. | ||
// - $item | ||
// @param {any} Item to check within the list. | ||
// | ||
// This function return: | ||
// | ||
// @return {bool} True/false if the item is contained in the list. | ||
// Use: | ||
// ------------------------------------ | ||
// @if not contains($rules, $rule) | ||
// $rule: 'max' | ||
// Declaration: | ||
// ------------------------------------ | ||
@function contains($list, $item) | ||
@return index($list, $item) !=null | ||
@return index($list, $item) != null |
72 changes: 0 additions & 72 deletions
72
src/sass/abstracts/mixins/_abstracts-mixins-media-queries.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// ABSTRACTS - MIXINS | ||
// MEDIA | ||
// ================================================= | ||
|
||
|
||
|
||
|
||
|
||
@mixin media($breakpoint, $rule: "max", $dimension: "width", $unit: "px") { | ||
$rules: "max", "min"; | ||
$dimensions: "width", "height"; | ||
$units: "px", "em", "rem", "%", "vw", "vh"; | ||
|
||
@if not contains($rules, $rule) { | ||
$rule: "max"; | ||
} | ||
|
||
@if not contains($dimensions, $dimension) { | ||
$rule: "width"; | ||
} | ||
|
||
@if type-of($breakpoint) == number { | ||
@if unitless($breakpoint) { | ||
@media (#{$rule}-#{$dimension}: #{$breakpoint + $unit}) { | ||
@content; | ||
} | ||
} @else if contains($units, unit($breakpoint)) { | ||
@media (#{$rule}-#{$dimension}: #{$breakpoint}) { | ||
@content; | ||
} | ||
} @else { | ||
@error "Invalid units provided"; | ||
} | ||
} @else if variable_exists(breakpoints) { | ||
@if map-has-key($breakpoints, $breakpoint) { | ||
@media (#{$rule}-#{$dimension}: #{inspect(map-get($breakpoints, $breakpoint))}) { | ||
@content; | ||
} | ||
} @else { | ||
@error "Unfortunately, no value could be retrieved from `#{$breakpoint}`. " + "Available breakpoints are: #{map-keys($breakpoints)}."; | ||
} | ||
} @else if variable_exists(breakpoint) { | ||
@media (#{$rule}-#{$dimension}: #{$breakpoint}) { | ||
@content; | ||
} | ||
} @else { | ||
@error "Neither $breakpoints map nor variable provided are defined"; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,42 +1,28 @@ | ||
// ABSTRACTS - MIXIN | ||
// prefix: webkit moz ms o (transform, transition...) | ||
// ABSTRACTS - MIXINS | ||
// PREFIX | ||
// ================================================= | ||
// MIXIN - PREFIX | ||
// PREFIX | ||
// ------------------------------------ | ||
@mixin prefix($property, $value, $prefixes: webkit moz ms o) | ||
@each $prefix in $prefixes | ||
#{'-' + $prefix + '-' + $property}: $value | ||
#{"-" + $prefix + "-" + $property}: $value | ||
|
||
// Output standard non-prefixed declaration | ||
#{$property}: $value | ||
|
||
|
||
// Use: | ||
// @include prefix(transform, rotate(45deg)) | ||
|
||
|
||
|
||
// MIXIN - TRANSFORM | ||
// TRANSFORM | ||
// ------------------------------------ | ||
@mixin prefix--multiple($declarations, $prefixes: webkit moz ms o) | ||
@each $property, $value in $declarations | ||
@each $prefix in $prefixes | ||
#{'-' + $prefix + '-' + $property}: $value | ||
#{"-" + $prefix + "-" + $property}: $value | ||
|
||
// Output standard non-prefixed declaration | ||
#{$property}: $value | ||
|
||
|
||
// Use: | ||
// @include prefix(( | ||
// column-count: 3, | ||
// column-gap: 1.5em, | ||
// column-rule: 2px solid hotpink | ||
// ), webkit moz ms o) |
Oops, something went wrong.