X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b87983c2baf55d437c09e668188454d01b5f20b0..3aa1b1007ba623b76dc25fdef88267673b2ae94b:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c1e71cc2d..fc9af9803 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -9,7 +9,7 @@ body { font-size: $typeheight; - --dark-mode-map-filter: brightness(.8); + --dark-mode-map-filter: none; } time[title] { @@ -506,6 +506,16 @@ body.small-nav { } @include color-mode(dark) { + .leaflet-container .leaflet-control-attribution a { + color: var(--bs-link-color); + } + + .leaflet-control-scale-line { + border-color: rgba(var(--bs-light-rgb), .75) !important; + } +} + +@mixin dark-map-color-scheme { .leaflet-tile-container, .mapkey-table-entry td:first-child > * { filter: var(--dark-mode-map-filter); @@ -514,13 +524,15 @@ body.small-nav { .leaflet-tile-container .leaflet-tile { filter: none; } +} - .leaflet-container .leaflet-control-attribution a { - color: var(--bs-link-color); - } +body[data-map-theme="dark"] { + @include dark-map-color-scheme; +} - .leaflet-control-scale-line { - border-color: rgba(var(--bs-light-rgb), .75) !important; +@include color-mode(dark) { + body:not([data-map-theme]) { + @include dark-map-color-scheme; } } @@ -804,9 +816,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;