aboutsummaryrefslogtreecommitdiff
path: root/semantic/src/definitions/elements/text.less
diff options
context:
space:
mode:
Diffstat (limited to 'semantic/src/definitions/elements/text.less')
-rw-r--r--semantic/src/definitions/elements/text.less74
1 files changed, 74 insertions, 0 deletions
diff --git a/semantic/src/definitions/elements/text.less b/semantic/src/definitions/elements/text.less
new file mode 100644
index 0000000..f2256c5
--- /dev/null
+++ b/semantic/src/definitions/elements/text.less
@@ -0,0 +1,74 @@
+/*!
+ * # Fomantic-UI - Text
+ * http://github.com/fomantic/Fomantic-UI/
+ *
+ *
+ * Released under the MIT license
+ * https://github.com/fomantic/Fomantic-UI/blob/master/LICENSE.md
+ *
+ */
+
+
+/*******************************
+ Theme
+*******************************/
+
+@type : 'element';
+@element : 'text';
+
+@import (multiple) '../../theme.config';
+
+
+/*******************************
+ Text
+*******************************/
+span.ui.text {
+ line-height: @lineHeight;
+}
+
+each(@colors, {
+ @color: replace(@key, '@', '');
+ @c: @colors[@@color][color];
+ @l: @colors[@@color][light];
+
+ span.ui.@{color}.text {
+ color: @c;
+ }
+ & when (@variationTextInverted) {
+ span.ui.inverted.@{color}.text {
+ color: @l;
+ }
+ }
+})
+
+& when (@variationTextStates) {
+ each(@textStates, {
+ @state: replace(@key, '@', '');
+ @c: @textStates[@@state][color];
+
+ span.ui.@{state}.text {
+ color: @c;
+ }
+ })
+}
+
+& when (@variationTextDisabled) {
+ span.ui.disabled.text {
+ opacity: @disabledOpacity;
+ }
+}
+
+/* Sizes */
+span.ui.medium.text {
+ font-size: @medium;
+}
+& when not (@variationTextSizes = false) {
+ each(@variationTextSizes, {
+ @s: @@value;
+ span.ui.@{value}.text {
+ font-size: @s;
+ }
+ })
+}
+
+.loadUIOverrides();