mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
470 lines
14 KiB
SCSS
470 lines
14 KiB
SCSS
@import "options";
|
|
|
|
.#{$xdsoftNamespace}_datetimepicker {
|
|
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.506);
|
|
background: $primaryBgColor;
|
|
border-bottom: 1px solid $primaryBottomBorderColor;
|
|
border-left: 1px solid $primaryBorderColor;
|
|
border-right: 1px solid $primaryBorderColor;
|
|
border-top: 1px solid $primaryBorderColor;
|
|
color: $primaryFontColor;
|
|
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
|
padding: 8px;
|
|
padding-left: 0;
|
|
padding-top: 2px;
|
|
position: absolute;
|
|
z-index: 9999;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
display: none;
|
|
iframe {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 75px;
|
|
height: 210px;
|
|
background: transparent;
|
|
border: none;
|
|
}
|
|
button {
|
|
border: none !important;
|
|
}
|
|
}
|
|
|
|
/*For IE8 or lower*/
|
|
|
|
.#{$xdsoftNamespace}_noselect {
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
&::selection, &::-moz-selection {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
.#{$xdsoftNamespace}_datetimepicker {
|
|
&.#{$xdsoftNamespace}_inline {
|
|
display: inline-block;
|
|
position: static;
|
|
box-shadow: none;
|
|
}
|
|
* {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
.#{$xdsoftNamespace}_datepicker, .#{$xdsoftNamespace}_timepicker {
|
|
display: none;
|
|
}
|
|
.#{$xdsoftNamespace}_datepicker.active, .#{$xdsoftNamespace}_timepicker.active {
|
|
display: block;
|
|
}
|
|
.#{$xdsoftNamespace}_datepicker {
|
|
width: 224px;
|
|
float: left;
|
|
margin-left: 8px;
|
|
}
|
|
&.#{$xdsoftNamespace}_showweeks .#{$xdsoftNamespace}_datepicker {
|
|
width: 256px;
|
|
}
|
|
.#{$xdsoftNamespace}_timepicker {
|
|
width: 58px;
|
|
float: left;
|
|
text-align: center;
|
|
margin-left: 8px;
|
|
margin-top: 0;
|
|
}
|
|
.#{$xdsoftNamespace}_datepicker.active + .#{$xdsoftNamespace}_timepicker {
|
|
margin-top: 8px;
|
|
margin-bottom: 3px;
|
|
}
|
|
.#{$xdsoftNamespace}_mounthpicker {
|
|
position: relative;
|
|
text-align: center;
|
|
}
|
|
.#{$xdsoftNamespace}_label i, .#{$xdsoftNamespace}_prev, .#{$xdsoftNamespace}_next, .#{$xdsoftNamespace}_today_button {
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21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ail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC);
|
|
}
|
|
.#{$xdsoftNamespace}_label i {
|
|
opacity: 0.5;
|
|
background-position: -92px -19px;
|
|
display: inline-block;
|
|
width: 9px;
|
|
height: 20px;
|
|
vertical-align: middle;
|
|
}
|
|
.#{$xdsoftNamespace}_prev {
|
|
float: left;
|
|
background-position: -20px 0;
|
|
}
|
|
.#{$xdsoftNamespace}_today_button {
|
|
float: left;
|
|
background-position: -70px 0;
|
|
margin-left: 5px;
|
|
}
|
|
.#{$xdsoftNamespace}_next {
|
|
float: right;
|
|
background-position: 0 0;
|
|
background-color: transparent;
|
|
background-repeat: no-repeat;
|
|
border: 0 none currentColor;
|
|
cursor: pointer;
|
|
display: block;
|
|
height: 30px;
|
|
opacity: 0.5;
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
|
outline: medium none currentColor;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: relative;
|
|
text-indent: 100%;
|
|
white-space: nowrap;
|
|
width: 20px;
|
|
}
|
|
.#{$xdsoftNamespace}_prev, .#{$xdsoftNamespace}_today_button {
|
|
background-color: transparent;
|
|
background-repeat: no-repeat;
|
|
border: 0 none currentColor;
|
|
cursor: pointer;
|
|
display: block;
|
|
height: 30px;
|
|
opacity: 0.5;
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
|
outline: medium none currentColor;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
position: relative;
|
|
text-indent: 100%;
|
|
white-space: nowrap;
|
|
width: 20px;
|
|
}
|
|
.#{$xdsoftNamespace}_timepicker {
|
|
.#{$xdsoftNamespace}_prev, .#{$xdsoftNamespace}_next {
|
|
float: none;
|
|
background-position: -40px -15px;
|
|
height: 15px;
|
|
width: 30px;
|
|
display: block;
|
|
margin-left: 14px;
|
|
margin-top: 7px;
|
|
}
|
|
.#{$xdsoftNamespace}_prev {
|
|
background-position: -40px 0;
|
|
margin-bottom: 7px;
|
|
margin-top: 0;
|
|
}
|
|
.#{$xdsoftNamespace}_time_box {
|
|
height: 151px;
|
|
overflow: hidden;
|
|
border-bottom: 1px solid $primaryInnerBorderColor;
|
|
> div > div {
|
|
background: $primaryCellBGColor;
|
|
border-top: 1px solid $primaryInnerBorderColor;
|
|
color: $primaryCellFontColor;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
border-collapse: collapse;
|
|
cursor: pointer;
|
|
border-bottom-width: 0;
|
|
height: 25px;
|
|
line-height: 25px;
|
|
&:first-child {
|
|
border-top-width: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_today_button:hover, .#{$xdsoftNamespace}_next:hover, .#{$xdsoftNamespace}_prev:hover {
|
|
opacity: 1;
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
|
}
|
|
.#{$xdsoftNamespace}_label {
|
|
display: inline;
|
|
position: relative;
|
|
z-index: 9999;
|
|
margin: 0;
|
|
padding: 5px 3px;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
font-weight: bold;
|
|
background-color: $primaryBgColor;
|
|
float: left;
|
|
width: 182px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
&:hover {
|
|
> span {
|
|
text-decoration: underline;
|
|
}
|
|
i {
|
|
opacity: 1.0;
|
|
}
|
|
}
|
|
> .#{$xdsoftNamespace}_select {
|
|
border: 1px solid $primaryBorderColor;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 30px;
|
|
z-index: 101;
|
|
display: none;
|
|
background: $primaryBgColor;
|
|
max-height: 160px;
|
|
overflow-y: hidden;
|
|
&.#{$xdsoftNamespace}_monthselect {
|
|
right: -7px;
|
|
}
|
|
&.#{$xdsoftNamespace}_yearselect {
|
|
right: 2px;
|
|
}
|
|
> div > .#{$xdsoftNamespace}_option {
|
|
&:hover {
|
|
color: $primaryBgColor;
|
|
background: $secondaryHoverSelection;
|
|
}
|
|
padding: 2px 10px 2px 5px;
|
|
text-decoration: none !important;
|
|
&.#{$xdsoftNamespace}_current {
|
|
background: $primaryHoverSelection;
|
|
box-shadow: $primarySelection 0 1px 3px 0 inset;
|
|
color: $primaryBgColor;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_month {
|
|
width: 100px;
|
|
text-align: right;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar {
|
|
clear: both;
|
|
}
|
|
.#{$xdsoftNamespace}_year {
|
|
width: 48px;
|
|
margin-left: 5px;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar {
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
td > div {
|
|
padding-right: 5px;
|
|
}
|
|
th {
|
|
height: 25px;
|
|
}
|
|
td, th {
|
|
width: 14.2857142%;
|
|
background: $primaryCellBGColor;
|
|
border: 1px solid $primaryInnerBorderColor;
|
|
color: $primaryCellFontColor;
|
|
font-size: 12px;
|
|
text-align: right;
|
|
vertical-align: middle;
|
|
padding: 0;
|
|
border-collapse: collapse;
|
|
cursor: pointer;
|
|
height: 25px;
|
|
}
|
|
}
|
|
&.#{$xdsoftNamespace}_showweeks .#{$xdsoftNamespace}_calendar {
|
|
td, th {
|
|
width: 12.5%;
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_calendar {
|
|
th {
|
|
background: $primaryHeadBGColor;
|
|
}
|
|
td {
|
|
&.#{$xdsoftNamespace}_today {
|
|
color: $primaryHoverSelection;
|
|
}
|
|
&.#{$xdsoftNamespace}_default, &.#{$xdsoftNamespace}_current {
|
|
background: $primaryHoverSelection;
|
|
box-shadow: $primarySelection 0 1px 3px 0 inset;
|
|
color: $primaryBgColor;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_timepicker .#{$xdsoftNamespace}_time_box > div > div.#{$xdsoftNamespace}_current {
|
|
background: $primaryHoverSelection;
|
|
box-shadow: $primarySelection 0 1px 3px 0 inset;
|
|
color: $primaryBgColor;
|
|
font-weight: 700;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar td {
|
|
&.#{$xdsoftNamespace}_other_month, &.#{$xdsoftNamespace}_disabled {
|
|
opacity: 0.5;
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_time_box > div > div.#{$xdsoftNamespace}_disabled {
|
|
opacity: 0.5;
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
|
}
|
|
.#{$xdsoftNamespace}_calendar td {
|
|
&.#{$xdsoftNamespace}_other_month.#{$xdsoftNamespace}_disabled {
|
|
opacity: 0.2;
|
|
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
|
|
}
|
|
&:hover {
|
|
color: $primaryBgColor;
|
|
background: $secondaryHoverSelection !important;
|
|
box-shadow: none !important;
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_timepicker .#{$xdsoftNamespace}_time_box > div > div:hover {
|
|
color: $primaryBgColor;
|
|
background: $secondaryHoverSelection !important;
|
|
box-shadow: none !important;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar td.#{$xdsoftNamespace}_disabled:hover, .#{$xdsoftNamespace}_timepicker .#{$xdsoftNamespace}_time_box > div > div.#{$xdsoftNamespace}_disabled:hover {
|
|
color: inherit !important;
|
|
background: inherit !important;
|
|
box-shadow: inherit !important;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar th {
|
|
font-weight: 700;
|
|
text-align: center;
|
|
color: $primaryHeaderFontColor;
|
|
cursor: default;
|
|
}
|
|
.#{$xdsoftNamespace}_copyright {
|
|
color: $primaryBorderColor !important;
|
|
font-size: 10px;
|
|
clear: both;
|
|
float: none;
|
|
margin-left: 8px;
|
|
a {
|
|
color: $primaryCwLinkColor !important;
|
|
&:hover {
|
|
color: $primaryCwHoverLinkColor !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$xdsoftNamespace}_time_box {
|
|
position: relative;
|
|
border: 1px solid $primaryBorderColor;
|
|
}
|
|
|
|
.#{$xdsoftNamespace}_scrollbar {
|
|
> .#{$xdsoftNamespace}_scroller {
|
|
background: $primaryBorderColor !important;
|
|
height: 20px;
|
|
border-radius: 3px;
|
|
}
|
|
position: absolute;
|
|
width: 7px;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.#{$xdsoftNamespace}_scroller_box {
|
|
position: relative;
|
|
}
|
|
|
|
.#{$xdsoftNamespace}_datetimepicker.#{$xdsoftNamespace}_dark {
|
|
box-shadow: 0 5px 15px -5px rgba(255, 255, 255, 0.506);
|
|
background: $secondaryBgColor;
|
|
border-bottom: 1px solid $secondaryBottomBorderColor;
|
|
border-left: 1px solid $secondaryBorderColor;
|
|
border-right: 1px solid $secondaryBorderColor;
|
|
border-top: 1px solid $secondaryBorderColor;
|
|
color: $primaryBorderColor;
|
|
.#{$xdsoftNamespace}_timepicker .#{$xdsoftNamespace}_time_box {
|
|
border-bottom: 1px solid $secondaryInnerBorderColor;
|
|
> div > div {
|
|
background: $secondaryCellBGColor;
|
|
border-top: 1px solid $secondaryInnerBorderColor;
|
|
color: $secondaryCellFontColor;
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_label {
|
|
background-color: $secondaryBgColor;
|
|
> .#{$xdsoftNamespace}_select {
|
|
border: 1px solid $secondaryBorderColor;
|
|
background: $secondaryBgColor;
|
|
> div > .#{$xdsoftNamespace}_option {
|
|
&:hover {
|
|
color: $secondaryBgColor;
|
|
background: $primaryBoxShadow;
|
|
}
|
|
&.#{$xdsoftNamespace}_current {
|
|
background: $secondarySelection;
|
|
box-shadow: $secondaryBoxShadow 0 1px 3px 0 inset;
|
|
color: $secondaryBgColor;
|
|
}
|
|
}
|
|
}
|
|
i {
|
|
background-image: $glyphBackground;
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_prev, .#{$xdsoftNamespace}_next, .#{$xdsoftNamespace}_today_button {
|
|
background-image: $glyphBackground;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar {
|
|
td {
|
|
background: $secondaryCellBGColor;
|
|
border: 1px solid $secondaryInnerBorderColor;
|
|
color: $secondaryCellFontColor;
|
|
}
|
|
th {
|
|
border: 1px solid $secondaryInnerBorderColor;
|
|
color: $secondaryCellFontColor;
|
|
background: $secondaryHeadBGColor;
|
|
}
|
|
td {
|
|
&.#{$xdsoftNamespace}_today {
|
|
color: $secondarySelection;
|
|
}
|
|
&.#{$xdsoftNamespace}_default, &.#{$xdsoftNamespace}_current {
|
|
background: $secondarySelection;
|
|
box-shadow: $secondaryBoxShadow 0 1px 3px 0 inset;
|
|
color: $secondaryBgColor;
|
|
}
|
|
}
|
|
}
|
|
.#{$xdsoftNamespace}_timepicker .#{$xdsoftNamespace}_time_box > div > div.#{$xdsoftNamespace}_current {
|
|
background: $secondarySelection;
|
|
box-shadow: $secondaryBoxShadow 0 1px 3px 0 inset;
|
|
color: $secondaryBgColor;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar td:hover, .#{$xdsoftNamespace}_timepicker .#{$xdsoftNamespace}_time_box > div > div:hover {
|
|
color: $secondaryBgColor !important;
|
|
background: $primaryBoxShadow !important;
|
|
}
|
|
.#{$xdsoftNamespace}_calendar th {
|
|
color: $secondaryHeaderFontColor;
|
|
}
|
|
.#{$xdsoftNamespace}_copyright {
|
|
color: $secondaryBorderColor !important;
|
|
a {
|
|
color: $secondaryCwLinkColor !important;
|
|
&:hover {
|
|
color: $secondaryCwHoverLinkColor !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.#{$xdsoftNamespace}_dark {
|
|
.#{$xdsoftNamespace}_time_box {
|
|
border: 1px solid $secondaryBorderColor;
|
|
}
|
|
.#{$xdsoftNamespace}_scrollbar > .#{$xdsoftNamespace}_scroller {
|
|
background: $secondaryBorderColor !important;
|
|
}
|
|
} |