diff options
author | Paolo T <tuscanhobbit@users.noreply.github.com> | 2013-10-11 00:24:25 -0700 |
---|---|---|
committer | Paolo T <tuscanhobbit@users.noreply.github.com> | 2013-10-11 00:24:25 -0700 |
commit | 7a63d5e50b0ae16a38e673867abd6043d4becc07 (patch) | |
tree | 6d174d12a0de707ed8f875801a8dbc0c35f70d3f /library/font_awesome/src/assets/less/mixins.less | |
parent | c2a88c3e4858e3eb2c553bdc775d2f684b0d46b4 (diff) | |
parent | 89fc319c900873be58fa677707518646f6c79eec (diff) | |
download | volse-hubzilla-7a63d5e50b0ae16a38e673867abd6043d4becc07.tar.gz volse-hubzilla-7a63d5e50b0ae16a38e673867abd6043d4becc07.tar.bz2 volse-hubzilla-7a63d5e50b0ae16a38e673867abd6043d4becc07.zip |
Merge pull request #2 from friendica/master
Upgraded to latest red
Diffstat (limited to 'library/font_awesome/src/assets/less/mixins.less')
-rw-r--r-- | library/font_awesome/src/assets/less/mixins.less | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/library/font_awesome/src/assets/less/mixins.less b/library/font_awesome/src/assets/less/mixins.less new file mode 100644 index 000000000..2ae1efc89 --- /dev/null +++ b/library/font_awesome/src/assets/less/mixins.less @@ -0,0 +1,58 @@ +.gradient-text (@color: #808080, @color1: #999, @color2: #B3B3B3, @color3: #B3B3B3, @color4: #666) { + // fallback for browsers that don't support this +// color: @color; + + // makes simple gradient text in webkit browsers +// background: -webkit-gradient(linear, left top, left bottom, from(@colorTop), to(@colorBottom)); + + // makes a more complex background, allowing iPhone-like text gradients + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @color1), color-stop(55%, @color2), color-stop(55%, @color3), color-stop(100%, @color4)); // Safari 4+, Chrome 2+ + background-image: -webkit-linear-gradient(top, @color1 0%, @color2 55%, @color3 55%, @color4 100%); // Safari 5.1+, Chrome 10+ + + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +// Mixin for generating button backgrounds +// --------------------------------------- +.buttonBackgroundThreeColors(@startColor, @midColor, @colorStop, @endColor) { + // gradientBar will set the background to a pleasing blend of these, to support IE<=9 + #gradient > .vertical-three-colors(@startColor, @midColor, @colorStop, @endColor); + border-color: @startColor @startColor darken(@endColor, 15%); + border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%); + + .reset-filter(); + + // in these cases the gradient won't cover the background, so we override + &:hover, &:active, &.active, &.disabled, &[disabled] { + background-color: @endColor; + } + + // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves + &:active, + &.active { + background-color: darken(@endColor, 10%) e("\9"); + } +} + +.icon-size (@size: 14px, @width-multiplier: .9, @height-multiplier: 1) { + i { font-size: @size; } + line-height: @size * 1.1; + height: @size * @height-multiplier * 1.05; + text-align: center; +} + +.sticky-footer (@footer-height: @baseLineHeight * 4, @footer-padding-top: 70px, @footer-padding-bottom: 70px, @footer-margin-top: 70px) { + .wrapper { + margin: 0 auto -(@footer-height + @footer-padding-bottom + @footer-padding-top + @footer-margin-top + 1); + } + .push { + height: @footer-height + @footer-padding-bottom + @footer-padding-top + @footer-margin-top + 1; + } + + .footer { + margin-top: @footer-margin-top; + height: @footer-height; + padding: @footer-padding-top 0 @footer-padding-bottom; + } +} |