X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/40ca50e44f3ca0f648d915dc73ff205309730f07..refs/pull/4103/head:/resources/sass/_blocks.scss diff --git a/resources/sass/_blocks.scss b/resources/sass/_blocks.scss index f9c206154..1d9bfc272 100644 --- a/resources/sass/_blocks.scss +++ b/resources/sass/_blocks.scss @@ -66,7 +66,6 @@ @include lightDark(background-color, #FFF, #222); box-shadow: $bs-card; border-radius: 3px; - border: 1px solid transparent; .body, p.empty-text { padding: $-m; } @@ -87,9 +86,31 @@ .card-title a { line-height: 1; } +.card-footer-link, button.card-footer-link { + display: block; + padding: $-s $-m; + line-height: 1; + border-top: 1px solid; + width: 100%; + text-align: left; + @include lightDark(border-color, #DDD, #555); + border-radius: 0 0 3px 3px; + font-size: 0.9em; + margin-top: $-xs; + &:hover { + text-decoration: none; + @include lightDark(background-color, #f2f2f2, #2d2d2d); + } + &:focus { + @include lightDark(background-color, #eee, #222); + outline: 1px dotted #666; + outline-offset: -2px; + } +} .card.border-card { - border: 1px solid #DDD; + border: 1px solid; + @include lightDark(border-color, #ddd, #000); } .card.drag-card { @@ -113,7 +134,7 @@ flex-grow: 0; padding: 0 $-xs; &:hover { - background-color: #EEE; + @include lightDark(background-color, #eee, #2d2d2d); } .svg-icon { margin-inline-end: 0px; @@ -216,6 +237,13 @@ } } +.sub-card { + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); + border: 1.5px solid; + @include lightDark(border-color, #E2E2E2, #444); + border-radius: 4px; +} + .outline-hover { border: 1px solid transparent !important; &:hover { @@ -224,10 +252,13 @@ } .fade-in-when-active { - opacity: 0.6; + @include lightDark(opacity, 0.6, 0.7); transition: opacity ease-in-out 120ms; &:hover, &:focus-within { - opacity: 1; + opacity: 1 !important; + } + @media (prefers-contrast: more) { + opacity: 1 !important; } } @@ -245,7 +276,7 @@ @include lightDark(border-color, #CCC, #666); a, span, a:hover, a:active { padding: 4px 8px; - @include lightDark(color, rgba(0, 0, 0, 0.6), rgba(255, 255, 255, 0.8)); + @include lightDark(color, rgba(0, 0, 0, 0.7), rgba(255, 255, 255, 0.8)); transition: background-color ease-in-out 80ms; text-decoration: none; } @@ -262,10 +293,18 @@ } } +.tag-name.highlight, .tag-value.highlight { + font-weight: bold; +} + .tag-list div:last-child .tag-item { margin-bottom: 0; } +.item-list-row .tag-item { + margin-bottom: 0; +} + /** * API Docs */