Skip to content

Commit

Permalink
MDL-41504 ActionMenu: Only modify margins if an actionmenu is in use
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 28, 2013
1 parent ee2d09e commit 1ecde7e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions theme/base/style/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -1495,22 +1495,22 @@ img#persona_signin { cursor: pointer; }
.dir-rtl .moodle-actionmenu[data-enhanced].show .menu {text-align: right;right: auto;left: 0;}
.dir-rtl .moodle-actionmenu[data-enhanced].show .menu .iconsmall {margin-right: 0;margin-left: 8px;}

.menu.align-tl-bl {top: 100%;left: 0;margin-top: 4px;}
.menu.align-tr-bl {top: 100%;right: 100%;}
.menu.align-bl-bl {bottom: 100%;left: 0;}
.menu.align-br-bl {right: 100%;bottom: 100%;}
.menu.align-tl-br {top: 100%;left: 100%;}
.menu.align-tr-br {top: 100%;right: 0;margin-top: 4px;}
.menu.align-bl-br {bottom: 100%;left: 100%;}
.menu.align-br-br {right: 0;bottom: 100%;}
.menu.align-tl-tl {top: 0;left: 0;}
.menu.align-tr-tl {top: 0;right: 100%;margin-right: 4px;}
.menu.align-bl-tl {bottom: 100%;left: 0;margin-bottom: 4px;}
.menu.align-br-tl {right: 100%;bottom: 100%;}
.menu.align-tl-tr {top: 0;left: 100%;margin-left: 4px;}
.menu.align-tr-tr {top: 0;right: 0;}
.menu.align-bl-tr {bottom: 100%;left: 100%;}
.menu.align-br-tr {right: 0;bottom: 100%;margin-bottom: 4px;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tl-bl {top: 100%;left: 0;margin-top: 4px;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tr-bl {top: 100%;right: 100%;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-bl-bl {bottom: 100%;left: 0;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-br-bl {right: 100%;bottom: 100%;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tl-br {top: 100%;left: 100%;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tr-br {top: 100%;right: 0;margin-top: 4px;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-bl-br {bottom: 100%;left: 100%;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-br-br {right: 0;bottom: 100%;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tl-tl {top: 0;left: 0;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tr-tl {top: 0;right: 100%;margin-right: 4px;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-bl-tl {bottom: 100%;left: 0;margin-bottom: 4px;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-br-tl {right: 100%;bottom: 100%;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tl-tr {top: 0;left: 100%;margin-left: 4px;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-tr-tr {top: 0;right: 0;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-bl-tr {bottom: 100%;left: 100%;}
.jsenabled .actionmenu[data-enhance="moodle-core-actionmenu"] .menu.align-br-tr {right: 0;bottom: 100%;margin-bottom: 4px;}

.dir-rtl .menu.align-tl-bl {right: 0;left: auto;}
.dir-rtl .menu.align-tr-bl {right: auto;left: 100%;}
Expand Down

0 comments on commit 1ecde7e

Please sign in to comment.