Skip to content

Commit

Permalink
Changed styles for focusing and hovering of dropdown list items.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathrin84 authored and abias committed Nov 23, 2020
1 parent e0da32c commit dc4dd46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2020-10-14 - Changed styles for focusing and hovering of dropdown list items.
* 2020-10-09 - Prepare compatibility for Moodle 3.9.

### v3.8-r2
Expand Down
9 changes: 9 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
margin: 0 !important;
}

/* Override Moodle core's styling, because the underline should not appear within the dropdown list. */
.editor_atto_menu .atto_styles_button .dropdown-menu > li:focus,
.editor_atto_menu .atto_styles_button .dropdown-menu > li:hover {
background-color: #f8f9fa;
}
.editor_atto_menu .atto_styles_button .dropdown-menu > li > a:focus {
box-shadow: none;
}

/* Disabled inline style menu item visually */
.editor_atto_menu .disableinline .atto_styles_button .inlinestyle {
cursor: default;
Expand Down

0 comments on commit dc4dd46

Please sign in to comment.