Skip to content

Commit

Permalink
fix(es6 import): adding support for es6 imports + switching to webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
crsten committed Nov 27, 2017
1 parent b4641ab commit 44f1b38
Show file tree
Hide file tree
Showing 18 changed files with 9,604 additions and 3,113 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions"]
}
}]
]
}
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Datepickk.js
[![Build Status](https://travis-ci.org/crsten/datepickk.svg?branch=master&style=flat-square)](https://travis-ci.org/crsten/datepickk)
[![npm](https://img.shields.io/npm/dt/datepickk.svg?style=flat-square)](https://www.npmjs.com/package/datepickk)
![Bower](https://img.shields.io/bower/v/datepickk.svg?style=flat-square)
[![npm](https://img.shields.io/npm/v/datepickk.svg?style=flat-square)](https://www.npmjs.com/package/datepickk)
![npm](https://img.shields.io/npm/l/datepickk.svg?style=flat-square)

Expand All @@ -21,10 +20,4 @@ You can get it on npm.
npm install datepickk --save
```

Or bower, too.

```shell
bower install datepickk --save
```

If you're not using either package manager, you can use `datepickk` by downloading the [files in the `dist` folder](dist).
80 changes: 23 additions & 57 deletions dist/datepickk.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,16 @@
position: fixed;
top: 0;
left: 0;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 999;
width: 100%;
height: 100%;
font-family: 'Raleway', 'Open Sans', Arial;
font-family: inherit;
color: #333;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
user-select: none;
}
#Datepickk.MSIE:not(.wrapped):not(.inline) .d-calendar {
height: 560px;
Expand Down Expand Up @@ -150,10 +143,8 @@
#Datepickk.fullscreen .d-calendar input + label {
outline: 1px solid #eaeaea;
box-sizing: border-box;
-ms-flex-align: start !important;
align-items: flex-start !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
align-items: flex-start !important;
justify-content: flex-end !important;
}
#Datepickk.fullscreen .d-calendar input + label text {
padding: 5px 10px 0 0;
Expand All @@ -162,12 +153,9 @@
max-width: none;
}
#Datepickk .d-legend {
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex-pack: center;
justify-content: center;
flex-wrap: wrap;
justify-content: center;
width: 100%;
z-index: 2;
background-color: whitesmoke;
Expand Down Expand Up @@ -209,14 +197,10 @@
position: relative;
max-width: 500px;
max-height: 560px;
display: -ms-flexbox;
display: flex;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-pack: start;
justify-content: flex-start;
-ms-flex-positive: 1;
flex-grow: 1;
flex-direction: column;
justify-content: flex-start;
flex-grow: 1;
z-index: 2;
}
#Datepickk .d-header {
Expand Down Expand Up @@ -301,10 +285,8 @@
content: "";
}
#Datepickk .d-month-picker {
display: -ms-flexbox;
display: flex;
-ms-flex-pack: justify;
justify-content: space-between;
justify-content: space-between;
background-color: rgba(27, 54, 63, 0.9);
height: 0;
overflow: hidden;
Expand Down Expand Up @@ -332,10 +314,8 @@
color: white;
}
#Datepickk .d-year-picker {
display: -ms-flexbox;
display: flex;
-ms-flex-pack: justify;
justify-content: space-between;
justify-content: space-between;
background-color: rgba(27, 54, 63, 0.9);
height: 0;
overflow: hidden;
Expand Down Expand Up @@ -363,22 +343,19 @@
color: white;
}
#Datepickk .d-weekdays {
display: -ms-flexbox;
display: flex;
}
#Datepickk .d-week {
background-color: #E95A5A;
color: white;
display: -ms-flexbox;
display: flex;
width: 100%;
}
#Datepickk .d-week + .d-week {
border-left: 1px solid rgba(255, 255, 255, 0.05);
}
#Datepickk .d-week > div {
-ms-flex-preferred-size: calc(100% / 7);
flex-basis: calc(100% / 7);
flex-basis: calc(100% / 7);
text-align: center;
}
#Datepickk .d-week > div p {
Expand All @@ -391,19 +368,14 @@
}
#Datepickk .d-table {
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-ms-flex: 1;
flex: 1;
flex-wrap: wrap;
flex: 1;
}
#Datepickk .d-table:first-child:nth-last-child(n + 3),
#Datepickk .d-table:first-child:nth-last-child(n + 3) ~ div {
-ms-flex: 0;
flex: 0;
-ms-flex-preferred-size: calc(100% / 3 - 1px);
flex-basis: calc(100% / 3 - 1px);
flex: 0;
flex-basis: calc(100% / 3 - 1px);
/*-1px due to browser render*/
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
Expand All @@ -420,12 +392,9 @@
flex-basis: calc(100% / 7);
-ms-flex-preferred-size: 14.28%;
/*Keep -> IE render fail*/
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s ease, background 0.2s ease, color 0.2s ease;
position: relative;
Expand Down Expand Up @@ -551,12 +520,9 @@
content: none;
}
#Datepickk .d-tables {
display: -ms-flexbox;
display: flex;
-ms-flex: 1;
flex: 1;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
flex: 1;
flex-wrap: wrap;
}
#Datepickk .d-tables:not(.locked) input:not(:checked) + label:not(.hidden):hover {
color: #222;
Expand Down
Loading

0 comments on commit 44f1b38

Please sign in to comment.