diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:13:57 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-25 13:13:57 +0100 |
| commit | d25ff2bddd44b9dac1ceb248424109d1782dd211 (patch) | |
| tree | 34fcfd824a1a72e7b4d431b688adcea532b62180 /minionlivesmatter/templates/assets/bootstrap-material-design/scss/mixins/_utilities.scss | |
| parent | a2cbdd1b88ac723e5e441c0a3c22636f0a8c4dfd (diff) | |
| download | meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.tar.gz meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.zip | |
add minionlivesmatter as submodule
Diffstat (limited to 'minionlivesmatter/templates/assets/bootstrap-material-design/scss/mixins/_utilities.scss')
| -rw-r--r-- | minionlivesmatter/templates/assets/bootstrap-material-design/scss/mixins/_utilities.scss | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/minionlivesmatter/templates/assets/bootstrap-material-design/scss/mixins/_utilities.scss b/minionlivesmatter/templates/assets/bootstrap-material-design/scss/mixins/_utilities.scss deleted file mode 100644 index 1a22d77..0000000 --- a/minionlivesmatter/templates/assets/bootstrap-material-design/scss/mixins/_utilities.scss +++ /dev/null @@ -1,35 +0,0 @@ -@function calc-top($line-height-base, $font-size, $component-height) { - @return (($line-height-base * $font-size) - $component-height) / 2; // vertical center of line-height -} - - - - -// Emulate the less #contrast function -// TODO: this may be useful for the inverse theme, but if not, remove (it is unused after the removal of fullpalette) -// contrast-color and brightness borrowed from compass -// Copyright (c) 2009-2014 Christopher M. Eppstein -// Complies with license: https://github.com/Compass/compass/blob/stable/LICENSE.markdown -@function contrast-color($color, $dark: $contrasted-dark-default, $light: $contrasted-light-default, $threshold: null) { - @if $threshold { - // Deprecated in Compass 0.13 - @warn "The $threshold argment to contrast-color is no longer needed and will be removed in the next release."; - } - - @if $color == null { - @return null; - } @else { - $color-brightness: brightness($color); - $dark-text-brightness: brightness($dark); - $light-text-brightness: brightness($light); - @return if(abs($color-brightness - $light-text-brightness) > abs($color-brightness - $dark-text-brightness), $light, $dark); - } -} - -@function brightness($color) { - @if type-of($color) == color { - @return (red($color) * 0.299 + green($color) * 0.587 + blue($color) * 0.114) / 255 * 100%; - } @else { - @return unquote("brightness(#{$color})"); - } -} |
