]> git.openstreetmap.org Git - rails.git/commitdiff
Styling for disabled edit button
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Jan 2020 16:14:43 +0000 (17:14 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Jan 2020 17:23:47 +0000 (18:23 +0100)
app/assets/stylesheets/common.scss

index 5fc4da8d828146069789ffdbff1b70a201b69e1d..947be58f5ececaae8ce064f2729defe0ef4690fb 100644 (file)
@@ -190,6 +190,21 @@ nav.primary {
   .btn-outline-primary {
     @include button-outline-variant($green, $white);
   }
   .btn-outline-primary {
     @include button-outline-variant($green, $white);
   }
+
+  .disabled {
+    .btn-outline-primary {
+      color: $grey;
+      cursor: default;
+
+      .caret {
+        border-top-color: $grey;
+      }
+
+      &:hover {
+        background-color: lighten($green, 30%);
+      }
+    }
+  }
 }
 
 nav.secondary {
 }
 
 nav.secondary {