Skip to content

Commit faccff3

Browse files
committed
fix button dropdown whitespace issue in safari
1 parent 4f3fe84 commit faccff3

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

assets/sass/components/_dropdown.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
}
9090

9191
.dropdown-toggle-btn {
92+
margin-right: 1px;
93+
margin-left: 1px;
9294
padding-right: $grid-gutter;
9395
padding-left: $grid-gutter;
9496
position: relative;
@@ -99,18 +101,17 @@
99101
color: $black-text;
100102
}
101103
~ .dropdown-menu {
102-
min-width: 101%;
103-
min-width: calc(100% + 2px);
104+
min-width: 100%;
104105
padding-top: ($btn-height + $margin-base + ($nav-height - $btn-height)) !important;
105106
// position
106107
top: ($margin-base * -1 + ($nav-height - $btn-height) / -2);
107-
left: -1px;
108+
left: 0;
108109
transform: scale(1, 0);
109110
&.dropdown-menu-right,
110111
.dropdown.pull-right &,
111112
.nav.pull-right & {
112113
// position
113-
right: -1px;
114+
right: 0;
114115
left: auto;
115116
}
116117
}

css/base.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5923,6 +5923,8 @@ pre code {
59235923
}
59245924

59255925
.dropdown-toggle-btn {
5926+
margin-right: 1px;
5927+
margin-left: 1px;
59265928
padding-right: 16px;
59275929
padding-left: 16px;
59285930
position: relative;
@@ -5934,18 +5936,16 @@ pre code {
59345936
color: #212121;
59355937
}
59365938
.dropdown-toggle-btn ~ .dropdown-menu {
5937-
min-width: 101%;
5938-
min-width: -webkit-calc(100% + 2px);
5939-
min-width: calc(100% + 2px);
5939+
min-width: 100%;
59405940
padding-top: 56px !important;
59415941
top: -14px;
5942-
left: -1px;
5942+
left: 0;
59435943
-webkit-transform: scale(1, 0);
59445944
-ms-transform: scale(1, 0);
59455945
transform: scale(1, 0);
59465946
}
59475947
.dropdown-toggle-btn ~ .dropdown-menu.dropdown-menu-right, .dropdown.pull-right .dropdown-toggle-btn ~ .dropdown-menu, .nav.pull-right .dropdown-toggle-btn ~ .dropdown-menu {
5948-
right: -1px;
5948+
right: 0;
59495949
left: auto;
59505950
}
59515951

css/base.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.

0 commit comments

Comments
 (0)