Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.
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
//----------------------------------*\ | |
// TRIGONOMETRY FUNCTIONS | |
//----------------------------------*/ | |
// # Trigonometry in CSS | |
// | |
// - Through Taylor/Maclaurin polynomial representation: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf | |
// - Useful if you don't want to use JS. | |
// - With CSS Variables. | |
// - `calc()` can't do power (x ^ y) so I used multiplication instead. |
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
(function($) { | |
$.fn.fSelect = function(options) { | |
if ('string' === typeof options) { | |
var settings = options; | |
} | |
else { | |
var settings = $.extend({ | |
placeholder: 'Select some options', |
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
@function add($value1, $value2, $return-calc: true) { | |
@if $value1 == null { | |
@return $value2; | |
} | |
@if $value2 == null { | |
@return $value1; | |
} | |
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) { |
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
@function add($value1, $value2, $return-calc: true) { | |
@if $value1 == null { | |
@return $value2; | |
} | |
@if $value2 == null { | |
@return $value1; | |
} | |
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) { |
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
@function add($value1, $value2, $return-calc: true) { | |
@if $value1 == null { | |
@return $value2; | |
} | |
@if $value2 == null { | |
@return $value1; | |
} | |
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) { |
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
@function add($value1, $value2, $return-calc: true) { | |
@if $value1 == null { | |
@return $value2; | |
} | |
@if $value2 == null { | |
@return $value1; | |
} | |
@if type-of($value1) == number and type-of($value2) == number and comparable($value1, $value2) { |
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
$theme-colors: ( | |
"primary": #0d6efd | |
); | |
$list-group-color: #911; | |
@each $state, $value in $theme-colors { | |
$list-group-color: $value; | |
.list-group-inside { color: $list-group-color; } |
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
$theme-colors: ( | |
"primary": #0d6efd | |
); | |
$list-group-color: #911; | |
@each $state, $value in $theme-colors { | |
$list-group-color: $value; | |
.list-group-inside { color: $list-group-color; } |
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
$primary: #0d6efd; | |
@function shade-color($color, $weight) { | |
@return mix(black, $color, $weight); | |
} | |
a { | |
color: darken($primary, 20%); | |
} |
NewerOlder