X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5dfbf00776d5247a92cb36135d509fa0eb0b2730..3871d61be43857436d1eaefe9e84841e8a7d0f4f:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index fe3693267..8ab10773b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -62,17 +62,6 @@ small, aside { .icon.note.grey { /* no-r2 */ background-position: -240px -20px; } .icon.query { /* no-r2 */ background-position: -260px 0; } -/* Rules for links */ - -a { - color: #24d; - text-decoration: none; - outline: 0; - &:hover { - text-decoration: underline; - } -} - /* Utility for de-emphasizing content */ .text-muted a { @@ -202,7 +191,7 @@ nav.secondary { .login-menu { .btn-outline-secondary { - @include button-outline-variant($darkgrey); + @include button-outline-variant($darkgrey, $white, null, null, $white); } } @@ -686,6 +675,28 @@ form { } } +/* Stop bootstrap 5 from floating legends when they don't need to be */ +legend { + float: none; +} + +/* Override the text colour for primary and secondary buttons, to match our + bootstrap 4 colours. Note this has accessibility issues, which is why + bootstrap 5 calculates black as the appropriate colour, and we should + reconsider our colours at some point with that in mind. */ + +.btn-primary { + @include button-variant($primary, $primary, $white, null, null, $white, null, null, $white, null, null, $white); +} + +.btn-secondary { + @include button-variant($secondary, $secondary, $white, null, null, $white, null, null, $white, null, null, $white); +} + +.btn-outline-secondary { + @include button-outline-variant($secondary, $white, null, null, $white); +} + /* Rules for the search and direction forms */ header .search_forms, @@ -1182,8 +1193,9 @@ tr.turn:hover { /* Rules for messages pages */ .messages { - input[type="submit"] { + button[type="submit"] { margin: auto; + white-space: nowrap; } .inbox-row { @@ -1234,8 +1246,6 @@ tr.turn:hover { /* Rules for "flash" notice boxes shown at the top of the content area */ .flash { - padding: $lineheight; - &.error { background-color: #ff7070; } @@ -1437,13 +1447,6 @@ dl.dl-inline { } } -/* Customise the background colour of striped tables */ - -.table-striped > tbody > tr:nth-child(2n+1) > td, -.table-striped > tbody > tr:nth-child(2n+1) > th { - background-color: $offwhite; -} - /* Rules for OpenID logo */ .openid_logo {