diff --git a/src/styl/card/card-settings.styl b/src/styl/card/card-settings.styl index 7540cdc..8038718 100644 --- a/src/styl/card/card-settings.styl +++ b/src/styl/card/card-settings.styl @@ -15,4 +15,19 @@ $card-gap ?= $default-margin-layout; $card-min-width ?= 300px; $card-max-width ?= 1fr; -$card-control-margin ?= $default-spacing; \ No newline at end of file +$card-control-margin ?= $default-spacing; + +$card-success-background-color ?= $success-color; +$card-success-color ?= $success-color-alt; +$card-success-border-color ?= $success-color; +$card-info-background-color ?= $info-color; +$card-info-color ?= $info-color-alt; +$card-info-border-color ?= $info-color; +$card-warning-background-color ?= $warning-color; +$card-warning-color ?= $warning-color-alt; +$card-warning-border-color ?= $warning-color; +$card-danger-background-color ?= $danger-color; +$card-danger-color ?= $danger-color-alt; +$card-danger-border-color ?= $danger-color; + +$card-handle-width ?= 3px; \ No newline at end of file diff --git a/src/styl/card/card.styl b/src/styl/card/card.styl index 4b60712..9c3a3a2 100644 --- a/src/styl/card/card.styl +++ b/src/styl/card/card.styl @@ -46,6 +46,38 @@ $card-header-margin = -($card-border-width + $card-padding); } } + &.card-type-success { + border-color: $card-success-border-color; + } + + &.card-type-info { + border-color: $card-info-border-color; + } + + &.card-type-warning { + border-color: $card-warning-border-color; + } + + &.card-type-danger { + border-color: $card-danger-border-color; + } + + &.card-handle-top { + border-top-width: $card-handle-width; + } + + &.card-handle-right { + border-right-width: $card-handle-width; + } + + &.card-handle-bottom { + border-bottom-width: $card-handle-width; + } + + &.card-handle-left { + border-left-width: $card-handle-width; + } + & > header, & > footer, .card-title { diff --git a/src/styl/core/mixins.styl b/src/styl/core/mixins.styl index 13995dc..b4a7720 100644 --- a/src/styl/core/mixins.styl +++ b/src/styl/core/mixins.styl @@ -103,4 +103,22 @@ relative() { border-left-width: $default-border-width; border-left-color: $default-border-color; border-left-style: solid; +} + +.divider, +.divider-horizontal { + border-width: $default-border-width 0 0 0; + border-color: $default-border-color; + border-style: solid; +} + +.divider-vertical { + border-width: 0 $default-border-width 0 0; + border-color: $default-border-color; + border-style: solid; +} + +&.disabled { + filter: contrast(40%) brightness(110%); + cursor: default; } \ No newline at end of file diff --git a/test/views/card.hbs b/test/views/card.hbs index 167e0bd..dc38b2e 100644 --- a/test/views/card.hbs +++ b/test/views/card.hbs @@ -15,7 +15,7 @@ -
+
Card Header
Card Content
@@ -57,7 +57,7 @@
Card Footer
-
+
Card Header
Card Content