@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
135 lines (118 loc) • 2.35 kB
text/less
/* ================================== */
/* CSS for control sap.m/NewsContent */
/* Base theme */
/* ================================== */
.sapMNwC {
display: inline-block;
outline: none;
width: 100%;
height: 3.5625rem;
color: @sapUiTileTextColor;
background-color: @sapUiTileBackground;
}
.sapMNwCCTxt {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: @sapUiFontFamily;
font-weight: normal;
padding: 0.1875rem 0 0 0;
max-width: 20.5rem;
.sapMText {
display: inline;
line-height: 1.1875rem;
}
.sapMText.sapMPointer * {
cursor: pointer;
}
}
.Stretch .sapMNwCCTxt {
max-width: none;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-weight: bold;
}
.TwoByOne .sapMNwCCTxt {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.Stretch{
.sapMTileCnt.News .sapMNwC{
.sapMNwCSbh{
max-width: none;
padding-top: 0.25rem;
.sapMFT{
word-wrap: break-word;
white-space: normal;
height: 2rem;
overflow: hidden;
max-width: 60ch;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
.sapMNwCSbh {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: @sapUiFontFamily;
font-weight: normal;
max-width: 20.5rem;
width: 100%;
display: inline-block;
line-height: 1.1875rem;
color: @sapUiTileTextColor;
font-size: @sapMFontMediumSize;
}
.sapMNwCCTxt .sapMText, .sapMNwCCTxt .sapMFT {
font-size: @sapMFontMediumSize;
color: @sapUiContentContrastTextColor;
overflow-wrap: break-word;
white-space: pre-line;
}
.sapMNwC:focus:not([tabindex]) {
outline: none;
}
.sapMTileSmallPhone {
.sapMNwC {
height: 3.188rem;
}
.sapMNwCCTxt {
max-width: 17.75rem;
padding: 0;
.sapMText {
line-height: 1.063rem;
}
}
&.sapMGTStretch{
.sapMNwCCTxt{
max-width: none;
}
}
.sapMNwCSbh {
max-width: 17.75rem;
line-height: 1.063rem;
}
.sapMNwCCTxt .sapMText, .sapMNwCSbh {
font-size: @sapMFontSmallSize;
}
.sapMTileSmallPhone.Stretch {
.sapMNwCSbh {
padding-top: 0.5rem;
}
.sapMNwCSbh > .sapMFT {
white-space: nowrap;
width: 11.063rem;
overflow: hidden;
max-width: 60ch;
text-overflow: ellipsis;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}