frontend/css/components/_scopes.scss in trestle-0.9.4 vs frontend/css/components/_scopes.scss in trestle-0.9.5

- old
+ new

@@ -1,47 +1,90 @@ .scopes { - list-style: none; - - margin-top: -0.25rem; margin-bottom: 0; - padding: 0; + dd { + margin-bottom: 0; + } + &.grouped { + @include media-breakpoint-up(md) { + display: grid; + grid-template-columns: auto 1fr; + } + + + @include media-breakpoint-down(sm) { + .scope-group-empty:first-child { + display: none; + } + } + + background: #fafafa; + + dd { + padding: 0.375rem 0.5rem 0.375rem; + } + } + + &.columns { + grid-template-rows: auto 1fr; + grid-auto-flow: column; + + overflow-x: auto; + } +} + +.scope-group { + line-height: 2; + font-size: 0.85rem; + padding: 0.5rem 1rem 0.25rem 0.75rem; + + background: #f7f7f7; +} + +.scope-list { + list-style: none; + display: flex; flex-wrap: wrap; + position: relative; + align-items: center; + + margin-bottom: 0; + padding: 0; + li { - margin-top: 0.25rem; - margin-right: 0.35rem; + margin: 0.125rem 0.35rem 0.125rem 0; &:last-child { margin-right: 0; } } +} - a { - display: inline-block; +.scope { + display: inline-block; - background-color: $scope-bg; + background-color: $scope-bg; - font-size: 0.8rem; - font-weight: normal; - white-space: nowrap; + font-size: 0.8rem; + font-weight: normal; + white-space: nowrap; - border-radius: 50rem; - padding: $scope-padding; + border-radius: 50rem; + padding: $scope-padding; - &, &:hover, &:focus { - color: $scope-color; - } + &, &:hover, &:focus { + color: $scope-color; + } - &:hover, &:focus { - background-color: $scope-hover-bg; - text-decoration: none; - } + &:hover, &:focus { + background-color: $scope-hover-bg; + text-decoration: none; } - li.active a { + &.active { &, &:hover, &:focus, strong { color: $scope-active-color; } &, &:hover, &:focus {