Skip to content

Commit 60e9cdb

Browse files
committed
Update styles for color theme page
1 parent 9bbab54 commit 60e9cdb

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

app/javascript/css/application.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
@import './components/newsletter-banner.css';
3333
@import './components/anchors.scss';
3434
@import './components/callout.css';
35-
@import './components/color-theme.css';
35+
@import './components/color-theme.scss';

app/javascript/css/baseline.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,11 @@ svg {
621621

622622
button,
623623
input,
624+
select,
624625
textarea {
625626
background-color: var(--joy-dark);
626627
}
628+
select {
629+
color: var(--joy-text);
630+
}
627631
}

app/javascript/css/components/button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.button {
22
border-radius: 0.375rem;
3-
padding: 0.5rem 0.75rem;
3+
padding: 0.625rem 0.75rem;
44
display: inline-flex;
55
align-items: center;
66
font-size: 0.875rem;

app/javascript/css/components/color-theme.css renamed to app/javascript/css/components/color-theme.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
@import '../config/variables.scss';
2+
13
.color-theme {
24
color: var(--joy-background-clean);
3-
margin-bottom: var(--space-3xl);
45
display: flex;
5-
flex-direction: row;
6+
flex-direction: column;
67
border-radius: 0.5rem;
78
}
89

10+
@media screen and (min-width: $screen-md) {
11+
.color-theme {
12+
flex-direction: row;
13+
}
14+
}
15+
916
.color-swatch {
1017
width: 100%;
1118
padding: 1rem;

app/javascript/css/utilities/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@
4141
.text-theme {
4242
color: var(--joy-text-theme);
4343
}
44+
45+
.text-small {
46+
font-size: var(--step--1);
47+
}

0 commit comments

Comments
 (0)