mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-15 17:50:28 +08:00
4b36f12a83
- only docs.min.css & font-awesome-ie7.min.css are called in head - resulting in 1 request only, 2 for IE7 users - docs.min.css is built from all the less files - docs.less collects all imports and their order - refactored prettify.css into less - added license header to all less files
72 lines
2.9 KiB
Plaintext
72 lines
2.9 KiB
Plaintext
/* Font Awesome
|
|
the iconic font designed for use with Twitter Bootstrap
|
|
-------------------------------------------------------
|
|
The full suite of pictographic icons, examples, and documentation
|
|
can be found at: http://fortawesome.github.com/Font-Awesome/
|
|
|
|
License
|
|
-------------------------------------------------------
|
|
The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0:
|
|
http://creativecommons.org/licenses/by/3.0/ A mention of
|
|
'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable
|
|
source code is considered acceptable attribution (most common on the web).
|
|
If human readable source code is not available to the end user, a mention in
|
|
an 'About' or 'Credits' screen is considered acceptable (most common in desktop
|
|
or mobile software).
|
|
|
|
Contact
|
|
-------------------------------------------------------
|
|
Email: dave@davegandy.com
|
|
Twitter: http://twitter.com/fortaweso_me
|
|
Work: Lead Product Designer @ http://kyruus.com
|
|
|
|
*/
|
|
|
|
// Mixins.less
|
|
// Mixins for the docs site
|
|
// Imported by docs.less
|
|
// -----------------------------------------------------
|
|
|
|
.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: 12px, @width-multiplier: .9, @height-multiplier: .95) {
|
|
i { font-size: @size; }
|
|
line-height: @size;
|
|
height: @size * @height-multiplier;
|
|
text-align: center;
|
|
} |