Skip to content

Commit

Permalink
🐛 bug(lists.scss): Fixed issue where mobile devices could not select …
Browse files Browse the repository at this point in the history
…from CSS-only dropdown menu
  • Loading branch information
Spiderpig86 committed Aug 9, 2020
1 parent 619ca78 commit 54f17c3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -2947,6 +2947,12 @@ a button,
--font-size-l: 1.35rem;
--font-size-xl: 1.75rem; }

/* Spacing */
/* Fonts */
/* Grid Count */
/* Grid Percents */
/* Tab Sizes */
/* Media Queries */
/* LISTS */
ul,
ol {
Expand Down Expand Up @@ -3093,6 +3099,11 @@ ul {
overflow: hidden;
-webkit-transition: all var(--animation-duration);
transition: all var(--animation-duration); }
@media screen and (max-width: 768px) {
.list-dropdown .menu {
height: 0;
padding: 0 !important;
position: relative; } }
.list-dropdown.dropdown-right .menu {
left: auto;
right: 0; }
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/core/lists.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "./theme.scss";
@import "../../helpers/_size";
/* LISTS */

ul,
Expand Down Expand Up @@ -194,6 +195,12 @@ ul {
overflow: hidden;
-webkit-transition: all var(--animation-duration);
transition: all var(--animation-duration);

@include screen-below('tablet') {
height: 0;
padding: 0 !important;
position: relative;
}
}

&.dropdown-right .menu {
Expand Down

0 comments on commit 54f17c3

Please sign in to comment.