Skip to content

Commit 2325d36

Browse files
committed
tweaks
1 parent 676aef3 commit 2325d36

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

packages/site-kit/src/lib/components/Banner.svelte

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
<button
4040
aria-label="Dismiss"
41+
class="raised primary"
4142
onclick={() => {
4243
$hidden[banner.id] = true;
4344
}}
@@ -63,14 +64,15 @@
6364
height: var(--sk-banner-height);
6465
background: var(--sk-theme-1-variant);
6566
color: white;
66-
padding: 0 3rem;
67+
padding: 0 4rem;
6768
}
6869
6970
button {
7071
position: absolute;
71-
top: 0;
72-
right: 1rem;
72+
right: var(--sk-page-padding-side);
7373
height: 100%;
74+
width: 3.2rem;
75+
height: 3.2rem;
7476
}
7577
7678
a {
@@ -103,6 +105,10 @@
103105
bottom: 0;
104106
}
105107
108+
button {
109+
right: 1rem;
110+
}
111+
106112
.large {
107113
display: initial;
108114
}

packages/site-kit/src/lib/styles/utils/buttons.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@
1010
hsla(12, 93%, 70%);
1111
--sk-raised-active-color: hsla(12, 93%, 30%) hsla(12, 93%, 70%) hsla(12, 93%, 70%)
1212
hsla(12, 93%, 30%);
13-
background: var(--sk-theme-1);
13+
background: var(--sk-theme-1-variant);
1414
color: white;
15+
16+
:root.dark & {
17+
--sk-raised-color: hsla(12, 93%, 60%) hsla(12, 93%, 30%) hsla(12, 93%, 30%) hsla(12, 93%, 60%);
18+
--sk-raised-hover-color: hsla(12, 93%, 65%) hsla(12, 93%, 27%) hsla(12, 93%, 27%)
19+
hsla(12, 93%, 65%);
20+
--sk-raised-active-color: hsla(12, 93%, 25%) hsla(12, 93%, 70%) hsla(12, 93%, 70%)
21+
hsla(12, 93%, 25%);
22+
}
1523
}
1624

1725
&:hover {

0 commit comments

Comments
 (0)