Summary Files Commits Branches @commit @diff @stats
path: root / src / menus.less
diff options
context:
space:
mode:
Commita6baa2b684e0e32d3b2efa44b3a524dcda5997a3 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-03 19:28:00 +0800
Committer
 GitHub <noreply@github.com>
2017-03-03 19:28:00 +0800
Filese4796bf42fac9e44a2fbce26908eab03703a0c35 /src/menus.less
Spectre-Dark-Gruvbox-0.2.5.tar
Spectre-Dark-Gruvbox-0.2.5.tar.gz
Spectre-Dark-Gruvbox-0.2.5.zip
Parent30dd6ac6e84621b30a64d5fa47b4830b0b26c28c (diff)
Parentedd52afed611bf9aff92a7db7f5a331a8957db6f (diff)
Merge pull request #151 from picturepan2/feature/components v0.2.5
Feature/components
1 files changed, 29 insertions, 20 deletions
-rw-r--r--src/menus.less49
diff --git a/src/menus.less b/src/menus.less
index 60b2f3b..1849a32 100644
--- a/src/menus.less
+++ b/src/menus.less
@@ -1,8 +1,8 @@
// Menus
.menu {
- background: #fff;
+ background: @light-bg-color;
border-radius: @border-radius;
- display: block;
+ list-style: none;
margin: 0;
min-width: @control-min-width;
padding: .8rem;
@@ -13,55 +13,64 @@
.menu-item {
border-radius: @border-radius;
- display: block;
- line-height: 2.4rem;
margin-top: 0;
- padding: .3rem .8rem;
+ padding: 0 .8rem;
text-decoration: none;
user-select: none;
- a {
+ & > a {
border-radius: @border-radius;
color: inherit;
display: block;
- margin: -.3rem -.8rem;
- padding: .3rem .8rem;
+ line-height: 2.4rem;
+ margin: 0 -.8rem;
+ padding: .4rem .8rem;
text-decoration: none;
&:focus,
&:hover {
- color: @core-link-color;
+ color: @link-color;
}
&:active,
&.active {
- background: @core-secondary-color;
- color: darken(@core-link-color, 5%);
+ background: @light-primary-color;
+ color: @dark-link-color;
}
}
}
.menu-header {
- color: lighten(@body-font-color, 60%);
- display: block;
+ color: @light-gray-color;
font-size: 1.2rem;
- line-height: 1.8rem;
+ line-height: 2rem;
margin-top: 0;
- padding: .2rem .8rem;
+ padding: .2rem 0;
+ position: relative;
+
&::after {
- border-bottom: .1rem solid @core-border-color;
+ border-bottom: .1rem solid @border-color;
content: "";
display: block;
height: .1rem;
- transform: translateY(-1rem);
+ position: absolute;
+ top: 50%;
width: 100%;
}
.menu-header-text {
- background: #fff;
+ background: @light-bg-color;
display: inline-block;
- margin-left: -.6rem;
- padding: 0 .6rem;
+ padding: 0 .8rem;
position: relative;
z-index: 99;
}
}
+
+ .menu-badge {
+ float: right;
+ padding: .4rem 0;
+
+ .label {
+ margin: .2rem 0;
+ }
+ }
}