source: trunk/client/temi/spectral/assets/sass/libs/_mixins.scss@ 333

Last change on this file since 333 was 241, checked in by luc, 9 years ago

Aggiunta del widget Privacy e CookieLaw per l'informativa sui cookie - Aggiunto Tema Realistic - Aggiunto Tema Spectral

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1/// Makes an element's :before pseudoelement a FontAwesome icon.
2/// @param {string} $content Optional content value to use.
3@mixin icon($content: false) {
4
5 text-decoration: none;
6
7 &:before {
8
9 @if $content {
10 content: $content;
11 }
12
13 -moz-osx-font-smoothing: grayscale;
14 -webkit-font-smoothing: antialiased;
15 font-family: FontAwesome;
16 font-style: normal;
17 font-weight: normal;
18 text-transform: none !important;
19
20 }
21
22}
23
24/// Applies padding to an element, taking the current element-margin value into account.
25/// @param {mixed} $tb Top/bottom padding.
26/// @param {mixed} $lr Left/right padding.
27/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
28/// @param {bool} $important If true, adds !important.
29@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
30
31 @if $important {
32 $important: '!important';
33 }
34
35 padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max(0.1em, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
36
37}
Note: See TracBrowser for help on using the repository browser.