Skip to content

Commit 024fe0d

Browse files
committed
💄(Style): IE 11 comptability - removed grid
1 parent 43ee61f commit 024fe0d

File tree

19 files changed

+195
-148
lines changed

19 files changed

+195
-148
lines changed

dist/vue-datepicker.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-datepicker.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-datepicker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-datepicker.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc-src/src/App.vue

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -296,22 +296,14 @@ export default {
296296
@import './styles/abstracts/_index.scss';
297297
298298
#app {
299-
display: grid;
300-
grid-template-columns: 1fr;
301-
302-
@include mq('md') {
303-
grid-template-columns: 180px 1fr;
304-
}
305-
}
306-
307-
.header {
308-
grid-column: 1 / 3;
299+
display: flex;
300+
flex: 1 1 auto;
309301
}
310302
311303
.content {
312304
display: flex;
313305
max-width: 1000px;
314-
margin: 0 auto;
306+
margin: 80px auto;
315307
width: 100vw;
316308
font-size: 1em;
317309
line-height: 1.62;

doc-src/src/components/Header.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ export default {
5757
@import '../styles/abstracts/_index.scss';
5858
5959
.header {
60-
position: sticky;
60+
position: fixed;
6161
top: 0;
6262
left: 0;
63+
right: 0;
6364
display: flex;
6465
justify-content: space-between;
6566
align-items: center;
6667
height: 80px;
67-
width: 100%;
6868
background-color: color(other, blue);
6969
color: #fff;
7070
padding: $gutter*2;

doc-src/src/components/Navigation.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ export default {
3434
@import '../styles/abstracts/_index.scss';
3535
3636
nav {
37-
position: sticky;
37+
position: fixed;
3838
display: none;
3939
left: 0;
40+
top: 0;
41+
margin-top: 80px;
4042
width: 180px;
4143
height: calc(100vh - 80px);
42-
top: 80px;
4344
background-color: white;
4445
border-right: 1px solid #3b454e;
4546
overflow-y: scroll; /* has to be scroll, not auto */

src/components/VDPicker/VDPickerAgenda/VDPickerAgenda.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727

2828
&--bottomsheet {
29-
@include mq($to: phone) {
29+
@include mq($to: 481px) {
3030
width: 100%;
3131

3232
.vd-picker__header {

src/components/VDPicker/VDPickerControls/VDPickerControls.scss

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
position: relative;
66
display: flex;
77
height: get-size(mobile, controls);
8+
min-height: get-size(mobile, controls);
89
text-align: center;
910
position: relative;
1011
width: 100%;
1112

1213
@include mq(tablet) {
1314
height: get-size(desktop, controls);
15+
min-height: get-size(desktop, controls);
1416
}
1517

1618
&-wrapper {
@@ -19,31 +21,55 @@
1921
display: flex;
2022
justify-content: center;
2123
align-items: center;
22-
flex: 1;
24+
flex: 1 1 auto;
2325
}
2426

2527
&-month,
2628
&-year {
2729
position: relative;
2830
display: flex;
29-
flex: 1;
31+
flex: 1 1 auto;
3032
align-items: center;
3133
}
3234

3335
&-month {
3436
justify-content: flex-end;
37+
38+
.vd-picker__controls-label {
39+
right: 0;
40+
41+
.vd-picker--rtl & {
42+
right: auto;
43+
left: 0;
44+
}
45+
}
3546
}
3647

3748
&-year {
3849
justify-content: flex-start;
3950

51+
.vd-picker__controls-label {
52+
left: 0;
53+
54+
.vd-picker--rtl & {
55+
left: auto;
56+
right: 0;
57+
}
58+
}
59+
4060
&.vd-picker__controls-year--center {
41-
justify-content: center;
61+
.vd-picker__controls-label {
62+
left: 50%;
63+
transform: translateX(-50%) translateY(-50%);
64+
}
4265
}
4366
}
4467

4568
&-label {
4669
padding: $gutter $gutter/2;
70+
position: absolute;
71+
top: 50%;
72+
transform: translateY(-50%);
4773

4874
button {
4975
@extend %reset-button;
@@ -74,6 +100,7 @@
74100
position: relative;
75101
flex: 0 0 40px;
76102
height: get-size(mobile, controls);
103+
min-height: get-size(mobile, controls);
77104
width: get-size(mobile, controls);
78105
padding: 0 0 0 $gutter*3;
79106
border: none;
@@ -86,6 +113,7 @@
86113
@include mq(tablet) {
87114
padding: 0 $gutter 0 $gutter;
88115
height: get-size(desktop, controls);
116+
min-height: get-size(desktop, controls);
89117
width: get-size(desktop, controls);
90118
}
91119

src/components/VDPicker/VDPickerOverlay/VDPickerOverlay.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
bottom: 0;
99
background-color: transparentize(black, .5);
1010

11-
@include mq(phone) {
11+
@include mq(481px) {
1212
display: none;
1313
}
1414
}

0 commit comments

Comments
 (0)