diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-01-27 18:15:31 +0100 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-02-17 09:46:38 -0500 |
commit | 05a4b2436e2aa51ba8b197ce38059163faa928ae (patch) | |
tree | cb1c5ae3ca420ffc66781aabcacd9b70e6f9073f /less/patternfly/mixins.less | |
parent | fa5bb8dca04e2876d9def529a77b5273b5243169 (diff) | |
download | ipsilon-05a4b2436e2aa51ba8b197ce38059163faa928ae.tar.gz ipsilon-05a4b2436e2aa51ba8b197ce38059163faa928ae.tar.xz ipsilon-05a4b2436e2aa51ba8b197ce38059163faa928ae.zip |
Add PatternFly files
Signed-off-by: Petr Vobornik <pvoborni@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'less/patternfly/mixins.less')
-rw-r--r-- | less/patternfly/mixins.less | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/less/patternfly/mixins.less b/less/patternfly/mixins.less new file mode 100644 index 0000000..a8a4670 --- /dev/null +++ b/less/patternfly/mixins.less @@ -0,0 +1,73 @@ +// +// Mixins +// -------------------------------------------------- +// Bootstrap overrides and PatternFly-specific mixins + +/* Bootstrap overrides */ + +// Button variants +.button-variant(@color; @background; @background-image-start; @background-image-stop; @border) { + background-color: @background; + #gradient .vertical(@background-image-start, @background-image-stop); + border-color: @border; + color: @color; + + &:hover, + &:focus, + &:active, + &.active, + .open .dropdown-toggle& { + background-color: @background; + background-image: none; + border-color: @border; + color: @color; + } + &:active, + &.active, + .open .dropdown-toggle& { + background-image: none; + } + &.disabled, + &[disabled], + fieldset[disabled] & { + &, + &:hover, + &:focus, + &:active, + &.active { + background-color: @background; + border-color: @border + } + } +} + +// Horizontal dividers +.nav-divider(@color: #e5e5e5, @margin: 4px 1px) { + background-color: @color; + height: 1px; + margin: @margin; + overflow: hidden; +} + +// Placeholder text +.placeholder(@color: @input-color-placeholder) { + &:-moz-placeholder { color: @color; font-style: italic; } // Firefox 4-18 + &::-moz-placeholder { color: @color; font-style: italic;} // Firefox 19+ + &:-ms-input-placeholder { color: @color; font-style: italic; } // Internet Explorer 10+ + &::-webkit-input-placeholder { color: @color; font-style: italic; } // Safari and Chrome +} + +/* PatternFly-specific */ + +.tab-indicator(@background: @gray-light-pf, @left: 15px, @right: 15px) { + &:before { + background: @background; + bottom: -1px; + content: ''; + display: block; + height: 2px; + left: @left; + position: absolute; + right: @right; + } +}
\ No newline at end of file |