Skip to content

Commit

Permalink
MDL-76945 theme: fix the rendering of arrows on dropdown variants
Browse files Browse the repository at this point in the history
  • Loading branch information
jboulen committed Jan 31, 2023
1 parent 880462a commit 07193bc
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
21 changes: 21 additions & 0 deletions theme/boost/scss/moodle/core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2958,6 +2958,27 @@ body.dragging {
font-size: 9px;
width: 9px;
border: 0;

}

.dropleft .dropdown-toggle::before {
border: 0;
content: $fa-var-chevron-left;
@include fa-icon();
font-size: 9px;
margin-left: 0;
margin-right: 4px;
width: 9px;
}

.dropright .dropdown-toggle::after {
border: 0;
content: $fa-var-chevron-right;
}

.dropup .dropdown-toggle::after {
border: 0;
content: $fa-var-chevron-up;
}

.select-menu {
Expand Down
22 changes: 22 additions & 0 deletions theme/boost/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -12270,6 +12270,28 @@ body.dragging .dragging {
width: 9px;
border: 0; }

.dropleft .dropdown-toggle::before {
border: 0;
content: "";
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 9px;
margin-left: 0;
margin-right: 4px;
width: 9px; }

.dropright .dropdown-toggle::after {
border: 0;
content: ""; }

.dropup .dropdown-toggle::after {
border: 0;
content: ""; }

.select-menu li:first-child ul[role="group"] {
padding: 0; }

Expand Down
22 changes: 22 additions & 0 deletions theme/classic/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -12270,6 +12270,28 @@ body.dragging .dragging {
width: 9px;
border: 0; }

.dropleft .dropdown-toggle::before {
border: 0;
content: "";
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 9px;
margin-left: 0;
margin-right: 4px;
width: 9px; }

.dropright .dropdown-toggle::after {
border: 0;
content: ""; }

.dropup .dropdown-toggle::after {
border: 0;
content: ""; }

.select-menu li:first-child ul[role="group"] {
padding: 0; }

Expand Down

0 comments on commit 07193bc

Please sign in to comment.