change current time style

This commit is contained in:
t1m0n 2016-03-01 11:50:29 +03:00
parent 2fa2033611
commit 2966825be5
6 changed files with 42 additions and 16 deletions

View File

@ -430,7 +430,24 @@
margin: 0 0 0 10px; }
.datepicker--time-current-colon {
margin: 0 1px; }
margin: 0 1px 3px;
line-height: 1; }
.datepicker--time-current-hours,
.datepicker--time-current-minutes {
line-height: 1;
font-size: 19px;
font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif; }
.datepicker--time-current-ampm {
text-transform: uppercase;
-webkit-align-self: flex-end;
-ms-flex-item-align: end;
align-self: flex-end;
color: #9c9c9c;
margin-left: 6px;
font-size: 11px;
margin-bottom: 1px; }
.datepicker--time-row {
display: -webkit-flex;

File diff suppressed because one or more lines are too long

View File

@ -1808,13 +1808,11 @@ var Datepicker;
' </div>' +
'</div>' +
'<div class="datepicker--time-current">' +
' <i class="datepicker--time-icon"></i>' +
' <span data-max="#{hourMax}" class="datepicker--time-current-hours">#{hourValue}</span>' +
' <span class="datepicker--time-current-hours">#{hourValue}</span>' +
' <span class="datepicker--time-current-colon">:</span>' +
' <span data-max="#{hourMax}" class="datepicker--time-current-minutes">#{minValue}</span>' +
' <span class="datepicker--time-current-minutes">#{minValue}</span>' +
'</div>' +
'</div>',
inputTimeout = 10;
'</div>';
datepicker.Timepicker = function (inst, opts) {
this.d = inst;

File diff suppressed because one or more lines are too long

View File

@ -16,13 +16,11 @@
' </div>' +
'</div>' +
'<div class="datepicker--time-current">' +
' <i class="datepicker--time-icon"></i>' +
' <span data-max="#{hourMax}" class="datepicker--time-current-hours">#{hourValue}</span>' +
' <span class="datepicker--time-current-hours">#{hourValue}</span>' +
' <span class="datepicker--time-current-colon">:</span>' +
' <span data-max="#{hourMax}" class="datepicker--time-current-minutes">#{minValue}</span>' +
' <span class="datepicker--time-current-minutes">#{minValue}</span>' +
'</div>' +
'</div>',
inputTimeout = 10;
'</div>';
datepicker.Timepicker = function (inst, opts) {
this.d = inst;

View File

@ -60,12 +60,24 @@ $rangeThumbBg: #dedede;
}
.datepicker--time-current-colon {
margin: 0 1px;
margin: 0 1px 3px;
line-height: 1;
}
.datepicker--time-current-hours,
.datepicker--time-current-minutes {
line-height: 1;
font-size: 19px;
font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}
.datepicker--time-current-ampm {
text-transform: uppercase;
align-self: flex-end;
color: map_get($textColor, navArrows);
margin-left: 6px;
font-size: 11px;
margin-bottom: 1px;
}
.datepicker--time-row {
@ -184,4 +196,5 @@ $rangeThumbBg: #dedede;
top: calc(50% + 1px);
left: calc(50% - 1px);
}
}
}