X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1354a95eeb5fb12fe333f7f304cbf70059c275c5..6caf44280ac6a3e44630745b91fc80fa0eef0577:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index c3a31d834..3d9e69b76 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -37,8 +37,7 @@ time[title] { vertical-align: top; width: 20px; height: 20px; - background: transparent image-url("sprite.png") no-repeat 0 0; - background-image: image-url("sprite.svg"); + background: transparent image-url("sprite.svg") no-repeat 0 0; text-indent: -9999px; overflow: hidden; } @@ -67,16 +66,6 @@ time[title] { color: $blue; } -/* Rules for borders */ -/* These add additional colours to those provided by bootstrap */ -.border-grey { - border-color: $grey !important; -} - -.border-lightgrey { - border-color: $lightgrey !important; -} - /* Rules for the header */ #menu-icon { @@ -161,11 +150,6 @@ nav.primary { nav.secondary { .nav-link { padding: 0.2rem; - color: $darkgrey; - } - - > ul li.current a { - color: darken($darkgrey, 25%); } #inboxanchor { @@ -332,7 +316,6 @@ body.small-nav { #sidebar { float: left; width: $sidebarWidth; - background: #fff; #sidebar_loader { display: none; @@ -394,7 +377,6 @@ body.small-nav { float: right; width: 250px; height: 100%; - background: white; overflow: auto; .section { @@ -446,7 +428,7 @@ body.small-nav { li { overflow: hidden; border-radius: 3px; - border: 2px solid #fff; + border: 2px solid transparent; margin-bottom: 8px; position: relative; transition: border-color 0.08s ease-in; @@ -460,8 +442,8 @@ body.small-nav { cursor: pointer; font-weight: 600; font-size: 16px; - text-stroke: 2px #fff; - background: rgba(255,255,255,.9); + background-color: var(--bs-body-bg); + opacity: 0.9; z-index: 1000; input[type="radio"] { display: none; @@ -563,16 +545,6 @@ header .search_forms, display: none; } -/* Rules for the map key which appears in the popout sidebar */ - -#mapkey { - .mapkey-table-key img { - display: block; - margin-left: auto; - margin-right: auto; - } -} - /* Rules for search sidebar */ #sidebar .search_results_entry { @@ -656,17 +628,6 @@ tr.turn:hover { tr:last-child th, tr:last-child td { border-bottom: 0; } - - .colour-preview-box { - width: 14px; - height: 14px; - // add color via inline css on element: background-color: ; - } - } - - span.action-button:hover { - cursor: pointer; - text-decoration: underline; } .note-description { @@ -724,18 +685,15 @@ tr.turn:hover { } .export_boxy { - background: $lightgrey; - - #maxlat { margin-top: -1px; } + > * { + margin: -1px; + } #minlon { - float: left; - /*rtl:ignore*/ margin-left: -1px; + /*rtl:ignore*/ float: left; } #maxlon { - float: right; - /*rtl:ignore*/ margin-right: -1px; + /*rtl:ignore*/ float: right; } - #minlat { margin-bottom: -1px; } } } @@ -752,10 +710,6 @@ tr.turn:hover { /* Rules for non-map content pages */ -.content-heading { - background: $lightgrey; -} - .content-inner { position: relative; max-width: 960px; @@ -844,14 +798,11 @@ tr.turn:hover { height: 400px; display: none; } - .comments { - max-width: 740px; + .diary-comment .col-auto { + width: 62px; } - .diary-comment { - border-top: 1px dashed $grey; - &:first-child { - border-top: 1px solid $grey; - } + .diary-comment .col { + max-width: 690px; } } @@ -887,8 +838,6 @@ tr.turn:hover { } .search_form { - background-color: $lightgrey; - #query { z-index: 0; } @@ -898,10 +847,6 @@ tr.turn:hover { } } -.directions_form { - background-color: $lightgrey; -} - /* Rules for user images */ img.user_image { @@ -1103,4 +1048,12 @@ div.secondary-actions { } } +/* Rules for tabs inside secondary background sections */ + +.bg-body-secondary .nav-tabs { + --bs-border-color: var(--bs-secondary-border-subtle); + --bs-secondary-bg: var(--bs-secondary-border-subtle); + margin-bottom: -1px; +} + @import 'browse';