diff --git a/src/presentation/assets/styles/_colors.scss b/src/presentation/assets/styles/_colors.scss index 82b5c521..b5434895 100644 --- a/src/presentation/assets/styles/_colors.scss +++ b/src/presentation/assets/styles/_colors.scss @@ -1,7 +1,10 @@ /* Colors used throughout the application - Inspired by material color system: https://material.io/design/color/the-color-system.html, https://material.io/develop/web/theming/color - Colors are named using Vue Design System: https://github.com/viljamis/vue-design-system/wiki/Naming-of-Things#naming-colors + Inspired by the material color system (https://material.io/design/color/the-color-system.html, https://material.io/develop/web/theming/color). + Colors are named according to the Vue Design System guidelines (https://github.com/viljamis/vue-design-system/wiki/Naming-of-Things#naming-colors): + - Default: The default base color is `color-{name}`. + - Darker than default: Shades are named as `color-{name}-dark`, `color-{name}-darker`, or `color-{name}-darkest`. + - Lighter than default: Tints are named as `color-{name}-light`, `color-{name}-lighter`, or `color-{name}-lightest`. */ // --- Primary | The color displayed most frequently across screens and components @@ -26,3 +29,12 @@ $color-on-surface : #4d5156; // Background | Appears behind scrollable content. $color-background : #e6ecf4; + + +/* + Application-specific colors: + These are tailored to the specific needs of the application and derived from the above theme colors. + Use these colors to ensure consistent styling across components. When adding new colors, reference existing theme colors. + This approach maintains a cohesive look and feel and simplifies theme adjustments. +*/ +$color-scripts-bg: $color-primary-darker; diff --git a/src/presentation/assets/styles/_mixins.scss b/src/presentation/assets/styles/_mixins.scss index d7466e13..7af67c66 100644 --- a/src/presentation/assets/styles/_mixins.scss +++ b/src/presentation/assets/styles/_mixins.scss @@ -64,4 +64,4 @@ margin: 0; padding: 0; list-style: none; -} \ No newline at end of file +} diff --git a/src/presentation/components/Scripts/View/Cards/CardListItem.vue b/src/presentation/components/Scripts/View/Cards/CardListItem.vue index 3f12a132..906fc8b1 100644 --- a/src/presentation/components/Scripts/View/Cards/CardListItem.vue +++ b/src/presentation/components/Scripts/View/Cards/CardListItem.vue @@ -37,7 +37,10 @@ />
@@ -159,27 +162,26 @@ $card-horizontal-gap : $card-gap; &:after { transition: all 0.3s ease-in-out; } - &__title { + .card__inner__title { display: flex; flex-direction: column; flex: 1; justify-content: center; } - &__selection_indicator { + .card__inner__selection_indicator { height: $card-inner-padding; margin-right: -$card-inner-padding; padding-right: 10px; display: flex; justify-content: flex-end; } - - &__expand-icon { + .card__inner__expand-icon { width: 100%; margin-top: .25em; vertical-align: middle; } } - &__expander { + .card__expander { transition: all 0.2s ease-in-out; position: relative; background-color: $color-primary-darker; @@ -189,17 +191,14 @@ $card-horizontal-gap : $card-gap; align-items: center; flex-direction: column; - &__content { + .card__expander__content { display: flex; justify-content: center; word-break: break-word; - margin-bottom: 1em; - margin-left: 0.5em; - margin-right: 0.5em; max-width: 100%; // Prevents horizontal expansion of inner content (e.g., when a code block is shown) } - &__close-button { + .card__expander__close-button { font-size: 1.5em; align-self: flex-end; margin-right: 0.25em; diff --git a/src/presentation/components/Scripts/View/TheScriptsView.vue b/src/presentation/components/Scripts/View/TheScriptsView.vue index f7742b92..4a24ef1f 100644 --- a/src/presentation/components/Scripts/View/TheScriptsView.vue +++ b/src/presentation/components/Scripts/View/TheScriptsView.vue @@ -5,9 +5,7 @@