patternfly
Version:
This reference implementation of PatternFly is based on [Bootstrap v3](http://getbootstrap.com/). Think of PatternFly as a "skinned" version of Bootstrap with additional components and customizations.
118 lines (115 loc) • 3.18 kB
text/less
//
// Bootstrap-Datepicker
// --------------------------------------------------
.bootstrap-datepicker.form-control[readonly] {
background-color: @input-bg;
border-color: @input-border ;
color: @input-color;
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
.form-control-focus();
&:focus {
border-color: @input-border-focus ;
.has-error & {
border-color: darken(@state-danger-text, 10%);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@state-danger-text, 20%);
.box-shadow(@shadow);
}
.has-success & {
border-color: darken(@state-success-text, 10%);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@state-success-text, 20%);
.box-shadow(@shadow);
}
.has-warning & {
border-color: darken(@state-warning-text, 10%);
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@state-warning-text, 20%);
.box-shadow(@shadow);
}
}
&:hover {
border-color: @input-border-hover ;
.has-error & {
border-color: darken(@state-danger-text, 10%) ;
}
.has-success & {
border-color: darken(@state-success-text, 10%) ;
}
.has-warning & {
border-color: darken(@state-warning-text, 10%) ;
}
}
.has-error & {
border-color: @state-danger-text ;
}
.has-success & {
border-color: @state-success-text ;
}
.has-warning & {
border-color: @state-warning-text ;
}
}
.datepicker {
border-radius: @border-radius-base;
.datepicker-switch, tfoot .clear, tfoot .today {
font-size: @font-size-large;
font-weight: 500;
}
.next, .prev {
font-weight: 500;
}
table tr {
td, th {
border-radius: @border-radius-base;
}
td {
&.active.active,
&.active.active:hover,
&.active.active.disabled,
&.active.active.disabled:hover {
background: @dropdown-link-active-bg ;
color: #fff ;
text-shadow: none;
}
&.day:hover, &.day.focused {
background: @dropdown-link-hover-bg;
}
&.selected,
&.selected:hover,
&.selected.disabled,
&.selected.disabled:hover {
text-shadow: none;
}
span {
border-radius: @border-radius-base;
&.active.active,
&.active.active:hover,
&.active.active.disabled,
&.active.active.disabled:hover {
background: @dropdown-link-active-bg;
text-shadow: none;
}
&:hover {
background: @dropdown-link-hover-bg;
}
}
}
}
thead tr:first-child th, tfoot tr th {
&:hover {
background: @dropdown-link-hover-bg;
}
}
}
.input-daterange {
input:first-child {
border-radius: @border-radius-base 0 0 @border-radius-base;
}
input:last-child {
border-radius: 0 @border-radius-base @border-radius-base 0;
}
.input-group-addon {
background-color: @input-group-addon-bg;
border-color: @input-group-addon-border-color;
line-height: @line-height-base;
padding: @padding-base-vertical @padding-base-horizontal;
}
}