aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorLibravatar Romain <46404814+yourcontact@users.noreply.github.com>2020-04-22 17:48:49 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-22 15:48:49 +0000
commitf4d9c4e3285bc9782187e46ee0f39748925c3689 (patch)
treee717e3976c334c244e9e32e1f3cdbd1622f8d395 /src/styles
parentdocs: add saruwman as a contributor (#627) (diff)
downloadferdium-app-f4d9c4e3285bc9782187e46ee0f39748925c3689.tar.gz
ferdium-app-f4d9c4e3285bc9782187e46ee0f39748925c3689.tar.zst
ferdium-app-f4d9c4e3285bc9782187e46ee0f39748925c3689.zip
Organize settings with horizontal tabs (#569)
* Align settings section titles on same row * Add className to Settings Titles to copy tab layout from 'Available Services' * Add all Settings Titles to the horizontal tab layout at the top of the form * Add state for active settings taband onClick * Add condition for each Settings div to show when activeSetttingsTab plus fix typo 'appearance' * Add condition for each Settings div to show when activeSetttingsTab plus fix typo 'appearance' * Add margins in between setting tabs * Remove 50px of top margin to minimize blank space above tabs * Remove temporary &nbsp;&nbsp; in between tabs now that CSS is in place * Apply code changes * Delete unused code const { activeSettingsTab } = this.state; Co-authored-by: Amine Mouafik <amine@mouafik.fr>
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/badge.scss1
-rw-r--r--src/styles/settings.scss4
-rw-r--r--src/styles/type.scss2
3 files changed, 6 insertions, 1 deletions
diff --git a/src/styles/badge.scss b/src/styles/badge.scss
index 69879de31..728200d03 100644
--- a/src/styles/badge.scss
+++ b/src/styles/badge.scss
@@ -4,6 +4,7 @@
4 background: $dark-theme-gray; 4 background: $dark-theme-gray;
5 border-radius: $theme-border-radius-small; 5 border-radius: $theme-border-radius-small;
6 color: $dark-theme-gray-lightest; 6 color: $dark-theme-gray-lightest;
7 margin-right: 10px;
7 8
8 &.badge--primary, 9 &.badge--primary,
9 &.badge--premium { 10 &.badge--premium {
diff --git a/src/styles/settings.scss b/src/styles/settings.scss
index 14cc91f87..580917fe2 100644
--- a/src/styles/settings.scss
+++ b/src/styles/settings.scss
@@ -187,6 +187,10 @@
187 .mdi { color: $theme-gray-light; } 187 .mdi { color: $theme-gray-light; }
188 } 188 }
189 189
190 .settings_titles {
191 display:inline-block;
192 }
193
190 .settings__body { 194 .settings__body {
191 flex: 1; 195 flex: 1;
192 margin: 15px; 196 margin: 15px;
diff --git a/src/styles/type.scss b/src/styles/type.scss
index 636b8fd36..5b1160d0b 100644
--- a/src/styles/type.scss
+++ b/src/styles/type.scss
@@ -19,7 +19,7 @@ h2 {
19 font-weight: 500; 19 font-weight: 500;
20 letter-spacing: -1px; 20 letter-spacing: -1px;
21 margin-bottom: 25px; 21 margin-bottom: 25px;
22 margin-top: 55px; 22 margin-top: 5px;
23 23
24 &:first-of-type { margin-top: 0; } 24 &:first-of-type { margin-top: 0; }
25} 25}