touchstonejs-ui
Version:
React.js UI components for the TouchstoneJS platform http://touchstonejs.io
110 lines (87 loc) • 1.64 kB
text/less
/**
* Word breaking
*
* Break strings when their length exceeds the width of their container.
*/
.u-text-break {
word-wrap: break-word ;
}
/**
* Horizontal text alignment
*/
.u-text-center {
text-align: center ;
}
.u-text-left {
text-align: left ;
}
.u-text-right {
text-align: right ;
}
/**
* Assign basic colours
*/
.u-text-muted {
color: @gray-light ;
}
.u-text-default {
color: @text-color ;
}
.u-text-primary {
color: @app-primary ;
}
.u-text-info {
color: @app-info ;
}
.u-text-warning {
color: @app-warning ;
}
.u-text-success {
color: @app-success ;
}
.u-text-danger {
color: @app-danger ;
}
/**
* Inherit the ancestor's text color.
*/
.u-text-inherit-color {
color: inherit ;
}
/**
* Capitalize the text
*/
.u-text-caps {
text-transform: uppercase ;
}
/**
* Enables selectable text
*/
.u-selectable {
-webkit-touch-callout: default !important;
-webkit-user-select: text ;
}
/**
* Prevent whitespace wrapping
*/
.u-text-no-wrap {
white-space: nowrap ;
}
/**
* Text truncation
*
* Prevent text from wrapping onto multiple lines, and truncate with an
* ellipsis.
*
* 1. Ensure that the node has a maximum width after which truncation can
* occur.
* 2. Fix for IE 8/9 if `word-wrap: break-word` is in effect on ancestor
* nodes.
*/
.u-text-truncate {
max-width: 100%; /* 1 */
overflow: hidden ;
text-overflow: ellipsis ;
white-space: nowrap ;
word-wrap: normal ; /* 2 */
}