more responsive theming
This commit is contained in:
138
styles.css
138
styles.css
@@ -12,6 +12,10 @@
|
|||||||
--subtitle-color: #dda15e;
|
--subtitle-color: #dda15e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
var(--bg-gradient-1),
|
var(--bg-gradient-1),
|
||||||
@@ -20,9 +24,9 @@ body {
|
|||||||
)
|
)
|
||||||
no-repeat fixed;
|
no-repeat fixed;
|
||||||
color: var(--text-color);
|
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;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 16px;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
transition: all 0.5s ease;
|
transition: all 0.5s ease;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -50,12 +54,13 @@ body::before {
|
|||||||
|
|
||||||
.container {
|
.container {
|
||||||
background: var(--container-bg);
|
background: var(--container-bg);
|
||||||
border-radius: 15px;
|
border-radius: 20px;
|
||||||
padding: 25px;
|
padding: 24px;
|
||||||
border: 1px solid var(--container-border);
|
border: 1px solid var(--container-border);
|
||||||
backdrop-filter: blur(12px);
|
backdrop-filter: blur(12px);
|
||||||
-webkit-backdrop-filter: blur(12px);
|
-webkit-backdrop-filter: blur(12px);
|
||||||
width: 40%;
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
|
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
@@ -64,92 +69,151 @@ body::before {
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
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);
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
transition: color 0.3s ease;
|
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 {
|
p {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
transition: color 0.3s ease;
|
transition: color 0.3s ease;
|
||||||
|
margin: 16px 0;
|
||||||
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-top: 20px;
|
margin: 20px 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
li:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
li a {
|
li a {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 15px;
|
padding: 18px 20px;
|
||||||
border-radius: 8px;
|
border-radius: 12px;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.2s ease;
|
||||||
margin-bottom: 10px;
|
|
||||||
background-color: var(--link-bg);
|
background-color: var(--link-bg);
|
||||||
border: 1px solid transparent;
|
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);
|
background-color: var(--link-hover-bg);
|
||||||
border-color: var(--link-hover-border);
|
|
||||||
transform: scale(1.02);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
li a strong {
|
li a strong {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--link-color);
|
color: var(--link-color);
|
||||||
transition: color 0.3s ease;
|
transition: color 0.3s ease;
|
||||||
|
font-size: 1.05rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
li a span {
|
li a span {
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
color: var(--subtitle-color);
|
color: var(--subtitle-color);
|
||||||
transition: color 0.3s ease;
|
transition: color 0.3s ease;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
br {
|
||||||
.container {
|
display: block;
|
||||||
width: 60%;
|
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 {
|
body {
|
||||||
display: block;
|
padding: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 80%;
|
padding: 32px;
|
||||||
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2em;
|
margin-bottom: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-bottom: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (min-width: 1024px) {
|
||||||
.container {
|
.container {
|
||||||
width: 90%;
|
max-width: 700px;
|
||||||
padding: 15px;
|
|
||||||
}
|
|
||||||
h1 {
|
|
||||||
font-size: 1.5em;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
@media (max-width: 400px) {
|
||||||
width: 24px;
|
.container {
|
||||||
height: 24px;
|
padding: 20px;
|
||||||
margin-right: 8px;
|
border-radius: 16px;
|
||||||
background-size: contain;
|
}
|
||||||
background-repeat: no-repeat;
|
|
||||||
vertical-align: top;
|
li a {
|
||||||
|
padding: 16px 18px;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
li a span {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
@media (prefers-reduced-motion: reduce) {
|
||||||
vertical-align: middle;
|
* {
|
||||||
}
|
animation: none !important;
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user