@ -0,0 +1,29 @@ | |||
/** | |||
* code | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
$crispy__code__font-family: monospace, monospace !default; | |||
$crispy__code__padding: pxToEm(10px) pxToEm(20px) !default; | |||
$crispy__code__margin: 0 0 pxToEm($crispy__margin) !default; | |||
$crispy__code__border: 1px solid #d4d4d4 !default; | |||
$crispy__code__background-color: #f9f9f9 !default; | |||
@mixin crispy__code() { | |||
.code { | |||
font-family: $crispy__code__font-family; | |||
white-space: pre; | |||
display: block; | |||
overflow-y: hidden; | |||
overflow-x: auto; | |||
padding: $crispy__code__padding; | |||
border: $crispy__code__border; | |||
background-color: $crispy__code__background-color; | |||
margin: $crispy__code__margin; | |||
} | |||
} |
@ -1,24 +0,0 @@ | |||
/** | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
@mixin crispy__typography() { | |||
code { | |||
font-family: monospace, monospace; | |||
font-size: 1em; | |||
white-space: pre; | |||
display: block; | |||
overflow-y: hidden; | |||
overflow-x: auto; | |||
padding: 10px 20px; | |||
border: 1px solid #d4d4d4; | |||
background-color: #f9f9f9; | |||
margin: 0 0 $crispy__margin; | |||
} | |||
} |
@ -1,19 +0,0 @@ | |||
/** | |||
* background-color | |||
* | |||
* modificators for text-color | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
$crispy__background-colors: $crispy__colors !default; | |||
@mixin crispy__background-color() { | |||
@each $name, $color in $crispy__background-colors { | |||
.background-#{$name} { | |||
background-color: $color; | |||
} | |||
} | |||
} |
@ -1,7 +1,5 @@ | |||
@import | |||
'align', | |||
'background-color', | |||
'margin', | |||
'media', | |||
'text-color', | |||
'visibilty'; | |||
'text'; |
@ -0,0 +1,40 @@ | |||
/** | |||
* helpers for media elements | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
@mixin crispy__media() { | |||
.img-responsive { | |||
} | |||
.img-fit-contain { | |||
object-fit: contain; | |||
} | |||
.img-fit-cover { | |||
object-fit: cover; | |||
} | |||
.video-responsive { | |||
display: block; | |||
overflow: hidden; | |||
padding: 0; | |||
position: relative; | |||
width: 100%; | |||
iframe, object, embed { | |||
border: 0; | |||
bottom: 0; | |||
height: 100%; | |||
left: 0; | |||
position: absolute; | |||
right: 0; | |||
top: 0; | |||
width: 100%; | |||
} | |||
} | |||
} |
@ -1,19 +0,0 @@ | |||
/** | |||
* text-colors | |||
* | |||
* modificators for text-color | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
$crispy__text-colors: $crispy__colors !default; | |||
@mixin crispy__text-colors() { | |||
@each $name, $color in $crispy__text-colors { | |||
.text-#{$name} { | |||
color: $color; | |||
} | |||
} | |||
} |
@ -0,0 +1,33 @@ | |||
/** | |||
* helpers for text | |||
* | |||
* - font-sizes | |||
* - color | |||
* - background-color | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
$crispy__text-colors: $crispy__colors !default; | |||
@mixin crispy__text() { | |||
@each $name, $color in $crispy__font-sizes { | |||
.text-#{$name} { | |||
@include font-size($font-size); | |||
} | |||
} | |||
@each $name, $color in $crispy__text-colors { | |||
.text-#{$name} { | |||
color: $color; | |||
} | |||
} | |||
@each $name, $color in $crispy__text-colors { | |||
.background-#{$name} { | |||
background-color: $color; | |||
} | |||
} | |||
} |