diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2019-06-13 16:20:10 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-14 15:15:34 +0300 |
commit | 5bfe60f13bd0f8c41a226cfe04b35665a0208ab9 (patch) | |
tree | d5276a939311ac72bef18929abd1cb07183ffbd1 /css | |
parent | 0dee827cdc31f3282696353e20c29335a6acbeca (diff) |
Simplify overall design to focus on text
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'css')
-rw-r--r-- | css/style.scss | 76 |
1 files changed, 70 insertions, 6 deletions
diff --git a/css/style.scss b/css/style.scss index f41fb9877..8dc4bbaa8 100644 --- a/css/style.scss +++ b/css/style.scss @@ -1,15 +1,79 @@ +// Fix share link footer for now by just not showing it +#body-public #content { + height: 100%; +} +#body-public footer { + display: none; +} + + +@media only screen and (max-width: 1024px) { // $breakpoint-mobile + .modal-header .modal-title { + display: none; + } + + .menubar { // all the !important is unfortunately needed + width: calc(100% - 250px) !important; + margin-left: 0 !important; + margin-right: 250px !important; + } +} + + #files-public-content { - width: 100% !important; - height: 100%; + width: 100% !important; + height: 100%; + + .menubar { // all the !important is unfortunately needed + width: calc(100% - 150px) !important; + margin-left: 0 !important; + margin-right: 150px !important; + } + + #editor-session-list { + right: 0; + } } -#viewer-content.modal-mask .modal-wrapper .modal-container { - border-radius: 3px !important; +// Overwrite Viewer component styles +.modal-header { + &.invisible { + visibility: visible !important; + opacity: 1 !important; + } + + .modal-title { + position: absolute; + left: 0; + padding: 0 16px !important; + max-width: 200px !important; + font-weight: bold; + color: var(--color-main-text) !important; + } + + .icons-menu .header-actions { + filter: invert(100%); + opacity: .4; + + &:hover, + &:focus { + opacity: 1; + } + } + + .icons-menu .icon-close::before { + color: var(--color-main-text); + opacity: .6; + + &:hover, + &:focus { + opacity: 1; + } + } } .modal-container #editor-container { position: absolute; - max-height: calc(100% - 100px); } .ProseMirror-hideselection *::selection { background: transparent; } @@ -67,7 +131,7 @@ li.ProseMirror-selectednode:after { background: var(--color-main-background); color: var(--color-main-text); background-clip: padding-box; - border-radius: 4px; + border-radius: var(--border-radius); padding: 0; position: relative; overflow-y: scroll; |