| @ -1,10 +0,0 @@ | |||||
| @import | |||||
| 'components/button', | |||||
| 'components/code', | |||||
| 'components/group', | |||||
| 'components/heading', | |||||
| 'components/hero', | |||||
| 'components/modal', | |||||
| 'components/panel', | |||||
| 'components/table', | |||||
| 'components/field'; | |||||
| @ -0,0 +1,245 @@ | |||||
| /** | |||||
| * helper: visibility | |||||
| * | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| @mixin crispy__modifiers() { | |||||
| /** | |||||
| * typography | |||||
| * | |||||
| * | |||||
| */ | |||||
| .text-left { | |||||
| text-align: left !important; | |||||
| } | |||||
| .text-right { | |||||
| text-align: right !important; | |||||
| } | |||||
| .text-center { | |||||
| text-align: center !important; | |||||
| } | |||||
| .text-justify { | |||||
| text-align: justify !important; | |||||
| } | |||||
| .text-uppercase { | |||||
| text-transform: uppercase !important; | |||||
| } | |||||
| .text-lowercase { | |||||
| text-transform: lowercase !important; | |||||
| } | |||||
| .text-crossed { | |||||
| text-decoration: line-through !important; | |||||
| } | |||||
| .text-underline { | |||||
| text-decoration: underline !important; | |||||
| } | |||||
| .text-capitalized { | |||||
| text-transform: capitalize !important; | |||||
| } | |||||
| .text-italic { | |||||
| font-style: italic !important; | |||||
| } | |||||
| .text-weight-light { | |||||
| font-weight: lighter !important; | |||||
| } | |||||
| .text-weight-normal { | |||||
| font-weight: normal !important; | |||||
| } | |||||
| .text-weight-bold { | |||||
| font-weight: bolder !important; | |||||
| } | |||||
| .text-weight-medium { | |||||
| font-weight: medium !important; | |||||
| } | |||||
| @each $name, $font-size in $crispy__font-sizes { | |||||
| .text-size-#{$name} { | |||||
| font-size: $font-size !important; | |||||
| } | |||||
| } | |||||
| /** | |||||
| * floating | |||||
| * | |||||
| * | |||||
| */ | |||||
| .float-left { | |||||
| float: left; | |||||
| } | |||||
| .float-right { | |||||
| float: right; | |||||
| } | |||||
| .float-none { | |||||
| float: none; | |||||
| } | |||||
| .centered { | |||||
| margin-left: auto; | |||||
| margin-right: auto; | |||||
| } | |||||
| .clearfix { | |||||
| @include crispy__clearfix(); | |||||
| } | |||||
| /** | |||||
| * colors | |||||
| * | |||||
| * | |||||
| */ | |||||
| @each $name, $color in $crispy__colors { | |||||
| .text-color-#{$name} { | |||||
| color: $color !important; | |||||
| } | |||||
| } | |||||
| @each $name, $color in $crispy__colors { | |||||
| .background-color-#{$name} { | |||||
| background-color: $color !important; | |||||
| } | |||||
| } | |||||
| /** | |||||
| * position | |||||
| * | |||||
| * | |||||
| */ | |||||
| .absolute { | |||||
| position: absolute !important; | |||||
| } | |||||
| .fixed { | |||||
| position: fixed !important; | |||||
| } | |||||
| .relative { | |||||
| position: relative !important; | |||||
| } | |||||
| /** | |||||
| * visibility | |||||
| * | |||||
| * | |||||
| */ | |||||
| .hidden { | |||||
| display: none !important; | |||||
| } | |||||
| .visible { | |||||
| display: block !important; | |||||
| &--inline { | |||||
| display: inline !important; | |||||
| } | |||||
| &--inline-block { | |||||
| display: inline-block !important; | |||||
| } | |||||
| } | |||||
| /** | |||||
| * borders | |||||
| * | |||||
| * | |||||
| */ | |||||
| .bordered { | |||||
| border: $crispy__border !important; | |||||
| } | |||||
| .rounded { | |||||
| border-radius: 50% !important; | |||||
| } | |||||
| .borderless { | |||||
| border: 0 !important; | |||||
| } | |||||
| .radiusless | |||||
| border-radius: 0 !important; | |||||
| } | |||||
| /** | |||||
| * width | |||||
| * | |||||
| * | |||||
| */ | |||||
| @each $name, $width in $crispy__width { | |||||
| .width-#{$name} { | |||||
| width: $width !important; | |||||
| } | |||||
| } | |||||
| /** | |||||
| * margin & padding | |||||
| * | |||||
| * | |||||
| */ | |||||
| .marginless { | |||||
| margin: 0 !important; | |||||
| } | |||||
| .paddingless { | |||||
| padding: 0 !important; | |||||
| } | |||||
| @for $i from 0 through $crispy__spacing__steps { | |||||
| .margin-top-#{($i + 1)} { | |||||
| margin-top: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .margin-left-#{($i + 1)} { | |||||
| margin-left: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .margin-bottom-#{($i + 1)} { | |||||
| margin-bottom: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .margin-right-#{($i + 1)} { | |||||
| margin-right: ($crispy__spacing * ($i)) !important; | |||||
| } | |||||
| .padding-top-#{($i + 1)} { | |||||
| padding-top: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .padding-left-#{($i + 1)} { | |||||
| padding-left: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .padding-bottom-#{($i + 1)} { | |||||
| padding-bottom: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .padding-right-#{($i + 1)} { | |||||
| padding-right: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,16 +1,18 @@ | |||||
| @import | @import | ||||
| 'functions', | |||||
| 'variables', | 'variables', | ||||
| 'core', | |||||
| 'components/button', | 'components/button', | ||||
| 'components/code', | |||||
| 'components/group', | |||||
| 'components/heading', | |||||
| 'components/hero', | |||||
| 'components/modal', | |||||
| 'components/panel', | |||||
| 'components/table', | |||||
| 'components/field', | |||||
| 'helpers/float', | |||||
| 'helpers/spacing', | |||||
| 'helpers/media', | |||||
| 'helpers/text', | |||||
| 'helpers/visibility', | |||||
| 'helpers/width', | |||||
| 'mixins', | |||||
| 'mixins/media-queries'; | |||||
| 'modifiers', | |||||
| 'mixins'; | |||||
| @ -1,82 +0,0 @@ | |||||
| /** | |||||
| * functions: units | |||||
| * | |||||
| * convert px to em and rem | |||||
| * | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| /** | |||||
| * to em, wrapper of toRelatives | |||||
| * | |||||
| * @param {mixed} $values | |||||
| * @param {mixed} $base | |||||
| * @return {rem} | |||||
| */ | |||||
| @function toEm($values, $base: $crispy__font-size) { | |||||
| @return toRelatives($values, 1em, $base); | |||||
| } | |||||
| /** | |||||
| * to rem, wrapper of toRelatives | |||||
| * | |||||
| * @param {mixed} $values | |||||
| * @param {mixed} $base | |||||
| * @return {rem} | |||||
| */ | |||||
| @function toRem($values, $base: $crispy__font-size) { | |||||
| @return toRelatives($values, 1rem, $base); | |||||
| } | |||||
| /** | |||||
| * values to relative | |||||
| * | |||||
| * @param {mixed} $values | |||||
| * @param {mixed} $unit | |||||
| * @param {mixed} $base | |||||
| * @return {number} | |||||
| */ | |||||
| @function toRelatives($values, $unit, $base: $crispy__font-size) { | |||||
| $results: 0; | |||||
| @if type-of($values) == 'number' { | |||||
| $results: toRelative($values, $base) * $unit; | |||||
| } @else { | |||||
| $results: (); | |||||
| @each $value in $values { | |||||
| @if $value == 0 { | |||||
| $results: append($results, $value); | |||||
| } | |||||
| @else { | |||||
| $results: append($results, toRelative($value, $base) * $unit); | |||||
| } | |||||
| } | |||||
| } | |||||
| @return $results; | |||||
| } | |||||
| /** | |||||
| * to relative | |||||
| * | |||||
| * @param {mixed} $value | |||||
| * @param {mixed} $base | |||||
| * @return {number} | |||||
| */ | |||||
| @function toRelative($value, $base: $crispy__font-size) { | |||||
| @return stripUnit($value) / stripUnit($base); | |||||
| } | |||||
| /** | |||||
| * strip unit from value | |||||
| * | |||||
| * @param {mixed} $value | |||||
| * @return {number} | |||||
| */ | |||||
| @function stripUnit($value) { | |||||
| @return $value / ($value * 0 + 1); | |||||
| } | |||||
| @ -1,17 +0,0 @@ | |||||
| /** | |||||
| * function: z-index | |||||
| * | |||||
| * uses map $crispy__z-index to get value by key | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| @function zIndex($name) { | |||||
| @if map-has-key($crispy__z-index, $name) { | |||||
| @return map-get($crispy__z-index, $name); | |||||
| } @else { | |||||
| @warn 'There is no item "#{$name}" in this list; choose one of: #{$crispy__z-index}'; | |||||
| @return null; | |||||
| } | |||||
| } | |||||
| @ -1,33 +0,0 @@ | |||||
| /** | |||||
| * helper: float | |||||
| * | |||||
| * float & centering | |||||
| * | |||||
| * | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| @mixin crispy__float() { | |||||
| .has-float-left { | |||||
| float: left; | |||||
| } | |||||
| .has-float-right { | |||||
| float: right; | |||||
| } | |||||
| .has-float-none { | |||||
| float: none; | |||||
| } | |||||
| .is-centered { | |||||
| margin-left: auto; | |||||
| margin-right: auto; | |||||
| } | |||||
| .is-clearfixed { | |||||
| @include crispy__clearfix(); | |||||
| } | |||||
| } | |||||
| @ -1,42 +0,0 @@ | |||||
| /** | |||||
| * helper: visibility | |||||
| * | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| @mixin crispy__modifiers() { | |||||
| .is-absolute { | |||||
| position: absolute !important; | |||||
| } | |||||
| .is-fixed { | |||||
| position: fixed !important; | |||||
| } | |||||
| .is-relative { | |||||
| position: relative !important; | |||||
| } | |||||
| .is-hidden { | |||||
| display: none !important; | |||||
| } | |||||
| .is-visible { | |||||
| display: block !important; | |||||
| &--inline { | |||||
| display: inline !important; | |||||
| } | |||||
| &--inline-block { | |||||
| display: inline !important; | |||||
| } | |||||
| } | |||||
| .is-radiusless | |||||
| border-radius: 0 !important | |||||
| } | |||||
| } | |||||
| @ -1,52 +0,0 @@ | |||||
| /** | |||||
| * helper: spacing | |||||
| * | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| @mixin crispy__spacing() { | |||||
| .is-marginless { | |||||
| margin: 0 !important; | |||||
| } | |||||
| .is-paddingless { | |||||
| padding: 0 !important; | |||||
| } | |||||
| @for $i from 0 through $crispy__spacing__steps { | |||||
| .has-margin-top-#{($i + 1)}x { | |||||
| margin-top: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .has-margin-left-#{($i + 1)}x { | |||||
| margin-left: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .has-margin-bottom-#{($i + 1)}x { | |||||
| margin-bottom: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .has-margin-right-#{($i + 1)}x { | |||||
| margin-right: ($crispy__spacing * ($i)) !important; | |||||
| } | |||||
| .has-padding-top-#{($i + 1)}x { | |||||
| padding-top: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .has-padding-left-#{($i + 1)}x { | |||||
| padding-left: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .has-padding-bottom-#{($i + 1)}x { | |||||
| padding-bottom: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| .has-padding-right-#{($i + 1)}x { | |||||
| padding-right: ($crispy__spacing * $i) !important; | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,92 +0,0 @@ | |||||
| /** | |||||
| * helper: typography | |||||
| * | |||||
| * align, font-sizes, color, background-color | |||||
| * | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| $crispy__typography-colors: $crispy__colors !default; | |||||
| $crispy__typography-font-sizes: $crispy__font-sizes !default; | |||||
| @mixin crispy__typography() { | |||||
| // text align | |||||
| .has-text-left { | |||||
| text-align: left !important; | |||||
| } | |||||
| .has-text-right { | |||||
| text-align: right !important; | |||||
| } | |||||
| .has-text-center { | |||||
| text-align: center !important; | |||||
| } | |||||
| .has-text-justify { | |||||
| text-align: justify !important; | |||||
| } | |||||
| // | |||||
| .is-text-uppercase { | |||||
| text-transform: uppercase !important; | |||||
| } | |||||
| .is-text-lowercase { | |||||
| text-transform: lowercase !important; | |||||
| } | |||||
| .is-text-crossed { | |||||
| text-decoration: line-through !important; | |||||
| } | |||||
| .is-capitalized { | |||||
| text-transform: capitalize !important; | |||||
| } | |||||
| .is-text-italic { | |||||
| font-style: italic !important; | |||||
| } | |||||
| // text weight | |||||
| .is-text-weight-light { | |||||
| font-weight: light !important; | |||||
| } | |||||
| .is-text-weight-normal { | |||||
| font-weight: normal !important; | |||||
| } | |||||
| .is-text-weight-bold { | |||||
| font-weight: bold !important; | |||||
| } | |||||
| .is-text-weight-medium { | |||||
| font-weight: medium !important; | |||||
| } | |||||
| .ist-text-weight-semibold { | |||||
| font-weight: semibold !important; | |||||
| } | |||||
| @each $name, $font-size in $crispy__typography-font-sizes { | |||||
| .has-text-size-#{$name} { | |||||
| font-size: $font-size !important; | |||||
| } | |||||
| } | |||||
| @each $name, $color in $crispy__typography-colors { | |||||
| .has-text-color-#{$name} { | |||||
| color: $color !important; | |||||
| } | |||||
| } | |||||
| @each $name, $color in $crispy__typography-colors { | |||||
| .has-background-color-#{$name} { | |||||
| background-color: $color !important; | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -1,25 +0,0 @@ | |||||
| /** | |||||
| * helper: width | |||||
| * | |||||
| * | |||||
| * @author Björn Hase | |||||
| * | |||||
| */ | |||||
| @mixin crispy__width() { | |||||
| .has-width-25 { | |||||
| width: 25%; | |||||
| } | |||||
| .has-width-50 { | |||||
| width: 50%; | |||||
| } | |||||
| .has-width-75 { | |||||
| width: 75%; | |||||
| } | |||||
| .has-width-100 { | |||||
| width: 100%; | |||||
| } | |||||
| } | |||||