pip-webui
Version:
HTML5 UI for LOB applications
149 lines (118 loc) • 2.77 kB
text/less
// @file CSS styles for date range controls
// @copyright Digital Living Software Corp. 2014-2016
pip-date-range {
max-width: 300px ;
margin-top: -5px;
&.pip-select-flex {
md-select {
flex: 1;
}
md-select-label {
.flex();
flex: 1;
}
}
& > div {
display: flex;
}
md-select {
display: inline-block;
height: 30px;
.md-select-value {
height: 26px;
span.md-select-icon {
width: 12px ;
}
.md-text {
font-size: 16px;
@media (max-width: 768px) {
font-size: 12px;
}
}
}
margin-top: 10px ;
margin-bottom: 0;
}
}
@media (min-width: 768px) {
pip-date-range {
.pip-day {
min-width: 102px;
}
}
}
@media (max-width: 768px) {
pip-date-range {
.md-select-value {
min-width: 2.6em ;
span {
min-width: 2.4em ;
flex: 1 1 auto ;
.md-text {
padding-right: 0 ;
flex: 1 1 auto;
}
}
span.md-select-icon {
width: 12px ;
min-width: 12px ;
}
}
.select-day {
min-width: 1.6em ;
.md-select-value {
min-width: 1.6em ;
span {
min-width: ~"calc(100% - 7px)" ;
}
span.md-select-icon {
width: 12px ;
min-width: 12px ;
margin-left: -3px;
}
}
}
.select-year {
min-width: 2.6em ;
.md-select-value {
min-width: 2.6em ;
span {
min-width: ~"calc(100% - 7px)" ;
}
span.md-select-icon {
width: 12px ;
min-width: 12px ;
margin-left: -3px;
}
}
}
.select-week {
min-width: 2.6em ;
.md-select-value {
min-width: 2.6em ;
span {
min-width: ~"calc(100% - 7px)" ;
}
span.md-select-icon {
width: 12px ;
min-width: 12px ;
margin-left: -3px;
}
}
}
.select-month {
min-width: 2.7em ;
.md-select-value {
min-width: 2.7em ;
span {
min-width: ~"calc(100% - 7px)" ;
}
span.md-select-icon {
width: 12px ;
min-width: 12px ;
margin-left: -3px;
}
}
}
}
}