]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.scss
Set search input z-index with Bootstrap utility class
[rails.git] / app / assets / stylesheets / common.scss
index c02b0bb89b2b34179969047e9344e877b13943eb..42046c0a62f270c6e49086cd3abe6eb26761f4ea 100644 (file)
@@ -81,6 +81,12 @@ time[title] {
   opacity: 0.6;
 }
 
+@include color-mode(dark) {
+  #menu-icon {
+    filter: invert(1);
+  }
+}
+
 header {
   height: $headerHeight;
   position: relative;
@@ -188,7 +194,6 @@ body.small-nav {
     flex-direction: column;
     height: auto;
     min-height: $headerHeight;
-    background: #fff;
 
     &.closed nav {
       display: none;
@@ -378,11 +383,6 @@ body.small-nav {
     width: 250px;
     height: 100%;
     overflow: auto;
-
-    .section {
-      border-bottom: 1px solid $grey;
-      padding: $spacer;
-    }
   }
 }
 
@@ -540,6 +540,12 @@ div.direction {
 div.direction.i#{$i} { background-position: #{($i)*-20}px 0px; }
 }
 
+@include color-mode(dark) {
+  div.direction {
+    filter: invert(1);
+  }
+}
+
 td.distance {
     font-size: x-small;
 }
@@ -809,10 +815,6 @@ tr.turn:hover {
 }
 
 .search_form {
-  #query {
-    z-index: 0;
-  }
-
   .describe_location {
     font-size: 10px;
   }
@@ -952,8 +954,6 @@ div.secondary-actions {
 }
 
 .site-about #content {
-  background-color: $lightgrey;
-
   .content-inner {
     max-width: 760px;
   }
@@ -1027,4 +1027,17 @@ div.secondary-actions {
   margin-bottom: -1px;
 }
 
+/* Rules for traces */
+
+img.trace_image {
+  mix-blend-mode: darken;
+}
+
+@include color-mode(dark) {
+  img.trace_image {
+    filter: invert(1);
+    mix-blend-mode: lighten;
+  }
+}
+
 @import 'browse';