@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
144 lines (109 loc) • 2.49 kB
text/less
/* ============================ */
/* CSS for control sap.m/Title */
/* Base theme */
/* ============================ */
.sapMTitle {
position: relative;
display: inline-block;
margin: 0;
-webkit-margin-before: 0;
-webkit-margin-after: 0;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
font-weight: @sapUiFontHeaderWeight;
color: @sapUiGroupTitleTextColor;
font-family: @sapUiFontHeaderFamily;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
cursor: text;
text-shadow: @sapUiShadowText;
}
.sapMTitle.sapMTitleWrap {
white-space: pre-line;
}
.sapMTitle.sapMTitleNoWrap {
white-space: nowrap;
}
.sapMTitleMaxWidth {
max-width: 100%;
}
/* Alignments */
.sapMTitleAlignBegin {
text-align: left;
text-align: start;
}
html[dir=rtl][data-sap-ui-browser^="ie"] .sapMTitleAlignBegin,// TODO remove after 1.62 version
html[dir=rtl][data-sap-ui-browser^="ed"] .sapMTitleAlignBegin {
text-align: right;
}
.sapMTitleAlignLeft {
text-align: left;
}
.sapMTitleAlignEnd {
text-align: right;
text-align: end;
}
html[dir=rtl][data-sap-ui-browser^="ie"] .sapMTitleAlignEnd,// TODO remove after 1.62 version
html[dir=rtl][data-sap-ui-browser^="ed"] .sapMTitleAlignEnd {
text-align: left;
}
.sapMTitleAlignRight {
text-align: right;
}
.sapMTitleAlignCenter {
text-align: center;
}
/* Level Styling */
/* Level Auto*/
.sapMTitleStyleAuto {
font-size: @sapMFontHeader5Size;
}
.sapMTB-Transparent-CTX > .sapMTitleTB.sapMTitleStyleAuto {
font-size: @sapMFontHeader4Size;
}
.sapMTB-Info-CTX > .sapMTitle {
font-size: @sapMFontHeader6Size;
font-style: italic;
text-shadow: none;
color: @sapUiContentContrastTextColor;
}
/* Level H1 */
.sapMTitleStyleH1 {
font-size: @sapMFontHeader1Size;
}
/* Level H2 */
.sapMTitleStyleH2 {
font-size: @sapMFontHeader2Size;
}
/* Level H3 */
.sapMTitleStyleH3 {
font-size: @sapMFontHeader3Size;
}
/* Level H4 */
.sapMTitleStyleH4 {
font-size: @sapMFontHeader4Size;
}
/* Level H5 */
.sapMTitleStyleH5 {
font-size: @sapMFontHeader5Size;
}
/* Level H6 */
.sapMTitleStyleH6 {
font-size: @sapMFontHeader6Size;
}
.sapMIBar-CTX .sapMTitle {
color: @sapUiPageHeaderTextColor;
text-shadow: @sapUiShadowText;
}
.sapMTB-Transparent-CTX .sapMTitle {
text-shadow: none;
}
.sapMIBar-CTX.sapMFooter-CTX .sapMTitle {
color: @sapUiPageFooterTextColor;
text-shadow: @sapUiShadowText;
}
/* DynamicPageTitle Heading-CTX */
.sapFDynamicPageTitleHeading-CTX > .sapMTitle {
margin-top: 0;
}