mirror of
https://github.com/librespeed/speedtest.git
synced 2026-05-14 00:36:39 +00:00
* Implement fromScratch design * Add some documentation * enable new design in docker (no alpine yet) * merge fixed docker images * alpine docker added new design * fix #685 * Implement fromScratch design * Add some documentation * enable new design in docker (no alpine yet) * alpine docker added new design * fix #685 * fix database permissions alpine, remove baby * hide serverselector on only one server * Update frontend/styling/server-selector.css Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com> * fix alpine image again * adjust settings.json in entrypoint so env vars are honored * Update frontend/javascript/index.js Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com> * Add feature switch for new design via config file, URL parameters, and Docker (#742) * Initial plan * Add feature switch for new design with config and URL parameter support Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Improve error handling and prevent infinite redirect loops Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Update Dockerfiles and entrypoint to support design feature switch Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Update design-switch.js Co-authored-by: qodo-free-for-open-source-projects[bot] <189517486+qodo-free-for-open-source-projects[bot]@users.noreply.github.com> * fix: copy actions in entrypoint * Restructure design switch to place both designs at root level Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Flatten frontend assets in Docker to eliminate frontend directory Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * fix: entrypoint settings & server-list disable entrypoint bash debug * add link to modern design --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> Co-authored-by: sstidl <sstidl@users.noreply.github.com> Co-authored-by: qodo-free-for-open-source-projects[bot] <189517486+qodo-free-for-open-source-projects[bot]@users.noreply.github.com> * add armv7 * reformat * Add GDPR_EMAIL environment variable for Docker deployments (#743) * Initial plan * Add GDPR_EMAIL environment variable for Docker deployments Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Improve GDPR_EMAIL handling with proper escaping and loop Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Refine GDPR_EMAIL processing - skip index.html and improve escaping Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Optimize GDPR_EMAIL sed commands and improve escaping Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * Clarify sed escaping comment for GDPR_EMAIL Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> * cleanup old EMAIL ENV Var * fix: line break in html prevented sed replacement * version 6.0.0pre1 * test: add mssql docker compose tests * Update Speedtest screen recording link in README * Filter unreachable servers from selector (newdesign UI) (#769) * Filter unreachable servers from selector (newdesign UI) * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * keep // servers in list Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * fix misleading comment --------- Co-authored-by: Lumi <lumi@openclaw.local> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Stefan Stidl <sti-github@stidl.com> * fix: server.json handling * Use server-list.json in classic frontend by default * Add configurable server list URLs to frontend and Docker --------- Co-authored-by: Timendus <mail@timendus.com> Co-authored-by: Stefan Stidl <stefan.stidl@ffg.at> Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com> Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: sstidl <12804296+sstidl@users.noreply.github.com> Co-authored-by: qodo-free-for-open-source-projects[bot] <189517486+qodo-free-for-open-source-projects[bot]@users.noreply.github.com> Co-authored-by: Stefan Stidl <sti-github@stidl.com> Co-authored-by: Lumi <lumi@openclaw.local> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
171 lines
3.4 KiB
CSS
171 lines
3.4 KiB
CSS
/* The server selector fake dropdown */
|
|
|
|
.server-selector {
|
|
position: relative;
|
|
width: 50rem;
|
|
margin: 0rem auto;
|
|
display: none;
|
|
|
|
&.active {
|
|
display: block;
|
|
}
|
|
|
|
@media screen and (max-width: 500px) {
|
|
width: 100%;
|
|
}
|
|
|
|
& > .chosen {
|
|
position: relative;
|
|
height: 8.8rem;
|
|
|
|
border: 1px solid var(--server-selector-border-color);
|
|
border-radius: 0.8rem;
|
|
background-color: var(--server-selector-background-color);
|
|
cursor: pointer;
|
|
transition: border-color 0.2s;
|
|
|
|
&:hover {
|
|
border-color: var(--server-selector-hover-border-color);
|
|
}
|
|
|
|
& > div.chevron {
|
|
content: "";
|
|
position: absolute;
|
|
display: block;
|
|
width: 32px;
|
|
height: 32px;
|
|
right: 1.8rem;
|
|
top: 1rem;
|
|
}
|
|
|
|
& > p {
|
|
margin: 0;
|
|
position: absolute;
|
|
left: 2.4rem;
|
|
top: 1.5rem;
|
|
font-size: 1.6rem;
|
|
font-weight: 400;
|
|
letter-spacing: -0.1rem;
|
|
color: var(--theme-green);
|
|
}
|
|
|
|
& > h2 {
|
|
position: absolute;
|
|
left: 2.4rem;
|
|
right: 2.4rem;
|
|
bottom: 1rem;
|
|
|
|
font-size: 2.4rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.2rem;
|
|
color: var(--primary-text-color);
|
|
text-align: left;
|
|
text-transform: uppercase;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
|
|
& span {
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Special case for when we have only one server */
|
|
&.single-server {
|
|
& > .chosen {
|
|
cursor: default;
|
|
&:hover {
|
|
border-color: var(--server-selector-border-color);
|
|
}
|
|
& > div.chevron {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Overrides for when the test is running and the selector is disabled */
|
|
&.disabled {
|
|
pointer-events: none;
|
|
|
|
& > .chosen {
|
|
cursor: default;
|
|
&:hover {
|
|
border-color: var(--server-selector-border-color);
|
|
}
|
|
& > p {
|
|
color: var(--secondary-text-disabled-color);
|
|
}
|
|
& > h2 {
|
|
color: var(--primary-text-disabled-color);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Styling for the list of servers that pops out */
|
|
& > ul.servers {
|
|
position: absolute;
|
|
width: 50rem;
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
z-index: 1;
|
|
|
|
border: 1px solid var(--server-selector-border-color);
|
|
border-radius: 0.8rem;
|
|
background-color: var(--server-selector-background-color);
|
|
list-style: none;
|
|
|
|
transform: scaleY(0);
|
|
transform-origin: top;
|
|
transition: transform 0.1s;
|
|
|
|
&.active {
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
@media screen and (max-width: 800px) {
|
|
width: 100%;
|
|
}
|
|
|
|
& > li {
|
|
&:first-child a {
|
|
padding-top: 1.5rem;
|
|
}
|
|
&:last-child a {
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
& a {
|
|
display: block;
|
|
padding: 0.7rem 2.4rem;
|
|
|
|
font-size: 2.4rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.2rem;
|
|
color: var(--sprint-text-color);
|
|
text-transform: uppercase;
|
|
text-decoration: none;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
|
|
transition: background-color 0.2s;
|
|
|
|
& span {
|
|
font-weight: 400;
|
|
}
|
|
&:hover {
|
|
background-color: var(--server-selector-hover-background-color);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Styling for the sponsor text under the dropdown */
|
|
& > p.sponsor {
|
|
margin: 1rem 0 5rem 0;
|
|
|
|
& a {
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
}
|