Browse Source

Apply same changes to 'btn-link' like for 'a' in dropdown-menu

sh4nks 9 years ago
parent
commit
c24e1af842

+ 42 - 0
flaskbb/themes/aurora/src/flaskbb.scss

@@ -503,6 +503,48 @@ p.flaskbb-stats {
 }
 
 
+// apply the same changes as for "a" for the btn-link
+.dropdown-menu {
+    & > li .btn-link {
+        display: block;
+        padding: 3px 20px;
+        width: 100%;
+        text-align: left;
+        clear: both;
+        font-weight: normal;
+        line-height: 1.42857143;
+        color: #333;
+        white-space: nowrap;
+
+        &:hover, &:focus {
+            color: #262626;
+            text-decoration: none;
+            background-color: #f5f5f5;
+        }
+    }
+
+    & > .active {
+        .btn-link, .btn-link:hover, .btn-link:focus {
+            color: #fff;
+            text-decoration: none;
+            background-color: #337ab7;
+            outline: 0;
+        }
+    }
+
+    & > .disabled {
+        .btn-link, .btn-link:hover, .btn-link:focus {
+            color: #777;
+            text-decoration: none;
+            cursor: not-allowed;
+            background-color: transparent;
+            background-image: none;
+            filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
+        }
+    }
+}
+
+
 /* Markdown Editor */
 .editor-box .editor-submit .btn {
     margin: 0.75em 0.25em 0 0;

+ 27 - 0
flaskbb/themes/aurora/static/css/flaskbb.css

@@ -285,6 +285,33 @@ p.flaskbb-stats {
   .dropdown-messages .author-name {
     font-weight: bold; }
 
+.dropdown-menu > li .btn-link {
+  display: block;
+  padding: 3px 20px;
+  width: 100%;
+  text-align: left;
+  clear: both;
+  font-weight: normal;
+  line-height: 1.42857143;
+  color: #333;
+  white-space: nowrap; }
+  .dropdown-menu > li .btn-link:hover, .dropdown-menu > li .btn-link:focus {
+    color: #262626;
+    text-decoration: none;
+    background-color: #f5f5f5; }
+.dropdown-menu > .active .btn-link, .dropdown-menu > .active .btn-link:hover, .dropdown-menu > .active .btn-link:focus {
+  color: #fff;
+  text-decoration: none;
+  background-color: #337ab7;
+  outline: 0; }
+.dropdown-menu > .disabled .btn-link, .dropdown-menu > .disabled .btn-link:hover, .dropdown-menu > .disabled .btn-link:focus {
+  color: #777;
+  text-decoration: none;
+  cursor: not-allowed;
+  background-color: transparent;
+  background-image: none;
+  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); }
+
 /* Markdown Editor */
 .editor-box .editor-submit .btn {
   margin: 0.75em 0.25em 0 0; }