X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/da1cea06ca5db56a9635bf8bb01da2516d601620..refs/pull/3193/head:/resources/sass/_layout.scss diff --git a/resources/sass/_layout.scss b/resources/sass/_layout.scss index 197d5271b..783ccc8f9 100644 --- a/resources/sass/_layout.scss +++ b/resources/sass/_layout.scss @@ -49,6 +49,9 @@ &.v-center { align-items: center; } + &.v-end { + align-items: end; + } &.no-gap { grid-row-gap: 0; grid-column-gap: 0; @@ -92,6 +95,10 @@ } } +#content { + flex: 1 0 auto; +} + /** * Flexbox layout system */ @@ -118,9 +125,44 @@ body.flexbox { position: relative; } +.flex-container-row { + display: flex; + flex-direction: row; + &.v-center { + align-items: center; + } +} + +.flex-container-column { + display: flex; + flex-direction: column; +} + +.flex-container-column.wrap, .flex-container-row.wrap { + flex-wrap: wrap; +} + .flex { min-height: 0; flex: 1; + max-width: 100%; + &.fit-content { + flex-basis: auto; + flex-grow: 0; + } +} + +.justify-flex-end { + justify-content: flex-end; +} +.justify-center { + justify-content: center; +} +.justify-space-between { + justify-content: space-between; +} +.items-center { + align-items: center; } @@ -128,20 +170,28 @@ body.flexbox { * Display and float utilities */ .block { - display: block; + display: block !important; position: relative; } .inline { - display: inline; + display: inline !important; } .block.inline { - display: inline-block; + display: inline-block !important; +} + +.relative { + position: relative; } .hidden { - display: none; + display: none !important; +} + +.fill-height { + height: 100%; } .float { @@ -167,6 +217,13 @@ body.flexbox { } } +/** + * Border radiuses + */ +.rounded { + border-radius: 4px; +} + /** * Inline content columns */ @@ -184,12 +241,12 @@ body.flexbox { /** * Fixes */ -.clearfix:before, -.clearfix:after { +.clearfix::before, +.clearfix::after { content: " "; display: table; } -.clearfix:after { +.clearfix::after { clear: both; } @@ -214,6 +271,7 @@ body.flexbox { .tri-layout-middle { grid-area: b; padding-top: $-m; + min-width: 0; } } @include smaller-than($xxl) { @@ -241,6 +299,7 @@ body.flexbox { min-height: 50vh; overflow-y: scroll; overflow-x: hidden; + height: 100%; scrollbar-width: none; -ms-overflow-style: none; &::-webkit-scrollbar { @@ -310,6 +369,9 @@ body.flexbox { &:focus-within { opacity: 1; } + @media (prefers-contrast: more) { + opacity: 1; + } } }