mirror of
https://github.com/librespeed/speedtest.git
synced 2026-11-23 08:34:48 +00:00
style: make the language selector match the footer links and the server selector
The selector used the native arrow, a light font and no spacing. It now uses the bold accent color of the footer links, the rounded border and the chevron of the server selector, and turns pink on hover like the links. Co-authored-by: Daniel Nylander <1206564+yeager@users.noreply.github.com>
This commit is contained in:
parent
b3e773f21f
commit
c567a70dfc
1 changed files with 17 additions and 4 deletions
|
|
@ -80,18 +80,31 @@ footer {
|
|||
}
|
||||
|
||||
& > p.source select {
|
||||
padding: 0.4rem 0.8rem;
|
||||
margin: 1.2rem 0;
|
||||
padding: 0.6rem 3.2rem 0.6rem 1.2rem;
|
||||
appearance: none;
|
||||
font: inherit;
|
||||
font-size: 1.6rem;
|
||||
color: var(--secondary-text-color);
|
||||
background: var(--server-selector-background-color);
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.1rem;
|
||||
color: var(--theme-green);
|
||||
background: var(--server-selector-background-color) url("../images/chevron.svg") no-repeat right 0.8rem center /
|
||||
1.8rem;
|
||||
border: 1px solid var(--server-selector-border-color);
|
||||
border-radius: 0.4rem;
|
||||
border-radius: 0.8rem;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.2s;
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
color: var(--theme-pink);
|
||||
border-color: var(--server-selector-hover-border-color);
|
||||
}
|
||||
|
||||
& > option {
|
||||
color: var(--primary-text-color);
|
||||
background: var(--server-selector-background-color);
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue