X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a155a2fda3e014fee0aa52ca44e7f28cf738b2dd..e763c82456f76170b0b743d39d3da3d910d38352:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c5e2d14b1..3ba484cd5 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -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; } @@ -173,7 +170,11 @@ nav.primary { nav.secondary { .nav-link { - padding: 0.3rem; + padding: 0 0.3rem; + } + + > ul { + height: 1.5em; } } @@ -190,15 +191,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 +231,11 @@ body.small-nav { nav.secondary { flex-direction: column; + > ul { + height: auto; + justify-content: center; + } + .user-menu, .login-menu { width: 100%; } @@ -339,10 +336,6 @@ body.small-nav { #sidebar { float: left; width: $sidebarWidth; - - #sidebar_loader { - display: none; - } } .overlay-sidebar #sidebar { @@ -358,6 +351,8 @@ body.small-nav { display: block; } + .sidebar-close-controls, + #sidebar_loader, #sidebar_content { display: none; } @@ -505,11 +500,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 +509,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; } @@ -579,22 +590,6 @@ header .search_forms, /* Rules for routing */ -div.direction { - background-image: image-url('routing-sprite.svg'); - width: 20px; - height: 20px; - background-repeat: no-repeat; -} -@for $i from 0 through 25 { -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; } @@ -799,9 +794,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; @@ -986,3 +989,7 @@ img.trace_image { } } } + +.heatmap-wrapper { + height: 130px; +}