summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2017-10-09 15:00:29 +0200
committerWinnie Hellmann <winnie@gitlab.com>2017-12-08 11:56:04 +0100
commitf85d70008113243078715799f72aac078b6870d8 (patch)
tree0e17878a66c30b8584d99a8074b22192484e30a9
parent6730cdb7bc75988cb0799ff0ed2f92e528549e51 (diff)
downloadgitlab-ce-f85d70008113243078715799f72aac078b6870d8.tar.gz
Make new dropdown-link style global
-rw-r--r--app/assets/stylesheets/framework/dropdowns.scss31
1 files changed, 10 insertions, 21 deletions
diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss
index e17b12c169b..1cedf2d362f 100644
--- a/app/assets/stylesheets/framework/dropdowns.scss
+++ b/app/assets/stylesheets/framework/dropdowns.scss
@@ -154,14 +154,20 @@
}
@mixin dropdown-link {
+ background: transparent;
+ border: 0;
+ border-radius: 0;
+ box-shadow: none;
display: block;
+ font-weight: $gl-font-weight-normal;
position: relative;
- padding: 5px 8px;
+ padding: 8px 16px;
color: $gl-text-color;
- line-height: initial;
- border-radius: 2px;
- white-space: nowrap;
+ line-height: normal;
+ white-space: normal;
overflow: hidden;
+ text-align: left;
+ width: 100%;
// make sure the text color is not overriden
&.text-danger {
@@ -343,10 +349,7 @@
> button {
display: flex;
margin: 0;
- padding: 0;
- border-radius: 0;
text-overflow: inherit;
- border: inherit;
text-align: left;
&.btn .fa:not(:last-child) {
@@ -769,20 +772,6 @@
&:hover {
background-color: transparent;
}
-
- a,
- button,
- .menu-item {
- margin-bottom: 0;
- border-radius: 0;
- box-shadow: none;
- padding: 8px 16px;
- text-align: left;
- white-space: normal;
- width: 100%;
- font-weight: $gl-font-weight-normal;
- line-height: normal;
- }
}
&.dropdown-menu-selectable {