Improve overall CMS styling: refined design tokens, improved card/button/input components, circular avatars on me page

This commit is contained in:
root
2026-06-26 19:38:06 +02:00
parent 0ac3a5ea21
commit 5bd7b2333f
18 changed files with 300 additions and 513 deletions
+73 -154
View File
@@ -32,10 +32,6 @@
} }
} }
* {
font-family: poppins, sans-serif;
}
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 100px; border-radius: 100px;
border: 4px solid transparent; border: 4px solid transparent;
@@ -44,7 +40,11 @@
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 16px; width: 12px;
}
::-webkit-scrollbar-track {
background: transparent;
} }
::placeholder { ::placeholder {
@@ -52,14 +52,6 @@
opacity: 1; opacity: 1;
} }
:-ms-input-placeholder {
color: #626565;
}
::-ms-input-placeholder {
color: #626565;
}
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
} }
@@ -95,81 +87,37 @@ body {
background-blend-mode: multiply; background-blend-mode: multiply;
} }
.camera-icon { .icon-base {
background: #242c31 url("/public/assets/images/icons/camera.png") no-repeat background-repeat: no-repeat;
center; background-position: center;
background-size: contain;
} }
.discord-icon { .camera-icon { background: #242c31 url("/public/assets/images/icons/camera.png") no-repeat center; }
background: #25658d url("/public/assets/images/icons/discord.png") no-repeat .discord-icon { background: #25658d url("/public/assets/images/icons/discord.png") no-repeat center; }
center; html.dark .camera-icon { background: #25658d url("/public/assets/images/icons/camera.png") no-repeat center; }
} .hotel-icon { background: #f68b08 url("/public/assets/images/icons/feeds.png") no-repeat center; }
.chat-icon { background: #375571 url("/public/assets/images/icons/chat.png") no-repeat center; }
html.dark .camera-icon { .article-icon { background: #536e5e url("/public/assets/images/icons/article.gif") no-repeat center; }
background: #25658d url("/public/assets/images/icons/camera.png") no-repeat .lighthouse-icon { background: #8554a6 url("/public/assets/images/icons/lighthouse.png") no-repeat center; }
center; .currency-icon { background: #e3ad06 url("/public/assets/images/icons/currency.png") no-repeat center; }
} .catalog-icon { background: rgba(141, 74, 183, 0.51) url("/public/assets/images/icons/catalog.png") no-repeat center; }
.inventory-icon { background: #232121 url("/public/assets/images/icons/inventory.png") no-repeat center; }
.hotel-icon { .duo-chat-icon { background: #eec980 url("/public/assets/images/icons/due-chat.png") no-repeat center; }
background: #f68b08 url("/public/assets/images/icons/feeds.png") no-repeat .friends-icon { background: #b17f85 url("/public/assets/images/icons/friends.png") no-repeat center; }
center;
}
.chat-icon {
background: #375571 url("/public/assets/images/icons/chat.png") no-repeat
center;
}
.article-icon {
background: #536e5e url("/public/assets/images/icons/article.gif") no-repeat
center;
}
.lighthouse-icon {
background: #8554a6 url("/public/assets/images/icons/lighthouse.png")
no-repeat center;
}
.currency-icon {
background: #e3ad06 url("/public/assets/images/icons/currency.png") no-repeat
center;
}
.catalog-icon {
background: rgba(141, 74, 183, 0.51)
url("/public/assets/images/icons/catalog.png") no-repeat center;
}
.inventory-icon {
background: #232121 url("/public/assets/images/icons/inventory.png") no-repeat
center;
}
.duo-chat-icon {
background: #eec980 url("/public/assets/images/icons/due-chat.png") no-repeat
center;
}
.friends-icon {
background: #b17f85 url("/public/assets/images/icons/friends.png") no-repeat
center;
}
.nav-credit-icon { .nav-credit-icon {
background: #e9b124 url("/public/assets/images/icons/currency/credits.png") background: #e9b124 url("/public/assets/images/icons/currency/credits.png") no-repeat center;
no-repeat center;
outline: 1px solid #b26d18; outline: 1px solid #b26d18;
} }
.nav-ducket-icon { .nav-ducket-icon {
background: #c44aac url("/public/assets/images/icons/currency/duckets.png") background: #c44aac url("/public/assets/images/icons/currency/duckets.png") no-repeat center;
no-repeat center;
outline: 1px solid #812378; outline: 1px solid #812378;
} }
.nav-diamond-icon { .nav-diamond-icon {
background: #caf1f3 url("/public/assets/images/icons/currency/diamonds.png") background: #caf1f3 url("/public/assets/images/icons/currency/diamonds.png") no-repeat center;
no-repeat center;
outline: 1px solid #6caff4; outline: 1px solid #6caff4;
} }
@@ -182,43 +130,36 @@ html.dark .camera-icon {
background-blend-mode: multiply; background-blend-mode: multiply;
} }
/* Nitro disconnect overlay */
#disconnected { #disconnected {
display: none; display: none;
} }
.profile-bg { .profile-bg {
background: rgba(0, 0, 0, 0.5) background: rgba(0, 0, 0, 0.5) url("/public/assets/images/profile/profile-bg.png");
url("/public/assets/images/profile/profile-bg.png");
background-blend-mode: multiply; background-blend-mode: multiply;
} }
.leaderboard-first { .leaderboard-first {
background: #f9d83e url("/public/assets/images/leaderboards/trophy-gold.png") background: #f9d83e url("/public/assets/images/leaderboards/trophy-gold.png") no-repeat center;
no-repeat center;
color: transparent; color: transparent;
} }
.leaderboard-second { .leaderboard-second {
background: #b8c4d4 background: #b8c4d4 url("/public/assets/images/leaderboards/trophy-silver.png") no-repeat center;
url("/public/assets/images/leaderboards/trophy-silver.png") no-repeat center;
color: transparent; color: transparent;
} }
.leaderboard-third { .leaderboard-third {
background: #f1851b background: #f1851b url("/public/assets/images/leaderboards/trophy-bronze.png") no-repeat center;
url("/public/assets/images/leaderboards/trophy-bronze.png") no-repeat center;
color: transparent; color: transparent;
} }
.site-bg { .site-bg {
background: url("/public/assets/images/background-light.jpg") no-repeat fixed background: url("/public/assets/images/background-light.jpg") no-repeat fixed right bottom;
right bottom;
} }
.app.dark .site-bg { .app.dark .site-bg {
background: url("/public/assets/images/background-dark.jpg") no-repeat fixed background: url("/public/assets/images/background-dark.jpg") no-repeat fixed right bottom;
right bottom;
} }
.app.dark .swal2-popup { .app.dark .swal2-popup {
@@ -239,25 +180,11 @@ html.dark .camera-icon {
background-position: center; background-position: center;
} }
.navigation-icon.shop { .navigation-icon.shop { background-image: url("/public/assets/images/icons/navigation/shop.png"); }
background-image: url("/public/assets/images/icons/navigation/shop.png"); .navigation-icon.leaderboards { background-image: url("/public/assets/images/icons/navigation/leaderboards.png"); }
} .navigation-icon.rules { background-image: url("/public/assets/images/icons/navigation/rules.gif"); }
.navigation-icon.home { background-image: url("/public/assets/images/icons/navigation/home.png"); }
.navigation-icon.leaderboards { .navigation-icon.community { background-image: url("/public/assets/images/icons/navigation/community.png"); }
background-image: url("/public/assets/images/icons/navigation/leaderboards.png");
}
.navigation-icon.rules {
background-image: url("/public/assets/images/icons/navigation/rules.gif");
}
.navigation-icon.home {
background-image: url("/public/assets/images/icons/navigation/home.png");
}
.navigation-icon.community {
background-image: url("/public/assets/images/icons/navigation/community.png");
}
.swiper-slide { .swiper-slide {
height: 215px !important; height: 215px !important;
@@ -272,63 +199,55 @@ html.dark .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
background: white !important; background: white !important;
} }
.prose-xl p:is([style*="text-align: center;"]) img { .prose-xl p:is([style*="text-align: center;"]) img { display: block; margin-left: auto; margin-right: auto; }
display: block; .prose-xl p:is([style*="text-align: left;"]) img { margin-left: 0; margin-right: auto; }
margin-left: auto; .prose-xl p:is([style*="text-align: right;"]) img { margin-left: auto; margin-right: 0; }
margin-right: auto; .prose-xl p { font-size: 16px; }
}
.prose-xl p:is([style*="text-align: left;"]) img { .atom-align-left { float: left; margin: 0 10px 10px 0; }
margin-left: 0; .atom-align-right { float: right; margin: 0 0 10px 10px; }
margin-right: auto; .atom-align-center { display: block; margin: 0 auto; text-align: center; }
} .atom-align-center > * { text-align: center; }
.prose-xl p:is([style*="text-align: right;"]) img {
margin-left: auto;
margin-right: 0;
}
.prose-xl p {
font-size: 16px;
}
.atom-align-left {
float: left;
margin: 0 10px 10px 0;
}
.atom-align-right {
float: right;
margin: 0 0 10px 10px;
}
.atom-align-center {
display: block;
margin: 0 auto;
text-align: center;
}
.atom-align-center > * {
text-align: center;
}
#article-content a { #article-content a {
color: var(--link-color, #53b2f8); color: var(--link-color, #53b2f8);
} }
.cursor-grab { .cursor-grab { cursor: grab !important; }
cursor: grab !important; .cursor-grab:active { cursor: grabbing !important; }
}
.cursor-grab:active {
cursor: grabbing !important;
}
/* Text utility classes using CSS variables */
.text-body { color: var(--color-text); } .text-body { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); } .text-muted { color: var(--color-text-muted); }
.text-nav { color: var(--color-navbar-text); } .text-nav { color: var(--color-navbar-text); }
/* Text shadow for readability on images/dark backgrounds */
.text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.8); } .text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.6); } .text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.text-shadow-lg { text-shadow: 0 2px 8px rgba(0,0,0,0.9); } .text-shadow-lg { text-shadow: 0 2px 8px rgba(0,0,0,0.9); }
.transition-base {
transition: all 0.2s ease-in-out;
}
.transition-smooth {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-card-hover);
}
.card-base {
background-color: var(--color-surface);
border-radius: var(--radius-md);
box-shadow: var(--shadow-card);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
}
.card-base:hover {
box-shadow: var(--shadow-card-hover);
border-color: color-mix(in srgb, var(--color-text-muted) 25%, transparent);
}
+88 -193
View File
@@ -18,22 +18,37 @@
@layer components { @layer components {
.nav-item { .nav-item {
@apply flex h-auto md:h-[60px] items-center text-[14px] font-semibold uppercase text-gray-700 transition duration-200 ease-in-out; @apply flex h-auto md:h-[60px] items-center text-[14px] font-semibold uppercase transition-all duration-200 ease-in-out;
color: var(--color-navbar-text); color: var(--color-navbar-text);
border-bottom: 4px solid transparent; border-bottom: 4px solid transparent;
position: relative;
} }
.nav-item:hover { .nav-item::after {
border-bottom-color: var(--color-primary); content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 4px;
background-color: var(--color-primary);
transition: all 0.2s ease-in-out;
transform: translateX(-50%);
border-radius: 2px 2px 0 0;
}
.nav-item:hover::after {
width: 100%;
} }
.dropdown-item { .dropdown-item {
@apply block py-2 px-4 font-semibold hover:bg-gray-100 text-gray-900; @apply block py-2 px-4 font-semibold transition-all duration-200 ease-in-out;
color: var(--color-text); color: var(--color-text);
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 8px 16px; padding: 8px 16px;
text-align: center; text-align: center;
border-radius: var(--radius-sm);
} }
.dropdown-item::before, .dropdown-item::before,
@@ -44,10 +59,10 @@
.dropdown-item:hover { .dropdown-item:hover {
background-color: var(--color-primary); background-color: var(--color-primary);
color: var(--button-text-color);
} }
} }
/* Mobile dropdown - force center everything */
@media (max-width: 768px) { @media (max-width: 768px) {
.dropdown-panel { .dropdown-panel {
text-align: center !important; text-align: center !important;
@@ -65,38 +80,6 @@
} }
} }
* {
font-family: poppins, sans-serif;
}
::-webkit-scrollbar-thumb {
border-radius: 100px;
border: 4px solid transparent;
background-clip: content-box;
background-color: #2c3039;
}
::-webkit-scrollbar {
width: 16px;
}
::placeholder {
color: #626565;
opacity: 1;
}
:-ms-input-placeholder {
color: #626565;
}
::-ms-input-placeholder {
color: #626565;
}
html {
scroll-behavior: smooth;
}
input::placeholder, input::placeholder,
textarea::placeholder { textarea::placeholder {
color: var(--input-placeholder-color, var(--color-text-muted)); color: var(--input-placeholder-color, var(--color-text-muted));
@@ -120,81 +103,37 @@ textarea::placeholder {
background-blend-mode: multiply; background-blend-mode: multiply;
} }
.camera-icon { .icon-base {
background: #242c31 url("/public/assets/images/icons/camera.png") no-repeat background-repeat: no-repeat;
center; background-position: center;
background-size: contain;
} }
.discord-icon { .camera-icon { background: #242c31 url("/public/assets/images/icons/camera.png") no-repeat center; }
background: #25658d url("/public/assets/images/icons/discord.png") no-repeat .discord-icon { background: #25658d url("/public/assets/images/icons/discord.png") no-repeat center; }
center; html.dark .camera-icon { background: #25658d url("/public/assets/images/icons/camera.png") no-repeat center; }
} .hotel-icon { background: #f68b08 url("/public/assets/images/icons/feeds.png") no-repeat center; }
.chat-icon { background: #375571 url("/public/assets/images/icons/chat.png") no-repeat center; }
html.dark .camera-icon { .article-icon { background: #536e5e url("/public/assets/images/icons/article.gif") no-repeat center; }
background: #25658d url("/public/assets/images/icons/camera.png") no-repeat .lighthouse-icon { background: #8554a6 url("/public/assets/images/icons/lighthouse.png") no-repeat center; }
center; .currency-icon { background: #e3ad06 url("/public/assets/images/icons/currency.png") no-repeat center; }
} .catalog-icon { background: rgba(141, 74, 183, 0.51) url("/public/assets/images/icons/catalog.png") no-repeat center; }
.inventory-icon { background: #232121 url("/public/assets/images/icons/inventory.png") no-repeat center; }
.hotel-icon { .duo-chat-icon { background: #eec980 url("/public/assets/images/icons/due-chat.png") no-repeat center; }
background: #f68b08 url("/public/assets/images/icons/feeds.png") no-repeat .friends-icon { background: #b17f85 url("/public/assets/images/icons/friends.png") no-repeat center; }
center;
}
.chat-icon {
background: #375571 url("/public/assets/images/icons/chat.png") no-repeat
center;
}
.article-icon {
background: #536e5e url("/public/assets/images/icons/article.gif") no-repeat
center;
}
.lighthouse-icon {
background: #8554a6 url("/public/assets/images/icons/lighthouse.png")
no-repeat center;
}
.currency-icon {
background: #e3ad06 url("/public/assets/images/icons/currency.png") no-repeat
center;
}
.catalog-icon {
background: rgba(141, 74, 183, 0.51)
url("/public/assets/images/icons/catalog.png") no-repeat center;
}
.inventory-icon {
background: #232121 url("/public/assets/images/icons/inventory.png") no-repeat
center;
}
.duo-chat-icon {
background: #eec980 url("/public/assets/images/icons/due-chat.png") no-repeat
center;
}
.friends-icon {
background: #b17f85 url("/public/assets/images/icons/friends.png") no-repeat
center;
}
.nav-credit-icon { .nav-credit-icon {
background: #e9b124 url("/public/assets/images/icons/currency/credits.png") background: #e9b124 url("/public/assets/images/icons/currency/credits.png") no-repeat center;
no-repeat center;
outline: 1px solid #b26d18; outline: 1px solid #b26d18;
} }
.nav-ducket-icon { .nav-ducket-icon {
background: #c44aac url("/public/assets/images/icons/currency/duckets.png") background: #c44aac url("/public/assets/images/icons/currency/duckets.png") no-repeat center;
no-repeat center;
outline: 1px solid #812378; outline: 1px solid #812378;
} }
.nav-diamond-icon { .nav-diamond-icon {
background: #caf1f3 url("/public/assets/images/icons/currency/diamonds.png") background: #caf1f3 url("/public/assets/images/icons/currency/diamonds.png") no-repeat center;
no-repeat center;
outline: 1px solid #6caff4; outline: 1px solid #6caff4;
} }
@@ -207,42 +146,34 @@ html.dark .camera-icon {
background-blend-mode: multiply; background-blend-mode: multiply;
} }
#disconnected { #disconnected { display: none; }
display: none;
}
.profile-bg { .profile-bg {
background: rgba(0, 0, 0, 0.5) background: rgba(0, 0, 0, 0.5) url("/public/assets/images/profile/profile-bg.png");
url("/public/assets/images/profile/profile-bg.png");
background-blend-mode: multiply; background-blend-mode: multiply;
} }
.leaderboard-first { .leaderboard-first {
background: #f9d83e url("/public/assets/images/leaderboards/trophy-gold.png") background: #f9d83e url("/public/assets/images/leaderboards/trophy-gold.png") no-repeat center;
no-repeat center;
color: transparent; color: transparent;
} }
.leaderboard-second { .leaderboard-second {
background: #b8c4d4 background: #b8c4d4 url("/public/assets/images/leaderboards/trophy-silver.png") no-repeat center;
url("/public/assets/images/leaderboards/trophy-silver.png") no-repeat center;
color: transparent; color: transparent;
} }
.leaderboard-third { .leaderboard-third {
background: #f1851b background: #f1851b url("/public/assets/images/leaderboards/trophy-bronze.png") no-repeat center;
url("/public/assets/images/leaderboards/trophy-bronze.png") no-repeat center;
color: transparent; color: transparent;
} }
.site-bg { .site-bg {
background: url("/public/assets/images/background-light.jpg") no-repeat fixed background: url("/public/assets/images/background-light.jpg") no-repeat fixed right bottom;
right bottom;
} }
.app.dark .site-bg { .app.dark .site-bg {
background: url("/public/assets/images/background-dark.jpg") no-repeat fixed background: url("/public/assets/images/background-dark.jpg") no-repeat fixed right bottom;
right bottom;
} }
.app.dark .swal2-popup { .app.dark .swal2-popup {
@@ -263,82 +194,29 @@ html.dark .camera-icon {
background-position: center; background-position: center;
} }
.navigation-icon.shop { .navigation-icon.shop { background-image: url("/public/assets/images/icons/navigation/shop.png"); }
background-image: url("/public/assets/images/icons/navigation/shop.png"); .navigation-icon.leaderboards { background-image: url("/public/assets/images/icons/navigation/leaderboards.png"); }
} .navigation-icon.rules { background-image: url("/public/assets/images/icons/navigation/rules.gif"); }
.navigation-icon.home { background-image: url("/public/assets/images/icons/navigation/home.png"); }
.navigation-icon.community { background-image: url("/public/assets/images/icons/navigation/community.png"); }
.navigation-icon.leaderboards { .swiper-slide { height: 215px !important; }
background-image: url("/public/assets/images/icons/navigation/leaderboards.png");
}
.navigation-icon.rules {
background-image: url("/public/assets/images/icons/navigation/rules.gif");
}
.navigation-icon.home {
background-image: url("/public/assets/images/icons/navigation/home.png");
}
.navigation-icon.community {
background-image: url("/public/assets/images/icons/navigation/community.png");
}
.swiper-slide {
height: 215px !important;
}
.swiper-pagination-bullet-active, .swiper-pagination-bullet-active,
html.dark .swiper-pagination-bullet-active { html.dark .swiper-pagination-bullet-active { background: #e9b124 !important; }
background: #e9b124 !important; html.dark .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) { background: white !important; }
}
html.dark .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) { .prose-xl p:is([style*="text-align: center;"]) img { display: block; margin-left: auto; margin-right: auto; }
background: white !important; .prose-xl p:is([style*="text-align: left;"]) img { margin-left: 0; margin-right: auto; }
} .prose-xl p:is([style*="text-align: right;"]) img { margin-left: auto; margin-right: 0; }
.prose-xl p { font-size: 16px; }
.prose-xl p:is([style*="text-align: center;"]) img { .atom-align-left { float: left; margin: 0 10px 10px 0; }
display: block; .atom-align-right { float: right; margin: 0 0 10px 10px; }
margin-left: auto; .atom-align-center { display: block; margin: 0 auto; text-align: center; }
margin-right: auto; .atom-align-center > * { text-align: center; }
}
.prose-xl p:is([style*="text-align: left;"]) img { #article-content a { color: #53b2f8; }
margin-left: 0;
margin-right: auto;
}
.prose-xl p:is([style*="text-align: right;"]) img {
margin-left: auto;
margin-right: 0;
}
.prose-xl p {
font-size: 16px;
}
.atom-align-left {
float: left;
margin: 0 10px 10px 0;
}
.atom-align-right {
float: right;
margin: 0 0 10px 10px;
}
.atom-align-center {
display: block;
margin: 0 auto;
text-align: center;
}
.atom-align-center > * {
text-align: center;
}
#article-content a {
color: #53b2f8;
}
.badge-drawer-button { .badge-drawer-button {
background-image: linear-gradient(to bottom, #f2f2f3 51%, #d9d8d8 49%); background-image: linear-gradient(to bottom, #f2f2f3 51%, #d9d8d8 49%);
@@ -351,9 +229,7 @@ html.dark .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
box-shadow: inset 0 0 0px 2px #ffffff; box-shadow: inset 0 0 0px 2px #ffffff;
} }
.badge-drawer-button .toggled { .badge-drawer-button .toggled { background: #f2f2f3; }
background: #f2f2f3;
}
html.dark .badge-drawer-button { html.dark .badge-drawer-button {
background-image: linear-gradient(to bottom, #141414 51%, #101010 49%); background-image: linear-gradient(to bottom, #141414 51%, #101010 49%);
@@ -366,9 +242,7 @@ html.dark .badge-drawer-button:hover {
box-shadow: inset 0 0 0px 2px #363636; box-shadow: inset 0 0 0px 2px #363636;
} }
html.dark .badge-drawer-button .toggled { html.dark .badge-drawer-button .toggled { background: #f2f2f3; }
background: #f2f2f3;
}
.badge-drawer-palette { .badge-drawer-palette {
background-position: center; background-position: center;
@@ -401,12 +275,33 @@ html.dark .badge-drawer-button .toggled {
opacity: 0.1; opacity: 0.1;
} }
/* Text utility classes using CSS variables */
.text-body { color: var(--color-text); } .text-body { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); } .text-muted { color: var(--color-text-muted); }
.text-nav { color: var(--color-navbar-text); } .text-nav { color: var(--color-navbar-text); }
/* Text shadow for readability */
.text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.8); } .text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.6); } .text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.text-shadow-lg { text-shadow: 0 2px 8px rgba(0,0,0,0.9); } .text-shadow-lg { text-shadow: 0 2px 8px rgba(0,0,0,0.9); }
.transition-base { transition: all 0.2s ease-in-out; }
.transition-smooth { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.hover-lift {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-card-hover);
}
.card-base {
background-color: var(--color-surface);
border-radius: var(--radius-md);
box-shadow: var(--shadow-card);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
}
.card-base:hover {
box-shadow: var(--shadow-card-hover);
border-color: color-mix(in srgb, var(--color-text-muted) 25%, transparent);
}
@@ -1,21 +1,23 @@
@props(['icon' => '', 'classes' => '']) @props(['icon' => '', 'classes' => ''])
<div class="w-full flex flex-col gap-y-4 rounded overflow-hidden pb-3 shadow-sm {{ $classes }}" style="background-color: var(--color-surface); color: var(--color-text);"> <div class="w-full flex flex-col gap-y-4 rounded-xl overflow-hidden pb-4 shadow-sm border {{ $classes }}"
<div class="flex gap-x-2 border-b p-3" style="border-color: color-mix(in srgb, var(--color-primary) 30%, transparent)"> style="background-color: var(--color-surface); color: var(--color-text); border-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
<div class="flex gap-x-2.5 p-3.5 rounded-t-xl"
style="background-color: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)); border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);">
@if (empty($icon) === false) @if (empty($icon) === false)
<div class="max-w-[50px] max-h-[50px] min-w-[50px] min-h-[50px] rounded-full relative flex items-center justify-center {{ $icon }}"></div> <div class="w-[50px] h-[50px] min-w-[50px] rounded-full flex items-center justify-center {{ $icon }} shadow-sm"></div>
@endif @endif
<div class="flex flex-col justify-center text-sm"> <div class="flex flex-col justify-center text-sm">
<p class="font-semibold" style="color: var(--color-text)">{{ $title }}</p> <p class="font-semibold" style="color: var(--color-text)">{{ $title }}</p>
@if(isset($underTitle)) @if(isset($underTitle))
<p style="color: var(--color-text-muted)">{{ $underTitle }}</p> <p class="text-xs mt-0.5" style="color: var(--color-text-muted)">{{ $underTitle }}</p>
@endif @endif
</div> </div>
</div> </div>
<section class="h-full flex flex-col px-3" style="color: var(--color-text)"> <section class="h-full flex flex-col px-4" style="color: var(--color-text)">
{{ $slot }} {{ $slot }}
</section> </section>
</div> </div>
@@ -1,7 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="w-full rounded bg-[var(--button-danger-color)]! hover:bg-[var(--button-danger-hover-color)]! text-[var(--button-danger-text-color)]! border-2 border-[var(--button-danger-border-color)]! transition! ease-in-out! duration-150! font-semibold px-6! py-2! {{ $classes }}" class="w-full bg-[var(--button-danger-color)]! hover:bg-[var(--button-danger-hover-color)]! text-[var(--button-danger-text-color)]! border-2 border-[var(--button-danger-border-color)]! transition-all! ease-in-out! duration-200! font-semibold px-6! py-2.5! {{ $classes }}"
style="border-radius: var(--border-radius)"> style="border-radius: var(--border-radius); box-shadow: var(--shadow-btn);"
onmouseover="this.style.boxShadow='var(--shadow-btn-hover)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='var(--shadow-btn)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -1,17 +1,17 @@
@props(['errorBag' => '', 'classes' => '', 'name', 'type' => 'text', 'value' => '', 'placeholder' => '', 'required' => true, 'autofocus' => false, 'readonly' => false]) @props(['errorBag' => '', 'classes' => '', 'name', 'type' => 'text', 'value' => '', 'placeholder' => '', 'required' => true, 'autofocus' => false, 'readonly' => false])
<input <input
class="{{ $classes }} focus:ring-0 border-2 rounded w-full -sm @error($name, $errorBag) border-red-600 ring-red-500 @enderror" class="{{ $classes }} focus:ring-0 border-2 rounded-lg w-full px-4 py-2.5 transition-all duration-200 @error($name, $errorBag) border-red-500 ring-red-500 @enderror"
style="background-color: var(--color-background); color: var(--color-text); border-color: var(--input-border-color, var(--color-text-muted)); --tw-ring-color: var(--color-primary); --tw-border-opacity: 1; border-color: var(--color-primary);" style="background-color: var(--color-background); color: var(--color-text); border-color: var(--input-border-color, var(--color-text-muted)); --tw-ring-color: var(--color-primary);"
id="{{ $name }}" type="{{ $type }}" name="{{ $name }}" value="{{ $value }}" id="{{ $name }}" type="{{ $type }}" name="{{ $name }}" value="{{ $value }}"
autocomplete="{{ $name }}" placeholder="{{ $placeholder }}" @if ($readonly) required @endif autocomplete="{{ $name }}" placeholder="{{ $placeholder }}" @if ($required) required @endif
@if ($autofocus) autofocus="{{ $name }}" @endif @if ($autofocus) autofocus="{{ $name }}" @endif
@if ($readonly) readonly @endif @if ($readonly) readonly @endif
onfocus="this.style.borderColor='var(--color-primary)'" onfocus="this.style.borderColor='var(--color-primary)'; this.style.boxShadow='0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent)'"
onblur="this.style.borderColor='var(--input-border-color, var(--color-text-muted))'"> onblur="this.style.borderColor='var(--input-border-color, var(--color-text-muted))'; this.style.boxShadow='none'">
@error($name, $errorBag) @error($name, $errorBag)
<p class="mt-1 text-xs italic" style="color: var(--button-danger-color, #ef4444);"> <p class="mt-1.5 text-xs font-medium" style="color: var(--button-danger-color, #ef4444);">
{{ $message }} {{ $message }}
</p> </p>
@enderror @enderror
@@ -1,7 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="w-full rounded bg-transparent! hover:bg-[var(--button-outline-hover-color)]! text-[var(--button-outline-text-color)]! border-2 border-[var(--button-outline-color)]! transition! ease-in-out! duration-150! font-semibold px-6! py-2! {{ $classes }}" class="w-full bg-transparent! hover:bg-[var(--button-outline-hover-color)]! text-[var(--button-outline-text-color)]! border-2 border-[var(--button-outline-color)]! transition-all! ease-in-out! duration-200! font-semibold px-6! py-2.5! {{ $classes }}"
style="border-radius: var(--border-radius)"> style="border-radius: var(--border-radius); box-shadow: var(--shadow-btn);"
onmouseover="this.style.boxShadow='var(--shadow-btn-hover)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='var(--shadow-btn)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -1,7 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="w-full rounded bg-[var(--button-color)]! text-[var(--button-text-color)]! border-2 border-[var(--button-color)]! transition! ease-in-out! duration-200! hover:opacity-90! font-semibold px-6! py-2! {{ $classes }}" class="w-full bg-[var(--button-color)]! text-[var(--button-text-color)]! border-2 border-[var(--button-color)]! transition-all! ease-in-out! duration-200! font-semibold px-6! py-2.5! {{ $classes }}"
style="border-radius: var(--border-radius)"> style="border-radius: var(--border-radius); box-shadow: var(--shadow-btn);"
onmouseover="this.style.boxShadow='var(--shadow-btn-hover)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='var(--shadow-btn)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -1,7 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="w-full rounded bg-[var(--button-secondary-color)]! hover:bg-[var(--button-secondary-hover-color)]! text-[var(--button-secondary-text-color)]! border-2 border-[var(--button-secondary-border-color)]! transition! ease-in-out! duration-150! font-semibold px-6! py-2! {{ $classes }}" class="w-full bg-[var(--button-secondary-color)]! hover:bg-[var(--button-secondary-hover-color)]! text-[var(--button-secondary-text-color)]! border-2 border-[var(--button-secondary-border-color)]! transition-all! ease-in-out! duration-200! font-semibold px-6! py-2.5! {{ $classes }}"
style="border-radius: var(--border-radius)"> style="border-radius: var(--border-radius); box-shadow: var(--shadow-btn);"
onmouseover="this.style.boxShadow='var(--shadow-btn-hover)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='var(--shadow-btn)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -5,10 +5,11 @@
<div> <div>
<a href="{{ route('profile.show', $user) }}" <a href="{{ route('profile.show', $user) }}"
class="absolute -bottom-12 left-0 transition duration-300 ease-in-out hover:scale-105 group"> class="absolute -bottom-12 left-0 transition duration-300 ease-in-out hover:scale-105 group">
<div class="rounded-full overflow-hidden border-4 border-gray-800 group-hover:border-[var(--border-color)] transition-colors">
<img style="image-rendering: pixelated;" <img style="image-rendering: pixelated;"
src="{{ setting('avatar_imager') }}{{ $user->look }}&direction=2&head_direction=3&gesture=sml&action=wav&size=l" src="{{ setting('avatar_imager') }}{{ $user->look }}&direction=2&head_direction=3&gesture=sml&action=wav&size=l"
alt="{{ $user->username }}" alt="{{ $user->username }}">
class="border-4 border-gray-800 group-hover:border-[var(--border-color)] transition-colors rounded-xl"> </div>
</a> </a>
</div> </div>
+61 -116
View File
@@ -14,14 +14,14 @@
@layer components { @layer components {
.dropdown-item { .dropdown-item {
@apply w-full text-left px-2 py-1 transition duration-200 ease-in-out text-sm; @apply w-full text-left px-2 py-1 transition-all duration-200 ease-in-out text-sm;
color: var(--color-text); color: var(--color-text);
border-radius: var(--radius-sm);
} }
.dropdown-item:hover { .dropdown-item:hover {
background-color: var(--color-primary, #8770b2); background-color: var(--color-primary, #8770b2);
color: var(--button-text-color, #ffffff); color: var(--button-text-color, #ffffff);
} }
} }
:focus { :focus {
@@ -31,34 +31,32 @@
body { body {
overflow-x: hidden; overflow-x: hidden;
color: var(--color-text, #ffffff); color: var(--color-text, #ffffff);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} }
/* Base text utility classes using CSS variables */
.text-body { color: var(--color-text); } .text-body { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); } .text-muted { color: var(--color-text-muted); }
.text-nav { color: var(--color-navbar-text); } .text-nav { color: var(--color-navbar-text); }
.text-primary { color: var(--color-primary); } .text-primary { color: var(--color-primary); }
.text-on-primary { color: var(--button-text-color); } .text-on-primary { color: var(--button-text-color); }
/* Settings navigation */
.settings-nav:hover, .settings-nav:hover,
.settings-nav.active { .settings-nav.active {
background-color: var(--color-primary) !important; background-color: var(--color-primary) !important;
color: var(--button-text-color) !important; color: var(--button-text-color) !important;
} }
/* Dropdown panel */
.dropdown-children { .dropdown-children {
background-color: var(--color-dropdown, #ac93da); background-color: var(--color-dropdown, #ac93da);
box-shadow: var(--dropdown-shadow, 0 4px 16px rgba(0,0,0,0.25)); box-shadow: var(--dropdown-shadow, 0 4px 16px rgba(0,0,0,0.25));
border-radius: var(--radius-md);
} }
/* Footer hover */
.site-footer:hover { .site-footer:hover {
color: var(--color-text) !important; color: var(--color-text) !important;
} }
/* Navigation link hover states using CSS variables */
.nav-link { .nav-link {
color: var(--color-navbar-text); color: var(--color-navbar-text);
transition: color 200ms ease-in-out; transition: color 200ms ease-in-out;
@@ -67,7 +65,6 @@ body {
color: var(--color-primary); color: var(--color-primary);
} }
/* Text shadow for readability on images/dark backgrounds */
.text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.8); } .text-shadow { text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.6); } .text-shadow-sm { text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.text-shadow-lg { text-shadow: 0 2px 8px rgba(0,0,0,0.9); } .text-shadow-lg { text-shadow: 0 2px 8px rgba(0,0,0,0.9); }
@@ -108,7 +105,7 @@ textarea::placeholder {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(46, 45, 45, 0.7); /* Black overlay with 60% opacity */ background: rgba(46, 45, 45, 0.7);
} }
} }
@@ -124,17 +121,10 @@ textarea::placeholder {
width: 40px; width: 40px;
filter: grayscale(1); filter: grayscale(1);
transition: filter 300ms ease-in-out; transition: filter 300ms ease-in-out;
}
a:hover .icon {
filter: grayscale(0);
}
.dropdown-parent:hover .icon {
filter: grayscale(0);
} }
a:hover .icon,
.dropdown-parent:hover .icon,
.dropdown-parent:active .icon { .dropdown-parent:active .icon {
filter: grayscale(0); filter: grayscale(0);
} }
@@ -142,13 +132,8 @@ textarea::placeholder {
a.active, div.active { a.active, div.active {
color: #ac93da; color: #ac93da;
.dropdown-children { .dropdown-children { color: #FFFFFF; }
color: #FFFFFF; .icon { filter: grayscale(0); }
}
.icon {
filter: grayscale(0);
}
} }
} }
@@ -194,51 +179,24 @@ textarea::placeholder {
text-shadow: 0 1px 3px rgba(0,0,0,0.8); text-shadow: 0 1px 3px rgba(0,0,0,0.8);
} }
.swiper-button-prev { .swiper-button-prev { z-index: 15 !important; }
z-index: 15 !important; .swiper-button-next { z-index: 15 !important; }
.icon-base {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
} }
.swiper-button-next { .hotel-icon { background: url("/public/assets/images/icons/feeds.png") no-repeat center; }
z-index: 15 !important; .chat-icon { background: url("/public/assets/images/icons/chat.png") no-repeat center; }
} .article-icon { background: url("/public/assets/images/icons/article.gif") no-repeat center; }
.lighthouse-icon { background: url("/public/assets/images/icons/lighthouse.png") no-repeat center; }
.currency-icon { background: url("/public/assets/images/dusk/store_icon.png") no-repeat center; }
.hotel-icon { .catalog-icon { background: url("/public/assets/images/icons/catalog.png") no-repeat center; }
background: url("/public/assets/images/icons/feeds.png") no-repeat center; .inventory-icon { background: url("/public/assets/images/icons/inventory.png") no-repeat center; }
} .duo-chat-icon { background: url("/public/assets/images/icons/due-chat.png") no-repeat center; }
.friends-icon { background: #b17f85 url("/public/assets/images/icons/friends.png") no-repeat center; }
.chat-icon {
background: url("/public/assets/images/icons/chat.png") no-repeat center;
}
.article-icon {
background: url("/public/assets/images/icons/article.gif") no-repeat center;
}
.lighthouse-icon {
background: url("/public/assets/images/icons/lighthouse.png") no-repeat center;
}
.currency-icon {
background: url("/public/assets/images/dusk/store_icon.png") no-repeat center;
}
.catalog-icon {
background: url("/public/assets/images/icons/catalog.png") no-repeat center;
}
.inventory-icon {
background: url("/public/assets/images/icons/inventory.png") no-repeat center;
}
.duo-chat-icon {
background: url("/public/assets/images/icons/due-chat.png") no-repeat center;
}
.friends-icon {
background: #b17f85 url("/public/assets/images/icons/friends.png") no-repeat center;
}
.nav-credit-icon { .nav-credit-icon {
background: #e9b124 url("/public/assets/images/icons/currency/credits.png") no-repeat center; background: #e9b124 url("/public/assets/images/icons/currency/credits.png") no-repeat center;
@@ -275,55 +233,24 @@ textarea::placeholder {
height: 25px; height: 25px;
width: 25px; width: 25px;
&.first { &.first { background-image: url("/public/assets/images/leaderboards/trophy-gold.png"); }
background-image: url("/public/assets/images/leaderboards/trophy-gold.png"); &.second { background-image: url("/public/assets/images/leaderboards/trophy-silver.png"); }
} &.third { background-image: url("/public/assets/images/leaderboards/trophy-bronze.png"); }
&.second {
background-image: url("/public/assets/images/leaderboards/trophy-silver.png");
}
&.third {
background-image: url("/public/assets/images/leaderboards/trophy-bronze.png");
}
} }
.leaderboard-background { .leaderboard-background {
background-image: url("/public/assets/images/dusk/leaderboard_circle_image.png"); background-image: url("/public/assets/images/dusk/leaderboard_circle_image.png");
} }
.staff-bg { .staff-bg { background-blend-mode: multiply; }
background-blend-mode: multiply; #disconnected { display: none; }
}
/* Nitro disconnect overlay */ .atom-align-left { float: left; margin: 0 10px 10px 0; }
#disconnected { .atom-align-right { float: right; margin: 0 0 10px 10px; }
display: none; .atom-align-center { display: block; margin: 0 auto; text-align: center; }
} .atom-align-center > * { text-align: center; }
.atom-align-left { #article-content a { color: #53b2f8; }
float: left;
margin: 0 10px 10px 0;
}
.atom-align-right {
float: right;
margin: 0 0 10px 10px;
}
.atom-align-center {
display: block;
margin: 0 auto;
text-align: center;
}
.atom-align-center > * {
text-align: center;
}
#article-content a {
color: #53b2f8;
}
.badge-drawer-button { .badge-drawer-button {
background-image: linear-gradient(to bottom, #f2f2f3 51%, #d9d8d8 49%); background-image: linear-gradient(to bottom, #f2f2f3 51%, #d9d8d8 49%);
@@ -335,11 +262,8 @@ textarea::placeholder {
box-shadow: inset 0 0 0px 2px #ffffff; box-shadow: inset 0 0 0px 2px #ffffff;
} }
.toggled { .toggled { background: #f2f2f3; }
background: #f2f2f3;
} }
}
html.dark .badge-drawer-button { html.dark .badge-drawer-button {
background-image: linear-gradient(to bottom, #141414 51%, #101010 49%); background-image: linear-gradient(to bottom, #141414 51%, #101010 49%);
@@ -351,9 +275,7 @@ html.dark .badge-drawer-button {
box-shadow: inset 0 0 0px 2px #363636; box-shadow: inset 0 0 0px 2px #363636;
} }
.toggled { .toggled { background: #f2f2f3; }
background: #f2f2f3;
}
} }
.badge-drawer-palette { .badge-drawer-palette {
@@ -386,3 +308,26 @@ html.dark .badge-drawer-button {
opacity: .1; opacity: .1;
} }
} }
.transition-base { transition: all 0.2s ease-in-out; }
.transition-smooth { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.hover-lift {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.card-base {
background-color: var(--color-surface);
border-radius: var(--radius-md);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 15%, transparent);
}
.card-base:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
border-color: color-mix(in srgb, var(--color-text-muted) 25%, transparent);
}
@@ -1,17 +1,19 @@
@props(['icon' => '', 'classes' => '']) @props(['icon' => '', 'classes' => ''])
<div class="w-full flex flex-col gap-y-4 rounded-lg overflow-hidden bg-[#2b303c] pb-4 shadow-sm {{ $classes }}" style="color: var(--color-text);"> <div class="w-full flex flex-col gap-y-4 rounded-xl overflow-hidden pb-4 shadow-sm border {{ $classes }}"
<div class="flex gap-x-2 bg-[#21242e] p-3"> style="background-color: var(--color-surface); color: var(--color-text); border-color: color-mix(in srgb, var(--color-text-muted) 15%, transparent);">
<div class="flex gap-x-2.5 p-3.5 rounded-t-xl"
style="background-color: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)); border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);">
@if (!empty($icon)) @if (!empty($icon))
<div class="max-w-12.5 max-h-12.5 min-w-12.5 min-h-12.5 rounded-full relative flex items-center justify-center {{ $icon }}"></div> <div class="w-[50px] h-[50px] min-w-[50px] rounded-full flex items-center justify-center {{ $icon }} shadow-sm"></div>
@endif @endif
<div class="flex flex-col justify-center text-sm"> <div class="flex flex-col justify-center text-sm">
<p class="font-semibold">{{ $title }}</p> <p class="font-semibold">{{ $title }}</p>
@if(isset($underTitle)) @if(isset($underTitle))
<p class="text-muted">{{ $underTitle }}</p> <p class="text-xs mt-0.5 text-muted">{{ $underTitle }}</p>
@endif @endif
</div> </div>
</div> </div>
@@ -1,6 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="w-full rounded bg-[var(--button-danger-color)] hover:bg-[var(--button-danger-hover-color)] text-[var(--button-danger-text-color)] border-2 border-[var(--button-danger-border-color)] transition ease-in-out duration-150 font-semibold px-6 py-2 {{ $classes }}"> class="w-full rounded-lg bg-[var(--button-danger-color)] hover:bg-[var(--button-danger-hover-color)] text-[var(--button-danger-text-color)] border-2 border-[var(--button-danger-border-color)] transition-all ease-in-out duration-200 font-semibold px-6 py-2.5 {{ $classes }}"
style="border-radius: var(--border-radius); box-shadow: 0 1px 2px rgba(0,0,0,0.1);"
onmouseover="this.style.boxShadow='0 2px 8px rgba(0,0,0,0.15)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='0 1px 2px rgba(0,0,0,0.1)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -1,14 +1,17 @@
@props(['errorBag' => '', 'classes' => '', 'name', 'type' => 'text', 'value' => '', 'placeholder' => '', 'required' => true, 'autofocus' => false, 'readonly' => false]) @props(['errorBag' => '', 'classes' => '', 'name', 'type' => 'text', 'value' => '', 'placeholder' => '', 'required' => true, 'autofocus' => false, 'readonly' => false])
<input <input
class="{{ $classes }} focus:ring-0 border-2 rounded w-full @error($name, $errorBag) !border-red-600 ring-red-500 @enderror" style="border-color: var(--input-border-color, #4b5563); background-color: var(--input-background, #21242e); color: var(--input-text-color, #e2e8f0);" class="{{ $classes }} focus:ring-0 border-2 rounded-lg w-full px-4 py-2.5 transition-all duration-200 @error($name, $errorBag) !border-red-500 @enderror"
style="border-color: var(--input-border-color, #4b5563); background-color: var(--input-background, #21242e); color: var(--input-text-color, #e2e8f0);"
id="{{ $name }}" type="{{ $type }}" name="{{ $name }}" value="{{ $value }}" id="{{ $name }}" type="{{ $type }}" name="{{ $name }}" value="{{ $value }}"
autocomplete="{{ $name }}" placeholder="{{ $placeholder }}" @if ($readonly) required @endif autocomplete="{{ $name }}" placeholder="{{ $placeholder }}" @if ($required) required @endif
@if ($autofocus) autofocus="{{ $name }}" @endif @if ($autofocus) autofocus="{{ $name }}" @endif
@if ($readonly) readonly @endif> @if ($readonly) readonly @endif
onfocus="this.style.borderColor='var(--color-primary)'; this.style.boxShadow='0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent)'"
onblur="this.style.borderColor='var(--input-border-color, #4b5563)'; this.style.boxShadow='none'">
@error($name, $errorBag) @error($name, $errorBag)
<p class="mt-1 text-xs italic" style="color: var(--button-danger-color, #ef4444);"> <p class="mt-1.5 text-xs font-medium" style="color: var(--button-danger-color, #ef4444);">
{{ $message }} {{ $message }}
</p> </p>
@enderror @enderror
@@ -1,6 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="w-full rounded bg-transparent hover:bg-[var(--button-outline-hover-color)] text-[var(--button-outline-text-color)] border-2 border-[var(--button-outline-color)] transition ease-in-out duration-150 font-semibold px-6 py-2 {{ $classes }}"> class="w-full rounded-lg bg-transparent hover:bg-[var(--button-outline-hover-color)] text-[var(--button-outline-text-color)] border-2 border-[var(--button-outline-color)] transition-all ease-in-out duration-200 font-semibold px-6 py-2.5 {{ $classes }}"
style="border-radius: var(--border-radius); box-shadow: 0 1px 2px rgba(0,0,0,0.1);"
onmouseover="this.style.boxShadow='0 2px 8px rgba(0,0,0,0.15)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='0 1px 2px rgba(0,0,0,0.1)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -1,6 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="{{ $classes }} w-full rounded p-2 border-2 transition ease-in-out duration-200 font-semibold" style="background-color: var(--button-color); color: var(--button-text-color); border-color: var(--button-color);"> class="{{ $classes }} w-full rounded-lg px-6 py-2.5 border-2 transition-all ease-in-out duration-200 font-semibold"
style="background-color: var(--button-color); color: var(--button-text-color); border-color: var(--button-color); border-radius: var(--border-radius); box-shadow: 0 1px 2px rgba(0,0,0,0.1);"
onmouseover="this.style.boxShadow='0 2px 8px rgba(0,0,0,0.15)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='0 1px 2px rgba(0,0,0,0.1)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -1,6 +1,9 @@
@props(['classes' => '', 'type' => 'submit']) @props(['classes' => '', 'type' => 'submit'])
<button type="{{ $type }}" <button type="{{ $type }}"
class="w-full rounded bg-[var(--button-secondary-color)] hover:bg-[var(--button-secondary-hover-color)] text-[var(--button-secondary-text-color)] border-2 border-[var(--button-secondary-border-color)] transition ease-in-out duration-150 font-semibold px-6 py-2 {{ $classes }}"> class="w-full rounded-lg bg-[var(--button-secondary-color)] hover:bg-[var(--button-secondary-hover-color)] text-[var(--button-secondary-text-color)] border-2 border-[var(--button-secondary-border-color)] transition-all ease-in-out duration-200 font-semibold px-6 py-2.5 {{ $classes }}"
style="border-radius: var(--border-radius); box-shadow: 0 1px 2px rgba(0,0,0,0.1);"
onmouseover="this.style.boxShadow='0 2px 8px rgba(0,0,0,0.15)'; this.style.transform='translateY(-1px)'"
onmouseout="this.style.boxShadow='0 1px 2px rgba(0,0,0,0.1)'; this.style.transform='translateY(0)'">
{{ $slot }} {{ $slot }}
</button> </button>
@@ -6,9 +6,11 @@
<div class="block lg:hidden w-40"> <div class="block lg:hidden w-40">
<a href="{{ route('profile.show', $user) }}" <a href="{{ route('profile.show', $user) }}"
class="absolute bottom-2 -left-4 lg:left-8 drop-shadow transition duration-300 ease-in-out hover:scale-105"> class="absolute bottom-2 -left-4 lg:left-8 drop-shadow transition duration-300 ease-in-out hover:scale-105">
<div class="rounded-full overflow-hidden border-2 border-gray-300 w-[100px] h-[100px]">
<img style="image-rendering: pixelated;" <img style="image-rendering: pixelated;"
src="{{ setting('avatar_imager') }}{{ $user->look }}&direction=2&head_direction=3&gesture=sml&action=wav&size=l" src="{{ setting('avatar_imager') }}{{ $user->look }}&direction=2&head_direction=3&gesture=sml&action=wav&size=l"
alt=""> alt="">
</div>
</a> </a>
</div> </div>
+12 -14
View File
@@ -1,7 +1,6 @@
@import "tailwindcss"; @import "tailwindcss";
@theme { @theme {
/* Colors */
--color-primary: #eeb425; --color-primary: #eeb425;
--color-primary-hover: #cf9d15; --color-primary-hover: #cf9d15;
--color-background: #f3f4f6; --color-background: #f3f4f6;
@@ -16,33 +15,32 @@
--color-danger: #ef4444; --color-danger: #ef4444;
--color-danger-hover: #dc2626; --color-danger-hover: #dc2626;
--color-secondary: #1a1a2e; --color-secondary: #1a1a2e;
/* Border */
--color-border: #eeb425; --color-border: #eeb425;
--color-input-border: #4b5563; --color-input-border: #4b5563;
/* Font Family */
--font-family-sans: "Poppins", sans-serif; --font-family-sans: "Poppins", sans-serif;
/* Border Radius */ --radius-sm: 6px;
--radius-sm: 4px; --radius-md: 10px;
--radius-md: 8px; --radius-lg: 14px;
--radius-lg: 12px; --radius-xl: 20px;
--radius-full: 9999px; --radius-full: 9999px;
/* Shadows */ --shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.12);
--shadow-dropdown: 0 2px 8px rgba(0, 0, 0, 0.15); --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1); --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
--shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-btn-hover: 0 2px 8px rgba(0, 0, 0, 0.1);
} }
/* Font import */ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/* Base styles */
body { body {
font-family: var(--font-family-sans); font-family: var(--font-family-sans);
background-color: var(--color-background); background-color: var(--color-background);
color: var(--color-text); color: var(--color-text);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
} }
/* Button effects */ /* Button effects */