Files
angular-datepicker/app/styles/style.less
2014-07-28 00:50:03 +08:00

141 lines
2.5 KiB
Plaintext

@import "variables.less";
@import "mixins.less";
[date-picker-wrapper]{
position: relative !important;
display:block;
}
[date-time-append] [date-picker]{
position: relative;
margin-right: -1000px;
margin-bottom: -1000px;
}
[date-range] [date-picker] {
.after.before{
.buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
}
}
[date-picker] {
.user-select(none);
.border-radius(4px);
/* GENERAL */
padding: 4px;
table {
margin: 0;
width: 100%;
}
td, th {
padding: 4px 5px;
text-align: center;
width: 20px;
height: 20px;
.border-radius(4px);
border: none;
background: #fff;
}
.switch{
width: 145px;
}
span {
display: block;
width: 23%;
height: 26px;
line-height: 25px;
float: left;
margin: 1%;
cursor: pointer;
.border-radius(4px);
&:hover {
background: #eee;
}
&.disabled, &.disabled:hover {
background:none;
color: @grayLight;
cursor: default;
}
}
.active , .now{
background: @btnPrimaryBackground;
color: #fff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
&:hover{
background: @btnPrimaryBackgroundHighlight !important;
}
}
.now {
background: @btnDangerBackground;
&:hover{
background: @btnDangerBackgroundHighlight !important;
}
}
.disabled {
background: none;
color: #999999 !important;
cursor: default;
}
/* SPECIFIC */
[ng-switch-when="year"], [ng-switch-when="month"], [ng-switch-when="minutes"]{
span {
height: 54px;
line-height: 54px;
}
}
[ng-switch-when="date"]{
td {
padding: 0;
}
span{
width: 100%;
height: 26px;
line-height: 26px;
}
}
th:hover, [ng-switch-when="date"] td span:hover{
background: @grayLighter;
cursor: pointer;
}
}
[date-picker].dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px;
margin: 2px 0 0;
list-style: none;
background-color: #ffffff;
border: 1px solid #eee;
border: 1px solid rgba(0, 0, 0, 0.05);
*border-right-width: 2px;
*border-bottom-width: 2px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}