@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
134 lines (112 loc) • 2.79 kB
text/less
/* =========================== */
/* CSS for control sap.m/Text */
/* Base theme */
/* =========================== */
.sapMText {
display: inline-block;
box-sizing: border-box;
white-space: pre-line;
word-wrap: break-word; /* works only if browser knows the width */
cursor: text;
font-size: @sapMFontMediumSize;
font-family: @sapUiFontFamily;
line-height: normal;
color: @sapUiBaseText;
}
html[data-sap-ui-browser="sf10"] {
.sapUiVltCell, .sapuiVltCell {
.sapMText {
display: block;
}
}
}
.sapMTextNoWrap,
.sapMTextMaxLine {
overflow: hidden;
}
.sapMTextMaxLine {
display: block;
}
.sapMTextNoWrap {
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: normal; /* overwrite */
}
.sapMTextRenderWhitespaceWrap {
white-space: pre-wrap;
}
.sapMTextRenderWhitespace{
white-space: pre;
}
.sapMTextLineClamp {
display: -webkit-box;
-webkit-box-orient: vertical;
}
.sapMTextBreakWord {
/* to break all words even browser does not know the width */
word-break: break-all;
word-break: break-word; /* Non standard for old webkits */
}
.sapMTextMaxWidth {
max-width: 100%;
}
.sapMLIBActionable .sapMText {
cursor: pointer;
}
/*Necessary to align vertically to labels */
.sapUiForm .sapMText {
overflow: hidden;
}
.sapUiFormEdit .sapMText {
display: block;
min-height: 3rem; /* for empty text */
line-height: 1.375rem;
padding-top: 0.8125rem;
padding-bottom: 0.8125rem;
}
.sapMLIBActive .sapMText,
.sapMLIBActive .sapMListTblCell .sapMText,
.sapMLIBActive .sapMListTblSubCntRow .sapMText {
color: @sapUiListActiveTextColor;
}
.sapMLIBUnread .sapMText,
.sapMLIBUnread + .sapMListTblSubRow .sapMText {
font-family: @sapUiFontFamily;
font-weight: bold;
}
/* Info Toolbar Context */
.sapMTB-Info-CTX .sapMText {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-style: italic;
font-size: @sapMFontMediumSize;
font-family: @sapUiFontFamily;
color: contrast(@sapUiInfobarBackground, @sapUiListActiveTextColor, @sapUiListTextColor, @sapUiContentContrastTextThreshold);
}
/* Transparent Toolbar Context*/
.sapMTB-Transparent-CTX .sapMText {
font-weight: @sapUiFontHeaderWeight;
font-family: @sapUiFontHeaderFamily;
text-shadow: 0 1px 0 @sapUiContentContrastShadowColor;
color: @sapUiGroupTitleTextColor;
}
/* Compact size */
.sapUiSizeCompact .sapUiFormEdit .sapMText {
min-height: 2rem; /* for empty text */
padding-top: 0.3125rem;
padding-bottom: 0.3125rem;
}
/* Condensed size / Table Specifics */
.sapUiTableCell .sapMText {
vertical-align: middle;
}
.sapUiSizeCondensed .sapUiTableCell .sapMText {
line-height: 1.5rem;
}
.sapUiAnalyticalTable .sapUiTableCell > .sapMText {
width: 100%;
}
.sapUiAnalyticalTable .sapUiAnalyticalTableSum .sapUiTableCell .sapMText {
font-weight: bold;
}