@cdc/core 4.23.9 → 4.23.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  @use 'sass:string';
2
+ @import './../../variables';
2
3
 
3
4
  $theme: (
4
5
  'amber': (
@@ -87,62 +88,43 @@ $theme: (
87
88
  }
88
89
 
89
90
  &.theme-#{$theme-name} {
90
- .cove-component__content:not(.no-borders).component--has-borderColorTheme {
91
- border-left: 1px solid string.unquote(nth($theme-colors, 1));
92
- border-right: 1px solid string.unquote(nth($theme-colors, 1));
93
- border-bottom: 1px solid string.unquote(nth($theme-colors, 1));
94
- }
95
-
96
- // when component doesn't have a title add border top
97
- .cove-component__inner:not(.component--has-title) .cove-component__content.component--has-borderColorTheme:not(.no-borders) {
98
- border-top: 1px solid string.unquote(nth($theme-colors, 1));
99
- }
100
-
101
- .cove-component__inner:not(.component--has-title) .cove-component__content {
102
- border-top: 1px solid #ccc;
91
+ /// area that appears underneath the title of the component.
92
+ .cove-component__content {
93
+ /// when there are borders on a component
94
+ &:not(.no-borders) {
95
+ /// borders are the theme color
96
+ &.component--has-borderColorTheme {
97
+ border: 1px solid string.unquote(nth($theme-colors, 1));
98
+ }
99
+ /// using default border color to draw borders
100
+ &:not(.component--has-borderColorTheme) {
101
+ border: 1px solid $lightGray;
102
+ }
103
+ &.component--has-title {
104
+ border-top: none !important;
105
+ }
106
+ }
107
+
108
+ /// left accent bar
109
+ &.component--has-accent {
110
+ border-left: 0.5rem solid string.unquote(nth($theme-colors, 1)) !important;
111
+ }
112
+
113
+ /// Apply a background color
114
+ &.component--has-background:not(.component--hideBackgroundColor) {
115
+ background: string.unquote(nth($theme-colors, 3));
116
+ }
103
117
  }
104
118
 
105
119
  .cove-component__header {
106
120
  border-color: string.unquote(nth($theme-colors, 2));
107
121
  }
108
-
109
- .cove-component__content.component--has-accent {
110
- border-left: 0.5rem solid string.unquote(nth($theme-colors, 1)) !important;
111
- }
112
-
113
- .cove-component__content.component--has-background:not(.component--hideBackgroundColor) {
114
- background: string.unquote(nth($theme-colors, 3));
115
- }
116
122
  }
117
123
 
118
124
  &.theme-#{$theme-name} {
119
- .cove-component__content:not(.no-borders).component--has-borderColorTheme {
120
- border-left: 1px solid string.unquote(nth($theme-colors, 1));
121
- border-right: 1px solid string.unquote(nth($theme-colors, 1));
122
- border-bottom: 1px solid string.unquote(nth($theme-colors, 1));
123
- }
124
-
125
- // when component doesn't have a title add border top
126
- .cove-component__inner:not(.component--has-title) .cove-component__content.component--has-borderColorTheme:not(.no-borders) {
127
- border-top: 1px solid string.unquote(nth($theme-colors, 1));
128
- }
129
-
130
- // should probably be in color definitions but logically makes sense here.
131
- .cove-component__inner:not(.component--has-title) .cove-component__content {
132
- border-top: 1px solid #ccc;
133
- }
134
-
135
125
  .cove-component__header {
136
126
  border-color: string.unquote(nth($theme-colors, 2));
137
127
  }
138
-
139
- .cove-component__content.component--has-accent {
140
- border-left: 0.5rem solid string.unquote(nth($theme-colors, 1)) !important;
141
- }
142
-
143
- .cove-component__content.component--has-background:not(.component--hideBackgroundColor) {
144
- background: string.unquote(nth($theme-colors, 3));
145
- }
146
128
  }
147
129
  }
148
130
  }