Skip to content

Commit

Permalink
move timepicker's styles to separate less file (#9117)
Browse files Browse the repository at this point in the history
  • Loading branch information
szydan authored and cjcenizal committed Nov 29, 2016
1 parent 7cdd298 commit 8d64270
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/ui/public/timepicker/timepicker.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,4 @@
<div class="kbn-timepicker">
<style>
.kbn-timepicker [kbn-time-input] {
text-align: center;
}
.kbn-timepicker-modes {
text-transform: capitalize;
}
.kbn-timepicker-section {
float: left;
padding: 0px 15px;
}
.kbn-refresh-section {
float: left;
padding: 0px 15px;
}
.kbn-timepicket-alert {
width: 100px;
}
</style>

<div class="tab-content">

Expand Down
1 change: 1 addition & 0 deletions src/ui/public/timepicker/timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import _ from 'lodash';
import dateMath from '@elastic/datemath';
import moment from 'moment';
import Notifier from 'ui/notify/notifier';
import 'ui/timepicker/timepicker.less';
import 'ui/directives/input_datetime';
import 'ui/directives/inequality';
import 'ui/timepicker/quick_ranges';
Expand Down
19 changes: 19 additions & 0 deletions src/ui/public/timepicker/timepicker.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.kbn-timepicker {
[kbn-time-input] {
text-align: center;
}
.kbn-timepicker-modes {
text-transform: capitalize;
}
.kbn-timepicker-section {
float: left;
padding: 0px 15px;
}
.kbn-refresh-section {
float: left;
padding: 0px 15px;
}
.kbn-timepicket-alert {
width: 100px;
}
}

0 comments on commit 8d64270

Please sign in to comment.