]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.scss
Move secondary menu items to "more" dropdown dynamically
[rails.git] / app / assets / stylesheets / common.scss
index c5e2d14b1577a8a35e90747739616b5f56b6b672..a536f527f297520ca97c77b002a2186317805ab8 100644 (file)
@@ -9,6 +9,7 @@
 
 body {
   font-size: $typeheight;
+  --dark-mode-map-filter: none;
 }
 
 time[title] {
@@ -130,10 +131,6 @@ header {
     font-size: 14px;
   }
 
-  nav.primary {
-    margin-right: auto;
-  }
-
   .username {
     max-width: 12em;
   }
@@ -190,15 +187,6 @@ nav.primary, nav.secondary {
   display: none;
 }
 
-body.compact-nav {
-  #compact-secondary-nav {
-    display: inline-block;
-  }
-  .compact-hide {
-    display: none;
-  }
-}
-
 body.small-nav {
   #menu-icon {
     display: block;
@@ -239,6 +227,10 @@ body.small-nav {
   nav.secondary {
     flex-direction: column;
 
+    > ul {
+      justify-content: unset !important;
+    }
+
     .user-menu, .login-menu {
       width: 100%;
     }
@@ -505,11 +497,6 @@ body.small-nav {
 }
 
 @include color-mode(dark) {
-  .leaflet-tile-container .leaflet-tile,
-  .mapkey-table-entry td:first-child > * {
-    filter: brightness(.8);
-  }
-
   .leaflet-container .leaflet-control-attribution a {
     color: var(--bs-link-color);
   }
@@ -519,6 +506,27 @@ body.small-nav {
   }
 }
 
+@mixin dark-map-color-scheme {
+  .leaflet-tile-container,
+  .mapkey-table-entry td:first-child > * {
+    filter: var(--dark-mode-map-filter);
+  }
+
+  .leaflet-tile-container .leaflet-tile {
+    filter: none;
+  }
+}
+
+body[data-map-theme="dark"] {
+  @include dark-map-color-scheme;
+}
+
+@include color-mode(dark) {
+  body:not([data-map-theme]) {
+    @include dark-map-color-scheme;
+  }
+}
+
 /* Rules for attribution text under the main map shown on printouts */
 
 .donate-attr { color: darken($green, 10%) !important; }
@@ -799,9 +807,17 @@ tr.turn {
   }
 }
 
+/* Rules for the issues page */
+
+.issues.issues-index {
+  td.reporting_users {
+    max-width: 5rem;
+  }
+}
+
 /* Rules for the account confirmation page */
 
-.users-terms {
+.accounts-terms-show {
   .legale {
     padding: $lineheight;
     margin-bottom: $lineheight;