summaryrefslogtreecommitdiffstats
path: root/settings/css/settings.scss
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-04-17 22:40:03 +0200
committerJulius Härtl <jus@bitgrid.net>2018-04-17 22:40:03 +0200
commit09ada4ec2bfc3fc7d5dcfdb545d3e744c215c41a (patch)
tree6773b837651c2debc4733950feca9ba721506324 /settings/css/settings.scss
parent748b51a22568b18eb22ec98f2641146e9023f0b4 (diff)
downloadnextcloud-server-09ada4ec2bfc3fc7d5dcfdb545d3e744c215c41a.tar.gz
nextcloud-server-09ada4ec2bfc3fc7d5dcfdb545d3e744c215c41a.zip
Move personal settings to css grid layout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/css/settings.scss')
-rw-r--r--settings/css/settings.scss98
1 files changed, 79 insertions, 19 deletions
diff --git a/settings/css/settings.scss b/settings/css/settings.scss
index b5b4ecf1e37..a040ee6195a 100644
--- a/settings/css/settings.scss
+++ b/settings/css/settings.scss
@@ -100,23 +100,20 @@ input {
}
}
-#personal-settings-avatar-container,
-#personal-settings-group-container {
- display: inline-block;
+#personal-settings-avatar-container {
+ display: inline-grid;
+ grid-template-columns: 1fr;
+ grid-template-rows: 2fr 1fr 1fr;
vertical-align: top;
- width: 225px;
}
.profile-settings-container {
- display: inline-block;
- max-width: 600px;
- margin-bottom: 20px;
- > div {
- float: left;
- width: 300px;
- }
+ display: inline-grid;
+ grid-template-columns: 1fr;
+ grid-template-rows: 1fr 2fr 1fr;
}
+
.icon-federation-menu {
padding-left: 16px;
background-size: 16px;
@@ -157,21 +154,84 @@ input {
}
}
+#personal-settings {
+ display: grid;
+ padding: 20px;
+ max-width: 1500px;
+ grid-template-columns:1fr 2fr 1fr;
+ .section {
+ padding: 10px 10px;
+ }
+}
+
+
+@media (min-width: 1200px) and (max-width: 1400px) {
+ #personal-settings {
+ display: grid;
+ grid-template-columns: 1fr 2fr;
+ #personal-settings-avatar-container {
+ grid-template-columns: 1fr;
+ grid-template-rows: 1fr;
+ }
+ .personal-settings-container {
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr 1fr 1fr;
+ }
+ .profile-settings-container {
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr;
+ grid-column: 2;
+ }
+ }
+}
+
+@media (max-width: 1200px) {
+ #personal-settings {
+ display: grid;
+ grid-template-columns: 1fr;
+ #personal-settings-avatar-container {
+ grid-template-rows: 1fr;
+ }
+ .personal-settings-container {
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr 1fr 1fr;
+ }
+ .profile-settings-container {
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr;
+ }
+ }
+}
+
+@media (max-width: 560px) {
+ #personal-settings {
+ display: grid;
+ grid-template-columns: 1fr;
+ #personal-settings-avatar-container {
+ grid-template-rows: 1fr;
+ }
+ .personal-settings-container {
+ grid-template-columns: 1fr;
+ grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
+ }
+ .profile-settings-container {
+ grid-template-columns: 1fr;
+ grid-template-rows: 1fr 1fr;
+ }
+ }
+}
+
.personal-settings-container {
- display: inline-block;
- max-width: 600px;
- margin-bottom: 20px;
+ display: inline-grid;
+ grid-template-columns: 1fr 1fr;
+ grid-template-rows: 1fr 1fr 1fr 1fr;
&:after {
clear: both;
}
- &:not(#personal-settings-avatar-container) > div {
- float: left;
- width: 300px;
- }
> div {
h2 {
position: relative;
- margin-bottom: 5px;
+ margin-bottom: 12px;
display: inline-flex;
flex-wrap: nowrap;
justify-content: space-between;