more responsive theming

This commit is contained in:
N0\A
2025-10-29 17:51:37 +01:00
parent 5a3b505574
commit f9524ea08a

View File

@@ -12,6 +12,10 @@
--subtitle-color: #dda15e;
}
* {
box-sizing: border-box;
}
body {
background: linear-gradient(
var(--bg-gradient-1),
@@ -20,9 +24,9 @@ body {
)
no-repeat fixed;
color: var(--text-color);
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
margin: 0;
padding: 0;
padding: 16px;
min-height: 100vh;
transition: all 0.5s ease;
position: relative;
@@ -50,12 +54,13 @@ body::before {
.container {
background: var(--container-bg);
border-radius: 15px;
padding: 25px;
border-radius: 20px;
padding: 24px;
border: 1px solid var(--container-border);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
width: 40%;
width: 100%;
max-width: 600px;
margin: auto;
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
transition: all 0.3s ease;
@@ -64,92 +69,151 @@ body::before {
}
h1 {
margin: 20px 0;
margin: 0 0 16px 0;
font-size: clamp(1.5rem, 5vw, 2rem);
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
color: var(--text-color);
transition: color 0.3s ease;
display: flex;
align-items: center;
gap: 12px;
}
.icon {
width: 32px;
height: 32px;
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
}
.icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
p {
color: var(--text-color);
transition: color 0.3s ease;
margin: 16px 0;
font-size: 1rem;
}
ul {
list-style: none;
padding: 0;
margin-top: 20px;
margin: 20px 0 0 0;
}
li {
margin-bottom: 12px;
}
li:last-child {
margin-bottom: 0;
}
li a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
border-radius: 8px;
padding: 18px 20px;
border-radius: 12px;
color: var(--text-color);
text-decoration: none;
transition: all 0.3s ease;
margin-bottom: 10px;
transition: all 0.2s ease;
background-color: var(--link-bg);
border: 1px solid transparent;
min-height: 56px;
gap: 12px;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
li a:hover {
li a:active {
transform: scale(0.98);
background-color: var(--link-hover-bg);
border-color: var(--link-hover-border);
transform: scale(1.02);
}
li a strong {
font-weight: 600;
color: var(--link-color);
transition: color 0.3s ease;
font-size: 1.05rem;
}
li a span {
font-weight: 300;
color: var(--subtitle-color);
transition: color 0.3s ease;
font-size: 0.9rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@media (max-width: 1024px) {
.container {
width: 60%;
br {
display: block;
margin: 16px 0;
content: "";
}
@media (hover: hover) {
li a:hover {
background-color: var(--link-hover-bg);
border-color: var(--link-hover-border);
transform: scale(1.02);
}
}
@media (max-width: 768px) {
@media (min-width: 768px) {
body {
display: block;
padding: 24px;
}
.container {
width: 80%;
padding: 32px;
border-radius: 20px;
}
h1 {
font-size: 2em;
margin-bottom: 24px;
}
li {
margin-bottom: 14px;
}
}
@media (max-width: 480px) {
@media (min-width: 1024px) {
.container {
width: 90%;
padding: 15px;
}
h1 {
font-size: 1.5em;
max-width: 700px;
}
}
.icon {
width: 24px;
height: 24px;
margin-right: 8px;
background-size: contain;
background-repeat: no-repeat;
vertical-align: top;
@media (max-width: 400px) {
.container {
padding: 20px;
border-radius: 16px;
}
li a {
padding: 16px 18px;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
li a span {
font-size: 0.85rem;
}
}
h1 {
vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}