Sha256: 3125c0daeabbc4565eac0e20e4598167c7cfaa3c742ab5a4897f2c888bc2c935
Contents?: true
Size: 1.81 KB
Versions: 1
Compression:
Stored size: 1.81 KB
Contents
$button-sizes: xs, sm, md, lg, xl !default $button-color-names: default, primary, success, warning, danger !default $button-styles: normal, border, bold-border, flat-emboss, material !default @import button-base // button styles @import styles/normal @import styles/border @import styles/flat-emboss @import styles/material @import button-helper // inputのスタイルを継承させる input[type= submit] color: inherit font-size: inherit font-weight: inherit =button($style, $size, $color, $options: false) +button-base @if $style == normal +button-size($size, 1px, 4px) +normal-button($color) @else if $style == border +button-size($size, 1px, 4px) +border-button($color) @else if $style == bold-border +button-size($size, 4px, 8px) +border-button($color) @else if $style == flat-emboss +button-size($size, false, 4px) +flat-emboss-button($color) @else if $style == material +button-size($size, false, false) +material-button($color) @each $option in $options @if $option == 'left' text-align: left @if $option == 'right' text-align: right @each $button-size in $button-sizes $button-color-name: '' $button-color: '' $button-style: '' @each $button-color-name in $button-color-names @each $button-style in $button-styles .is-button-#{$button-style}-#{$button-size}-#{$button-color-name} @if $button-color-name == default $button-color: $default @else if $button-color-name == primary $button-color: $primary @else if $button-color-name == success $button-color: $success @else if $button-color-name == warning $button-color: $warning @else if $button-color-name == danger $button-color: $danger +button($button-style, $button-size, $button-color)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-oulu-0.6.32 | assets/stylesheets/modules/buttons/_buttons.sass |