@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
128 lines (102 loc) • 3.48 kB
text/less
/* ================================== */
/* CSS for control sap.m/ActionSheet */
/* Base theme */
/* ================================== */
.sapMActionSheetDialog.sapMDialog {
top: auto ; // We need to overwrite the inline top style
bottom: 0;
width: 100%;
max-width: 20rem;
border-radius: 0.25rem 0.25rem 0 0;
&.sapMDialogPhone {
overflow: visible;
}
}
.sapMActionSheet:focus{
outline: none;
}
.sapMActionSheetDialog .sapMDialogScroll {
display: block;
}
.sapMActionSheetMixedButtons .sapMActionSheetButtonNoIcon .sapMBtnContent {
margin-left: 1.625rem;
}
.sapMActionSheetButton > .sapMBtnInner {
text-align: start;
}
html[data-sap-ui-browser^=ie] .sapMActionSheetButton > .sapMBtnInner,
html[data-sap-ui-browser^=ed] .sapMActionSheetButton > .sapMBtnInner {
text-align: left;
}
html[dir=rtl][data-sap-ui-browser^=ie] .sapMActionSheetButton > .sapMBtnInner,
html[dir=rtl][data-sap-ui-browser^=ed] .sapMActionSheetButton > .sapMBtnInner {
text-align: right;
}
/* ====== BEGIN ====== */
/*Style for ActionSheet shown as a dialog sliding in from bottom*/
/* ====== ====== ===== */
.sapMDialog.sapMActionSheetDialog {
background-color: transparent;
box-shadow: none;
border: none;
}
.sapMDialog.sapMActionSheetDialog > section {
background-color: @sapUiGroupContentBackground;
border-radius: 0.25rem 0.25rem 0 0;
}
.sapMActionSheetDialog .sapMActionSheetButton {
width: 100%;
}
.sapMActionSheetDialog .sapMActionSheetButton.sapMActionSheetCancelButton > .sapMBtnInner {
text-align: center;
}
.sapMActionSheetDialog .sapMBar.sapMHeader-CTX > .sapMBarMiddle {
text-align: start;
padding: 0 1rem;
}
html[data-sap-ui-browser^=ie] .sapMActionSheetDialog .sapMBar.sapMHeader-CTX > .sapMBarMiddle, /* TODO remove after 1.62 version */
html[data-sap-ui-browser^=ed] .sapMActionSheetDialog .sapMBar.sapMHeader-CTX > .sapMBarMiddle {
text-align: left;
}
html[dir=rtl][data-sap-ui-browser^=ie] .sapMActionSheetDialog .sapMBar.sapMHeader-CTX > .sapMBarMiddle, /* TODO remove after 1.62 version */
html[dir=rtl][data-sap-ui-browser^=ed] .sapMActionSheetDialog .sapMBar.sapMHeader-CTX > .sapMBarMiddle {
text-align: right;
}
.sapMActionSheetDialog .sapMBar.sapMHeader-CTX > .sapMBarMiddle > .sapMBarPH > .sapMDialogTitle {
color: contrast(fade(@sapUiBlockLayerBackground, 60), @sapUiGroupTitleTextColor, @sapUiContentContrastTextColor, @sapUiContentContrastTextThreshold);
font-size: @sapMFontMediumSize;
}
.sapMDialog.sapMActionSheetDialog > .sapMDialogSection {
box-shadow: @sapUiShadowLevel1;
}
.sapMDialog.sapMActionSheetDialog > section {
padding: 0.25rem 0.5rem;
}
.sapMActionSheetDialog.sapMDialogPhone .sapMIBar.sapMHeader-CTX {
background: transparent;
box-shadow: none;
}
/* ====== BEGIN ====== */
/*Style for ActionSheet shown as a Popover*/
/* ====== ====== ===== */
.sapMActionSheetPopover.sapMPopover {
box-shadow: @sapUiShadowLevel1;
}
.sapMActionSheetPopover .sapMActionSheetButton {
display: block;
width: 100%;
}
.sapMActionSheetPopover.sapMPopover .sapMPopoverCont {
padding: 0.25rem 0.5rem;
max-height: calc(~"100% - 0.5rem");
}
.sapUiSizeCompact .sapMActionSheetPopover.sapMPopover .sapMPopoverCont {
padding: 0.1875rem 0.375rem;
max-height: calc(~"100% - 0.375rem");
}
.sapMActionSheetPopover.sapMPopover .sapMPopoverCont::-webkit-scrollbar {
background-color: transparent;
}
/* ====== END ====== */
/*Style for ActionSheet shown as a Popover*/
/* ====== ====== ===== */