/
var
/
www
/
cobraambalaj
/
node_modules
/
shards-ui
/
src
/
scss
/
/var/www/cobraambalaj/node_modules/shards-ui/src/scss
mkdir
upload
Name
Size
Mode
Actions
mixins/
-
0755
rm
utilities/
-
0755
rm
shards.scss
939
0644
edit
dl
rm
_alert.scss
948
0644
edit
dl
rm
_badge.scss
1005
0644
edit
dl
rm
_button-group.scss
1907
0644
edit
dl
rm
_buttons.scss
2477
0644
edit
dl
rm
_card.scss
4369
0644
edit
dl
rm
_carousel.scss
1421
0644
edit
dl
rm
_close.scss
260
0644
edit
dl
rm
_code.scss
768
0644
edit
dl
rm
_custom-datepicker.scss
5329
0644
edit
dl
rm
_custom-forms.scss
12737
0644
edit
dl
rm
_custom-sliders.scss
5796
0644
edit
dl
rm
_dropdown.scss
2067
0644
edit
dl
rm
_forms.scss
4360
0644
edit
dl
rm
_functions.scss
2794
0644
edit
dl
rm
_icons.scss
115
0644
edit
dl
rm
_images.scss
416
0644
edit
dl
rm
_input-group.scss
4338
0644
edit
dl
rm
_jumbotron.scss
318
0644
edit
dl
rm
_list-group.scss
2074
0644
edit
dl
rm
_mixins.scss
929
0644
edit
dl
rm
_modal.scss
1751
0644
edit
dl
rm
_nav.scss
2897
0644
edit
dl
rm
_navbar.scss
3368
0644
edit
dl
rm
_pagination.scss
1524
0644
edit
dl
rm
_popover.scss
3904
0644
edit
dl
rm
_progress.scss
1072
0644
edit
dl
rm
_reboot.scss
841
0644
edit
dl
rm
_root.scss
669
0644
edit
dl
rm
_tables.scss
1453
0644
edit
dl
rm
_tooltip.scss
1854
0644
edit
dl
rm
_transitions.scss
141
0644
edit
dl
rm
_type.scss
2097
0644
edit
dl
rm
_utilities.scss
116
0644
edit
dl
rm
_variables.scss
38418
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/node_modules/shards-ui/src/scss/_functions.scss
(2794B)
// Bootstrap functions // // Utility mixins and functions for evalutating source code across our variables, maps, and mixins. // Ascending // Used to evaluate Sass maps like our grid breakpoints. @mixin _assert-ascending($map, $map-name) { $prev-key: null; $prev-num: null; @each $key, $num in $map { @if $prev-num == null { // Do nothing } @else if not comparable($prev-num, $num) { @warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !"; } @else if $prev-num >= $num { @warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !"; } $prev-key: $key; $prev-num: $num; } } // Starts at zero // Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0. @mixin _assert-starts-at-zero($map) { $values: map-values($map); $first-value: nth($values, 1); @if $first-value != 0 { @warn "First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}."; } } // Replace `$search` with `$replace` in `$string` // Used on our SVG icon backgrounds for custom forms. // // @author Hugo Giraudel // @param {String} $string - Initial string // @param {String} $search - Substring to replace // @param {String} $replace ('') - New value // @return {String} - Updated string @function str-replace($string, $search, $replace: "") { $index: str-index($string, $search); @if $index { @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace); } @return $string; } // Color contrast @mixin color-yiq($color) { $r: red($color); $g: green($color); $b: blue($color); $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000; @if ($yiq >= 150) { color: darken($color, 65); } @else { color: #fff; } } // Retreive color Sass maps @function color($key: "blue") { @return map-get($colors, $key); } @function theme-color($key: "primary") { @return map-get($theme-colors, $key); } @function grayscale($key: "100") { @return map-get($grays, $key); } // Request a theme color level @function theme-color-level($color-name: "primary", $level: 0) { $color: theme-color($color-name); $color-base: if($level > 0, #000, #fff); @if $level < 0 { // Lighter values need a quick double negative for the Sass math to work @return mix($color-base, $color, $level * -1 * $theme-color-interval); } @else { @return mix($color-base, $color, $level * $theme-color-interval); } }
Save
cmd:
run