css formatting
Some checks failed
Run Integration Tests / test (push) Failing after 37s

This commit is contained in:
partisan 2025-06-16 11:26:26 +02:00
parent 70abf0a2bd
commit ec8ab05349
16 changed files with 152 additions and 96 deletions

View file

@ -30,7 +30,7 @@
--green: #31b06e; --green: #31b06e;
--search-button: #BABCBE; --search-button: #BABCBE;
--image-view: #161616; --image-view: #161616;
--image-view-titlebar: #161616; --image-view-titlebar: #161616;
--view-image-color: #000000; --view-image-color: #000000;
@ -38,7 +38,7 @@
--fff: #fff; --fff: #fff;
--publish-info: #7f869e; --publish-info: #7f869e;
color-scheme: dark; color-scheme: dark;
} }
@ -71,4 +71,4 @@
.view-image-search:hover { .view-image-search:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
} }

View file

@ -30,7 +30,7 @@
--green: #31b06e; --green: #31b06e;
--search-button: #BABCBE; --search-button: #BABCBE;
--image-view: #161616; --image-view: #161616;
--image-view-titlebar: #161616; --image-view-titlebar: #161616;
--view-image-color: #000000; --view-image-color: #000000;
@ -38,7 +38,7 @@
--fff: #fff; --fff: #fff;
--publish-info: #7f869e; --publish-info: #7f869e;
color-scheme: dark; color-scheme: dark;
} }
@ -71,4 +71,4 @@
.view-image-search:hover { .view-image-search:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
} }

View file

@ -25,7 +25,7 @@
--base: #1e1e2e; --base: #1e1e2e;
--mantle: #181825; --mantle: #181825;
--crust: #11111b; --crust: #11111b;
--html-bg: var(--base); --html-bg: var(--base);
--font-fg: var(--text); --font-fg: var(--text);
--fg: var(--subtext0); --fg: var(--subtext0);
@ -53,7 +53,7 @@
--highlight: var(--subtext1); --highlight: var(--subtext1);
--search-button: var(--subtext0); --search-button: var(--subtext0);
--image-view: var(--mantle); --image-view: var(--mantle);
--image-view-titlebar: var(--mantle); --image-view-titlebar: var(--mantle);
--view-image-color: var(--crust); --view-image-color: var(--crust);
@ -61,7 +61,7 @@
--fff: var(--text); --fff: var(--text);
--publish-info: var(--overlay2); --publish-info: var(--overlay2);
color-scheme: dark; color-scheme: dark;
} }
@ -94,4 +94,4 @@
.view-image-search:hover { .view-image-search:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
} }

View file

@ -28,7 +28,7 @@
--blue: #4285f4; --blue: #4285f4;
--green: #202124; --green: #202124;
--image-view: #ffffff; --image-view: #ffffff;
--image-view-titlebar: #ffffff; --image-view-titlebar: #ffffff;
--view-image-color: #f1f3f4; --view-image-color: #f1f3f4;
@ -69,4 +69,4 @@
.view-image-search:hover { .view-image-search:hover {
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08) !important; box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08) !important;
transition: all 0.3s cubic-bezier(.25, .8, .25, 1) !important; transition: all 0.3s cubic-bezier(.25, .8, .25, 1) !important;
} }

View file

@ -25,7 +25,7 @@
--base: #eff1f5; --base: #eff1f5;
--mantle: #e6e9ef; --mantle: #e6e9ef;
--crust: #dce0e8; --crust: #dce0e8;
--html-bg: var(--base); --html-bg: var(--base);
--font-fg: var(--text); --font-fg: var(--text);
--fg: var(--subtext0); --fg: var(--subtext0);
@ -56,7 +56,7 @@
--green: var(--green); --green: var(--green);
--search-button: var(--subtext0); --search-button: var(--subtext0);
--image-view: var(--mantle); --image-view: var(--mantle);
--image-view-titlebar: var(--mantle); --image-view-titlebar: var(--mantle);
--view-image-color: var(--crust); --view-image-color: var(--crust);
@ -64,7 +64,7 @@
--fff: var(--text); --fff: var(--text);
--publish-info: var(--overlay2); --publish-info: var(--overlay2);
color-scheme: light; color-scheme: light;
} }
@ -97,4 +97,4 @@
.view-image-search:hover { .view-image-search:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.12); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.12);
} }

View file

@ -28,7 +28,7 @@
--blue: #8ab4f8; --blue: #8ab4f8;
--green: #31b06e; --green: #31b06e;
--image-view: #0c0d0f; --image-view: #0c0d0f;
--image-view-titlebar: #0c0d0f; --image-view-titlebar: #0c0d0f;
--view-image-color: #000000; --view-image-color: #000000;
@ -38,7 +38,7 @@
--search-button: #BABCBE; --search-button: #BABCBE;
--publish-info: #7f869e; --publish-info: #7f869e;
color-scheme: dark; color-scheme: dark;
} }
@ -71,4 +71,4 @@
.view-image-search:hover { .view-image-search:hover {
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
} }

View file

@ -1,7 +1,10 @@
/* Ensure the body width is fixed and prevents resizing by the user */ /* Ensure the body width is fixed and prevents resizing by the user */
body { body {
overflow-x: hidden; /* Prevent horizontal scrolling by user */ overflow-x: hidden;
width: 100vw; /* Fix the width of the viewport */ /* Prevent horizontal scrolling by user */
max-width: 100vw; /* Prevent page from extending wider than the viewport */ width: 100vw;
/* Fix the width of the viewport */
max-width: 100vw;
/* Prevent page from extending wider than the viewport */
box-sizing: border-box; box-sizing: border-box;
} }

View file

@ -3,12 +3,10 @@
position: relative; position: relative;
overflow: hidden; overflow: hidden;
background-color: var(--snip-background); background-color: var(--snip-background);
background-image: linear-gradient( background-image: linear-gradient(90deg,
90deg, rgba(255, 255, 255, 0) 25%,
rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.15) 50%,
rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 75%);
rgba(255, 255, 255, 0) 75%
);
background-size: 200% 100%; background-size: 200% 100%;
animation: image-wave 2s infinite linear; animation: image-wave 2s infinite linear;
} }
@ -33,12 +31,10 @@
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: linear-gradient( background: linear-gradient(90deg,
90deg, transparent 25%,
transparent 25%, rgba(255, 255, 255, 0.25) 50%,
rgba(255, 255, 255, 0.25) 50%, transparent 75%);
transparent 75%
);
background-size: 200% 100%; background-size: 200% 100%;
animation: title-wave 2.5s infinite linear; animation: title-wave 2.5s infinite linear;
} }
@ -46,18 +42,24 @@
/* Animations */ /* Animations */
@keyframes image-wave { @keyframes image-wave {
0% { 0% {
background-position: -100% 0; /* Start off-screen left */ background-position: -100% 0;
/* Start off-screen left */
} }
100% { 100% {
background-position: 100% 0; /* End off-screen right */ background-position: 100% 0;
/* End off-screen right */
} }
} }
@keyframes title-wave { @keyframes title-wave {
0% { 0% {
background-position: -100% 0; /* Start off-screen left */ background-position: -100% 0;
/* Start off-screen left */
} }
100% { 100% {
background-position: 100% 0; /* End off-screen right */ background-position: 100% 0;
/* End off-screen right */
} }
} }

View file

@ -1,12 +1,15 @@
/* Image Viewer Overlay */ /* Image Viewer Overlay */
#image-viewer-overlay { #image-viewer-overlay {
position: fixed; position: fixed;
top: 105px; top: 105px;
right: 0; right: 0;
width: 33%; /* Occupies the right space for the viewer */ width: 33%;
height: calc(100% - 105px); /* Adjust height */ /* Occupies the right space for the viewer */
height: calc(100% - 105px);
/* Adjust height */
z-index: 999; z-index: 999;
display: none; /* Initially hidden */ display: none;
/* Initially hidden */
/* Added transition for opening animation */ /* Added transition for opening animation */
/* transform: translateX(100%); /* transform: translateX(100%);
@ -18,8 +21,10 @@
position: fixed; position: fixed;
top: 105px; top: 105px;
right: 0; right: 0;
width: 33%; /* Match the width of the overlay */ width: 33%;
height: calc(100% - 105px); /* Adjust height */ /* Match the width of the overlay */
height: calc(100% - 105px);
/* Adjust height */
background: var(--search-bg); background: var(--search-bg);
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
@ -58,7 +63,8 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap: 5px; /* Add spacing between buttons */ gap: 5px;
/* Add spacing between buttons */
} }
#viewer-close-button, #viewer-close-button,
@ -86,7 +92,8 @@
/* Adjust the images container when the viewer is visible */ /* Adjust the images container when the viewer is visible */
.images { .images {
margin-right: 33%; /* Reserve space for the image viewer */ margin-right: 33%;
/* Reserve space for the image viewer */
} }
/* Clickable Elements */ /* Clickable Elements */
@ -179,6 +186,7 @@
} }
.images { .images {
margin-right: 0; /* No reserved space on smaller screens */ margin-right: 0;
/* No reserved space on smaller screens */
} }
} }

View file

@ -6,7 +6,8 @@
} }
.favicon-wrapper.loading img { .favicon-wrapper.loading img {
visibility: hidden; /* hide placeholder */ visibility: hidden;
/* hide placeholder */
} }
.favicon-wrapper.loading::after { .favicon-wrapper.loading::after {
@ -28,4 +29,4 @@
to { to {
transform: rotate(360deg); transform: rotate(360deg);
} }
} }

View file

@ -24,21 +24,28 @@
} }
@keyframes bounce { @keyframes bounce {
0%, 100% {
0%,
100% {
transform: translateY(0); transform: translateY(0);
} }
30% { 30% {
transform: translateY(-10px); transform: translateY(-10px);
} }
50% { 50% {
transform: translateY(0); transform: translateY(0);
} }
70% { 70% {
transform: translateY(-5px); transform: translateY(-5px);
} }
85% { 85% {
transform: translateY(0); transform: translateY(0);
} }
95% { 95% {
transform: translateY(-2px); transform: translateY(-2px);
} }
@ -52,9 +59,11 @@
.dot:nth-child(2) { .dot:nth-child(2) {
animation-delay: 0.1s; animation-delay: 0.1s;
} }
.dot:nth-child(3) { .dot:nth-child(3) {
animation-delay: 0.2s; animation-delay: 0.2s;
} }
.dot:nth-child(4) { .dot:nth-child(4) {
animation-delay: 0.3s; animation-delay: 0.3s;
} }

View file

@ -165,37 +165,45 @@
/* Spacing & sizing */ /* Spacing & sizing */
padding: 32px; padding: 32px;
max-width: 600px; /* Increased width */ max-width: 600px;
max-height: 80vh; /* Optional: restrict height to 80% of viewport */ /* Increased width */
overflow-y: auto; /* Enable scrolling if content exceeds height */ max-height: 80vh;
/* Optional: restrict height to 80% of viewport */
overflow-y: auto;
/* Enable scrolling if content exceeds height */
color: var(--font-fg); color: var(--font-fg);
} }
#aboutQGatoModal #close-button { #aboutQGatoModal #close-button {
position: absolute; position: absolute;
top: 12px; top: 12px;
right: 12px; /* Moved close button to top-right */ right: 12px;
/* Moved close button to top-right */
} }
#aboutQGatoModal .modal-content { #aboutQGatoModal .modal-content {
text-align: center; text-align: center;
margin-top: 20px; /* Adjusted spacing */ margin-top: 20px;
/* Adjusted spacing */
} }
/* Logo */ /* Logo */
#aboutQGatoModal .modal-content img { #aboutQGatoModal .modal-content img {
width: 100px; /* Increased logo size */ width: 100px;
/* Increased logo size */
margin-bottom: 16px; margin-bottom: 16px;
} }
/* Headings, paragraphs, etc. */ /* Headings, paragraphs, etc. */
#aboutQGatoModal .modal-content h2 { #aboutQGatoModal .modal-content h2 {
font-size: 2rem; /* Larger heading */ font-size: 2rem;
/* Larger heading */
margin: 8px 0; margin: 8px 0;
} }
#aboutQGatoModal .modal-content p { #aboutQGatoModal .modal-content p {
font-size: 1.1rem; /* Larger paragraph text */ font-size: 1.1rem;
/* Larger paragraph text */
margin: 12px 0; margin: 12px 0;
} }
@ -213,8 +221,10 @@
color: var(--font-fg); color: var(--font-fg);
border: 1px solid var(--border); border: 1px solid var(--border);
border-radius: 6px; border-radius: 6px;
padding: 12px 16px; /* Larger button padding */ padding: 12px 16px;
font-size: 1rem; /* Larger button text */ /* Larger button padding */
font-size: 1rem;
/* Larger button text */
cursor: pointer; cursor: pointer;
transition: border 0.3s ease, background-color 0.3s ease, color 0.3s ease; transition: border 0.3s ease, background-color 0.3s ease, color 0.3s ease;
} }
@ -225,7 +235,8 @@
/* Close Button Style */ /* Close Button Style */
.cloase-btn { .cloase-btn {
font-size: 1.5rem; /* Larger close button */ font-size: 1.5rem;
/* Larger close button */
color: var(--search-button); color: var(--search-button);
border-radius: 50%; border-radius: 50%;
padding: 8px; padding: 8px;

View file

@ -94,11 +94,11 @@
.music-thumbnail { .music-thumbnail {
flex-basis: 120px; flex-basis: 120px;
} }
.music-title { .music-title {
font-size: 16px; font-size: 16px;
} }
.music-meta { .music-meta {
font-size: 13px; font-size: 13px;
gap: 6px; gap: 6px;
@ -109,7 +109,7 @@
.music-thumbnail { .music-thumbnail {
flex-basis: 100px; flex-basis: 100px;
} }
.duration-overlay { .duration-overlay {
font-size: 11px; font-size: 11px;
padding: 3px 6px; padding: 3px 6px;

View file

@ -92,4 +92,4 @@
.privacy-section .cookie-table { .privacy-section .cookie-table {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }

View file

@ -1,5 +1,6 @@
/* General Styles */ /* General Styles */
body, html { body,
html {
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: var(--html-bg); background-color: var(--html-bg);
@ -8,7 +9,8 @@ body, html {
color: var(--text-color); color: var(--text-color);
} }
button, p { button,
p {
font-family: 'Inter', Arial, Helvetica, sans-serif; font-family: 'Inter', Arial, Helvetica, sans-serif;
font-weight: 400; font-weight: 400;
} }
@ -101,13 +103,15 @@ body.menu-open {
text-align: left; text-align: left;
width: 100%; width: 100%;
position: absolute; position: absolute;
left: -1px; /* this is so curesed */ left: -1px;
/* this is so curesed */
top: 100%; top: 100%;
background-color: var(--search-bg-input); background-color: var(--search-bg-input);
border-bottom-left-radius: 22px; border-bottom-left-radius: 22px;
border-bottom-right-radius: 22px; border-bottom-right-radius: 22px;
border: 1px solid var(--search-bg-input-border); border: 1px solid var(--search-bg-input-border);
border-top: none; /* No top border to avoid double borders with the input */ border-top: none;
/* No top border to avoid double borders with the input */
z-index: 900; z-index: 900;
} }
@ -159,8 +163,10 @@ body.menu-open {
text-align: center; text-align: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; /* Center vertically */ justify-content: center;
height: 100vh; /* Make it full viewport height */ /* Center vertically */
height: 100vh;
/* Make it full viewport height */
} }
/* Search Type Icons */ /* Search Type Icons */
@ -171,7 +177,8 @@ body.menu-open {
margin-top: 30px; margin-top: 30px;
gap: 20px; gap: 20px;
/* Allow transform movement */ /* Allow transform movement */
transition: transform 0.3s ease; /* Smooth movement when suggestions appear */ transition: transform 0.3s ease;
/* Smooth movement when suggestions appear */
position: relative; position: relative;
} }
@ -242,7 +249,8 @@ body.menu-open {
z-index: 999; z-index: 999;
width: 50px; width: 50px;
height: 50px; height: 50px;
font-size: 36px; /* Not working */ font-size: 36px;
/* Not working */
} }
.side-nav .closebtn:hover { .side-nav .closebtn:hover {
@ -259,11 +267,13 @@ body.menu-open {
right: 0; right: 0;
background-color: var(--html-bg); background-color: var(--html-bg);
overflow-x: hidden; overflow-x: hidden;
transition: width 0.4s ease-in-out; /* Does this even change anything? cant really tell */ transition: width 0.4s ease-in-out;
/* Does this even change anything? cant really tell */
z-index: 1000; z-index: 1000;
box-shadow: -2px 0 5px rgba(0,0,0,0.5); box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
padding-top: 70px; padding-top: 70px;
overflow-x: hidden; /* Prevents horizontal overflow */ overflow-x: hidden;
/* Prevents horizontal overflow */
} }
.side-nav:hover .closebtn:hover { .side-nav:hover .closebtn:hover {
@ -322,7 +332,7 @@ body.menu-open::before {
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(0,0,0,0.5); background: rgba(0, 0, 0, 0.5);
z-index: 998; z-index: 998;
} }
@ -337,11 +347,13 @@ body.menu-open::before {
.wrapper { .wrapper {
width: 90%; width: 90%;
} }
.logo-container svg { .logo-container svg {
width: 75%; width: 75%;
max-width: 90%; max-width: 90%;
min-width: 25%; min-width: 25%;
} }
.side-nav { .side-nav {
max-width: 90%; max-width: 90%;
} }
@ -378,7 +390,8 @@ p {
line-height: 1.58; line-height: 1.58;
} }
input, button { input,
button {
outline: none; outline: none;
} }
@ -387,11 +400,14 @@ body.menu-open {
} }
/* Prevent horizontal scrolling on the page */ /* Prevent horizontal scrolling on the page */
html, body { html,
overflow-x: hidden; /* Disables horizontal scrollbar */ body {
overflow-x: hidden;
/* Disables horizontal scrollbar */
margin: 0; margin: 0;
padding: 0; padding: 0;
max-width: 100vw; /* Limits content to viewport width */ max-width: 100vw;
/* Limits content to viewport width */
} }
/* /*
@ -400,4 +416,4 @@ html, body {
outline: none; outline: none;
border: 1px solid var(--font-fg); border: 1px solid var(--font-fg);
box-shadow: none; box-shadow: none;
} */ } */

View file

@ -16,7 +16,8 @@
width: 48%; width: 48%;
margin-bottom: 10px; margin-bottom: 10px;
height: 150px; height: 150px;
position: relative; /* Make it possible to position the tooltip */ position: relative;
/* Make it possible to position the tooltip */
} }
.theme-link img { .theme-link img {
@ -33,12 +34,15 @@
} */ } */
.theme-tooltip { .theme-tooltip {
display: none; /* Hidden by default */ display: none;
/* Hidden by default */
position: absolute; position: absolute;
bottom: 10px; /* Position at the bottom of the image */ bottom: 10px;
/* Position at the bottom of the image */
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */ background-color: rgba(0, 0, 0, 0.7);
/* Semi-transparent background */
color: #fff; color: #fff;
padding: 5px 10px; padding: 5px 10px;
border-radius: 4px; border-radius: 4px;
@ -47,7 +51,8 @@
} }
.theme-link:hover .theme-tooltip { .theme-link:hover .theme-tooltip {
display: block; /* Show tooltip on hover */ display: block;
/* Show tooltip on hover */
} }
.themes-settings-menu { .themes-settings-menu {
@ -62,7 +67,7 @@
} }
#searchLanguageSelect, #searchLanguageSelect,
#safeSearchSelect, #safeSearchSelect,
#siteLanguageSelect { #siteLanguageSelect {
border-radius: 4px; border-radius: 4px;
padding: 6px; padding: 6px;
@ -75,11 +80,12 @@
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: all 0.3s ease;
text-align: center; text-align: center;
box-sizing: border-box; /* Ensures consistent width with padding */ box-sizing: border-box;
/* Ensures consistent width with padding */
} }
#searchLanguageSelect:hover, #searchLanguageSelect:hover,
#safeSearchSelect:hover, #safeSearchSelect:hover,
#siteLanguageSelect:hover { #siteLanguageSelect:hover {
border: 1px solid #5f6368; border: 1px solid #5f6368;
/* background-color: var(--button-hover); */ /* background-color: var(--button-hover); */
@ -88,7 +94,7 @@
.save.save-settings-page { .save.save-settings-page {
padding: 6px; padding: 6px;
width: 160px; width: 160px;
height: 40px; height: 40px;
} }
/* Ensure correct alignment */ /* Ensure correct alignment */
@ -98,9 +104,9 @@
justify-content: space-between; justify-content: space-between;
} }
.settings-row select, .settings-row select,
.settings-row button { .settings-row button {
width: 160px; width: 160px;
height: 40px; height: 40px;
box-sizing: border-box; box-sizing: border-box;
} }