Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nmerget committed Jan 8, 2025
1 parent 78d59a2 commit 4db6830
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 22 deletions.
1 change: 1 addition & 0 deletions .config/.jscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"packages/components/src/components/radio/radio.lite.tsx",
"packages/components/src/components/tag/tag.spec.tsx",
"packages/foundations/assets/icons/functional/fonts/**",
"packages/foundations/assets/icons/fonts/**",
"packages/foundations/src",
"showcases/**/results/**",
"showcases/angular-showcase/.angular/cache",
Expand Down
27 changes: 27 additions & 0 deletions packages/foundations/scss/colors/_default-palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,136 +172,163 @@
initial-value: #070708;
inherits: true;
}

@property --db-brand-1 {
syntax: "<color>";
initial-value: #0d0e10;
inherits: true;
}

@property --db-brand-2 {
syntax: "<color>";
initial-value: #121315;
inherits: true;
}

@property --db-brand-3 {
syntax: "<color>";
initial-value: #1a1c1e;
inherits: true;
}

@property --db-brand-4 {
syntax: "<color>";
initial-value: #2e3134;
inherits: true;
}

@property --db-brand-5 {
syntax: "<color>";
initial-value: #44474c;
inherits: true;
}

@property --db-brand-6 {
syntax: "<color>";
initial-value: #5a5f65;
inherits: true;
}

@property --db-brand-7 {
syntax: "<color>";
initial-value: #72777f;
inherits: true;
}

@property --db-brand-8 {
syntax: "<color>";
initial-value: #8b919a;
inherits: true;
}

@property --db-brand-9 {
syntax: "<color>";
initial-value: #a6acb4;
inherits: true;
}

@property --db-brand-10 {
syntax: "<color>";
initial-value: #c3c7cc;
inherits: true;
}

@property --db-brand-11 {
syntax: "<color>";
initial-value: #e1e3e5;
inherits: true;
}

@property --db-brand-12 {
syntax: "<color>";
initial-value: #edeef0;
inherits: true;
}

@property --db-brand-13 {
syntax: "<color>";
initial-value: #f3f4f5;
inherits: true;
}

@property --db-brand-14 {
syntax: "<color>";
initial-value: #f9f9fa;
inherits: true;
}

@property --db-brand-origin {
syntax: "<color>";
initial-value: #242629;
inherits: true;
}

@property --db-brand-origin-light-default {
syntax: "<color>";
initial-value: #242629;
inherits: true;
}

@property --db-brand-origin-light-hovered {
syntax: "<color>";
initial-value: #393c40;
inherits: true;
}

@property --db-brand-origin-light-pressed {
syntax: "<color>";
initial-value: #4f5358;
inherits: true;
}

@property --db-brand-on-origin-light-default {
syntax: "<color>";
initial-value: #f9f9fa;
inherits: true;
}

@property --db-brand-on-origin-light-hovered {
syntax: "<color>";
initial-value: #dcdce2;
inherits: true;
}

@property --db-brand-on-origin-light-pressed {
syntax: "<color>";
initial-value: #c0c0cb;
inherits: true;
}

@property --db-brand-origin-dark-default {
syntax: "<color>";
initial-value: #242629;
inherits: true;
}

@property --db-brand-origin-dark-hovered {
syntax: "<color>";
initial-value: #393c40;
inherits: true;
}

@property --db-brand-origin-dark-pressed {
syntax: "<color>";
initial-value: #4f5358;
inherits: true;
}

@property --db-brand-on-origin-dark-default {
syntax: "<color>";
initial-value: #f9f9fa;
inherits: true;
}

@property --db-brand-on-origin-dark-hovered {
syntax: "<color>";
initial-value: #dcdce2;
inherits: true;
}

@property --db-brand-on-origin-dark-pressed {
syntax: "<color>";
initial-value: #c0c0cb;
Expand Down
5 changes: 2 additions & 3 deletions showcases/patternhub/styles/decision-tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@
}

> .column-1-3 {
grid-column-start: 1;
grid-column-end: 3;
grid-column: 1 / 3;
}

> a > div {
height: 100%;
block-size: 100%;
}
}
53 changes: 34 additions & 19 deletions showcases/patternhub/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ body:not(:has(.db-page)) {
}

#__next {
height: inherit;
block-size: inherit;
}

#__next > div {
height: inherit;
block-size: inherit;
}

db-mainnavigation {
Expand All @@ -35,14 +36,14 @@ github-version-switcher {
}

iframe {
width: 100%;
height: calc(100% - 8px) !important;
inline-size: 100%;
block-size: calc(100% - 8px) !important;
}

.example-list {
dd {
margin-block-end: variables.$db-spacing-fixed-md;
max-width: 500px;
max-inline-size: 500px;
}
}

Expand Down Expand Up @@ -81,7 +82,7 @@ iframe {
}

.is-properties {
height: 100%;
block-size: 100%;
overflow: auto;

h1,
Expand All @@ -93,15 +94,16 @@ iframe {
/* TODO: Use real table css in future */
table {
@extend %db-density-functional;
width: 100%;

inline-size: 100%;
border-collapse: collapse;
}

table td,
table th {
border: 1px solid colors.$db-adaptive-on-bg-basic-emphasis-60-default;
padding: variables.$db-spacing-fixed-md;
max-width: 33vw;
max-inline-size: 33vw;
}

table tr:nth-child(even) {
Expand All @@ -110,18 +112,20 @@ table tr:nth-child(even) {

table th {
@extend %db-neutral-bg-basic-transparent-semi;

padding-inline: variables.$db-spacing-fixed-md;
}

.version-switcher {
max-width: variables.$db-sizing-3xl;
max-inline-size: variables.$db-sizing-3xl;
}

/* Workaround for current db-page from db-ui-elements */
div[class^="ch-"] {
div,
span {
@extend %db-overwrite-font-size-sm;

color: colors.$db-adaptive-on-bg-basic-emphasis-100-default;
}
}
Expand All @@ -137,6 +141,7 @@ div[class^="ch-"] {

%grid-container {
--columns: 1;

display: grid;
grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
gap: variables.$db-spacing-fixed-md;
Expand All @@ -154,6 +159,7 @@ div[class^="ch-"] {

.icons-overview-container {
@extend %grid-container;

--columns: 2;

@include screen-sizes.screen() {
Expand All @@ -175,6 +181,7 @@ div[class^="ch-"] {
// colors overview
.color-overview-container {
@extend %grid-container;

position: relative;
padding: variables.$db-spacing-fixed-md 0;

Expand Down Expand Up @@ -261,7 +268,7 @@ div[class^="ch-"] {
background-color: colors.$db-successful-bg-inverted-contrast-high-default;
color: colors.$db-successful-on-bg-inverted-default;
border-color: colors.$db-successful-bg-inverted-contrast-high-default;
height: 100%;
block-size: 100%;
display: flex;
justify-content: center;
position: absolute;
Expand All @@ -278,6 +285,7 @@ div[class^="ch-"] {
.example-spacing-fixed,
.example-spacing-responsive {
border: 1px solid black;

> div {
display: flex;
border: 1px solid
Expand All @@ -294,19 +302,20 @@ div[class^="ch-"] {
.gap1,
.gap2 {
@extend %spacing;
width: variables.$db-spacing-fixed-xl;

inline-size: variables.$db-spacing-fixed-xl;
}

$icon-width: calc(
var(--db-base-line-height) * var(--db-base-font-size)
);

.gap1 {
left: $icon-width;
inset-inline-start: $icon-width;
}

.gap2 {
right: $icon-width;
inset-inline-end: $icon-width;
}
}

Expand All @@ -318,15 +327,20 @@ div[class^="ch-"] {
.margin1,
.margin2 {
@extend %spacing;
width: variables.$db-spacing-responsive-sm;

inline-size: variables.$db-spacing-responsive-sm;
}

.margin1 {
left: calc(-1 * #{variables.$db-spacing-responsive-sm});
inset-inline-start: calc(
-1 * #{variables.$db-spacing-responsive-sm}
);
}

.margin2 {
right: calc(-1 * #{variables.$db-spacing-responsive-sm});
inset-inline-end: calc(
-1 * #{variables.$db-spacing-responsive-sm}
);
}
}

Expand All @@ -338,6 +352,7 @@ div[class^="ch-"] {

.sizing {
@extend %spacing;

background-color: colors.$db-warning-bg-inverted-contrast-high-default;
color: colors.$db-warning-on-bg-inverted-default;
border-color: colors.$db-warning-bg-inverted-contrast-high-default;
Expand Down Expand Up @@ -395,7 +410,8 @@ h6 {
font-size: 0;
}

&:hover {
&:hover,
&:focus {
a:is(.header-link) {
visibility: visible;
}
Expand Down Expand Up @@ -475,8 +491,7 @@ h6 {
inset-block-end: variables.$db-spacing-fixed-sm;

@include screen-sizes.screen("md") {
inset-block-end: auto;
inset-block-start: variables.$db-spacing-fixed-sm;
inset-block: variables.$db-spacing-fixed-sm auto;
}
}
}
Expand Down
Loading

0 comments on commit 4db6830

Please sign in to comment.