From 9d17347383188dc70701b3fc681b0bc7d8abdc9e Mon Sep 17 00:00:00 2001 From: Kevin O'Leary Date: Tue, 13 Sep 2016 11:20:55 -0700 Subject: [PATCH] alt input style and design tweaks --- lib/datepicker.component.css | 4 ++-- lib/datepicker.component.js | 10 +++++++++- lib/datepicker.component.js.map | 2 +- lib/datepicker.component.ts | 9 +++++++-- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/lib/datepicker.component.css b/lib/datepicker.component.css index 4515453..16677e2 100644 --- a/lib/datepicker.component.css +++ b/lib/datepicker.component.css @@ -1,5 +1,6 @@ .datepicker { position: relative; + display: inline-block; color: #2b2b2b; font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Calibri', 'Roboto'; } @@ -11,6 +12,7 @@ height: 24.25em; width: 20.5em; z-index: 1000; + background-color: #ffffff; color: #333333; box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); cursor: default; @@ -110,9 +112,7 @@ .datepicker__input { font-size: 14px; - color: #2b2b2b; outline: none; - border: 1px solid #dadada; border-radius: 0.1rem; padding: .2em .6em; } diff --git a/lib/datepicker.component.js b/lib/datepicker.component.js index ea6cd0c..8982624 100644 --- a/lib/datepicker.component.js +++ b/lib/datepicker.component.js @@ -22,9 +22,10 @@ let DatepickerComponent = class DatepickerComponent { 'black': '#333333', 'blue': '#1285bf', 'lightGrey': '#f1f1f1', - 'white': '#fff' + 'white': '#ffffff' }; this.accentColor = this.colors['blue']; + this.altInputStyle = false; // time this.calendar = new calendar_js_1.Calendar(); this.dayNames = ['S', 'M', 'T', 'W', 'T', 'F', 'S']; @@ -190,6 +191,10 @@ __decorate([ core_1.Input(), __metadata('design:type', String) ], DatepickerComponent.prototype, "accentColor", void 0); +__decorate([ + core_1.Input(), + __metadata('design:type', Boolean) +], DatepickerComponent.prototype, "altInputStyle", void 0); __decorate([ core_1.Input(), __metadata('design:type', Date) @@ -252,6 +257,9 @@ DatepickerComponent = __decorate([ >