247 lines
No EOL
5.2 KiB
CSS
247 lines
No EOL
5.2 KiB
CSS
/* ------------------ Mini-Menu Styles ------------------ */
|
|
|
|
.settings-search-div-search {
|
|
right: 20px;
|
|
top: 25px;
|
|
position: fixed;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.settings-icon-link-search {
|
|
font-size: 25px;
|
|
background-color: inherit;
|
|
border: none;
|
|
}
|
|
|
|
.search-menu {
|
|
position: fixed;
|
|
height: 420px;
|
|
width: 330px;
|
|
right: 0;
|
|
margin-top: 50px;
|
|
z-index: 9999;
|
|
margin-right: 20px;
|
|
background-color: var(--html-bg);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
top: 24px;
|
|
|
|
/* Transition for fade in/out */
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.search-menu h2 {
|
|
color: var(--font-fg);
|
|
display: flex;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
margin: 14px;
|
|
}
|
|
|
|
.search-menu button {
|
|
margin-top: 10px;
|
|
color: var(--font-fg);
|
|
background-color: var(--button);
|
|
font-size: 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 10px;
|
|
width: 90%;
|
|
transition: border 0.3s ease;
|
|
}
|
|
|
|
.search-menu button:hover {
|
|
border: 1px solid var(--font-fg);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Initially hidden state */
|
|
.settings-menu-hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Visible state triggers fade in */
|
|
.settings-menu-visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.theme-settings {
|
|
margin-top: 10px;
|
|
width: 90%;
|
|
border: 1px solid var(--snip-border);
|
|
background: var(--snip-background);
|
|
color: var(--font-fg);
|
|
border-radius: 4px;
|
|
height: 100%;
|
|
}
|
|
|
|
.theme-settings p {
|
|
margin: 0px;
|
|
padding-top: 5px;
|
|
margin-left: 3%;
|
|
}
|
|
|
|
.lang {
|
|
margin-top: 10px;
|
|
border: 1px solid var(--button);
|
|
border-radius: 4px;
|
|
padding: 6px;
|
|
font-size: 15px;
|
|
color: var(--font-fg);
|
|
width: 90%;
|
|
background: var(--button);
|
|
transition: border 0.3s ease;
|
|
}
|
|
|
|
.lang:hover {
|
|
border: 1px solid var(--font-fg);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.view-image-search {
|
|
border: 1px solid var(--snip-border);
|
|
margin: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
object-fit: cover;
|
|
object-position: center;
|
|
vertical-align: bottom;
|
|
border-radius: 4px;
|
|
transition: border 0.3s ease;
|
|
}
|
|
|
|
.view-image-search:hover {
|
|
border: 1px solid var(--font-fg);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.themes-settings-menu {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
margin: 5px;
|
|
}
|
|
|
|
/* On screens 450px or less, make the menu cover the whole page */
|
|
@media (max-width: 450px) {
|
|
.search-menu {
|
|
width: 100%;
|
|
height: 100%;
|
|
right: 0;
|
|
margin-right: 0;
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
/* ------------------ About QGato Modal Styles ------------------ */
|
|
|
|
#aboutQGatoModal {
|
|
display: none;
|
|
position: fixed;
|
|
/* Center modal */
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
|
|
/* Keep it on top */
|
|
z-index: 999;
|
|
|
|
/* Match mini-menu background style */
|
|
background-color: var(--html-bg);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
|
|
/* Spacing & sizing */
|
|
padding: 32px;
|
|
max-width: 600px; /* Increased width */
|
|
max-height: 80vh; /* Optional: restrict height to 80% of viewport */
|
|
overflow-y: auto; /* Enable scrolling if content exceeds height */
|
|
color: var(--font-fg);
|
|
}
|
|
|
|
#aboutQGatoModal #close-button {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px; /* Moved close button to top-right */
|
|
}
|
|
|
|
#aboutQGatoModal .modal-content {
|
|
text-align: center;
|
|
margin-top: 20px; /* Adjusted spacing */
|
|
}
|
|
|
|
/* Logo */
|
|
#aboutQGatoModal .modal-content img {
|
|
width: 100px; /* Increased logo size */
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
/* Headings, paragraphs, etc. */
|
|
#aboutQGatoModal .modal-content h2 {
|
|
font-size: 2rem; /* Larger heading */
|
|
margin: 8px 0;
|
|
}
|
|
|
|
#aboutQGatoModal .modal-content p {
|
|
font-size: 1.1rem; /* Larger paragraph text */
|
|
margin: 12px 0;
|
|
}
|
|
|
|
/* Container for the Source Code / Privacy Policy buttons */
|
|
#aboutQGatoModal .button-container {
|
|
margin-top: 16px;
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* Match mini-menu button style as closely as possible */
|
|
#aboutQGatoModal .button-container button {
|
|
background-color: var(--button);
|
|
color: var(--font-fg);
|
|
border: 1px solid var(--border);
|
|
border-radius: 6px;
|
|
padding: 12px 16px; /* Larger button padding */
|
|
font-size: 1rem; /* Larger button text */
|
|
cursor: pointer;
|
|
transition: border 0.3s ease, background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
#aboutQGatoModal .button-container button:hover {
|
|
border: 1px solid var(--font-fg);
|
|
}
|
|
|
|
/* Close Button Style */
|
|
.cloase-btn {
|
|
font-size: 1.5rem; /* Larger close button */
|
|
color: var(--search-button);
|
|
border-radius: 50%;
|
|
padding: 8px;
|
|
}
|
|
|
|
.cloase-btn:hover {
|
|
transition: all 0.3s ease;
|
|
background-color: var(--image-select);
|
|
}
|
|
|
|
/* ------------------ Common Button No Style ------------------ */
|
|
|
|
.btn-nostyle {
|
|
background-color: inherit;
|
|
border: none;
|
|
padding: 0px;
|
|
width: fit-content;
|
|
cursor: pointer;
|
|
} |