Skip to content

Commit

Permalink
Compiled sass&minified js.
Browse files Browse the repository at this point in the history
  • Loading branch information
burka committed Jun 18, 2016
1 parent d40ec5e commit 68dd91a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 32 deletions.
39 changes: 13 additions & 26 deletions dist/ng-flat-datepicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,18 @@
}

.ng-flat-datepicker table caption .ng-flat-datepicker-header-wrapper {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: justify;
justify-content: space-between;
-ms-flex-align: center;
align-items: center;
height: 65px;
color: white;
font-size: 22px;
}

.ng-flat-datepicker table caption .ng-flat-datepicker-header-wrapper .ng-flat-datepicker-header-year {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-top: 1px;
Expand Down Expand Up @@ -118,8 +114,7 @@
user-select: none;
}

.ng-flat-datepicker table tbody tr td.day-item,
.ng-flat-datepicker table tbody tr td.disabled {
.ng-flat-datepicker table tbody tr td.day-item, .ng-flat-datepicker table tbody tr td.disabled {
padding: 0;
height: 37.42857px;
line-height: 37.42857px;
Expand All @@ -128,36 +123,30 @@
color: #8d9ca4;
}

.ng-flat-datepicker table tbody tr td.day-item.day,
.ng-flat-datepicker table tbody tr td.disabled.day {
.ng-flat-datepicker table tbody tr td.day-item.day, .ng-flat-datepicker table tbody tr td.disabled.day {
color: #384146;
}

.ng-flat-datepicker table tbody tr td.day-item.isToday,
.ng-flat-datepicker table tbody tr td.disabled.isToday {
.ng-flat-datepicker table tbody tr td.day-item.isToday, .ng-flat-datepicker table tbody tr td.disabled.isToday {
color: #1b1b1b;
font-weight: 700;
}

.ng-flat-datepicker table tbody tr td.day-item.isSelected,
.ng-flat-datepicker table tbody tr td.disabled.isSelected {
.ng-flat-datepicker table tbody tr td.day-item.isSelected, .ng-flat-datepicker table tbody tr td.disabled.isSelected {
background-color: #0093de;
color: #f5f5f5 !important;
}

.ng-flat-datepicker table tbody tr td.day-item.isInMonth,
.ng-flat-datepicker table tbody tr td.disabled.isInMonth {
.ng-flat-datepicker table tbody tr td.day-item.isInMonth, .ng-flat-datepicker table tbody tr td.disabled.isInMonth {
color: #384146;
}

.ng-flat-datepicker table tbody tr td.day-item.isDisabled,
.ng-flat-datepicker table tbody tr td.disabled.isDisabled {
.ng-flat-datepicker table tbody tr td.day-item.isDisabled, .ng-flat-datepicker table tbody tr td.disabled.isDisabled {
cursor: default;
color: #e2e6e8;
}

.ng-flat-datepicker table tbody tr td.day-item.isDisabled:hover,
.ng-flat-datepicker table tbody tr td.disabled.isDisabled:hover {
.ng-flat-datepicker table tbody tr td.day-item.isDisabled:hover, .ng-flat-datepicker table tbody tr td.disabled.isDisabled:hover {
color: #e2e6e8 !important;
background-color: transparent;
}
Expand All @@ -183,8 +172,7 @@
}

.ng-flat-datepicker-arrow.ng-flat-datepicker-arrow-left svg {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
transform: rotate(180deg);
}

.ng-flat-datepicker-custom-select-title {
Expand All @@ -197,8 +185,7 @@
cursor: pointer;
}

.ng-flat-datepicker-custom-select-title.selected,
.ng-flat-datepicker-custom-select-title:hover {
.ng-flat-datepicker-custom-select-title.selected, .ng-flat-datepicker-custom-select-title:hover {
border-color: white !important;
}

Expand Down
6 changes: 2 additions & 4 deletions dist/ng-flat-datepicker.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(function() {

'use strict';

/**
* @desc Datepicker directive
* @example <ng-datepicker></ng-datepicker>
*/

ngFlatDatepickerDirective.$inject = ["$templateCache", "$compile", "$document", "datesCalculator"];
angular
.module('ngFlatDatepicker', [])
.directive('ngFlatDatepicker', ngFlatDatepickerDirective);
Expand Down Expand Up @@ -204,12 +204,10 @@
}
};
}
ngFlatDatepickerDirective.$inject = ["$templateCache", "$compile", "$document", "datesCalculator"];

})();

(function(){

'use strict';

/**
Expand Down Expand Up @@ -254,4 +252,4 @@

})();

angular.module("ngFlatDatepicker").run(["$templateCache", function($templateCache) {$templateCache.put("datepicker.html","<div class=\"ng-flat-datepicker\" ng-show=\"pickerDisplayed\">\n <div class=\"ng-flat-datepicker-table-header-bckgrnd\"></div>\n <table>\n <caption>\n <div class=\"ng-flat-datepicker-header-wrapper\">\n <span class=\"ng-flat-datepicker-arrow ng-flat-datepicker-arrow-left\" ng-click=\"prevMonth()\">\n <svg version=\"1.0\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"50\" y=\"50\" viewBox=\"0 0 100 100\" xml:space=\"preserve\">\n <polygon points=\"64.8,36.2 35.2,6.5 22.3,19.4 51.9,49.1 22.3,78.8 35.2,91.7 77.7,49.1\" />\n </svg>\n </span>\n <div class=\"ng-flat-datepicker-header-year\">\n <div class=\"ng-flat-datepicker-custom-select-box\" outside-click=\"showMonthsList = false\">\n <span class=\"ng-flat-datepicker-custom-select-title ng-flat-datepicker-month-name\" ng-click=\"showMonthsList = !showMonthsList; showYearsList = false\" ng-class=\"{selected: showMonthsList }\">{{ calendarCursor.isValid() ? calendarCursor.format(\'MMMM\') : \"\" }}</span>\n <div class=\"ng-flat-datepicker-custom-select\" ng-show=\"showMonthsList\">\n <span ng-repeat=\"monthName in monthsList\" ng-click=\"selectMonth(monthName); showMonthsList = false\">{{ monthName }}</span>\n </div>\n </div>\n <div class=\"ng-flat-datepicker-custom-select-box\" outside-click=\"showYearsList = false\">\n <span class=\"ng-flat-datepicker-custom-select-title\" ng-click=\"showYearsList = !showYearsList; showMonthsList = false\" ng-class=\"{selected: showYearsList }\">{{ calendarCursor.isValid() ? calendarCursor.format(\'YYYY\') : \"\" }}</span>\n <div class=\"ng-flat-datepicker-custom-select\" ng-show=\"showYearsList\">\n <span ng-repeat=\"yearNumber in yearsList\" ng-click=\"selectYear(yearNumber)\">{{ yearNumber }}</span>\n </div>\n </div>\n </div>\n <span class=\"ng-flat-datepicker-arrow ng-flat-datepicker-arrow-right\" ng-click=\"nextMonth()\">\n <svg version=\"1.0\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"50\" y=\"50\" viewBox=\"0 0 100 100\" xml:space=\"preserve\">\n <polygon points=\"64.8,36.2 35.2,6.5 22.3,19.4 51.9,49.1 22.3,78.8 35.2,91.7 77.7,49.1\" />\n </svg>\n </span>\n </div>\n </caption>\n <tbody>\n <tr class=\"days-head\">\n <td class=\"day-head\" ng-repeat=\"dayName in daysNameList\">{{ dayName }}</td>\n </tr>\n <tr class=\"days\" ng-repeat=\"week in currentWeeks\">\n <td ng-repeat=\"day in week\" ng-click=\"selectDay(day)\" ng-class=\"[\'day-item\', { \'isToday\': day.isToday, \'isInMonth\': day.isInMonth, \'isDisabled\': !day.isSelectable, \'isSelected\': day.isSelected }]\">{{ day.date | date:\'dd\' }}</td>\n </tr>\n </tbody>\n </table>\n</div>\n");}]);
angular.module('ngFlatDatepicker').run(['$templateCache', function($templateCache) {$templateCache.put('datepicker.html','<div class="ng-flat-datepicker" ng-show="pickerDisplayed">\n <div class="ng-flat-datepicker-table-header-bckgrnd"></div>\n <table>\n <caption>\n <div class="ng-flat-datepicker-header-wrapper">\n <span class="ng-flat-datepicker-arrow ng-flat-datepicker-arrow-left" ng-click="prevMonth()">\n <svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="50" y="50" viewBox="0 0 100 100" xml:space="preserve">\n <polygon points="64.8,36.2 35.2,6.5 22.3,19.4 51.9,49.1 22.3,78.8 35.2,91.7 77.7,49.1" />\n </svg>\n </span>\n <div class="ng-flat-datepicker-header-year">\n <div class="ng-flat-datepicker-custom-select-box" outside-click="showMonthsList = false">\n <span class="ng-flat-datepicker-custom-select-title ng-flat-datepicker-month-name" ng-click="showMonthsList = !showMonthsList; showYearsList = false" ng-class="{selected: showMonthsList }">{{ calendarCursor.isValid() ? calendarCursor.format(\'MMMM\') : "" }}</span>\n <div class="ng-flat-datepicker-custom-select" ng-show="showMonthsList">\n <span ng-repeat="monthName in monthsList" ng-click="selectMonth(monthName); showMonthsList = false">{{ monthName }}</span>\n </div>\n </div>\n <div class="ng-flat-datepicker-custom-select-box" outside-click="showYearsList = false">\n <span class="ng-flat-datepicker-custom-select-title" ng-click="showYearsList = !showYearsList; showMonthsList = false" ng-class="{selected: showYearsList }">{{ calendarCursor.isValid() ? calendarCursor.format(\'YYYY\') : "" }}</span>\n <div class="ng-flat-datepicker-custom-select" ng-show="showYearsList">\n <span ng-repeat="yearNumber in yearsList" ng-click="selectYear(yearNumber)">{{ yearNumber }}</span>\n </div>\n </div>\n </div>\n <span class="ng-flat-datepicker-arrow ng-flat-datepicker-arrow-right" ng-click="nextMonth()">\n <svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="50" y="50" viewBox="0 0 100 100" xml:space="preserve">\n <polygon points="64.8,36.2 35.2,6.5 22.3,19.4 51.9,49.1 22.3,78.8 35.2,91.7 77.7,49.1" />\n </svg>\n </span>\n </div>\n </caption>\n <tbody>\n <tr class="days-head">\n <td class="day-head" ng-repeat="dayName in daysNameList">{{ dayName }}</td>\n </tr>\n <tr class="days" ng-repeat="week in currentWeeks">\n <td ng-repeat="day in week" ng-click="selectDay(day)" ng-class="[\'day-item\', { \'isToday\': day.isToday, \'isInMonth\': day.isInMonth, \'isDisabled\': !day.isSelectable, \'isSelected\': day.isSelected }]">{{ day.date | date:\'dd\' }}</td>\n </tr>\n </tbody>\n </table>\n</div>\n');}]);
Loading

0 comments on commit 68dd91a

Please sign in to comment.