Files
Atomcms-edit/resources/themes/dusk/css/app.css
T
root 3d5f94f9b9 Improve text visibility in atom and dusk themes
- Add CSS variable support to dusk theme components for dynamic text colors
- Fix low-contrast preset color combinations (cyberpunk, neon, magma, forest, obsidian, space)
- Add text-shadow utility classes and apply to site header and backgrounds
- Style logout buttons as proper buttons matching other button styles
- Fix hardcoded text colors in atom theme components
2026-06-24 16:03:21 +02:00

389 lines
8.2 KiB
CSS
Executable File

@import "tailwindcss";
@plugin "@tailwindcss/forms";
@plugin "@tailwindcss/typography";
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--font-sans: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--breakpoint-sm: 40rem;
--breakpoint-md: 48rem;
--breakpoint-lg: 64rem;
--breakpoint-xl: 80rem;
--breakpoint-2xl: 96rem;
}
@layer components {
.dropdown-item {
@apply w-full text-left px-2 py-1 transition duration-200 ease-in-out text-sm;
color: var(--color-text);
}
.dropdown-item:hover {
background-color: var(--color-primary, #8770b2);
color: var(--button-text-color, #ffffff);
}
}
:focus {
outline: none;
}
body {
overflow-x: hidden;
color: var(--color-text, #ffffff);
}
/* Base text utility classes using CSS variables */
.text-body { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }
.text-nav { color: var(--color-navbar-text); }
.text-primary { color: var(--color-primary); }
.text-on-primary { color: var(--button-text-color); }
/* Settings navigation */
.settings-nav:hover,
.settings-nav.active {
background-color: var(--color-primary) !important;
color: var(--button-text-color) !important;
}
/* Dropdown panel */
.dropdown-children {
background-color: var(--color-dropdown, #ac93da);
box-shadow: var(--dropdown-shadow, 0 4px 16px rgba(0,0,0,0.25));
}
/* Footer hover */
.site-footer:hover {
color: var(--color-text) !important;
}
/* Navigation link hover states using CSS variables */
.nav-link {
color: var(--color-navbar-text);
transition: color 200ms ease-in-out;
}
.nav-link:hover {
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-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); }
#app {
min-height: calc(100vh - 3.5rem);
}
img {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
pointer-events: none;
}
input::placeholder,
textarea::placeholder {
color: var(--input-placeholder-color, var(--color-text-muted));
opacity: 1;
}
.site-bg {
position: absolute;
width: 100%;
height: 400px;
background: url("/public/assets/images/dusk/background_image.png") no-repeat;
background-size: cover;
-webkit-mask-image: linear-gradient(to top, transparent, black);
mask-image: linear-gradient(to top, transparent, black);
background-color: #957cc3;
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(46, 45, 45, 0.7); /* Black overlay with 60% opacity */
}
}
.nav-header {
background-color: var(--color-navbar, #171a23);
width: 100%;
display: flex;
align-items: center;
justify-content: center;
.icon {
height: 40px;
width: 40px;
filter: grayscale(1);
transition: filter 300ms ease-in-out;
}
a:hover .icon {
filter: grayscale(0);
}
.dropdown-parent:hover .icon {
filter: grayscale(0);
}
.dropdown-parent:active .icon {
filter: grayscale(0);
}
a.active, div.active {
color: #ac93da;
.dropdown-children {
color: #FFFFFF;
}
.icon {
filter: grayscale(0);
}
}
}
.photo-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.1);
z-index: 1;
}
.sub-header {
color: var(--color-text, #FFF);
height: 40px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.main-content {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.custom-shadow {
box-shadow: 0 7px 16px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(0, 0, 0, 0.3);
}
.swiper-pagination {
top: 3px;
z-index: 15 !important;
height: 10px;
}
.read-more-link {
z-index: 99999;
position: relative;
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.swiper-button-prev {
z-index: 15 !important;
}
.swiper-button-next {
z-index: 15 !important;
}
.hotel-icon {
background: url("/public/assets/images/icons/feeds.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 {
background: #e9b124 url("/public/assets/images/icons/currency/credits.png") no-repeat center;
outline: 1px solid #b26d18;
}
.nav-ducket-icon {
background: #c44aac url("/public/assets/images/icons/currency/duckets.png") no-repeat center;
outline: 1px solid #812378;
}
.nav-diamond-icon {
background: #caf1f3 url("/public/assets/images/icons/currency/diamonds.png") no-repeat center;
outline: 1px solid #6caff4;
}
.swal2-toast {
background-color: #333 !important;
color: #fff;
}
.article-image {
display: block;
width: 100%;
height: 100px;
background-size: cover;
background-position: right;
margin: 0 0 20px;
transition: .3s;
}
.leaderboard-position {
color: transparent;
height: 25px;
width: 25px;
&.first {
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");
}
}
.leaderboard-background {
background-image: url("/public/assets/images/dusk/leaderboard_circle_image.png");
}
.staff-bg {
background-blend-mode: multiply;
}
/* Nitro disconnect overlay */
#disconnected {
display: none;
}
.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 {
background-image: linear-gradient(to bottom, #f2f2f3 51%, #d9d8d8 49%);
box-shadow: inset 0 0 0px 2px #d9d9d9;
padding: 10px;
&:hover {
background: linear-gradient(to bottom, #ffffff 50%, #EBEBEB 50%);
box-shadow: inset 0 0 0px 2px #ffffff;
}
.toggled {
background: #f2f2f3;
}
}
html.dark .badge-drawer-button {
background-image: linear-gradient(to bottom, #141414 51%, #101010 49%);
box-shadow: inset 0 0 0px 2px #242424;
padding: 10px;
&:hover {
background: linear-gradient(to bottom, #171717 50%, #111111 50%);
box-shadow: inset 0 0 0px 2px #363636;
}
.toggled {
background: #f2f2f3;
}
}
.badge-drawer-palette {
background-position: center;
background-repeat: no-repeat;
color: #000;
height: 40px;
cursor: pointer;
border-radius: 0.25rem;
align-items: center;
justify-content: center;
gap: 0.5rem;
display: flex;
border-width: 3px;
border-color: #b6bec5;
position: relative;
overflow: hidden;
max-width: 38px;
width: 100%;
&::after {
content: "";
z-index: 2;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background-color: #fff;
opacity: .1;
}
}