/** * @copyright Copyright (c) 2017, John Molakvoæ (skjnldsv@protonmail.com) * @copyright Copyright (c) 2016, Lukas Reschke (lukas@statuscode.ch) * @copyright Copyright (c) 2016, Julius Härtl (jus@bitgrid.net) * @copyright Copyright (c) 2016, Jos Poortvliet (jospoortvliet@gmail.com) * * @license GNU AGPL version 3 or any later version * */ /* prevent ugly selection effect on accidental selection */ #header, #navigation, #expanddiv { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } /* removed until content-focusing issue is fixed */ #skip-to-content a { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; &:focus { left: 76px; top: -9px; color: #fff; width: auto; height: auto; } } /* HEADERS ------------------------------------------------------------------ */ #body-user #header, #body-settings #header, #body-public #header { display: inline-flex; position: fixed; top: 0; left: 0; right: 0; z-index: 2000; height: 45px; background-color: #0082c9; box-sizing: border-box; justify-content: space-between; } /* LOGO and APP NAME -------------------------------------------------------- */ #nextcloud { padding: 5px; padding-bottom: 0; height: 45px; /* header height */ box-sizing: border-box; -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; &:focus { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=75)'; opacity: .75; } &:hover, &:active { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } #header { .logo { background-image: url('../img/logo-icon.svg?v=1'); background-repeat: no-repeat; background-size: 175px; background-position: center; width: 252px; height: 120px; margin: 0 auto; } .logo-icon { /* display logo so appname can be shown next to it */ display: inline-block; background-image: url('../img/logo-icon.svg?v=1'); background-repeat: no-repeat; background-position: center center; width: 62px; height: 34px; } .header-appname-container { display: inline-block; height: 27px; padding-top: 18px; padding-right: 10px; } /* show caret indicator next to logo to make clear it is tappable */ .icon-caret { display: inline-block; width: 12px; height: 12px; margin: 0; margin-top: -21px; padding: 0; vertical-align: middle; } #header-left, #header-right { display: inline-flex; align-items: center; } #header-left { flex: 0 0; flex-grow: 1; } #header-right { justify-content: flex-end; } } /* hover effect for app switcher label */ .header-appname-container .header-appname { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=75)'; opacity: .75; } .menutoggle { .icon-caret { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=75)'; opacity: .75; } &:hover { .header-appname, .icon-caret { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } &:focus { .header-appname, .icon-caret { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } &.active { .header-appname, .icon-caret { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } } /* show appname next to logo */ .header-appname { display: inline-block; position: relative; color: #fff; font-size: 16px; font-weight: 300; margin: 0; margin-top: -24px; padding: 7px 0 7px 5px; vertical-align: middle; } /* do not show menu toggle on public share links as there is no menu */ #body-public #header .icon-caret { display: none; } /* NAVIGATION --------------------------------------------------------------- */ #navigation { position: fixed; top: 45px; left: 10px; width: 265px; max-height: 85%; margin-top: 0; padding-bottom: 10px; background-color: rgba(255, 255, 255, 0.97); box-shadow: 0 1px 10px rgba(150, 150, 150, 0.75); border-radius: 3px; border-top-left-radius: 0; border-top-right-radius: 0; display: none; box-sizing: border-box; /*overflow-y: auto; overflow-x: hidden;*/ z-index: 2000; &:after { bottom: 100%; border: solid transparent; content: ' '; height: 0; width: 0; position: absolute; pointer-events: none; border-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(255, 255, 255, 0.97); border-width: 10px; margin-left: -10px; left: 47%; } * { box-sizing: border-box; } li { display: inline-block; } a { position: relative; width: 80px; height: 80px; display: inline-block; text-align: center; padding: 20px 0; span { display: inline-block; font-size: 13px; padding-bottom: 0; padding-left: 0; width: 80px; text-align: center; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } svg, span { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)'; opacity: .5; } &:hover svg, &:focus svg, &:hover span, &:focus span { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } &.active { svg, span { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } } .app-icon { margin: 0 auto; padding: 0; max-height: 32px; max-width: 32px; } /* loading feedback for apps */ .app-loading { .icon-loading-dark { display: inline !important; position: absolute; top: 20px; left: 24px; width: 32px; height: 32px; } .app-icon { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)'; opacity: 0; } } } /* Apps management */ #apps-management { min-height: initial; height: initial; margin: 0; a { svg, span { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)'; opacity: .3; } /* icon opacity and hover effect */ &:hover svg, &:focus svg, &.active svg, &:hover span, &:focus span, &.active span { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } } #apps { max-height: calc(100vh - 100px); overflow: auto; } /* USER MENU -----------------------------------------------------------------*/ #settings { display: inline-block; color: #ddd; cursor: pointer; .icon-loading-small-dark { display: inline-block; margin-bottom: -3px; margin-right: 6px; background-size: 16px 16px; } flex: 0 0 auto; } /* User menu on the right */ #expand { display: block; padding: 7px 30px 6px 10px; cursor: pointer; * { cursor: pointer; } img { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=70)'; opacity: .7; margin-bottom: -2px; } &:hover, &:focus, &:active { color: #fff; img { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } .icon-caret { margin-top: 0; } /* Profile picture in header */ .avatardiv { float: left; display: inline-block; margin-right: 8px; cursor: pointer; height: 32px; width: 32px; img { opacity: 1; cursor: pointer; } /* do not show display name when profile picture is present */ &.avatardiv-shown + #expandDisplayName { display: none; } } } #expanddiv { position: absolute; right: 13px; top: 45px; z-index: 2000; display: none; background: rgb(255, 255, 255); box-shadow: 0 1px 10px rgba(150, 150, 150, 0.75); border-radius: 3px; border-top-left-radius: 0; border-top-right-radius: 0; box-sizing: border-box; &:after { /* position of dropdown arrow */ right: 15px; border-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(255, 255, 255, 1); bottom: 100%; border: solid transparent; content: ' '; height: 0; width: 0; position: absolute; pointer-events: none; border-width: 10px; margin-left: -10px; } a { display: block; height: 40px; color: #000; padding: 4px 12px 0; -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=50)'; opacity: .5; box-sizing: border-box; img { margin-bottom: -3px; margin-right: 6px; } &:hover, &:focus, &:active, &.active { -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; opacity: 1; } } }