Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2019-08-29 16:05:24 +0300
committerAleksander Machniak <alec@alec.pl>2019-08-29 16:05:24 +0300
commitbdd1b2054f4410fc8b7c3263467c25131c8b9659 (patch)
tree03f487efc94c8289d6ed7089df4906d9a645ae62 /skins
parent21ebf3ff5a1f014fef6ad0b9d684ea625b0fae94 (diff)
Elastic: Add indicator for popover menu items that open a submenu (#6868)
Diffstat (limited to 'skins')
-rw-r--r--skins/elastic/styles/colors.less2
-rw-r--r--skins/elastic/styles/widgets/menu.less43
2 files changed, 39 insertions, 6 deletions
diff --git a/skins/elastic/styles/colors.less b/skins/elastic/styles/colors.less
index 085e9e868..2d0174b90 100644
--- a/skins/elastic/styles/colors.less
+++ b/skins/elastic/styles/colors.less
@@ -131,7 +131,7 @@
@color-popover-separator-background: @color-black-shade-bg;
@color-popover-mobile-header: #fff;
@color-popover-mobile-header-background: @color-main-dark;
-
+@color-popover-mobile-dropbutton-background: #f6f6f6;
// Dialogs
@color-dialog-overlay-background: fade(@color-font, 50%);
diff --git a/skins/elastic/styles/widgets/menu.less b/skins/elastic/styles/widgets/menu.less
index 1b578eb5e..03c5756e8 100644
--- a/skins/elastic/styles/widgets/menu.less
+++ b/skins/elastic/styles/widgets/menu.less
@@ -283,20 +283,53 @@
flex: 1;
}
+ &:not(.disabled):hover {
+ background-color: @color-popover-mobile-dropbutton-background;
+ }
+
a.dropdown {
- width: auto;
+ width: 3.5rem;
+ padding: 0 .5em;
+ background-color: @color-popover-mobile-dropbutton-background;
- &:before {
- content: @fa-var-angle-right;
- line-height: inherit;
- margin: 0;
+ &:hover {
+ background-color: @color-menu-hover-background;
}
+ // Note: :before icon is replaced with :after icon by a[aria-haspopup] below
+
+ &:before,
span.inner {
display: none;
}
}
}
+
+ a[aria-haspopup] {
+ position: realtive;
+
+ &:after {
+ &:extend(.font-icon-class);
+ content: @fa-var-chevron-right;
+ float: right;
+ margin: 0;
+ color: @color-black-shade-text;
+ font-size: .9em;
+
+ html.layout-small & {
+ margin: 0 .2em;
+ }
+ }
+
+ &.dropdown:after {
+ margin: 0 .5em !important;
+ color: @color-list;
+ }
+
+ &:hover:after {
+ color: @color-menu-hover;
+ }
+ }
}
}