diff options
author | Joas Schilling <coding@schilljs.com> | 2022-07-12 12:03:00 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-07-12 12:18:57 +0200 |
commit | 1067cf001a5afe8cd396270191675a1aa11bb592 (patch) | |
tree | fc2578d14df36689019668564a9c2e04d1b29e3c /css | |
parent | ce38a4ad2495033c161600264f2eafde0f822b55 (diff) |
Move publicshare files to CSS
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'css')
-rw-r--r-- | css/merged-public-share.scss | 1 | ||||
-rw-r--r-- | css/merged-share-auth.scss | 1 | ||||
-rw-r--r-- | css/publicshare.css (renamed from css/publicshare.scss) | 21 | ||||
-rw-r--r-- | css/publicshareauth.css (renamed from css/publicshareauth.scss) | 27 |
4 files changed, 25 insertions, 25 deletions
diff --git a/css/merged-public-share.scss b/css/merged-public-share.scss index b438bd766..4b60b1274 100644 --- a/css/merged-public-share.scss +++ b/css/merged-public-share.scss @@ -1,2 +1 @@ @import './icons'; -@import './publicshare'; diff --git a/css/merged-share-auth.scss b/css/merged-share-auth.scss index cc0e578dd..4b60b1274 100644 --- a/css/merged-share-auth.scss +++ b/css/merged-share-auth.scss @@ -1,2 +1 @@ @import './icons'; -@import './publicshareauth' diff --git a/css/publicshare.scss b/css/publicshare.css index 9c5c1ca84..d99ee9831 100644 --- a/css/publicshare.scss +++ b/css/publicshare.css @@ -14,12 +14,13 @@ position: static; } +#content, +#content.full-height { + /* Always full height without header. */ + height: calc(100% - 50px); +} + #content { - &, - &.full-height { - /* Always full height without header. */ - height: calc(100% - 50px); - } display: flex; flex-direction: row; overflow: hidden; @@ -77,10 +78,10 @@ border-color: transparent; opacity: 0.6; +} - &:hover, - &:focus, - &:active { - opacity: 1; - } +#talk-sidebar-trigger:hover, +#talk-sidebar-trigger:focus, +#talk-sidebar-trigger:active { + opacity: 1; } diff --git a/css/publicshareauth.scss b/css/publicshareauth.css index 685c81776..765a403f3 100644 --- a/css/publicshareauth.scss +++ b/css/publicshareauth.css @@ -1,4 +1,5 @@ /* Special layout to include the Talk sidebar */ + /* The original style of the body is kept until the layout has been adjusted to * include the Talk sidebar. If only "#body-login" was used, immediately after * load and before the sidebar was injected the original elements would be using @@ -11,23 +12,23 @@ body.talk-sidebar-enabled { flex-direction: unset; justify-content: unset; align-items: unset; +} - #body-login { - display: flex; - justify-content: center; +body.talk-sidebar-enabled #body-login { + display: flex; + justify-content: center; - background-position: 50% 50%; - background-repeat: repeat; - background-size: 275px, contain; - background-attachment: fixed; + background-position: 50% 50%; + background-repeat: repeat; + background-size: 275px, contain; + background-attachment: fixed; - width: 100%; - height: 100%; + width: 100%; + height: 100%; - /* Changed from guest.scss. */ - flex-direction: row; - align-items: stretch; - } + /* Changed from guest.scss. */ + flex-direction: row; + align-items: stretch; } /* #body-login should be used to override the #content rules set in server. */ |