summaryrefslogtreecommitdiffstats
path: root/apps/settings/css/settings.css
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-11-03 14:04:19 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-11-21 16:29:04 +0100
commitd847eacfbde90a2d4532f9c541d427be17b078bd (patch)
treeefae124501254254430c3944d135faa364c6e251 /apps/settings/css/settings.css
parent86d9626901b619223eda77aeb2f2197c8c65da69 (diff)
downloadnextcloud-server-d847eacfbde90a2d4532f9c541d427be17b078bd.tar.gz
nextcloud-server-d847eacfbde90a2d4532f9c541d427be17b078bd.zip
Refactor profile info settings
- Make it possible to add the new property whiout chaning foundamentally how the layout work each time - Use only one grid instead of multiple nested grid - Better mobile reponsiveness Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/settings/css/settings.css')
-rw-r--r--apps/settings/css/settings.css56
1 files changed, 15 insertions, 41 deletions
diff --git a/apps/settings/css/settings.css b/apps/settings/css/settings.css
index 62033d5365e..7068ed032ce 100644
--- a/apps/settings/css/settings.css
+++ b/apps/settings/css/settings.css
@@ -118,6 +118,15 @@ input#openid, input#webdav {
.personal-settings-setting-box .section input[type=text], .personal-settings-setting-box .section input[type=email], .personal-settings-setting-box .section input[type=tel], .personal-settings-setting-box .section input[type=url] {
width: 100%;
}
+.personal-settings-setting-box-profile {
+ grid-row: 3/5;
+}
+.personal-settings-setting-box-detail {
+ grid-row: 5;
+}
+.personal-settings-setting-box-detail--without-profile {
+ grid-row: 3;
+}
select#timezone {
width: 100%;
@@ -126,8 +135,8 @@ select#timezone {
#personal-settings {
display: grid;
padding: 20px;
- max-width: 1500px;
- grid-template-columns: 1fr 3fr;
+ max-width: 1700px;
+ grid-template-columns: 1fr 1fr 1fr 1fr;
}
#personal-settings .section {
padding: 10px 10px;
@@ -177,58 +186,23 @@ select#timezone {
background-position: 24px;
}
-@media (min-width: 1200px) and (max-width: 1400px) {
+@media (min-width: 1400px) and (max-width: 1700px) {
#personal-settings {
display: grid;
- grid-template-columns: 1fr 2fr;
- }
- #personal-settings #personal-settings-avatar-container {
- grid-template-columns: 1fr;
- grid-template-rows: 1fr;
- }
- #personal-settings .personal-settings-container {
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr 1fr 1fr;
- }
- #personal-settings .profile-settings-container {
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr;
- grid-column: 2;
+ grid-template-columns: 1fr 1fr 1fr;
}
}
-@media (max-width: 1200px) {
+@media (min-width: 800px) and (max-width: 1400px) {
#personal-settings {
display: grid;
- grid-template-columns: 1fr;
- }
- #personal-settings #personal-settings-avatar-container {
- grid-template-rows: 1fr;
- }
- #personal-settings .personal-settings-container {
grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr 1fr 1fr 1fr;
- }
- #personal-settings .profile-settings-container {
- grid-template-columns: 1fr 1fr;
- grid-template-rows: 1fr;
}
}
-@media (max-width: 560px) {
+@media (max-width: 800px) {
#personal-settings {
display: grid;
grid-template-columns: 1fr;
}
- #personal-settings #personal-settings-avatar-container {
- grid-template-rows: 1fr;
- }
- #personal-settings .personal-settings-container {
- grid-template-columns: 1fr;
- grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
- }
- #personal-settings .profile-settings-container {
- grid-template-columns: 1fr;
- grid-template-rows: 1fr 1fr;
- }
}
.personal-settings-container {
display: inline-grid;