Skip to content
This repository was archived by the owner on Mar 2, 2018. It is now read-only.

Commit ea9bd3e

Browse files
committed
removed the crazy star-selector rule from the styles
1 parent d313093 commit ea9bd3e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/datetime-picker.component.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,6 @@ declare var moment: any;
140140
`,
141141
styles: [
142142
`
143-
* {
144-
box-sizing: content-box;
145-
/*
146-
This is necessary because the rest of the styles assume it
147-
and CSS "frameworks" explicitly set the box-sizing to border-box,
148-
breaking the layout here.
149-
*/
150-
}
151-
152143
@keyframes slideDown {
153144
0% {
154145
transform: translateY(-10px);
@@ -183,6 +174,7 @@ declare var moment: any;
183174
}
184175
.ngui-datetime-picker .days {
185176
width: 210px; /* 30 x 7 days */
177+
box-sizing: content-box;
186178
}
187179
.ngui-datetime-picker .close-button {
188180
position: absolute;
@@ -191,6 +183,7 @@ declare var moment: any;
191183
right: 0;
192184
z-index: 1;
193185
padding: 0 5px;
186+
box-sizing: content-box;
194187
}
195188
.ngui-datetime-picker .close-button:before {
196189
content: 'X';
@@ -218,6 +211,7 @@ declare var moment: any;
218211
cursor: pointer;
219212
width: 25px;
220213
text-align: center;
214+
box-sizing: content-box;
221215
}
222216
.ngui-datetime-picker > .month > .prev_next:hover {
223217
background-color: #333;
@@ -241,18 +235,19 @@ declare var moment: any;
241235
text-align: right;
242236
width: 21px;
243237
vertical-align: top;
238+
box-sizing: content-box;
244239
}
245240
246241
.ngui-datetime-picker .days {
247242
display: inline-block;
248243
width: 210px; /* 30 x 7 */
249244
text-align: center;
250245
padding: 0 10px;
246+
box-sizing: content-box;
251247
}
252248
.ngui-datetime-picker .days .day-of-week,
253249
.ngui-datetime-picker .days .day {
254250
box-sizing: border-box;
255-
-moz-box-sizing: border-box;
256251
border: 1px solid transparent;
257252
width: 30px;
258253
line-height: 28px;
@@ -328,6 +323,7 @@ declare var moment: any;
328323
display: inline-block;
329324
width: 45px;
330325
vertical-align: top;
326+
box-sizing: content-box;
331327
}
332328
.closing-layer {
333329
display: block;

0 commit comments

Comments
 (0)