X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ac07a790784e36641c761658dc13f5c61249c6dc..0bc9ede6ffd81d4aa2237d066d64cdb5e901fec4:/app/assets/stylesheets/common.scss?ds=inline diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 5c88da6b7..8ab10773b 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -191,7 +191,7 @@ nav.secondary { .login-menu { .btn-outline-secondary { - @include button-outline-variant($darkgrey); + @include button-outline-variant($darkgrey, $white, null, null, $white); } } @@ -680,6 +680,23 @@ 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, @@ -1430,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 {