From 33b1d85921e326e0d81c4bf1a6fa02fec2cbbd5c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 1 Apr 2018 22:07:25 +0300 Subject: [PATCH] border-radii moved to variables, made rgbo colors use theme data, customizable from settings screen. --- src/App.scss | 36 ++--- src/_variables.scss | 7 +- src/components/attachment/attachment.vue | 6 +- src/components/chat_panel/chat_panel.vue | 58 ++++---- src/components/login_form/login_form.vue | 10 +- src/components/media_upload/media_upload.vue | 2 +- .../notifications/notifications.scss | 2 +- .../post_status_form/post_status_form.vue | 16 ++- src/components/registration/registration.vue | 8 +- src/components/settings/settings.vue | 57 ++++---- src/components/status/status.vue | 10 +- .../style_switcher/style_switcher.js | 27 +++- .../style_switcher/style_switcher.vue | 23 ++- src/components/timeline/timeline.vue | 3 - src/components/user_card/user_card.vue | 9 +- .../user_card_content/user_card_content.vue | 136 ++++++++++++------ src/components/user_finder/user_finder.vue | 4 +- src/components/user_panel/user_panel.vue | 8 +- src/components/user_profile/user_profile.vue | 13 +- .../user_settings/user_settings.vue | 36 ++--- src/services/style_setter/style_setter.js | 26 +++- 21 files changed, 309 insertions(+), 188 deletions(-) diff --git a/src/App.scss b/src/App.scss index ec80626bc3..a7b565237f 100644 --- a/src/App.scss +++ b/src/App.scss @@ -51,7 +51,8 @@ button{ background-color: $fallback--btn; background-color: var(--btn, $fallback--btn); border: none; - border-radius: 5px; + border-radius: $fallback--btnRadius; + border-radius: var(--btnRadius, $fallback--btnRadius); cursor: pointer; border-top: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1px solid rgba(0, 0, 0, 0.2); @@ -79,7 +80,8 @@ button{ input, textarea, select { border: none; - border-radius: 5px; + border-radius: $fallback--btnRadius; + border-radius: var(--btnRadius, $fallback--btnRadius); border-bottom: 1px solid rgba(255, 255, 255, 0.2); border-top: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0px 0px 2px black inset; @@ -90,6 +92,7 @@ input, textarea, select { font-family: sans-serif; font-size: 14px; padding: 8px 7px 4px; + box-sizing: border-box; // TODO: Restyle