From bd8acfcf510ce53504bd2670ef7eaa03d139a964 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Thu, 29 Jul 2021 20:18:40 +0200 Subject: [PATCH] Fixed some styles --- resources/assets/themes/base.scss | 28 ++++++++++++++++++++-- resources/assets/themes/cyborg_styles.scss | 7 ------ resources/assets/themes/theme1.scss | 2 ++ resources/views/macros/base.twig | 4 ++-- resources/views/macros/form.twig | 4 ++-- resources/views/pages/design.twig | 4 ++-- webpack.config.js | 4 ++-- 7 files changed, 36 insertions(+), 17 deletions(-) diff --git a/resources/assets/themes/base.scss b/resources/assets/themes/base.scss index 14ec326f..d6776aaa 100644 --- a/resources/assets/themes/base.scss +++ b/resources/assets/themes/base.scss @@ -1,9 +1,11 @@ -// select 2 variables -$cursor-disabled: false; +// Basic variables +@use "sass:map"; +// select 2 variables $link-decoration: none !default; $link-hover-decoration: underline !default; +// Imports @import "~bootstrap/scss/functions"; @import "~bootstrap/scss/variables"; @import "~bootstrap/scss/mixins"; @@ -269,10 +271,27 @@ span.ref-id[id] { } } +// Cards .card-body > *:last-child { margin-bottom: 0; } +.card-header { + &.bg-dark { + color: map.get($theme-colors, "light");; + } + + &.bg-light { + color: map.get($theme-colors, "dark");; + } +} + +// code tag +code { + background-color: $input-disabled-bg; + @include border-radius($input-border-radius); +} + @keyframes pulse { 0% { transform: rotate(0deg); @@ -343,3 +362,8 @@ span.ref-id[id] { } } } + +// Forms +.form-label { + font-weight: $font-weight-bold; +} diff --git a/resources/assets/themes/cyborg_styles.scss b/resources/assets/themes/cyborg_styles.scss index 75a3b9e6..b34ba050 100644 --- a/resources/assets/themes/cyborg_styles.scss +++ b/resources/assets/themes/cyborg_styles.scss @@ -158,10 +158,3 @@ table, color: #fff; } } - -// code tag -code { - background-color: $input-bg-disabled; - color: $input-color; -} - diff --git a/resources/assets/themes/theme1.scss b/resources/assets/themes/theme1.scss index 260e8348..651d73c1 100644 --- a/resources/assets/themes/theme1.scss +++ b/resources/assets/themes/theme1.scss @@ -53,6 +53,8 @@ $state-danger-border: darken($state-danger-bg, 3%); $headings-small-color: $gray-light; +$nav-tabs-link-active-color: $gray-light; + code { background-color: $state-info-bg; color: $state-info-text; diff --git a/resources/views/macros/base.twig b/resources/views/macros/base.twig index bf928b6e..5d3d42bc 100644 --- a/resources/views/macros/base.twig +++ b/resources/views/macros/base.twig @@ -1,5 +1,5 @@ {% macro angel() %} - + {% endmacro %} {% macro icon(icon, color) %} @@ -19,7 +19,7 @@ {% endmacro %} {% macro button(label, url, type, size, title) %} - + {{ label }} {% endmacro %} diff --git a/resources/views/macros/form.twig b/resources/views/macros/form.twig index c9ec5cf9..8d99478b 100644 --- a/resources/views/macros/form.twig +++ b/resources/views/macros/form.twig @@ -67,7 +67,7 @@ {% macro button(label, opt) %}