362 lines
8.5 KiB
CSS
362 lines
8.5 KiB
CSS
/* General Styles */
|
|
body {
|
|
font-family: 'Raleway', sans-serif;
|
|
background-color: var(--ctp-macchiato-overlay0);
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
color: var(--ctp-macchiato-mantle);
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
text-align: center;
|
|
}
|
|
|
|
body.dark-mode {
|
|
background-color: var(--ctp-macchiato-mantle);
|
|
color: var(--ctp-macchiato-text);
|
|
}
|
|
|
|
header {
|
|
background-color: var(--ctp-macchiato-green);
|
|
color: var(--ctp-macchiato-crust);
|
|
padding: 1.5rem 0;
|
|
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
header h1 {
|
|
margin: 0;
|
|
transform: translateY(0);
|
|
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
header h1:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
main {
|
|
display: grid;
|
|
gap: 2rem;
|
|
padding: 2rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
place-items: center;
|
|
}
|
|
|
|
.darkmodediv {
|
|
padding: 1rem;
|
|
background: var(--ctp-macchiato-rosewater);
|
|
border-radius: 8px;
|
|
margin: 0 auto;
|
|
max-width: 800px;
|
|
width: 100%;
|
|
}
|
|
|
|
.Container18, .Container15, .ContainerOther {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
padding: 2rem;
|
|
background-color: var(--ctp-macchiato-surface0);
|
|
border-radius: 12px;
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
/* To prevent buttons from becoming too small on narrow screens */
|
|
.Container18 button,
|
|
.Container15 button,
|
|
.ContainerOther button,
|
|
.Container18 .source-btn,
|
|
.Container15 .source-btn,
|
|
.ContainerOther .source-btn,
|
|
.Container18 .dsc-btn,
|
|
.Container15 .dsc-btn,
|
|
.ContainerOther .dsc-btn,
|
|
.Container18 .clr-btn,
|
|
.Container15 .clr-btn,
|
|
.ContainerOther .clr-btn {
|
|
min-width: 120px;
|
|
margin: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Add a container for each version category for better organization */
|
|
.version-category {
|
|
width: 100%;
|
|
margin: 1rem 0;
|
|
padding: 1rem;
|
|
background-color: var(--ctp-macchiato-surface0);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Make sure the category title is visible */
|
|
.version-category h2 {
|
|
margin-bottom: 1rem;
|
|
color: var(--ctp-macchiato-text);
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.Container18, .Container15, .ContainerOther {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.Container18 button,
|
|
.Container15 button,
|
|
.ContainerOther button,
|
|
.Container18 .source-btn,
|
|
.Container15 .source-btn,
|
|
.ContainerOther .source-btn,
|
|
.Container18 .dsc-btn,
|
|
.Container15 .dsc-btn,
|
|
.ContainerOther .dsc-btn,
|
|
.Container18 .clr-btn,
|
|
.Container15 .clr-btn,
|
|
.ContainerOther .clr-btn {
|
|
min-width: 100px;
|
|
font-size: 0.9rem;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.Container18, .Container15, .ContainerOther {
|
|
justify-content: flex-start;
|
|
overflow-x: auto;
|
|
padding: 1rem 0.5rem;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.Container18::-webkit-scrollbar,
|
|
.Container15::-webkit-scrollbar,
|
|
.ContainerOther::-webkit-scrollbar {
|
|
height: 4px;
|
|
}
|
|
|
|
.Container18::-webkit-scrollbar-thumb,
|
|
.Container15::-webkit-scrollbar-thumb,
|
|
.ContainerOther::-webkit-scrollbar-thumb {
|
|
background-color: var(--ctp-macchiato-overlay2);
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
/* Base button styles */
|
|
button, .source-btn, .dsc-btn, .clr-btn {
|
|
background-color: var(--ctp-macchiato-green);
|
|
color: var(--ctp-macchiato-mantle);
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
border: none;
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* GSAP-like animations only for regular buttons */
|
|
button {
|
|
position: relative;
|
|
overflow: hidden;
|
|
transform-origin: center;
|
|
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
|
|
background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
|
|
box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
button::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(
|
|
120deg,
|
|
transparent,
|
|
rgba(255, 255, 255, 0.2),
|
|
transparent
|
|
);
|
|
transform: translateX(-100%);
|
|
transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
button:hover::before {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
button:hover {
|
|
transform: scale(1.05) translateY(-2px);
|
|
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
button:active {
|
|
transform: scale(0.95);
|
|
transition-duration: 0.1s;
|
|
}
|
|
|
|
/* Simple transitions for dsc-btn and clr-btn */
|
|
.dsc-btn, .clr-btn {
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.dsc-btn {
|
|
background-color: var(--ctp-macchiato-mauve);
|
|
}
|
|
|
|
.clr-btn {
|
|
background-color: var(--ctp-macchiato-peach);
|
|
}
|
|
|
|
.search-container {
|
|
display: grid;
|
|
place-items: center;
|
|
gap: 1rem;
|
|
margin: 2rem 0;
|
|
width: 100%;
|
|
}
|
|
|
|
#search-bar {
|
|
background-color: var(--ctp-macchiato-mantle);
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 999px;
|
|
width: 100%;
|
|
max-width: 500px;
|
|
outline: none;
|
|
border: 3px solid var(--ctp-macchiato-green);
|
|
color: var(--ctp-macchiato-text);
|
|
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
#search-bar:focus {
|
|
border-width: 4px;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.footer {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
gap: 2rem;
|
|
padding: 1.5rem;
|
|
background-color: var(--ctp-macchiato-overlay1);
|
|
color: var(--ctp-macchiato-text);
|
|
place-items: center;
|
|
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
place-items: center;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: var(--ctp-macchiato-text);
|
|
padding: 2rem;
|
|
border-radius: 12px;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
place-items: center;
|
|
transform: translateY(0);
|
|
transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Source button with minimal animation */
|
|
.source-btn {
|
|
background-color: var(--ctp-macchiato-mantle);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
/* Dark Mode enhancements */
|
|
body.dark-mode .modal-content {
|
|
background-color: var(--ctp-macchiato-mantle);
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
body.dark-mode #search-bar {
|
|
background-color: var(--ctp-macchiato-overlay0);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
body.dark-mode .footer {
|
|
background-color: var(--ctp-macchiato-overlay0);
|
|
border-top: 1px solid var(--ctp-macchiato-overlay1);
|
|
}
|
|
|
|
/* Responsive centering for smaller screens */
|
|
@media (max-width: 768px) {
|
|
.Container18, .Container15, .ContainerOther {
|
|
grid-template-columns: 1fr;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.darkmodediv {
|
|
padding: 1rem;
|
|
margin: 0 1rem;
|
|
}
|
|
}
|
|
|
|
/* Tabs styling */
|
|
.tabs {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
margin-bottom: 2rem;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.tab {
|
|
background-color: var(--ctp-macchiato-surface0);
|
|
color: var(--ctp-macchiato-text);
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-family: 'Raleway', sans-serif;
|
|
font-weight: 500;
|
|
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.tab.active {
|
|
background-color: var(--ctp-macchiato-mauve);
|
|
color: var(--ctp-macchiato-base);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.tab:hover:not(.active) {
|
|
background-color: var(--ctp-macchiato-surface1);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* Version text styling */
|
|
.version-text {
|
|
display: none; /* Hide the original version text */
|
|
} |