X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4e107b91604e4c110725ff6081a44f10f73cdf81..refs/pull/2902/head:/resources/sass/_blocks.scss diff --git a/resources/sass/_blocks.scss b/resources/sass/_blocks.scss index 697286a78..f9c206154 100644 --- a/resources/sass/_blocks.scss +++ b/resources/sass/_blocks.scss @@ -52,6 +52,10 @@ &.warning:before { background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNiNjUzMWMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+ICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4gICAgPHBhdGggZD0iTTEgMjFoMjJMMTIgMiAxIDIxem0xMi0zaC0ydi0yaDJ2MnptMC00aC0ydi00aDJ2NHoiLz48L3N2Zz4="); } + a { + color: inherit; + text-decoration: underline; + } } /** @@ -186,7 +190,7 @@ padding: $-m $-xxl; margin-inline-start: auto; margin-inline-end: auto; - margin-bottom: $-xl; + margin-bottom: $-l; overflow: initial; min-height: 60vh; &.auto-height { @@ -212,6 +216,21 @@ } } +.outline-hover { + border: 1px solid transparent !important; + &:hover { + border: 1px solid rgba(0, 0, 0, 0.1) !important; + } +} + +.fade-in-when-active { + opacity: 0.6; + transition: opacity ease-in-out 120ms; + &:hover, &:focus-within { + opacity: 1; + } +} + /** * Tags */ @@ -220,12 +239,13 @@ margin-bottom: $-xs; margin-inline-end: $-xs; border-radius: 4px; - border: 1px solid #CCC; + border: 1px solid; overflow: hidden; font-size: 0.85em; - a, a:hover, a:active { + @include lightDark(border-color, #CCC, #666); + a, span, a:hover, a:active { padding: 4px 8px; - @include lightDark(color, #777, #999); + @include lightDark(color, rgba(0, 0, 0, 0.6), rgba(255, 255, 255, 0.8)); transition: background-color ease-in-out 80ms; text-decoration: none; } @@ -233,10 +253,11 @@ @include lightDark(background-color, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3)); } svg { - fill: #888; + @include lightDark(fill, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5)); } .tag-value { - border-inline-start: 1px solid #DDD; + border-inline-start: 1px solid; + @include lightDark(border-color, #DDD, #666); @include lightDark(background-color, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)) } } @@ -270,4 +291,6 @@ .sticky-sidebar { position: sticky; top: $-m; -} \ No newline at end of file + max-height: calc(100vh - #{$-m}); + overflow-y: auto; +}