New stuff

This commit is contained in:
Stephan Hagedorn 2017-08-22 16:50:09 +02:00
parent db96a298fb
commit f97f76ee3d
30 changed files with 1463 additions and 1146 deletions

3
mixins/_all.scss Normal file
View file

@ -0,0 +1,3 @@
@import "clearflow";
@import "color";
@import "user_agent";

25
mixins/_clearflow.scss Normal file
View file

@ -0,0 +1,25 @@
@charset "UTF-8";
// Provides an easy way to include a clearflow for containing floats.
//
// @link http://cssmojo.com/latest_new_clearfix_so_far/
//
// @example scss - Usage
// .element {
// @include clearflow;
// }
//
// @example css - CSS Output
// .element::after {
// content: "";
// clear: both;
// display: table;
// }
@mixin clearflow {
&::after {
content: "";
clear: both;
display: table;
}
}

20
mixins/_color.scss Normal file
View file

@ -0,0 +1,20 @@
@mixin addDefaultColors() {
@if map-has-key($color_palette, alpha) {
$alpha_color: map-get($color_palette, alpha) !global;
}
@if map-has-key($color_palette, bravo) {
$bravo_color: map-get($color_palette, bravo) !global;
}
@if map-has-key($color_palette, charlie) {
$charlie_color: map-get($color_palette, charlie) !global;
}
@if map-has-key($color_palette, delta) {
$delta_color: map-get($color_palette, delta) !global;
}
@if map-has-key($color_palette, echo) {
$echo_color: map-get($color_palette, echo) !global;
}
@if map-has-key($color_palette, foxtrot) {
$foxtrot_color: map-get($color_palette, foxtrot) !global;
}
}

9
mixins/_user_agent.scss Normal file
View file

@ -0,0 +1,9 @@
@mixin overrideUserAgent() {
@if $no_agent_focus == true {
@each $el in $basic_focus_map {
#{$el}:focus {
outline: 0;
}
}
}
}