@openui5/sap.m
Version:
OpenUI5 UI Library sap.m
276 lines (227 loc) • 7.21 kB
text/less
/* ======================================= */
/* CSS for control sap.m/PlanningCalendar */
/* Base theme */
/* ======================================= */
.sapMPlanCal{
background-color: @sapUiListBackground;
}
.sapMPlanCal > .sapMList .sapMListInfoTBar.sapMTB-Transparent-CTX.sapMTB{
padding: 0;
}
.sapMPlanCal > .sapMList .sapMListInfoTBar.sapMTB-Transparent-CTX.sapMTB >:first-child{
margin-left: 0;
}
.sapMPlanCalHead{
width: 20%;
height: 6.25rem;
}
.sapMPlanCalWithWeekNumbers .sapMPlanCalHead{
height: 9.25rem;
}
.sapMPlanCalWithDayNamesLine .sapMPlanCalHead{
height: 8.25rem;
}
.sapMPlanCalWithWeekNumbers.sapMPlanCalWithDayNamesLine .sapMPlanCalHead{
height: 11.25rem;
}
.sapMPlanCalHead > .sapMTB.sapMIBar{
padding-left: 0.875rem;
}
.sapUiSizeCompact {
.sapMPlanCalHead {
height: 4.25rem;
}
.sapMPlanCalWithWeekNumbers .sapMPlanCalHead,
.sapMPlanCalWithDayNamesLine .sapMPlanCalHead {
height: 6.25rem;
}
.sapMPlanCalWithWeekNumbers.sapMPlanCalWithDayNamesLine .sapMPlanCalHead {
height: 8.25rem;
}
}
.sapMPlanCal > .sapMList .sapMPlanCalRowHead > .sapMLIB,
.sapMPlanCal > .sapMList .sapMPlanCalAppRow > .sapUiCalendarRow,
.sapMPlanCal > .sapMList .sapMPlanCalAppRow > div > .sapUiCalendarRow{
background-color: transparent;
display: block;
border: none;
}
/* if Head is displayed next to CalendarRow, use head size as minimum */
.sapMPlanCal:not(.sapMPlanCalNoHead) > .sapMList > table > tbody > tr > td > .sapUiCalendarRow:not(.sapMPlanCalRowLarge) > .sapUiCalendarRowApps{
min-height: 3rem;
}
/* if Head has 2 lines, CalendarRow must be large */
.sapMPlanCal:not(.sapMPlanCalNoHead) > .sapMList > table > tbody > tr > td > .sapUiCalendarRow.sapMPlanCalRowLarge > .sapUiCalendarRowApps{
min-height: 4rem;
}
.sapMPlanCalHead > .sapMTB{
border-bottom: none;
}
.sapMPlanCalHead > .sapMTB > .sapMSlt{
-webkit-flex-grow: 1;
-webkit-box-flex: 1;
flex: auto; /* to make the select as big as possible */
}
.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapMBarChild.sapUiCalInt {
width: 80%;
padding: 0;
margin-left: 0;
margin-right: 0;
}
.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapMBarChild.sapMPlanCalHead {
margin-right: 0;
}
.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapUiCalInt > .sapUiCalHead > .sapUiCalHeadPrev{
left: 0;
}
.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapUiCalInt > .sapUiCalHead > .sapUiCalHeadNext{
right: 0;
}
.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapUiCalInt > .sapUiCalContent > .sapUiCalRow{
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
}
html[data-sap-ui-browser^="ie"].sap-desktop .sapMPlanCal .sapUiCalRow:not(.sapUiCalNoNameLine) > .sapUiCalItems {
display: block;
}
.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapUiCalInt > .sapUiCalContent >.sapUiCalContentOver{
bottom: 0;
}
.sapMPlanCal > .sapMList .sapMListTblCell.sapMPlanCalRowHead,
.sapMPlanCal > .sapMList .sapMListTblCell.sapMPlanCalAppRow{
padding: 0;
.sapUiCalendarRow {
padding-top: 0.25rem; //to give some space for row focus outline
}
}
/* Responsiveness */
.sapMPlanCal > .sapMList > table > tbody > tr > td > .sapMListTblSubCnt,
.sapMPlanCal > .sapMList > table > tbody > .sapMListTblSubRow > td{
padding: 0;
}
.sapMPlanCal .sapMListTblSubCntRow {
display: block;
}
.sapMPlanCal > .sapMList > table > tbody > tr > td > .sapMListTblSubCnt > .sapMListTblSubCntRow >.sapMListTblSubCntVal{
margin: 0;
}
.sapMPlanCal .sapMSticky > .sapMTB-Transparent-CTX,
.sapMPlanCal .sapMSticky > .sapMListInfoTBarContainer {
background-color: @sapUiListBackground;
}
.sapMPlanCal.sapMPlanCalNoHead > .sapMList .sapMListInfoTBar,
.sapMSize0.sapMPlanCal > .sapMList .sapMListInfoTBar,
.sapMSize1.sapMPlanCal > .sapMList .sapMListInfoTBar{
display: block;
}
.sapMPlanCal.sapMPlanCalNoHead > .sapMList .sapMListInfoTBar > .sapMPlanCalHead,
.sapMPlanCal.sapMPlanCalNoHead > .sapMList .sapMListInfoTBar > .sapUiCalInt,
.sapMSize0.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapMPlanCalHead,
.sapMSize0.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapUiCalInt,
.sapMSize1.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapMPlanCalHead,
.sapMSize1.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapUiCalInt{
width: 100%;
}
.sapMPlanCal.sapMPlanCalNoHead > .sapMList .sapMListInfoTBar > .sapMPlanCalHead,
.sapMSize0.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapMPlanCalHead,
.sapMSize1.sapMPlanCal > .sapMList .sapMListInfoTBar > .sapMPlanCalHead{
height: auto;
}
.sapMPlanCal.sapMPlanCalNoHead.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapUiCalInt{
width: ~'calc(100% - 3rem)';
}
.sapMPlanCal.sapMPlanCalNoHead.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapMCb{
width: 3rem;
margin: 0;
vertical-align: bottom;
}
.sapMPlanCal.sapMPlanCalNoHead.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapMCb > .sapMCbLabel{
visibility: hidden;
}
.sapUiSizeCompact .sapMPlanCal.sapMPlanCalNoHead.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapMCb{
width: 2.25rem;
margin-left: 0.25rem;
}
.sapMSize0.sapMPlanCal.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapMCb,
.sapMSize1.sapMPlanCal.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapMCb{
width: auto;
margin-left: 0;
}
.sapMSize0.sapMPlanCal.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapMCb > .sapMCbLabel,
.sapMSize1.sapMPlanCal.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapMCb > .sapMCbLabel{
visibility: visible;
}
.sapMSize0.sapMPlanCal.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapUiCalInt,
.sapMSize1.sapMPlanCal.sapMPlanCalMultiSel > .sapMList .sapMListInfoTBar > .sapUiCalInt{
width: 100%;
display: block;
}
.sapMPlanCal .sapMListBGTransparent .sapMLIB:not(.sapMLIBActive):not(.sapMLIBSelected):not(:hover),
.sapMPlanCal .sapMListBGTranslucent .sapMLIB:not(.sapMLIBActive):not(.sapMLIBSelected):not(:hover),
.sapMPlanCal .sapMListBGSolid .sapMLIB:not(.sapMLIBActive):not(.sapMLIBSelected):not(:hover) {
background: transparent;
}
.sapMPlanCal {
.sapMListTbl .sapMSLIImgIcon.sapUiIcon:not(.sapMLIBImgNav):not(.sapMBtnIcon) {
font-size: 1.375rem;
height: 2rem;
width: 2rem;
line-height: 2rem;
margin: 0.5rem 0.75rem 0.5rem 0;
}
.sapMPlanCalRowHead {
.sapMLIBContent {
position: relative;
}
.sapMSLIImg {
max-width: 3rem;
max-height: 3rem;
width: auto;
height: auto;
margin: 0;
}
.sapMSLIDiv {
.sapMSLITitleOnly,
.sapMSLITitle {
white-space: normal;
}
}
.sapMSLIDescIcon .sapMSLIDiv,
.sapMSLIImgIcon + .sapMSLIDiv {
box-sizing: border-box;
position: absolute;
padding-left: calc(3rem + 0.75rem); // Width of the image + right margin
width: 100%;
html[data-sap-ui-browser^="ie"] & {
top: .5rem;
left: 0;
}
}
}
}
.sapMPlanCal .sapUiCalDateInt .sapUiCalHeadB1 {
width: auto;
min-width: 12.5rem;
}
.sapMPlanCal .sapUiCalHead {
display: flex;
justify-content: center;
.sapUiCalHeadPrev,
.sapUiCalHeadNext {
position: static;
}
}
.sapUiCalAppResizeGhost {
position: absolute;
top: 0;
left: 0;
display: inline-block;
width: 1px;
height: 1px;
visibility: hidden;
opacity: 0.01;
}
.sapUiDnDIndicatorHide {
display: none ;
}