Skip to content

Commit 6105b37

Browse files
authored
[design] improve form theme styles
1 parent 523ffd6 commit 6105b37

File tree

11 files changed

+609
-447
lines changed

11 files changed

+609
-447
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/css/auto-suggest.css‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@
5656
color:rgb(var(--form-input-text-hover));
5757
outline: none;
5858
text-decoration: none;
59-
box-shadow:000var(--layout-line-width) rgb(var(--theme-gray-06));
59+
box-shadow:var(--form-hover-ring);
6060
}
6161

6262
.auto-suggest-link:focus{
6363
background-color:rgb(var(--theme-gray-01));
64-
color:rgb(var(--form-input-text-focus));
64+
color:rgb(var(--form-input-text-focus-active));
6565
outline: none;
6666
text-decoration: none;
67-
box-shadow:000var(--layout-line-width) rgb(var(--theme-accent)),000calc(var(--layout-line-width) *2) rgba(var(--theme-accent),0.25);
67+
box-shadow:var(--form-focus-ring-accent);
6868
}
6969

7070
.auto-suggest-link:active{

‎src/css/button.css‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ button,
33
input[type="button"],
44
input[type="reset"],
55
input[type="submit"]{
6-
background-color:rgb(var(--theme-gray-02));
6+
background-color:rgb(var(--button-background));
77
padding:0.125em1em;
88
margin:001em0;
99
color:rgb(var(--button-text));
@@ -15,7 +15,8 @@ input[type="submit"]{
1515
border-top-width:var(--layout-line-width);
1616
border-bottom-width:var(--layout-line-width);
1717
border-style: solid;
18-
border-color: transparent;
18+
border-top-color: transparent;
19+
border-bottom-color:rgb(var(--button-border));
1920
border-radius:var(--theme-radius);
2021
text-align: center;
2122
text-decoration: none;
@@ -39,9 +40,9 @@ input[type="reset"]:hover,
3940
input[type="reset"]:focus,
4041
input[type="submit"]:hover,
4142
input[type="submit"]:focus{
42-
background-color:rgb(var(--theme-gray-03));
43-
border-bottom-color:rgb(var(--theme-gray-08));
44-
color:rgb(var(--button-text-hover-focus));
43+
background-color:rgb(var(--button-background-focus-hover));
44+
border-bottom-color:rgb(var(--button-border-focus-hover));
45+
color:rgb(var(--button-text-focus-hover));
4546
outline: none;
4647
text-decoration: none;
4748
}
@@ -51,8 +52,8 @@ button:active,
5152
input[type="button"]:active,
5253
input[type="reset"]:active,
5354
input[type="submit"]:active{
54-
background-color:rgb(var(--theme-gray-04));
55-
border-bottom-color:rgb(var(--theme-accent));
55+
background-color:rgb(var(--button-background-active));
56+
border-bottom-color:rgb(var(--button-border-active));
5657
color:rgb(var(--button-text-active));
5758
transition: none;
5859
text-decoration: none;
@@ -66,7 +67,7 @@ button:disabled:focus,
6667
.button:disabled:focus,
6768
button:disabled:active,
6869
.button:disabled:active{
69-
background-color:rgb(var(--theme-gray-02));
70+
background-color:rgb(var(--button-background-disabled));
7071
border-color: transparent;
7172
color:rgb(var(--button-text-disabled));
7273
cursor: default;
@@ -87,7 +88,7 @@ button [class*=" icon-"],
8788

8889
.button.active{
8990
border-bottom-color:rgb(var(--theme-accent));
90-
color:rgb(var(--button-text-active));
91+
color:rgb(var(--button-text-focus-active));
9192
}
9293

9394
.button-small{
@@ -134,7 +135,7 @@ button [class*=" button-"]:last-child,
134135
.button-link:hover,
135136
.button-link:focus{
136137
background-color: transparent;
137-
color:rgb(var(--button-link-text-hover-focus));
138+
color:rgb(var(--button-link-text-focus-hover));
138139
}
139140

140141
.button-link:active{

0 commit comments

Comments
(0)