@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
294 lines (251 loc) • 6.12 kB
text/less
/* =============================== */
/* CSS for control sap.m/ListBase */
/* Base theme */
/* =============================== */
.sapMList {
position: relative; /* This should not break the list but help swipe list content position calculation */
box-sizing: border-box;
margin: 0;
padding: 0;
}
.sapMListUl {
list-style-type: none;
padding: 0;
margin: 0;
}
.sapMListSwipable {
/* IE Windows 8 */
/* This elements receives events when not panning in vertial direction */
touch-action: pan-y;
-ms-touch-action: pan-y;
}
.sapMListUl:focus {
outline: none;
}
.sapMListSwp {
overflow: hidden;
position: absolute;
right: 0.5em;
z-index: 1;
opacity: 0;
pointer-events: auto;
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
margin-top: -1px;
}
.sapMListDummyArea {
position: fixed; /* keep it in the visible viewport, so that IE does not scroll on focus */
}
/* swipe animations */
@-webkit-keyframes sapMListSwpInAnim {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes sapMListSwpInAnim {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes sapMListSwpOutAnim {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes sapMListSwpOutAnim {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.sapMListSwpInAnim {
-webkit-animation: sapMListSwpInAnim 0.2s ease-in forwards;
animation: sapMListSwpInAnim 0.2s ease-in forwards;
}
.sapMListSwpOutAnim {
-webkit-animation: sapMListSwpOutAnim 0.2s ease-in forwards;
animation: sapMListSwpOutAnim 0.2s ease-in forwards;
}
.sapMListNoData {
list-style-type: none;
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
color: @sapUiListTextColor;
background-color: @sapUiListBackground;
border-bottom: 1px solid @sapUiListBorderColor;
padding: 0 1rem ;
height:3rem;
}
.sapMListNoDataText {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sapMListShowSeparatorsAll {
/*class will be added for others, just a reminder*/
}
.sapMListShowSeparatorsInner {
/*class will be added for others, just a reminder*/
}
.sapMListShowSeparatorsNone {
/*class will be added for others, just a reminder*/
}
/* Growing feature */
.sapMGrowingListTrigger {
display: block;
text-align: center;
overflow: hidden;
border-top: 1px solid @sapUiListHeaderBorderColor;
}
.sapMGrowingListDescription {
display: none;
padding: 0.375rem 2rem 0.875rem 2rem;
text-align: center;
}
.sapMGrowingListBusyIndicatorVisible .sapMGrowingListTriggerText,
.sapMGrowingListBusyIndicatorVisible .sapMGrowingListDescription {
visibility: hidden;
}
/* mixin call for creating container content padding classes (arguments: rootContainer, contentSelector) */
.sapUiContainerContentPadding(~".sapMList");
.sapUiFioriObjectPage > section > .sapMList:not(.sapMListInsetBG) {
margin: 1rem 0;
padding: 0 1rem;
box-sizing: border-box;
}
.sapUiFioriObjectPage > section > .sapMITB + .sapMList:not(.sapMListInsetBG) {
margin-top: 1rem;
}
html.sap-phone .sapUiFioriObjectPage > section > .sapMList:not(.sapMListInsetBG) {
padding: 0;
}
.sapUIMeTabContainerContent .sapMList {
padding: 1rem;
box-sizing: border-box;
}
html.sap-phone .sapUIMeTabContainerContent .sapMList {
padding: 0rem;
box-sizing: border-box;
}
.sapMListInsetBG {
padding: 2rem;
}
.sapMListInsetBG > .sapMListSwp {
margin-right: 2rem;
}
html.sap-phone .sapMListInsetBG{
padding: 1rem;
}
html.sap-phone .sapMListInsetBG > .sapMListSwp {
margin-right: 1rem;
}
.sapMListHdrText {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
box-sizing: border-box;
font-size: @sapMFontHeader4Size;
font-family: @sapUiFontHeaderFamily;
color: @sapUiGroupTitleTextColor;
height: 3rem;
line-height: 3rem;
padding: 0 1rem;
background-color: @sapUiGroupTitleBackground;
border-bottom: 1px solid @sapUiGroupTitleBorderColor;
}
.sapMListFtr{
height: 2rem;
box-sizing: border-box;
-webkit-text-size-adjust: none; /* To improve readability Mobile Safari automatically increases the size of small text so let's disable this */
font-size: @sapMFontMediumSize;
line-height: 2rem;
background-color: @sapUiListFooterBackground;
color: @sapUiListFooterTextColor;
padding: 0 1rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sapMListTopBorder {
border-top: 1px solid @sapUiListBorderColor;
}
.sapMListShowSeparatorsNone .sapMListNoData {
border-bottom: 0px;
}
.sapUIMeTabContainerContent .sapMFeedListItem {
display: block;
padding: .5rem 0;
}
/* Growing feature */
.sapMGrowingListBusyIndicator {
margin: 1.5rem 1.0rem ;
position: absolute;
}
.sapMGrowingListTriggerText {
padding: 0 2rem;
}
.sapMGrowingListTriggerText > .sapMSLITitle {
margin: 0.813rem 0; /* overwrites any user-agent default margin values */
padding-bottom: 0;
color: @sapUiButtonTextColor;
font-weight: bold;
}
.sapMGrowingListDescription.sapMSLIDescription {
color: @sapUiButtonTextColor;
}
/* sticky headers */
.sapMSticky > .sapMListHdr,
.sapMSticky > .sapMListInfoTBarContainer {
position: sticky;
position: -webkit-sticky;
}
.sapMSticky > .sapMListHdr {
background-color: @sapUiListHeaderBackground;
}
.sapMSticky > .sapMListHdr {
z-index: 3
}
.sapMSticky > .sapMListInfoTBarContainer {
z-index: 2
}
.sapMSticky > .sapMListInfoTBarContainer {
background-color: @sapUiInfobarBackground;
}
/* .sapMSticky3 denotes that the headerToolbar/headerText and the infoToolbar are sticky */
/* .sapMSticky2 denotes that only the infoToolbar is sticky */
/* .sapMSticky1 denotes that only the headerToolbar/headerText is sticky */
/* top: 0 sticky conditions */
.sapMSticky1 > .sapMListHdr,
.sapMSticky2 > .sapMListInfoTBarContainer,
.sapMSticky3 > .sapMListHdr {
top: 0;
}
/* top: 3rem sticky conditions */
.sapMSticky3 > .sapMListInfoTBarContainer {
top: 3rem;
}
/* Compact size */
.sapUiSizeCompact .sapMListNoData {
height: 2rem;
font-size: @sapMFontMediumSize;
}
.sapUiSizeCompact .sapMGrowingListDescription{
padding-top: 0;
}