Skip to content

Commit 0c7e3dd

Browse files
committed
WIP: Adding components/ CSS from Dispatcher port
1 parent 963c4e7 commit 0c7e3dd

12 files changed

+100
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.datatable-filters {
2+
padding: var(--wa-space-s);
3+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
wa-dropdown .dropdown-navigation {
2+
background-color: var(--wa-color-surface-raised);
3+
border: var(--wa-border-style) var(--wa-border-width-s) var(--wa-color-surface-border);
4+
border-radius: var(--wa-border-radius-m);
5+
}
6+
7+
.dropdown-navigation {
8+
padding-block: var(--wa-space-m);
9+
}
10+
11+
.dropdown-navigation > *:not(wa-divider) {
12+
padding-inline: var(--wa-space-m);
13+
}

css/components/field-title.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.field-title {
2+
> div {
3+
min-inline-size: max-content;
4+
}
5+
}

css/components/icon-text.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.icon-text {
2+
> span {
3+
min-inline-size: max-content;
4+
}
5+
}

css/components/index.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@use 'toast';
2+
@use 'wa-component-with-fallback';
3+
@use 'dropdown-navigation';
4+
@use 'icon-text';
5+
@use 'field-title';
6+
@use 'user-name';
7+
@use 'organization-name';
8+
@use 'navigation-list';
9+
@use 'navigation-link';
10+
@use 'pagination-goto-form';
11+
@use 'datatable-filters';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.navigation-link {
2+
padding: var(--wa-space-2xs) var(--wa-space-xs);
3+
}
4+
5+
.navigation-link[data-selected] {
6+
background-color: var(--background-color);
7+
border: 1px solid var(--border-color);
8+
color: var(--text-color);
9+
border-radius: var(--wa-border-radius-s);
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.navigation-list {
2+
list-style: none;
3+
margin: 0;
4+
5+
> li {
6+
padding: 0;
7+
}
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.organization-name {
2+
> span {
3+
min-inline-size: max-content;
4+
}
5+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.pagination-goto-form {
2+
fieldset{
3+
max-inline-size: max-content;
4+
padding: var(--wa-space-xs);
5+
}
6+
7+
input {
8+
min-inline-size: max-content;
9+
max-inline-size: max-content;
10+
}
11+
}

css/components/toast.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
dialog.toast {
2+
margin: 0;
3+
padding: 0;
4+
border: none;
5+
position: static;
6+
box-shadow: unset;
7+
}
8+
9+
toast-dialog {
10+
[remaining-time-indicator] {
11+
--size: 2rem;
12+
--track-color: var(--wa-color-fill-normal);
13+
--indicator-color: var(--wa-color-fill-loud);
14+
}
15+
}

0 commit comments

Comments
 (0)