@eclipse-scout/core
Version:
Eclipse Scout runtime
206 lines (171 loc) • 4.17 kB
text/less
/*
* Copyright (c) 2010, 2023 BSI Business Systems Integration AG
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
.date-picker-popup {
position: absolute;
width: 290px;
#scout.control-popup();
overflow: hidden;
}
.date-picker {
position: relative;
&.touch-only :not(.selected):not(.disabled):not(:active):hover {
// Disable sticky hover effect on touch devices
background-color: inherit;
}
}
.date-picker-scrollable {
position: relative;
width: 100%;
}
.date-picker-month-box {
position: relative;
display: inline-block;
width: 100%;
}
.date-picker-month {
width: 100%;
padding: 0 @date-picker-month-padding @date-picker-month-padding @date-picker-month-padding;
}
.date-picker-weekdays {
color: @date-picker-weekday-color;
font-weight: @font-weight-bold;
display: flex;
justify-content: space-between;
}
.date-picker-weekday {
display: inline-flex;
height: @date-picker-header-height;
width: @date-picker-day-size;
margin: @date-picker-day-margin;
justify-content: center;
padding-top: 7px;
}
.date-picker-week {
display: flex;
justify-content: space-between;
}
.date-picker-day {
display: inline-flex;
width: @date-picker-day-size;
height: @date-picker-day-size;
margin: @date-picker-day-margin;
border-radius: @date-picker-day-border-radius;
justify-content: center;
align-items: center;
&.date-picker-out, &.date-picker-out-weekend {
color: @date-picker-out-color;
}
&.date-picker-day-weekend-separator {
margin-left: 5px;
}
&.date-picker-now {
color: @date-picker-now-color;
font-weight: @font-weight-bold;
& > .text {
border-bottom: 2px @date-picker-now-color solid;
margin-bottom: -2px;
}
}
&.preselected {
background-color: @date-picker-day-preselected-background-color;
}
&:hover {
background-color: @date-picker-day-hover-background-color;
}
&:active {
background-color: @active-background-color;
}
&.selected {
color: @date-picker-day-selected-color;
background-color: @date-picker-day-selected-background-color;
font-weight: @font-weight-bold;
&.date-picker-now > .text {
border-bottom-color: @date-picker-day-selected-color;
}
}
&.disabled {
color: @date-picker-day-disabled-color;
background-color: inherit;
}
}
.date-picker-header {
padding: 17px 10px 14px 10px;
}
.date-picker-separator {
position: absolute;
top: 98px;
left: 0;
height: 1px;
width: 100%;
border-bottom: 1px solid @date-picker-separator-color;
}
.date-picker-weekend-separator {
position: absolute;
top: @date-picker-header-height + @date-picker-day-margin;
height: calc(100% - @date-picker-month-padding - @date-picker-header-height - @date-picker-day-margin - @date-picker-day-margin);
width: 0;
border-right: 1px @date-picker-separator-color solid;
}
.date-picker-header-month {
text-align: center;
cursor: default;
font-size: 18px;
line-height: 30px;
margin-top: @text-margin-top;
#scout.overflow-ellipsis-nowrap();
}
.date-picker-left-y,
.date-picker-left-m,
.date-picker-right-y,
.date-picker-right-m {
width: 26px;
height: 26px;
margin: 3px 2px 6px 2px;
padding-top: 4px;
color: @date-picker-arrow-color;
border-radius: @border-radius;
display: flex;
justify-content: center;
cursor: pointer;
#scout.font-icon();
font-size: 17px;
&:hover {
background-color: @hover-background-color;
}
&:active {
background-color: @active-background-color;
}
}
.date-picker-left-y {
float: left;
margin-left: 5px;
}
.date-picker-left-m {
float: left;
}
.date-picker-left-y::before {
content: @icon-angle-double-left;
}
.date-picker-left-m::before {
content: @icon-angle-left;
}
.date-picker-right-y {
float: right;
margin-right: 7px;
}
.date-picker-right-m {
float: right;
}
.date-picker-right-y::before {
content: @icon-angle-double-right;
}
.date-picker-right-m::before {
content: @icon-angle-right;
}