UNPKG

1.09 kBtext/lessView Raw
1/*!
2 * # Fomantic-UI - Text
3 * http://github.com/fomantic/Fomantic-UI/
4 *
5 *
6 * Released under the MIT license
7 * https://github.com/fomantic/Fomantic-UI/blob/master/LICENSE.md
8 *
9 */
10
11
12/*******************************
13 Theme
14*******************************/
15
16@type : 'element';
17@element : 'text';
18
19@import (multiple) '../../theme.config';
20
21
22/*******************************
23 Text
24*******************************/
25
26each(@colors, {
27 @color: replace(@key, '@', '');
28 @c: @colors[@@color][color];
29 @l: @colors[@@color][light];
30
31 span.ui.@{color}.text {
32 color: @c;
33 }
34 & when (@variationTextInverted) {
35 span.ui.inverted.@{color}.text {
36 color: @l;
37 }
38 }
39})
40
41& when (@variationTextDisabled) {
42 span.ui.disabled.text {
43 opacity: @disabledOpacity;
44 }
45}
46
47/* Sizes */
48span.ui.medium.text {
49 font-size: @medium;
50}
51& when not (@variationTextSizes = false) {
52 each(@variationTextSizes, {
53 @s: @@value;
54 span.ui.@{value}.text {
55 font-size: @s;
56 }
57 })
58}
59
60.loadUIOverrides();