@c8y/style
Version:
Styles for Cumulocity IoT applications
667 lines (615 loc) • 12.4 kB
text/less
//Font weight
.text-light {
font-weight: 200 ;
}
.text-normal {
font-weight: 400 ;
}
.text-medium {
font-weight: 600 ;
}
.text-bold,
.strong {
font-weight: 700 ;
}
.text-tabular{
font-feature-settings: "tnum"1,"kern"1;
}
.text-rtl{
direction: rtl ;
}
.first-line-bold::first-line {
font-weight: 600 ;
}
//media queries
/* #region */
@media (max-width: @screen-xs-max) {
.text-light-xs {
font-weight: 200 ;
}
.text-normal-xs {
font-weight: 400 ;
}
.text-medium-xs {
font-weight: 600 ;
}
.text-bold-xs,
.strong-xs {
font-weight: bold ;
}
}
@media (min-width: @screen-sm-min) {
.text-light-sm {
font-weight: 200 ;
}
.text-normal-sm {
font-weight: 400 ;
}
.text-medium-sm {
font-weight: 600 ;
}
.text-bold-sm,
.strong-sm {
font-weight: bold ;
}
}
@media (min-width: @screen-md-min) {
.text-light-md {
font-weight: 200 ;
}
.text-normal-md {
font-weight: 400 ;
}
.text-medium-md {
font-weight: 600 ;
}
.text-bold-md,
.strong-md {
font-weight: bold ;
}
}
@media (min-width: @screen-lg-min) {
.text-light-lg {
font-weight: 200 ;
}
.text-normal-lg {
font-weight: 400 ;
}
.text-medium-lg {
font-weight: 600 ;
}
.text-bold-lg,
.strong-lg {
font-weight: bold ;
}
}
/* #endregion */
// Font size
.text-10 {
font-size: 10px ;
}
.text-12 {
font-size: 12px ;
}
.text-14 {
font-size: 14px ;
}
.text-16 {
font-size: 16px ;
}
//media queries
/* #region */
@media (max-width: @screen-xs-max) {
.text-10-xs {
font-size: 10px ;
}
.text-12-xs {
font-size: 12px ;
}
.text-14-xs {
font-size: 14px ;
}
.text-16-xs {
font-size: 16px ;
}
}
@media (min-width: @screen-sm-min) {
.text-10-sm {
font-size: 10px ;
}
.text-12-sm {
font-size: 12px ;
}
.text-14-sm {
font-size: 14px ;
}
.text-16-sm {
font-size: 16px ;
}
}
@media (min-width: @screen-md-min) {
.text-10-md {
font-size: 10px ;
}
.text-12-md {
font-size: 12px ;
}
.text-14-md {
font-size: 14px ;
}
.text-16-md {
font-size: 16px ;
}
}
@media (min-width: @screen-lg-min) {
.text-10-lg {
font-size: 10px ;
}
.text-12-lg {
font-size: 12px ;
}
.text-14-lg {
font-size: 14px ;
}
.text-16-lg {
font-size: 16px ;
}
}
/* #endregion */
// Line height
.l-h-base {
line-height: @line-height-base ;
}
.l-h-inherit {
line-height: inherit ;
}
.l-h-0 {
line-height: 0 ;
}
.l-h-1 {
line-height: 1 ;
}
.l-h-tight {
line-height: 1.2 ;
}
.l-h-input {
line-height: 32px ;
}
//media queries
/* #region */
@media (max-width: @screen-xs-max) {
.l-h-base-xs {
line-height: @line-height-base ;
}
.l-h-inherit-xs {
line-height: inherit ;
}
.l-h-0-xs {
line-height: 0 ;
}
.l-h-1-xs {
line-height: 1 ;
}
.l-h-tight-xs {
line-height: 1.2 ;
}
.l-h-input-xs {
line-height: 32px ;
}
}
@media (min-width: @screen-sm-min) {
.l-h-base-sm {
line-height: @line-height-base ;
}
.l-h-inherit-sm {
line-height: inherit ;
}
.l-h-0-sm {
line-height: 0 ;
}
.l-h-1-sm {
line-height: 1 ;
}
.l-h-tight-sm {
line-height: 1.2 ;
}
.l-h-input-sm {
line-height: 32px ;
}
}
@media (min-width: @screen-md-min) {
.l-h-base-md {
line-height: @line-height-base ;
}
.l-h-inherit-md {
line-height: inherit ;
}
.l-h-0-md {
line-height: 0 ;
}
.l-h-1-md {
line-height: 1 ;
}
.l-h-tight-md {
line-height: 1.2 ;
}
.l-h-input-md {
line-height: 32px ;
}
}
@media (min-width: @screen-lg-min) {
.l-h-base-lg {
line-height: @line-height-base ;
}
.l-h-inherit-lg {
line-height: inherit ;
}
.l-h-0-lg {
line-height: 0 ;
}
.l-h-1-lg {
line-height: 1 ;
}
.l-h-tight-lg {
line-height: 1.2 ;
}
.l-h-input-lg {
line-height: 32px ;
}
}
/* #endregion */
// Letter case
.text-lowercase {
text-transform: lowercase ;
}
.text-uppercase {
text-transform: uppercase ;
}
.text-capitalize {
text-transform: capitalize ;
}
.text-label-small {
color: @component-color-text-muted;
text-transform: uppercase ;
font-size: 10px ;
}
//media queries
/* #region */
@media (max-width: @screen-xs-max) {
.text-lowercase-xs {
text-transform: lowercase ;
}
.text-uppercase-xs {
text-transform: uppercase ;
}
.text-capitalize-xs {
text-transform: capitalize ;
}
.text-label-small-xs {
color: @component-color-text-muted;
text-transform: uppercase ;
font-size: 10px ;
}
}
@media (min-width: @screen-sm-min) {
.text-lowercase-sm {
text-transform: lowercase ;
}
.text-uppercase-sm {
text-transform: uppercase ;
}
.text-capitalize-sm {
text-transform: capitalize ;
}
.text-label-small-sm {
color: @component-color-text-muted;
text-transform: uppercase ;
font-size: 10px ;
}
}
@media (min-width: @screen-md-min) {
.text-lowercase-md {
text-transform: lowercase ;
}
.text-uppercase-md {
text-transform: uppercase ;
}
.text-capitalize-md {
text-transform: capitalize ;
}
.text-label-small-md {
color: @component-color-text-muted;
text-transform: uppercase ;
font-size: 10px ;
}
}
@media (min-width: @screen-lg-min) {
.text-lowercase-lg {
text-transform: lowercase ;
}
.text-uppercase-lg {
text-transform: uppercase ;
}
.text-capitalize-lg {
text-transform: capitalize ;
}
.text-label-small-lg {
color: @component-color-text-muted;
text-transform: uppercase ;
font-size: 10px ;
}
}
/* #endregion */
// Text alignment
.text-left {
text-align: left ;
}
.text-right {
text-align: right ;
}
.text-center {
text-align: center ;
}
//media queries
/* #region */
@media (max-width: @screen-xs-max) {
.text-left-xs {
text-align: left ;
}
.text-right-xs {
text-align: right ;
}
.text-center-xs {
text-align: center ;
}
}
@media (min-width: @screen-sm-min) {
.text-left-sm {
text-align: left ;
}
.text-right-sm {
text-align: right ;
}
.text-center-sm {
text-align: center ;
}
}
@media (min-width: @screen-md-min) {
.text-left-md {
text-align: left ;
}
.text-right-md {
text-align: right ;
}
.text-center-md {
text-align: center ;
}
}
@media (min-width: @screen-lg-min) {
.text-left-lg {
text-align: left ;
}
.text-right-lg {
text-align: right ;
}
.text-center-lg {
text-align: center ;
}
}
/* #endregion */
// White space
.text-nowrap {
white-space: nowrap ;
}
.text-break-word {
word-break: break-word ;
overflow-wrap: break-word ;
}
.text-break-all {
word-break: break-all ;
}
.text-pre {
white-space: pre ;
}
.text-pre-wrap {
white-space: pre-wrap ;
}
.text-pre-line {
white-space: pre-line ;
}
.text-pre-normal {
white-space: normal ;
}
.text-pretty{
text-wrap: pretty;
}
.text-balance{
text-wrap: balance;
}
//media queries
/* #region */
@media (max-width: @screen-xs-max) {
.text-nowrap-xs {
white-space: nowrap ;
}
.text-break-word-xs {
word-break: break-word ;
overflow-wrap: break-word ;
}
.text-break-all-xs {
word-break: break-all ;
}
.text-pre-xs {
white-space: pre ;
}
.text-pre-wrap-xs {
white-space: pre-wrap ;
}
.text-pre-line-xs {
white-space: pre-line ;
}
.text-pre-normal-xs {
white-space: normal ;
}
}
@media (min-width: @screen-sm-min) {
.text-nowrap-sm {
white-space: nowrap ;
}
.text-break-word-sm {
word-break: break-word ;
overflow-wrap: break-word ;
}
.text-break-all-sm {
word-break: break-all ;
}
.text-pre-sm {
white-space: pre ;
}
.text-pre-wrap-sm {
white-space: pre-wrap ;
}
.text-pre-line-sm {
white-space: pre-line ;
}
.text-pre-normal-sm {
white-space: normal ;
}
}
@media (min-width: @screen-md-min) {
.text-nowrap-md {
white-space: nowrap ;
}
.text-break-word-md {
word-break: break-word ;
overflow-wrap: break-word ;
}
.text-break-all-md {
word-break: break-all ;
}
.text-pre-md {
white-space: pre ;
}
.text-pre-wrap-md {
white-space: pre-wrap ;
}
.text-pre-line-md {
white-space: pre-line ;
}
.text-pre-normal-md {
white-space: normal ;
}
}
@media (min-width: @screen-lg-min) {
.text-nowrap-lg {
white-space: nowrap ;
}
.text-break-word-lg {
word-break: break-word ;
overflow-wrap: break-word ;
}
.text-break-all-lg {
word-break: break-all ;
}
.text-pre-lg {
white-space: pre ;
}
.text-pre-wrap-lg {
white-space: pre-wrap ;
}
.text-pre-line-lg {
white-space: pre-line ;
}
.text-pre-normal-lg {
white-space: normal ;
}
}
/* #endregion */
//truncation
.text-truncate {
display: block;
overflow: hidden ;
max-width: 100% ;
text-overflow: ellipsis ;
white-space: nowrap ;
}
.text-truncate-wrap {
display: block;
overflow: hidden ;
text-overflow: ellipsis ;
}
// line clamp
.line-clamp{
&--2{
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
//media queries
/* #region */
@media (max-width: @screen-xs-max) {
.text-truncate-xs {
display: block;
overflow: hidden ;
max-width: 100% ;
text-overflow: ellipsis ;
white-space: nowrap ;
}
.text-truncate-wrap-xs {
display: block;
overflow: hidden ;
text-overflow: ellipsis ;
}
}
@media (min-width: @screen-sm-min) {
.text-truncate-sm {
display: block;
overflow: hidden ;
max-width: 100% ;
text-overflow: ellipsis ;
white-space: nowrap ;
}
.text-truncate-wrap-sm {
display: block;
overflow: hidden ;
text-overflow: ellipsis ;
}
}
@media (min-width: @screen-md-min) {
.text-truncate-md {
display: block;
overflow: hidden ;
max-width: 100% ;
text-overflow: ellipsis ;
white-space: nowrap ;
}
.text-truncate-wrap-md {
display: block;
overflow: hidden ;
text-overflow: ellipsis ;
}
}
@media (min-width: @screen-lg-min) {
.text-truncate-lg {
display: block;
overflow: hidden ;
max-width: 100% ;
text-overflow: ellipsis ;
white-space: nowrap ;
}
.text-truncate-wrap-lg {
display: block;
overflow: hidden ;
text-overflow: ellipsis ;
}
}
/* #endregion */
.text-monospace {
font-family: @font-family-monospace ;
}
// Font size inherit
.font-size-inherit{
font-size: inherit ;
}