@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
158 lines (130 loc) • 2.59 kB
text/less
/* ================================== */
/* CSS for control sap.m/NewsContent */
/* Base theme */
/* ================================== */
.sapMNwC {
display: inline-block;
outline: none;
width: 100%;
height: 3.5625rem;
color: var(--sapTile_TextColor);
background-color: var(--sapTile_Background);
}
.sapMNwCCTxt {
min-height: fit-content;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--sapFontFamily);
font-weight: normal;
margin-top: 0.1875rem;
max-width: 20.5rem;
.sapMText {
display: inline;
line-height: 1.1875rem;
}
.sapMText.sapMPointer * {
cursor: pointer;
}
}
.Stretch .sapMNwCCTxt {
max-width: none;
.sapMFT {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-weight: bold;
overflow: hidden;
}
}
.TwoByOne .sapMNwCCTxt {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.Stretch {
.sapMTileCnt.News .sapMNwC {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
.sapMNwCSbh {
max-width: none;
padding-top: 0.25rem;
.sapMFT {
word-wrap: break-word;
white-space: normal;
}
}
}
.sapMNwCExtend {
height: 100%;
.sapMFT {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
}
}
.sapMNwCSbh {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--sapFontFamily);
font-weight: normal;
max-width: 20.5rem;
width: 100%;
display: inline-block;
line-height: 1.1875rem;
color: var(--sapTile_TextColor);
font-size: @sapMFontMediumSize;
}
.sapMNwCCTxt .sapMText,
.sapMNwCCTxt .sapMFT {
font-size: @sapMFontMediumSize;
color: var(--sapContent_ContrastTextColor);
overflow-wrap: break-word;
white-space: pre-line;
}
.sapMNwC:focus:not([tabindex]) {
outline: none;
}
.sapMNwC:focus {
outline: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
outline-offset: 1px;
}
.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: var(--sapFontSmallSize);
}
.sapMTileSmallPhone.Stretch {
.sapMNwCSbh {
padding-top: 0.5rem;
}
.sapMNwCSbh > .sapMFT {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}