diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-02-11 11:13:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-11 11:13:55 +0100 |
commit | 34dc165132a06211e2ba10dcb9826cf6ed5096f6 (patch) | |
tree | 51bd0513064597ba6ea9af402381d91bce85db50 /settings/css | |
parent | 2e7eb344c8a65ab02a8704405d929fd60356a0ea (diff) | |
parent | 587a140c8a75e9a3a0a98ccd37675f785d37f5ab (diff) | |
download | nextcloud-server-34dc165132a06211e2ba10dcb9826cf6ed5096f6.tar.gz nextcloud-server-34dc165132a06211e2ba10dcb9826cf6ed5096f6.zip |
Merge pull request #13097 from nextcloud/feature/11319/where-is-your-data
Where is your data?
Diffstat (limited to 'settings/css')
-rw-r--r-- | settings/css/_server-info.scss | 99 | ||||
-rw-r--r-- | settings/css/_where-is-your-data.scss | 10 | ||||
-rw-r--r-- | settings/css/settings.scss | 13 |
3 files changed, 122 insertions, 0 deletions
diff --git a/settings/css/_server-info.scss b/settings/css/_server-info.scss new file mode 100644 index 00000000000..1073cab2954 --- /dev/null +++ b/settings/css/_server-info.scss @@ -0,0 +1,99 @@ +/* Copyright (c) 2018 Michael Weimann <mail@michael-weimann.eu + This file is licensed under the Affero General Public License version 3 or later. + See the COPYING-README file. */ + +.server-info-settings { + .label { + display: block; + } + + .form-input { + margin-bottom: 10px; + width: 100%; + } + + .margin-bottom { + margin-bottom: 15px; + } + + .form-actions { + text-align: right; + + .button { + align-items: center; + display: inline-flex; + margin: 0; + transition: background-color 500ms linear; + + .default-label, + .working-label, + .success-label, + .error-label { + align-items: center; + gap: 4px; + } + + .working-label, + .success-label, + .error-label { + display: none; + } + } + + .button-working, + .button-success, + .button-error { + background-color: $color-background-dark; + color: $color-text-lighter; + opacity: 1; + + .default-label { + display: none; + } + } + + .button-working { + .working-label { + display: inline-flex; + } + } + + .button-success { + background-color: $color-success; + border-color: darken($color-success, 10%); + color: $color-primary-text-dark; + + .success-label { + display: inline-flex; + } + } + + .button-error { + background-color: $color-error; + border-color: darken($color-error, 10%); + color: $color-primary-text-dark; + + .error-label { + display: inline-flex; + } + } + } + + @media (min-width: 1000px) { + .label { + display: inline-block; + text-align: right; + width: 175px; + } + + .form-input { + margin-left: 5px; + width: 225px; + } + + .form-actions { + margin-left: 180px; + width: 225px; + } + } +} diff --git a/settings/css/_where-is-your-data.scss b/settings/css/_where-is-your-data.scss new file mode 100644 index 00000000000..fc71bb0a023 --- /dev/null +++ b/settings/css/_where-is-your-data.scss @@ -0,0 +1,10 @@ +/* Copyright (c) 2018 Michael Weimann <mail@michael-weimann.eu + This file is licensed under the Affero General Public License version 3 or later. + See the COPYING-README file. */ + +.where-is-your-data { + // @todo replace by common link style as soon as available + a:not(.icon-info) { + border-bottom: 1px dotted; + } +} diff --git a/settings/css/settings.scss b/settings/css/settings.scss index 126d451fc66..ebd1ff1b0ec 100644 --- a/settings/css/settings.scss +++ b/settings/css/settings.scss @@ -2,6 +2,9 @@ This file is licensed under the Affero General Public License version 3 or later. See the COPYING-README file. */ +@import "server-info"; +@import "where-is-your-data"; + input { &#openid, &#webdav { width: 20em; @@ -98,6 +101,7 @@ input { #personal-settings-avatar-container { display: inline-grid; + grid-row: span 3; grid-template-columns: 1fr; grid-template-rows: 2fr 1fr; vertical-align: top; @@ -178,6 +182,15 @@ select { grid-template-columns: 1fr; #personal-settings-avatar-container { grid-template-rows: 1fr; + + // swap "Where is my data" and "Detail" + *:nth-child(2) { + order: 3; + } + + *:nth-child(3) { + order: 2; + } } .personal-settings-container { grid-template-columns: 1fr 1fr; |