Skip to content

Commit

Permalink
MDL-44538 action_menu: rounded corner of highlights only where needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Jul 13, 2018
1 parent a7c1f44 commit c9f5af8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions theme/bootstrapbase/less/moodle/core.less
Original file line number Diff line number Diff line change
Expand Up @@ -2100,12 +2100,6 @@ img#persona_signin {
color: @dropdownLinkColorHover;
background-color: @dropdownLinkBackgroundHover;
}
&:first-child {
.border-top-radius(4px);
}
&:last-child {
.border-bottom-radius(4px);
}
}
a.hidden {
display: none;
Expand All @@ -2120,6 +2114,12 @@ img#persona_signin {
}
> li {
display: block;
&:first-child a {
.border-top-radius(4px);
}
&:last-child a {
.border-bottom-radius(4px);
}
}

/** bottom left of button **/
Expand Down
32 changes: 16 additions & 16 deletions theme/bootstrapbase/style/moodle.css
Original file line number Diff line number Diff line change
Expand Up @@ -4532,22 +4532,6 @@ img#persona_signin {
color: #fff;
background-color: #0070a8;
}
.moodle-actionmenu[data-enhanced].show .menu a:first-child {
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
border-top-right-radius: 4px;
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
border-top-left-radius: 4px;
}
.moodle-actionmenu[data-enhanced].show .menu a:last-child {
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
.moodle-actionmenu[data-enhanced].show .menu a.hidden {
display: none;
}
Expand All @@ -4562,6 +4546,22 @@ img#persona_signin {
.moodle-actionmenu[data-enhanced].show .menu > li {
display: block;
}
.moodle-actionmenu[data-enhanced].show .menu > li:first-child a {
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
border-top-right-radius: 4px;
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
border-top-left-radius: 4px;
}
.moodle-actionmenu[data-enhanced].show .menu > li:last-child a {
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
.moodle-actionmenu[data-enhanced].show .menu.align-tl-bl {
top: 100%;
left: 0;
Expand Down

0 comments on commit c9f5af8

Please sign in to comment.