X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1f9704779919a2e094c17e8f556ec9cc92ac437b..refs/pull/2511/head:/resources/sass/_layout.scss diff --git a/resources/sass/_layout.scss b/resources/sass/_layout.scss index cf2a1630e..57800d41e 100644 --- a/resources/sass/_layout.scss +++ b/resources/sass/_layout.scss @@ -62,6 +62,9 @@ } @include smaller-than($m) { + .grid.third.prev-next:not(.no-break) { + grid-template-columns: 1fr 1fr 1fr; + } .grid.third:not(.no-break) { grid-template-columns: 1fr 1fr; } @@ -81,12 +84,24 @@ .grid.right-focus.reverse-collapse > *:nth-child(1) { order: 1; } + .grid.third:not(.no-break) .text-m-left { + margin-left: 20%; + } + .grid.third:not(.no-break) .text-m-right { + margin-left: 45%; + } } @include smaller-than($s) { .grid.third:not(.no-break) { grid-template-columns: 1fr; } + .grid.third:not(.no-break) .text-m-left { + margin-left: 18%; + } + .grid.third:not(.no-break) .text-m-right { + margin-left: 20%; + } } @include smaller-than($xs) { @@ -124,6 +139,9 @@ body.flexbox { .flex-container-row { display: flex; flex-direction: row; + &.v-center { + align-items: center; + } } .flex-container-column { @@ -131,36 +149,54 @@ body.flexbox { flex-direction: column; } +.flex-container-column.wrap, .flex-container-row.wrap { + flex-wrap: wrap; +} + .flex { min-height: 0; flex: 1; + &.fit-content { + flex-basis: auto; + flex-grow: 0; + } } .justify-flex-end { justify-content: flex-end; } +.justify-center { + justify-content: center; +} +.items-center { + align-items: center; +} /** * 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; } .hidden { display: none !important; } +.fill-height { + height: 100%; +} + .float { float: left; &.right { @@ -258,6 +294,7 @@ body.flexbox { min-height: 50vh; overflow-y: scroll; overflow-x: hidden; + height: 100%; scrollbar-width: none; -ms-overflow-style: none; &::-webkit-scrollbar { @@ -336,4 +373,8 @@ body.flexbox { margin-inline-start: 0; margin-inline-end: 0; } -} \ No newline at end of file +} + +.prev-next-btn { + height: 50px; +}