datetimepicker/dist/stylesheets/jquery.datetimepicker.scss
2015-01-28 17:52:28 -06:00

470 lines
13 KiB
SCSS

@import "options";
.xdsoft_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*/
.xdsoft_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;
}
}
.xdsoft_datetimepicker {
&.xdsoft_inline {
display: inline-block;
position: static;
box-shadow: none;
}
* {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
margin: 0;
}
.xdsoft_datepicker, .xdsoft_timepicker {
display: none;
}
.xdsoft_datepicker.active, .xdsoft_timepicker.active {
display: block;
}
.xdsoft_datepicker {
width: 224px;
float: left;
margin-left: 8px;
}
&.xdsoft_showweeks .xdsoft_datepicker {
width: 256px;
}
.xdsoft_timepicker {
width: 58px;
float: left;
text-align: center;
margin-left: 8px;
margin-top: 0;
}
.xdsoft_datepicker.active + .xdsoft_timepicker {
margin-top: 8px;
margin-bottom: 3px;
}
.xdsoft_mounthpicker {
position: relative;
text-align: center;
}
.xdsoft_label i, .xdsoft_prev, .xdsoft_next, .xdsoft_today_button {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9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9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC);
}
.xdsoft_label i {
opacity: 0.5;
background-position: -92px -19px;
display: inline-block;
width: 9px;
height: 20px;
vertical-align: middle;
}
.xdsoft_prev {
float: left;
background-position: -20px 0;
}
.xdsoft_today_button {
float: left;
background-position: -70px 0;
margin-left: 5px;
}
.xdsoft_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;
}
.xdsoft_prev, .xdsoft_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;
}
.xdsoft_timepicker {
.xdsoft_prev, .xdsoft_next {
float: none;
background-position: -40px -15px;
height: 15px;
width: 30px;
display: block;
margin-left: 14px;
margin-top: 7px;
}
.xdsoft_prev {
background-position: -40px 0;
margin-bottom: 7px;
margin-top: 0;
}
.xdsoft_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;
}
}
}
}
.xdsoft_today_button:hover, .xdsoft_next:hover, .xdsoft_prev:hover {
opacity: 1;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}
.xdsoft_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;
}
}
> .xdsoft_select {
border: 1px solid $primaryBorderColor;
position: absolute;
right: 0;
top: 30px;
z-index: 101;
display: none;
background: $primaryBgColor;
max-height: 160px;
overflow-y: hidden;
&.xdsoft_monthselect {
right: -7px;
}
&.xdsoft_yearselect {
right: 2px;
}
> div > .xdsoft_option {
&:hover {
color: $primaryBgColor;
background: $secondaryHoverSelection;
}
padding: 2px 10px 2px 5px;
text-decoration: none !important;
&.xdsoft_current {
background: $primaryHoverSelection;
box-shadow: $primarySelection 0 1px 3px 0 inset;
color: $primaryBgColor;
font-weight: 700;
}
}
}
}
.xdsoft_month {
width: 100px;
text-align: right;
}
.xdsoft_calendar {
clear: both;
}
.xdsoft_year {
width: 48px;
margin-left: 5px;
}
.xdsoft_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;
}
}
&.xdsoft_showweeks .xdsoft_calendar {
td, th {
width: 12.5%;
}
}
.xdsoft_calendar {
th {
background: $primaryHeadBGColor;
}
td {
&.xdsoft_today {
color: $primaryHoverSelection;
}
&.xdsoft_default, &.xdsoft_current {
background: $primaryHoverSelection;
box-shadow: $primarySelection 0 1px 3px 0 inset;
color: $primaryBgColor;
font-weight: 700;
}
}
}
.xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
background: $primaryHoverSelection;
box-shadow: $primarySelection 0 1px 3px 0 inset;
color: $primaryBgColor;
font-weight: 700;
}
.xdsoft_calendar td {
&.xdsoft_other_month, &.xdsoft_disabled {
opacity: 0.5;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}
}
.xdsoft_time_box > div > div.xdsoft_disabled {
opacity: 0.5;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}
.xdsoft_calendar td {
&.xdsoft_other_month.xdsoft_disabled {
opacity: 0.2;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
}
&:hover {
color: $primaryBgColor;
background: $secondaryHoverSelection !important;
box-shadow: none !important;
}
}
.xdsoft_timepicker .xdsoft_time_box > div > div:hover {
color: $primaryBgColor;
background: $secondaryHoverSelection !important;
box-shadow: none !important;
}
.xdsoft_calendar td.xdsoft_disabled:hover, .xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_disabled:hover {
color: inherit !important;
background: inherit !important;
box-shadow: inherit !important;
}
.xdsoft_calendar th {
font-weight: 700;
text-align: center;
color: $primaryHeaderFontColor;
cursor: default;
}
.xdsoft_copyright {
color: $primaryBorderColor !important;
font-size: 10px;
clear: both;
float: none;
margin-left: 8px;
a {
color: $primaryCwLinkColor !important;
&:hover {
color: $primaryCwHoverLinkColor !important;
}
}
}
}
.xdsoft_time_box {
position: relative;
border: 1px solid $primaryBorderColor;
}
.xdsoft_scrollbar {
> .xdsoft_scroller {
background: $primaryBorderColor !important;
height: 20px;
border-radius: 3px;
}
position: absolute;
width: 7px;
right: 0;
top: 0;
bottom: 0;
cursor: pointer;
}
.xdsoft_scroller_box {
position: relative;
}
.xdsoft_datetimepicker.xdsoft_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;
.xdsoft_timepicker .xdsoft_time_box {
border-bottom: 1px solid $secondaryInnerBorderColor;
> div > div {
background: $secondaryCellBGColor;
border-top: 1px solid $secondaryInnerBorderColor;
color: $secondaryCellFontColor;
}
}
.xdsoft_label {
background-color: $secondaryBgColor;
> .xdsoft_select {
border: 1px solid $secondaryBorderColor;
background: $secondaryBgColor;
> div > .xdsoft_option {
&:hover {
color: $secondaryBgColor;
background: $primaryBoxShadow;
}
&.xdsoft_current {
background: $secondarySelection;
box-shadow: $secondaryBoxShadow 0 1px 3px 0 inset;
color: $secondaryBgColor;
}
}
}
i {
background-image: $glyphBackground;
}
}
.xdsoft_prev, .xdsoft_next, .xdsoft_today_button {
background-image: $glyphBackground;
}
.xdsoft_calendar {
td {
background: $secondaryCellBGColor;
border: 1px solid $secondaryInnerBorderColor;
color: $secondaryCellFontColor;
}
th {
border: 1px solid $secondaryInnerBorderColor;
color: $secondaryCellFontColor;
background: $secondaryHeadBGColor;
}
td {
&.xdsoft_today {
color: $secondarySelection;
}
&.xdsoft_default, &.xdsoft_current {
background: $secondarySelection;
box-shadow: $secondaryBoxShadow 0 1px 3px 0 inset;
color: $secondaryBgColor;
}
}
}
.xdsoft_timepicker .xdsoft_time_box > div > div.xdsoft_current {
background: $secondarySelection;
box-shadow: $secondaryBoxShadow 0 1px 3px 0 inset;
color: $secondaryBgColor;
}
.xdsoft_calendar td:hover, .xdsoft_timepicker .xdsoft_time_box > div > div:hover {
color: $secondaryBgColor !important;
background: $primaryBoxShadow !important;
}
.xdsoft_calendar th {
color: $secondaryHeaderFontColor;
}
.xdsoft_copyright {
color: $secondaryBorderColor !important;
a {
color: $secondaryCwLinkColor !important;
&:hover {
color: $secondaryCwHoverLinkColor !important;
}
}
}
}
.xdsoft_dark {
.xdsoft_time_box {
border: 1px solid $secondaryBorderColor;
}
.xdsoft_scrollbar > .xdsoft_scroller {
background: $secondaryBorderColor !important;
}
}