mirror of
https://github.com/frappe/air-datepicker.git
synced 2026-01-14 11:01:22 +08:00
change border colors and box-shadow
This commit is contained in:
parent
03e2105231
commit
3d1a6c0b27
12
README.md
12
README.md
@ -1,4 +1,14 @@
|
|||||||
# Datepicker plugin
|
# Air Datepicker
|
||||||
|
|
||||||
|
Lightweight modern jQuery datepicker, built with es5 and css-flexbox. Works in all modern browsers.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
```
|
||||||
|
bower i --save-dev air-datepicker
|
||||||
|
```
|
||||||
|
|
||||||
|
## Demo and docs
|
||||||
|
[Demo]()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
20
dist/css/datepicker.css
vendored
20
dist/css/datepicker.css
vendored
@ -38,7 +38,7 @@
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
z-index: 1; }
|
z-index: 1; }
|
||||||
.datepicker--cell:hover {
|
.datepicker--cell:hover {
|
||||||
background: #eee; }
|
background: #f0f0f0; }
|
||||||
.datepicker--cell.-current- {
|
.datepicker--cell.-current- {
|
||||||
color: #4EB5E6; }
|
color: #4EB5E6; }
|
||||||
.datepicker--cell.-current-:hover {
|
.datepicker--cell.-current-:hover {
|
||||||
@ -124,8 +124,8 @@
|
|||||||
|
|
||||||
.datepicker {
|
.datepicker {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #cccccc;
|
border: 1px solid #dbdbdb;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
font-family: Tahoma, sans-serif;
|
font-family: Tahoma, sans-serif;
|
||||||
@ -178,8 +178,8 @@
|
|||||||
.datepicker--pointer {
|
.datepicker--pointer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-top: 1px solid #cccccc;
|
border-top: 1px solid #dbdbdb;
|
||||||
border-right: 1px solid #cccccc;
|
border-right: 1px solid #dbdbdb;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
z-index: -1; }
|
z-index: -1; }
|
||||||
@ -240,7 +240,7 @@
|
|||||||
-webkit-justify-content: space-between;
|
-webkit-justify-content: space-between;
|
||||||
-ms-flex-pack: justify;
|
-ms-flex-pack: justify;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-bottom: 1px solid #f4f4f4;
|
border-bottom: 1px solid #efefef;
|
||||||
min-height: 32px;
|
min-height: 32px;
|
||||||
padding: 4px; }
|
padding: 4px; }
|
||||||
|
|
||||||
@ -265,7 +265,7 @@
|
|||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none; }
|
user-select: none; }
|
||||||
.datepicker--nav-action:hover {
|
.datepicker--nav-action:hover {
|
||||||
background: #eee; }
|
background: #f0f0f0; }
|
||||||
.datepicker--nav-action.-disabled- {
|
.datepicker--nav-action.-disabled- {
|
||||||
visibility: hidden; }
|
visibility: hidden; }
|
||||||
.datepicker--nav-action svg {
|
.datepicker--nav-action svg {
|
||||||
@ -284,7 +284,7 @@
|
|||||||
color: #9c9c9c;
|
color: #9c9c9c;
|
||||||
margin-left: 5px; }
|
margin-left: 5px; }
|
||||||
.datepicker--nav-title:hover {
|
.datepicker--nav-title:hover {
|
||||||
background: #eee; }
|
background: #f0f0f0; }
|
||||||
.datepicker--nav-title.-disabled- {
|
.datepicker--nav-title.-disabled- {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background: none; }
|
background: none; }
|
||||||
@ -294,7 +294,7 @@
|
|||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
border-top: 1px solid #f4f4f4; }
|
border-top: 1px solid #efefef; }
|
||||||
|
|
||||||
.datepicker--button {
|
.datepicker--button {
|
||||||
color: #4EB5E6;
|
color: #4EB5E6;
|
||||||
@ -315,7 +315,7 @@
|
|||||||
height: 32px; }
|
height: 32px; }
|
||||||
.datepicker--button:hover {
|
.datepicker--button:hover {
|
||||||
color: #4a4a4a;
|
color: #4a4a4a;
|
||||||
background: #eee; }
|
background: #f0f0f0; }
|
||||||
|
|
||||||
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
|
.datepicker--cell-day.-other-month-, .datepicker--cell-year.-other-decade- {
|
||||||
color: #dedede; }
|
color: #dedede; }
|
||||||
|
|||||||
2
dist/css/datepicker.min.css
vendored
2
dist/css/datepicker.min.css
vendored
File diff suppressed because one or more lines are too long
@ -21,13 +21,13 @@ $textColor: (
|
|||||||
|
|
||||||
$bg: (
|
$bg: (
|
||||||
selected: #5cc4ef,
|
selected: #5cc4ef,
|
||||||
hover: #eee
|
hover: #f0f0f0
|
||||||
);
|
);
|
||||||
|
|
||||||
$borderColor: (
|
$borderColor: (
|
||||||
nav: #f4f4f4,
|
nav: #efefef,
|
||||||
inline: #d7d7d7,
|
inline: #d7d7d7,
|
||||||
default: #cccccc
|
default: #dbdbdb
|
||||||
);
|
);
|
||||||
|
|
||||||
$navigationHeight: 32px;
|
$navigationHeight: 32px;
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
.datepicker {
|
.datepicker {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid map_get($borderColor, default);
|
border: 1px solid map_get($borderColor, default);
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
|
box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
|
||||||
border-radius: $datepickerBorderRadius;
|
border-radius: $datepickerBorderRadius;
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
font-family: $fontFamily, sans-serif;
|
font-family: $fontFamily, sans-serif;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user