X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5ce212de8327baa67e8bb4b46f93ce4ae0a5496e..e89742928ddccbe127955f94be4be61e13f1faed:/app/assets/stylesheets/common.scss diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 947be58f5..9b6b69db7 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -1,5 +1,5 @@ @import "parameters"; -@import "bootstrap-custom"; +@import "bootstrap"; /* Styles common to large and small screens */ @@ -205,6 +205,17 @@ nav.primary { } } } + + // Small tweaks to the toggle to stop the primary colour showing through + // when the menu is shown + .show > .btn-outline-primary.dropdown-toggle { + background-color: $green; + border-color: $green; + + &:focus { + box-shadow: 0 0 0 0.2rem fade-out($green, 0.5); + } + } } nav.secondary { @@ -229,8 +240,20 @@ nav.secondary { .user-menu { .btn-outline-secondary { @include button-outline-variant($darkgrey, $darkgrey, white, $darkgrey); - // @include button-outline-variant($grey, $grey, white, $grey); border-color: $grey; + &:hover { + border-color: $grey; + } + &:focus { + background-color: white; + box-shadow: none; + } + } + &.show .btn-outline-secondary { + background-color: white; + &:focus { + box-shadow: none; + } } } @@ -255,6 +278,15 @@ nav.secondary { } } +nav.primary, nav.secondary { + .dropdown-item { + &:hover, &:active { + background-color: $green; + color: white; + } + } +} + #compact-secondary-nav { display: none; } @@ -741,6 +773,7 @@ header .search_forms, input[type=text].overflow { border-right: none; + border-radius: 3px 0px 0px 3px; } input:focus { @@ -870,6 +903,7 @@ header .search_forms, padding: 5px 20px 10px 15px; width: 100%; border-collapse: separate; + border-spacing: 0; } div.direction { @@ -994,6 +1028,7 @@ tr.turn:hover { border-radius: 3px; table-layout: fixed; border-collapse: separate; + border-spacing: 0; th, td { border-bottom: 1px solid $grey; @@ -2013,16 +2048,11 @@ a.button { } } -/* Rules for doing distinct colour of alternate table rows */ - -.table0, -.item0 { - background: $offwhite; -} +/* Customise the background colour of striped tables */ -.table1, -.item1 { - background: #fff; +.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 */