From 32d7e0e107094ec42924627786a131aa04774cae Mon Sep 17 00:00:00 2001 From: codecalm Date: Mon, 30 Nov 2020 23:00:19 +0100 Subject: [PATCH] colors fixes --- src/pages/colors.html | 136 ++++++++++++++++++++++++++++++++ src/scss/_variables.scss | 29 ++++--- src/scss/mixins/_functions.scss | 2 +- src/scss/ui/_avatars.scss | 2 +- src/scss/ui/_tables.scss | 8 ++ src/scss/utils/_colors.scss | 4 +- 6 files changed, 162 insertions(+), 19 deletions(-) create mode 100644 src/pages/colors.html diff --git a/src/pages/colors.html b/src/pages/colors.html new file mode 100644 index 00000000..c4f6b8f7 --- /dev/null +++ b/src/pages/colors.html @@ -0,0 +1,136 @@ +--- +title: Colors +page-header: Colors +--- + +{% assign colors = '' | split: '' %} +{% for color in site.colors %} +{% assign colors = colors | push: color[0] %} +{% endfor %} +{% assign colors = colors | push: 'dark' %} +{% assign colors = colors | push: 'muted' %} + +
+
+
+ + + {% for color in colors %} + + {% endfor %} + + + {% for color in colors %} + + {% endfor %} + + + {% for color in colors %} + + {% endfor %} + + + {% for color in colors %} + + {% endfor %} + + + {% for color in colors %} + + {% endfor %} + + + {% for color in colors %} + + {% endfor %} + +
+
{{ color | slice: 0, 2 }} +
+
+
{{ color | slice: 0, 2 }}
+
+
{{ color | slice: 0, 2 }}
+
+
{{ color | slice: 0, 2 }}
+
+ {% if color == 'dark' %}{% assign c = 'white' %}{% else %}{% assign c = color %}{% endif %} +
{{ c | slice: 0, 2 }}
+
+ {% if color == 'dark' %}{% assign c = 'white' %}{% else %}{% assign c = color %}{% endif %} +
{{ c | slice: 0, 2 }}
+
+
+
+
+
+ +{% comment %} +{% capture_once scripts %} + +{% endcapture_once %} +{% endcomment %} \ No newline at end of file diff --git a/src/scss/_variables.scss b/src/scss/_variables.scss index 1019d269..8b9c9c36 100644 --- a/src/scss/_variables.scss +++ b/src/scss/_variables.scss @@ -113,27 +113,27 @@ $gray-900: $dark !default; $blue: #206bc4 !default; $azure: #4299e1 !default; -$indigo: #6574cd !default; -$purple: #9f7aea !default; -$pink: #ed64a6 !default; -$red: #e53e3e !default; -$orange: #ed8936 !default; -$yellow: #fab005 !default; -$lime: #82c91e !default; -$green: #5eba00 !default; -$teal: #2bcbba !default; +$indigo: #4263eb !default; +$purple: #ae3ec9 !default; +$pink: #d6336c !default; +$red: #d63939 !default; +$orange: #f76707 !default; +$yellow: #f59f00 !default; +$lime: #74b816 !default; +$green: #2fb344 !default; +$teal: #0ca678 !default; $cyan: #17a2b8 !default; $black: #000000 !default; $white: #ffffff !default; -$text-muted: mix($body-color, #fff, percentage($text-muted-opacity)) !default; -$text-muted-light: mix($body-color, #fff, percentage($text-muted-light-opacity)) !default; -$text-muted-dark: mix($body-color, #fff, percentage($text-muted-dark-opacity)) !default; +$text-muted: mix($body-color, #ffffff, percentage($text-muted-opacity)) !default; +$text-muted-light: mix($body-color, #ffffff, percentage($text-muted-light-opacity)) !default; +$text-muted-dark: mix($body-color, #ffffff, percentage($text-muted-dark-opacity)) !default; -$border-color: mix($text-muted, #fff, percentage($border-opacity)) !default; +$border-color: mix($text-muted, #ffffff, percentage($border-opacity)) !default; $border-color-transparent: rgba($text-muted, $border-opacity) !default; -$border-color-dark: mix($text-muted, #fff, percentage($border-dark-opacity)) !default; +$border-color-dark: mix($text-muted, #ffffff, percentage($border-dark-opacity)) !default; $border-color-dark-transparent: rgba($text-muted, $border-dark-opacity) !default; $active-bg: rgba($blue, .06) !default; @@ -351,7 +351,6 @@ $dropdown-link-active-color: $primary !default; $dropdown-link-active-bg: $active-bg !default; - //loader $loader-size: 2.5rem !default; diff --git a/src/scss/mixins/_functions.scss b/src/scss/mixins/_functions.scss index dfccaf7c..b1140120 100644 --- a/src/scss/mixins/_functions.scss +++ b/src/scss/mixins/_functions.scss @@ -11,7 +11,7 @@ } @function theme-color-darker($color) { - @return shade-color($color, 16%); + @return shade-color($color, 10%); } @function str-replace($string, $search, $replace: "") { diff --git a/src/scss/ui/_avatars.scss b/src/scss/ui/_avatars.scss index 8247874b..e738de18 100644 --- a/src/scss/ui/_avatars.scss +++ b/src/scss/ui/_avatars.scss @@ -4,7 +4,7 @@ width: var(--#{$variable-prefix}avatar-size); height: var(--#{$variable-prefix}avatar-size); font-size: calc(var(--#{$variable-prefix}avatar-size) / #{$line-height-base * 2}); - font-weight: $font-weight-normal; + font-weight: $font-weight-medium; display: inline-flex; align-items: center; justify-content: center; diff --git a/src/scss/ui/_tables.scss b/src/scss/ui/_tables.scss index 619d5206..91320a03 100644 --- a/src/scss/ui/_tables.scss +++ b/src/scss/ui/_tables.scss @@ -14,6 +14,14 @@ } } +.table-responsive { + margin-bottom: $spacer; + + .table { + margin-bottom: 0; + } +} + .table-transparent { thead { th { diff --git a/src/scss/utils/_colors.scss b/src/scss/utils/_colors.scss index 6e4274c2..7fa558b8 100644 --- a/src/scss/utils/_colors.scss +++ b/src/scss/utils/_colors.scss @@ -16,7 +16,7 @@ SOCIAL COLORS @if $enable-extra-colors { - @each $color, $value in $colors { + @each $color, $value in map-merge($colors, (dark: $dark, muted: $text-muted, white: $white)) { .bg-#{$color} { background: $value; } @@ -26,7 +26,7 @@ SOCIAL COLORS } .bg-#{$color}-lt { - color: $value !important; + color: theme-color-darker($value) !important; background: theme-color-lighter($value, true) !important; } } -- GitLab