@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
713 lines (589 loc) • 11.3 kB
text/less
/* ================================ */
/* CSS for control sap.m/SlideTile */
/* Base theme */
/* ================================ */
.sapMST {
background: transparent;
position: relative;
display: inline-block;
font-size: 0;
border-radius: 0.25rem;
outline: none;
box-shadow: @sapUiShadowLevel0;
.sapMSTOverflowHidden {
overflow: hidden;
position: relative;
height: 100%;
width: 100%;
border-radius: 0.23rem 0.23rem 0.25rem 0.25rem;
}
&.sapMSTScopeActions {
.sapMSTMoreIcon {
height: 1rem;
position: absolute;
right: 0.75rem;
bottom: 0.563rem;
z-index: 1;
color: var(--sapButton_IconColor);
pointer-events: none;
background-color: transparent;
border: 0;
.sapMBtnIcon {
bottom: 0.6rem;
left: 0.9rem;
border: 0;
color: var(--sapButton_Lite_TextColor);
}
&:focus {
outline: none;
}
}
.sapMSTRemoveButton {
width: 1.375rem;
height: 1.375rem;
border-radius: 50%;
padding: 0;
position: absolute;
top: -0.5rem;
right: -0.5rem;
z-index: 3;
border: 1px solid var(--sapButton_BorderColor);
background-color: var(--sapButton_Background);
color: var(--sapButton_TextColor);
overflow: visible;
.sapMBtnFocusDiv {
display: none;
}
.sapMBtnInner {
width: 100%;
height: 100%;
min-width: 0;
border-radius: 50%;
border: none;
outline-offset: -2px;
}
.sapMBtnIcon {
font-size: 0.75rem;
margin: 0;
width: 100%;
&::before {
position: relative;
top: -0.125rem;
}
}
&:focus > .sapMFocusable {
outline: none;
border-radius: 50%;
}
/* The touch area has a different size and is slightly moved to the left and bottom */
&::before {
content: '';
color: var(--sapButton_IconColor);
position: absolute;
top: -1px;
bottom: -0.6875rem;
left: -0.6875rem;
right: -0.0625rem;
}
}
}
}
.sapMST.sapMSTPhone.Stretch {
.sapMSTIconClickTapArea{
top: 0.5rem;
left: 0.5rem;
}
.sapMSTIconDisplayArea {
top: 0.5rem;
right: 0.5rem;
}
.sapMSTIconNestedArea {
top: 0.5rem;
right: 0.5rem;
}
.sapMGT.sapMGT.Stretch.sapMGTArticleMode.sapMGTBackgroundImage{
.sapMGTHdrContent {
height: 4rem;
.sapMGTBackgroundBadge {
margin-bottom: 0.3125rem;
}
}
.sapMTileCnt.News {
.sapMTileCntContent {
margin-top: 0.25rem;
}
}
}
}
.sapMST.Stretch.sapMSTLargeScreen {
.sapMGT.Stretch.sapMGTArticleMode.sapMGTBackgroundImage {
.sapMGTHdrContent {
position: absolute;
top: 0;
right: 0;
width: 50%;
height: 100%;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
z-index: 0;
padding: 0;
}
.sapMGTContent {
width: 50%;
margin: 0;
.sapMTileCnt.News {
margin: 0;
.sapMObjStatus {
top: 1.5rem;
left: 1.5rem;
}
.sapMTileCntContent {
margin: 0;
padding: 3.375rem 1.5rem 0 1.5rem;
}
}
}
}
.sapMSTBulleted {
left: 25%;
transform: translateX(-50%);
}
.sapMSTIconClickTapArea {
top: 1.5rem;
right: 1.5rem;
}
.sapMSTIconDisplayArea {
top: 1.5rem;
right: 1.5rem;
}
.sapMSTIconNestedArea {
top: 1.5rem;
right: 1.5rem;
}
}
/* Fix for tile buttons hidden in RTL */
html[dir=rtl] .sapMST.Stretch.sapMSTLargeScreen .sapMSTBulleted {
transform: translateX(50%);
}
.sapMST.Stretch {
.sapMGT.Stretch.sapMGTArticleMode.sapMGTBackgroundImage {
.sapMGTContent {
overflow: initial;
.sapMTileCnt.News {
.sapMObjStatus {
position: absolute;
top: -2rem;
left: 0.5rem;
padding-bottom: 0;
}
.sapMTileCntContent {
margin-top: 0.5rem;
}
}
}
}
.sapMSTIconClickTapArea {
top: 1rem;
right: 1rem;
}
.sapMSTIconDisplayArea {
top: 1rem;
right: 1rem;
}
.sapMSTIconNestedArea {
top: 1rem;
right: 1rem;
}
}
.sapMST.Stretch.sapMSTSmallScreen {
.sapMTileCntContent {
padding-top: 4px;
}
}
.sapMST {
.sapMGT.sapMGTStateLoading {
.sapMTileCnt.News {
background-color: transparent;
}
}
}
.sapMST.sapMSTGridContainerOneRemGap.TwoByOne {
width: 23rem;
}
.sapMST.sapMSTGridContainerOneRemGap.TwoByHalf {
width: 23rem;
}
.sapMTileSmallPhone.sapMST.sapMSTGridContainerOneRemGap.TwoByOne {
width: 19.5rem;
}
.sapMTileSmallPhone.sapMST.sapMSTGridContainerOneRemGap.TwoByHalf {
width: 19.5rem;
}
.sapMST.sapMTileSmallPhone {
.sapMGT.sapMGTStateLoading.TwoByOne {
.sapMTileCntContentShimmerPlaceholderItemTextFooter {
width: 5.875rem;
}
}
}
.sapUiSizeCompact{
.sapMST {
.sapMSTMoreIcon {
.sapMBtnIcon {
left: 0.3rem;
bottom: 0.4rem;
}
}
}
}
.sapMSTWrapper {
position: absolute;
left: 100%;
}
.sapMSTWrapper>.sapMGT,
.sapMSTWrapper>.sapMGT:hover,
html.sap-phone .sapMGTHvrOutln:active,
html.sap-tablet .sapMGTHvrOutln:active {
box-shadow: none ;
}
.sapUshellSection {
.sapMST.TwoByOne {
width: 23rem;
}
}
.sapMST.OneByOne {
width: 11rem;
height: 11rem;
}
.sapMST.TwoByOne {
width: 22.5rem;
height: 11rem;
}
.sapMST.Stretch {
width: 11rem;
height: 11rem;
}
.sapMGTTileStretch {
height: 100%;
width: 100%;
}
.sapMGTTileStretch .sapMGT {
height: 100%;
width: 100%;
}
.sapMSTFocusDiv {
position: absolute;
pointer-events: none;
left: 1px;
top: 1px;
right: 1px;
bottom: 1px;
border-radius: 0.125rem;
}
.sapMST:focus .sapMSTFocusDiv {
border: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
}
/* Bulleted indicator of multiple tiles*/
.sapMSTBulleted {
position: absolute;
text-align: center;
bottom: 0.0625rem;
width: 100%;
z-index: 1;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
height: 1.5rem;
bottom: 0.25rem;
.sapMSTIndicatorWrapper {
display: flex;
max-width: 7.5rem;
overflow: hidden;
.sapMSTIndicatorTapArea {
min-width: 24px;
min-height: 24px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.5s ease
}
}
}
.sapMSTBulleted .sapMSTIndicator {
display: inline-block;
height: 0.5rem;
width: 0.5rem;
margin: 0 0.25rem;
border-radius: 50%;
}
.sapMST .sapMSTIconClickTapArea {
position: absolute;
right: 0.75rem;
top: 0.75rem;
height: 2rem;
width: 2rem;
z-index: 3;
background-color: transparent;
border-radius: 50%;
cursor: pointer;
}
.sapMST .sapMSTIconDisplayArea {
position: absolute;
right: 0.75rem;
top: 0.75rem;
height: 2rem;
width: 2rem;
z-index: 1;
opacity: 0.6;
overflow: hidden;
border-radius: 50%;
}
.sapMST .sapMSTIconClickTapArea:hover ~.sapMSTIconDisplayArea {
opacity: 0.8;
}
.sapMST.sapMSTIconPressed .sapMSTIconClickTapArea:hover ~.sapMSTIconDisplayArea {
opacity: 1.0;
}
.sapMST .sapMSTIconNestedArea {
right: 0.75rem;
top: 0.75rem;
line-height: 2rem;
height: 2rem;
z-index: 1;
position: absolute;
.sapUiIcon {
width: 2rem;
line-height: inherit;
}
}
html.sap-phone .sapMST .sapMSTIconClickTapArea,
html.sap-tablet .sapMST .sapMSTIconClickTapArea {
right: 0.25rem;
top: 0.25rem;
height: 3rem;
width: 3rem;
}
.sapMTileSmallPhone {
&.sapMST.OneByOne {
width: 9.25rem;
height: 9.25rem;
}
&.sapMST.TwoByOne {
width: 19rem;
height: 9.25rem;
}
&.sapMSTBulleted {
bottom: 0.188rem;
}
}
.sapMST {
.sapMTileCnt.News {
.sapMNwCCTxt {
margin-top: 0;
.sapMFT {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
}
}
.sapMNwCSbh {
.sapMFT {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
}
&.sapMSTIndicatorVisible {
.sapMGenericTileFtrFld {
top: 0.5rem;
}
}
}
.sapMST.sapMSTIndicatorVisible.Stretch {
.sapMGenericTileFtrFldTxt {
.sapMText {
width: -webkit-calc(~'100% - 40px');
font-family: var(--sapFontBoldFamily);
font-size: var(--sapFontSize);
line-height: normal;
text-shadow: var(--sapContent_TextShadow);
}
}
}
.sapMST.sapMSTIndicatorVisible.Stretch.sapMTileSmallPhone {
.sapMGenericTileFtrFldTxt {
.sapMText {
font-size: var(--sapFontSmallSize);
}
}
}
.sapMST.sapMSTIndicatorVisible.TwoByOne {
.sapMGT.TwoByOne {
.sapMTileCnt.News {
height: 6.375rem;
margin-top: 0;
.sapMTileCntContent{
height: 3rem;
.sapMNwC {
max-height: 3rem;
.sapMNwCCTxt {
max-height: 2rem;
.sapMText {
font-size: var(--sapFontSize);
font-family: var(--sapFontBoldFamily);
}
.sapMFT {
font-size: var(--sapFontSize);
font-family: var(--sapFontBoldFamily);
}
}
}
}
.sapMTileCntFtrTxt {
bottom: 1.875rem;
font-family: var(--sapFontFamily);
font-size: var(--sapFontSmallSize);
line-height: normal;
}
}
}
.sapMSTBulleted {
bottom: 0.25rem;
}
.sapMGenericTileFtrFldTxt {
.sapMText {
width: 17.125rem;
font-family: var(--sapFontBoldFamily);
font-size: var(--sapFontSize);
line-height: normal;
text-shadow: var(--sapContent_TextShadow);
}
}
}
.sapMST.sapMSTIndicatorVisible.OneByOne {
.sapMGT.OneByOne {
.sapMGTHdrContent {
height: 3.375rem;
padding: 0;
}
.sapMGTContent {
height: 7.625rem;
.sapMTileCnt.News {
height: 100%;
margin: 0;
.sapMTileCntContent {
margin: 0.5rem 0 0.5rem 0;
height: 2.625rem;
.sapMFT {
font-size: var(--sapFontSmallSize);
}
}
.sapMTileCntFtrTxt {
bottom: 3rem;
font-family: var(--sapFontFamily);
font-size: var(--sapFontSmallSize);
line-height: normal;
}
}
}
}
.sapMSTBulleted {
bottom: 1rem;
.sapMSTIndicatorWrapper {
max-width: 6rem;
}
}
.sapMGenericTileFtrFld {
display: flex;
flex-direction: column;
gap: 0.25rem;
.sapMGenericTileFtrFldTxt {
padding: 0;
.sapMText {
width: 7.8125rem;
font-family: var(--sapFontBoldFamily);
font-size: var(--sapFontSmallSize);
line-height: normal;
text-shadow: var(--sapContent_TextShadow);
}
}
}
}
.sapMST.sapMSTIndicatorVisible.sapMTileSmallPhone.TwoByOne {
.sapMGT.TwoByOne {
.sapMGTHdrContent {
height: 3.1875rem;
padding: 0;
}
.sapMGTContent {
height: 6.125rem;
.sapMTileCnt.News {
height: 100%;
.sapMTileCntContent {
height: 2.5rem;
.sapMNwC {
height: 2.5rem;
.sapMNwCCTxt {
height: 1.75rem;
}
.sapMNwCSbh {
height: 14px;
}
.sapMFT {
font-size: var(--sapFontSmallSize);
}
}
}
}
.sapMTileCntFtrTxt {
bottom: 2.25rem;
}
}
}
.sapMSTBulleted {
bottom: 0.5rem;
}
.sapMGenericTileFtrFldTxt {
.sapMText {
width: 13.6875rem;
font-size: var(--sapFontSmallSize);
}
}
}
.sapMST.sapMSTIndicatorVisible.sapMTileSmallPhone.OneByOne {
.sapMGT.OneByOne {
.sapMGTContent {
height: 5.875rem;
.sapMTileCnt.News {
height: inherit;
margin-top: 0;
.sapMTileCntContent {
height: 2.625rem;
margin-bottom: 0.125rem;
.sapMNwC {
height: inherit;
}
}
.sapMTileCntFtrTxt {
bottom: 1.6875rem
}
}
}
}
.sapMSTBulleted {
bottom: 0.25rem;
.sapMSTIndicatorWrapper {
max-width: 4.5rem;
}
}
.sapMGenericTileFtrFldTxt {
.sapMText {
width: 6.125rem;
}
}
}