From c95ced58bab3bbf84e2be372b8c138051d983da9 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 22 Mar 2021 16:32:25 +0200 Subject: Major redesign of technology and language selection design in profile settings (with this, profile settings is fully redesigned) --- .../profile-settings.component.css | 105 +-------------------- .../profile-settings.component.html | 70 ++++++++------ src/styles.css | 10 ++ 3 files changed, 57 insertions(+), 128 deletions(-) diff --git a/src/app/components/profile-settings/profile-settings.component.css b/src/app/components/profile-settings/profile-settings.component.css index 347c650..a8451c2 100644 --- a/src/app/components/profile-settings/profile-settings.component.css +++ b/src/app/components/profile-settings/profile-settings.component.css @@ -1,107 +1,10 @@ -* { - box-sizing: border-box; -} - -#content { - max-width: 22em; - justify-content: start; -} - -form { - width: 100%; -} - -hr { - width: calc(100% - 1em); - color: black; - border: 1px solid black; -} - -/* Navigation bar (for loggedin user) */ - -#navigation { - display: flex; - width: 100%; -} - -#navigation > .submit-btn { - flex: 1; - margin-top: 0; - margin-left: .5em; - font-size: inherit; -} - -#navigation > .submit-btn:nth-of-type(1) { - margin-left: 0; -} - -/* Form */ - -#update-profile-picture { - display: flex; - align-items: center; - justify-content: center; - padding: 0 .5em; - flex-wrap: wrap; -} - #profile-picture { width: 5em; height: 5em; } -#submit-file { - display: flex; - flex-direction: column; - align-items: center; - padding: 1em; -} - -#upload-file:hover { - cursor: inherit; -} - -#upload-file > input:hover { - cursor: pointer; -} - -#update-user { - margin-top: 1.1em; -} - -#all-languages, #all-technologies { - display: flex; - flex-wrap: wrap; -} - -/* Buttons */ - -.edit-btn { - border-radius: 0 !important; - color: var(--focus-color); - background-color: white; - border-color: var(--focus-color); -} - -.edit-btn:hover { - color: white; - background-color: black; - border-color: black !important; -} - -.submit-btn { - margin-bottom: .5em; -} - -#update-profile-btn { - margin-top: 1em; -} - -#confirm-delete { - box-sizing: border-box; - width: 100%; - background-color: var(--failure); - color: white; - padding: .2em; - text-align: center; +.sec-info { + width: fit-content; + background-color: #424242; + margin: 0 0.3em 0.3em 0; } diff --git a/src/app/components/profile-settings/profile-settings.component.html b/src/app/components/profile-settings/profile-settings.component.html index e5edf42..f5989ef 100644 --- a/src/app/components/profile-settings/profile-settings.component.html +++ b/src/app/components/profile-settings/profile-settings.component.html @@ -3,7 +3,7 @@
-
+
@@ -12,7 +12,7 @@
-
+
@@ -59,41 +59,57 @@
- -
-
- -
- -
+ +
+
+ + +
+
+ No languages available! +
+
+ Available languages:
- Available languages: -
-
+
+
{{ lang.name }}
-
- -
-
- -
- -
+
+ +
+
+ + +
+
+ No technologies available! +
+
+ Available technologies:
- Available technologies: -
-
+
+
{{ tech.name }}
-
-
+
+ + +
+ - -
diff --git a/src/styles.css b/src/styles.css index a20cef2..6c43f1f 100644 --- a/src/styles.css +++ b/src/styles.css @@ -329,6 +329,16 @@ input[type=file]::file-selector-button { margin-bottom: 0.5em; } +.margin-top-bot-very-big { + margin-top: 0.7em; + margin-bottom: 0.7em; +} + +.margin-top-bot-smaller { + margin-top: 0.3em; + margin-bottom: 0.3em; +} + .margin-top-bot-small { margin-top: 0.2em; margin-bottom: 0.2em; -- cgit v1.2.3