forked from fixin.me/fixin.me
Move color definitions to variables
This commit is contained in:
parent
50eedf8b23
commit
1ae5658ebe
@ -23,6 +23,15 @@
|
|||||||
* light red: #ff1f5b
|
* light red: #ff1f5b
|
||||||
* */
|
* */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--color-focus-gray: #f3f3f3;
|
||||||
|
--color-border-gray: #dddddd;
|
||||||
|
--color-nav-gray: #c7c7c7;
|
||||||
|
--color-gray: #a0a0a0;
|
||||||
|
--color-table-gray: #909090;
|
||||||
|
--color-text-gray: #707070;
|
||||||
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
::before,
|
::before,
|
||||||
::after {
|
::after {
|
||||||
@ -69,9 +78,9 @@ a,
|
|||||||
button,
|
button,
|
||||||
input[type=submit] {
|
input[type=submit] {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: #a0a0a0;
|
color: var(--color-gray);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
fill: #a0a0a0;
|
fill: var(--color-gray);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@ -91,7 +100,7 @@ select {
|
|||||||
button,
|
button,
|
||||||
input,
|
input,
|
||||||
select {
|
select {
|
||||||
border: solid 1px #a0a0a0;
|
border: solid 1px var(--color-gray);
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
}
|
}
|
||||||
.button > svg,
|
.button > svg,
|
||||||
@ -108,7 +117,7 @@ button > svg {
|
|||||||
.button:focus-visible,
|
.button:focus-visible,
|
||||||
button:focus-visible,
|
button:focus-visible,
|
||||||
input[type=submit]:focus-visible {
|
input[type=submit]:focus-visible {
|
||||||
background-color: #f3f3f3;
|
background-color: var(--color-focus-gray);
|
||||||
}
|
}
|
||||||
.button:hover,
|
.button:hover,
|
||||||
button:hover,
|
button:hover,
|
||||||
@ -148,7 +157,7 @@ input:focus-visible,
|
|||||||
select:focus-within,
|
select:focus-within,
|
||||||
select:focus-visible {
|
select:focus-visible {
|
||||||
accent-color: #006c9b;
|
accent-color: #006c9b;
|
||||||
background-color: #f3f3f3;
|
background-color: var(--color-focus-gray);
|
||||||
}
|
}
|
||||||
input[type=text]:read-only {
|
input[type=text]:read-only {
|
||||||
border: none;
|
border: none;
|
||||||
@ -173,7 +182,7 @@ input[type=text]:read-only {
|
|||||||
margin-inline-start: 4%;
|
margin-inline-start: 4%;
|
||||||
}
|
}
|
||||||
.navigation > .tab {
|
.navigation > .tab {
|
||||||
border-bottom: solid 2px #c7c7c7;
|
border-bottom: solid 2px var(--color-nav-gray);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@ -182,7 +191,7 @@ input[type=text]:read-only {
|
|||||||
}
|
}
|
||||||
.navigation > .tab:hover,
|
.navigation > .tab:hover,
|
||||||
.navigation > .tab:focus-visible {
|
.navigation > .tab:focus-visible {
|
||||||
background-color: #f3f3f3;
|
background-color: var(--color-focus-gray);
|
||||||
}
|
}
|
||||||
.navigation > .tab.active {
|
.navigation > .tab.active {
|
||||||
border-bottom: solid 4px #009ade;
|
border-bottom: solid 4px #009ade;
|
||||||
@ -260,7 +269,7 @@ form table {
|
|||||||
border-spacing: 0.8rem;
|
border-spacing: 0.8rem;
|
||||||
}
|
}
|
||||||
form tr td:first-child {
|
form tr td:first-child {
|
||||||
color: #a0a0a0;
|
color: var(--color-gray);
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
padding-right: 0.25rem;
|
padding-right: 0.25rem;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
@ -283,7 +292,7 @@ form td.error::after {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
form em {
|
form em {
|
||||||
color: #707070;
|
color: var(--color-text-gray);
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
@ -297,7 +306,7 @@ form input[type=submit] {
|
|||||||
|
|
||||||
table.items {
|
table.items {
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
border: solid 1px #dddddd;
|
border: solid 1px var(--color-border-gray);
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@ -307,7 +316,7 @@ table.items thead {
|
|||||||
}
|
}
|
||||||
table.items thead,
|
table.items thead,
|
||||||
table.items tbody tr:hover {
|
table.items tbody tr:hover {
|
||||||
background-color: #f3f3f3;
|
background-color: var(--color-focus-gray);
|
||||||
}
|
}
|
||||||
table.items th {
|
table.items th {
|
||||||
padding-block: 0.75em;
|
padding-block: 0.75em;
|
||||||
@ -323,7 +332,7 @@ table.items td:last-child {
|
|||||||
padding-inline-end: 0.1em;
|
padding-inline-end: 0.1em;
|
||||||
}
|
}
|
||||||
table.items td {
|
table.items td {
|
||||||
border-top: solid 1px #dddddd;
|
border-top: solid 1px var(--color-border-gray);
|
||||||
min-height: 2.4em;
|
min-height: 2.4em;
|
||||||
padding-block: 0.1em;
|
padding-block: 0.1em;
|
||||||
}
|
}
|
||||||
@ -367,18 +376,18 @@ table.items td.link a:hover {
|
|||||||
color: #009ade;
|
color: #009ade;
|
||||||
}
|
}
|
||||||
table.items td.link a:focus-visible {
|
table.items td.link a:focus-visible {
|
||||||
text-decoration-color: #a0a0a0;
|
text-decoration-color: var(--color-gray);
|
||||||
}
|
}
|
||||||
table.items td.link a:hover:focus-visible {
|
table.items td.link a:hover:focus-visible {
|
||||||
color: #006c9b;
|
color: #006c9b;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.items td:not(:first-child) {
|
table.items td:not(:first-child) {
|
||||||
color: #909090;
|
color: var(--color-table-gray);
|
||||||
fill: #909090;
|
fill: var(--color-table-gray);
|
||||||
}
|
}
|
||||||
table.items td.hint {
|
table.items td.hint {
|
||||||
color: #909090;
|
color: var(--color-table-gray);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
@ -400,8 +409,8 @@ table.items input[type=submit] {
|
|||||||
table.items select:not(:hover),
|
table.items select:not(:hover),
|
||||||
table.items .button:not(:hover),
|
table.items .button:not(:hover),
|
||||||
table.items button:not(:hover) {
|
table.items button:not(:hover) {
|
||||||
border-color: #dddddd;
|
border-color: var(--color-border-gray);
|
||||||
color: #909090;
|
color: var(--color-table-gray);
|
||||||
}
|
}
|
||||||
table.items select:focus-within,
|
table.items select:focus-within,
|
||||||
table.items select:focus-visible {
|
table.items select:focus-visible {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user