Common.css: Difference between revisions
From Dune Awakening DB
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
/* CSS | /* Cleaned-up and Finalized CSS for Dune Radial Menu */ | ||
/*-------------------------------------------------------------- | |||
# | /* -------------------------------------------------------------- | ||
-------------------------------------------------------------- | # GLOBAL PAGE ADJUSTMENTS | ||
-------------------------------------------------------------- */ | |||
#tagline, h3#tagline { | #tagline, h3#tagline { | ||
display: none !important; | display: none !important; | ||
} | } | ||
h1.title, .mw-page-title-main, h1.firstHeading { | |||
h1.title, | |||
.mw-page-title-main, | |||
h1.firstHeading { | |||
margin-top: 0 !important; | margin-top: 0 !important; | ||
padding-top: 5px !important; | padding-top: 5px !important; | ||
line-height: 1.2 !important; | line-height: 1.2 !important; | ||
font-size: 28px !important; | |||
margin-bottom: 10px !important; | |||
} | } | ||
#content, .mw-body, .mw-content-ltr, .mw-content-rtl { | |||
#content, | |||
.mw-body, | |||
.mw-content-ltr, | |||
.mw-content-rtl { | |||
padding-top: 10px !important; | padding-top: 10px !important; | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
} | } | ||
.responsive-container { | .responsive-container { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
} | } | ||
#p-cactions { | #p-cactions { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
} | } | ||
@media screen and (max-width: 768px) { | @media screen and (max-width: 768px) { | ||
h1.title, | h1.title, .mw-page-title-main, h1.firstHeading { | ||
font-size: 24px !important; | font-size: 24px !important; | ||
margin-bottom: 8px !important; | margin-bottom: 8px !important; | ||
| Line 52: | Line 36: | ||
} | } | ||
/* -------------------------------------------------------------- | |||
# BREADCRUMB NAVIGATION | |||
/*-------------------------------------------------------------- | -------------------------------------------------------------- */ | ||
# | |||
.dune-breadcrumb-nav { | .dune-breadcrumb-nav { | ||
display: flex; | display: flex; | ||
| Line 161: | Line 77: | ||
} | } | ||
/* | /* -------------------------------------------------------------- | ||
# RADIAL MENU CORE LAYOUT | |||
-------------------------------------------------------------- */ | |||
.dune-radial-menu { | .dune-radial-menu { | ||
position: fixed; | position: fixed; | ||
top: 50%; | top: 50%; | ||
left: 50%; | left: 50%; | ||
width: 500px; | width: 500px; | ||
height: 500px; | height: 500px; | ||
transform: translate(-50%, -50%) scale(0); | |||
z-index: 9999; | |||
opacity: 0; | opacity: 0; | ||
visibility: hidden; | visibility: hidden; | ||
pointer-events: none; | pointer-events: none; | ||
transition: transform 0.4s ease, opacity 0.3s ease; | |||
} | } | ||
| Line 183: | Line 101: | ||
} | } | ||
.dune-radial-background { | .dune-radial-background { | ||
position: absolute; | position: absolute; | ||
| Line 191: | Line 108: | ||
height: 100%; | height: 100%; | ||
pointer-events: none; | pointer-events: none; | ||
z-index: 1; | |||
} | } | ||
| Line 198: | Line 116: | ||
left: 50%; | left: 50%; | ||
transform: translate(-50%, -50%); | transform: translate(-50%, -50%); | ||
border-radius: 50%; | border-radius: 50%; | ||
border: 1px solid rgba(255, 215, 0, 0.25); | |||
} | } | ||
| Line 206: | Line 124: | ||
.dune-radial-circle.inner { width: 50%; height: 50%; } | .dune-radial-circle.inner { width: 50%; height: 50%; } | ||
.dune-radial-item-container { | .dune-radial-item-container { | ||
position: absolute; | position: absolute; | ||
transition: all | top: 50%; | ||
left: 50%; | |||
transform-origin: center center; | |||
transition: all 0.3s ease; | |||
opacity: 0; | opacity: 0; | ||
} | } | ||
.dune-radial-item-container.animated { | .dune-radial-item-container.animated { | ||
opacity: 1; | opacity: 1; | ||
} | } | ||
.dune-radial-item { | .dune-radial-item { | ||
transform: translate(-50%, -50%); | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Line 226: | Line 145: | ||
height: 80px; | height: 80px; | ||
background-color: var(--dune-darker); | background-color: var(--dune-darker); | ||
border: | border: 2px solid var(--dune-gold); | ||
border-radius: 8px; | |||
overflow: hidden; | overflow: hidden; | ||
cursor: pointer; | cursor: pointer; | ||
transition: transform 0.2s ease, box-shadow 0.2s ease; | |||
position: relative; | position: relative; | ||
z-index: 2; | |||
} | } | ||
.dune-radial-item:hover { | .dune-radial-item:hover { | ||
transform: translate(-50%, -50%) scale(1.1); | |||
box-shadow: var(-- | box-shadow: 0 0 10px var(--dune-gold-glow); | ||
} | } | ||
| Line 247: | Line 166: | ||
} | } | ||
.dune-radial-item. | /* 10-position radial distribution */ | ||
.dune-radial-item-container.pos-0 { transform: rotate(0deg) translateY(-200px) rotate(-0deg); } | |||
.dune-radial-item-container.pos-1 { transform: rotate(36deg) translateY(-200px) rotate(-36deg); } | |||
.dune-radial-item-container.pos-2 { transform: rotate(72deg) translateY(-200px) rotate(-72deg); } | |||
} | .dune-radial-item-container.pos-3 { transform: rotate(108deg) translateY(-200px) rotate(-108deg); } | ||
.dune-radial-item-container.pos-4 { transform: rotate(144deg) translateY(-200px) rotate(-144deg); } | |||
.dune-radial-item | .dune-radial-item-container.pos-5 { transform: rotate(180deg) translateY(-200px) rotate(-180deg); } | ||
.dune-radial-item-container.pos-6 { transform: rotate(216deg) translateY(-200px) rotate(-216deg); } | |||
} | .dune-radial-item-container.pos-7 { transform: rotate(252deg) translateY(-200px) rotate(-252deg); } | ||
.dune-radial-item-container.pos-8 { transform: rotate(288deg) translateY(-200px) rotate(-288deg); } | |||
.dune-radial-item-container.pos-9 { transform: rotate(324deg) translateY(-200px) rotate(-324deg); } | |||
/* Center | /* Center Button */ | ||
.dune-radial-center { | .dune-radial-center { | ||
position: absolute; | position: absolute; | ||
top: 50%; | top: 50%; | ||
left: 50%; | left: 50%; | ||
width: 100px; | width: 100px; | ||
height: 100px; | height: 100px; | ||
transform: translate(-50%, -50%) scale(1); | |||
background-color: var(--dune-darker); | background-color: var(--dune-darker); | ||
border: | border: 2px solid var(--dune-gold); | ||
border-radius: 10px; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
z-index: 5; | |||
transition: box-shadow 0.3s ease; | |||
z-index: | |||
} | } | ||
.dune-radial-center:hover { | .dune-radial-center:hover { | ||
box-shadow: 0 0 10px var(--dune-gold-glow); | |||
} | } | ||
.dune-radial-overlay { | .dune-radial-overlay { | ||
position: fixed; | position: fixed; | ||
top: 0; | top: 0; | ||
left: 0; | left: 0; | ||
width: | width: 100vw; | ||
height: | height: 100vh; | ||
background-color: | background-color: rgba(0, 0, 0, 0.4); | ||
backdrop-filter: blur(3px); | backdrop-filter: blur(3px); | ||
opacity: 0; | opacity: 0; | ||
visibility: hidden; | visibility: hidden; | ||
transition: opacity | z-index: 9990; | ||
transition: opacity 0.3s ease; | |||
} | } | ||
| Line 574: | Line 224: | ||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||
padding: | padding: 1rem; | ||
transform: none !important; | transform: none !important; | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); | grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); | ||
gap: | gap: 1rem; | ||
background-color: var(--dune-panel-bg-dark); | background-color: var(--dune-panel-bg-dark); | ||
border: var(--border-thin) solid var(--dune-gold); | border: var(--border-thin) solid var(--dune-gold); | ||
| Line 606: | Line 256: | ||
.dune-radial-tooltip { | .dune-radial-tooltip { | ||
display: none; | display: none; | ||
} | } | ||
} | } | ||
Revision as of 01:20, 8 April 2025
/* Cleaned-up and Finalized CSS for Dune Radial Menu */
/* --------------------------------------------------------------
# GLOBAL PAGE ADJUSTMENTS
-------------------------------------------------------------- */
#tagline, h3#tagline {
display: none !important;
}
h1.title, .mw-page-title-main, h1.firstHeading {
margin-top: 0 !important;
padding-top: 5px !important;
line-height: 1.2 !important;
font-size: 28px !important;
margin-bottom: 10px !important;
}
#content, .mw-body, .mw-content-ltr, .mw-content-rtl {
padding-top: 10px !important;
margin-top: 0 !important;
}
.responsive-container {
margin-top: 0 !important;
}
#p-cactions {
margin-top: 0 !important;
}
@media screen and (max-width: 768px) {
h1.title, .mw-page-title-main, h1.firstHeading {
font-size: 24px !important;
margin-bottom: 8px !important;
}
}
/* --------------------------------------------------------------
# BREADCRUMB NAVIGATION
-------------------------------------------------------------- */
.dune-breadcrumb-nav {
display: flex;
align-items: center;
margin-bottom: var(--spacing-md);
font-size: var(--font-size-sm);
background-color: var(--dune-panel-bg-dark);
border: var(--border-thin) solid var(--dune-gold);
padding: var(--spacing-xs) var(--spacing-sm);
border-radius: var(--border-radius-sm);
}
.dune-breadcrumb-nav a {
color: var(--dune-gold);
text-decoration: none;
transition: var(--transition-standard);
}
.dune-breadcrumb-nav a:hover {
color: var(--dune-gold-hover);
text-shadow: 0 0 5px var(--dune-gold-glow);
}
.breadcrumb-home-link {
display: flex;
align-items: center;
}
.breadcrumb-home-icon {
width: 16px;
height: 16px;
margin-right: 5px;
}
.dune-breadcrumb-separator {
margin: 0 var(--spacing-sm);
color: var(--text-secondary);
}
/* --------------------------------------------------------------
# RADIAL MENU CORE LAYOUT
-------------------------------------------------------------- */
.dune-radial-menu {
position: fixed;
top: 50%;
left: 50%;
width: 500px;
height: 500px;
transform: translate(-50%, -50%) scale(0);
z-index: 9999;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: transform 0.4s ease, opacity 0.3s ease;
}
.dune-radial-menu.active {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
visibility: visible;
pointer-events: all;
}
.dune-radial-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.dune-radial-circle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 1px solid rgba(255, 215, 0, 0.25);
}
.dune-radial-circle.outer { width: 100%; height: 100%; }
.dune-radial-circle.middle { width: 75%; height: 75%; }
.dune-radial-circle.inner { width: 50%; height: 50%; }
.dune-radial-item-container {
position: absolute;
top: 50%;
left: 50%;
transform-origin: center center;
transition: all 0.3s ease;
opacity: 0;
}
.dune-radial-item-container.animated {
opacity: 1;
}
.dune-radial-item {
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 80px;
background-color: var(--dune-darker);
border: 2px solid var(--dune-gold);
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
position: relative;
z-index: 2;
}
.dune-radial-item:hover {
transform: translate(-50%, -50%) scale(1.1);
box-shadow: 0 0 10px var(--dune-gold-glow);
}
.dune-radial-icon {
width: 100%;
height: 100%;
object-fit: contain;
padding: 5px;
}
/* 10-position radial distribution */
.dune-radial-item-container.pos-0 { transform: rotate(0deg) translateY(-200px) rotate(-0deg); }
.dune-radial-item-container.pos-1 { transform: rotate(36deg) translateY(-200px) rotate(-36deg); }
.dune-radial-item-container.pos-2 { transform: rotate(72deg) translateY(-200px) rotate(-72deg); }
.dune-radial-item-container.pos-3 { transform: rotate(108deg) translateY(-200px) rotate(-108deg); }
.dune-radial-item-container.pos-4 { transform: rotate(144deg) translateY(-200px) rotate(-144deg); }
.dune-radial-item-container.pos-5 { transform: rotate(180deg) translateY(-200px) rotate(-180deg); }
.dune-radial-item-container.pos-6 { transform: rotate(216deg) translateY(-200px) rotate(-216deg); }
.dune-radial-item-container.pos-7 { transform: rotate(252deg) translateY(-200px) rotate(-252deg); }
.dune-radial-item-container.pos-8 { transform: rotate(288deg) translateY(-200px) rotate(-288deg); }
.dune-radial-item-container.pos-9 { transform: rotate(324deg) translateY(-200px) rotate(-324deg); }
/* Center Button */
.dune-radial-center {
position: absolute;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
transform: translate(-50%, -50%) scale(1);
background-color: var(--dune-darker);
border: 2px solid var(--dune-gold);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
z-index: 5;
transition: box-shadow 0.3s ease;
}
.dune-radial-center:hover {
box-shadow: 0 0 10px var(--dune-gold-glow);
}
.dune-radial-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(3px);
opacity: 0;
visibility: hidden;
z-index: 9990;
transition: opacity 0.3s ease;
}
.dune-radial-overlay.active {
opacity: 1;
visibility: visible;
}
@media screen and (max-width: 768px) {
.dune-radial-menu.mobile-grid {
position: relative;
width: 100%;
height: auto;
padding: 1rem;
transform: none !important;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 1rem;
background-color: var(--dune-panel-bg-dark);
border: var(--border-thin) solid var(--dune-gold);
border-radius: var(--border-radius-md);
box-shadow: var(--shadow-medium);
}
.dune-radial-background,
.dune-radial-circle,
.dune-radial-overlay {
display: none !important;
}
.dune-radial-item-container {
all: unset;
display: flex;
justify-content: center;
}
.dune-radial-item {
width: 64px;
height: 64px;
border-radius: var(--border-radius-sm);
border: var(--border-thin) solid var(--dune-gold);
}
.dune-radial-tooltip {
display: none;
}
}