MediaWiki:Common.css
From Dune Awakening DB
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/*--------------------------------------------------------------
# DIRECT HEADER FIXES - ADD TO COMMON.CSS
--------------------------------------------------------------*/
/* Hide the "FROM DUNE AWAKENING DB" tagline */
#tagline, h3#tagline {
display: none !important;
}
/* Reduce padding above the title */
h1.title,
.mw-page-title-main,
h1.firstHeading {
margin-top: 0 !important;
padding-top: 5px !important;
line-height: 1.2 !important;
}
/* Adjust content padding */
#content,
.mw-body,
.mw-content-ltr,
.mw-content-rtl {
padding-top: 10px !important;
margin-top: 0 !important;
}
/* Fix spacing for responsive container */
.responsive-container {
margin-top: 0 !important;
}
/* Adjust page title styling */
h1.title {
font-size: 28px !important;
margin-bottom: 10px !important;
}
/* Fix for page margins */
#p-cactions {
margin-top: 0 !important;
}
/* For smaller screens */
@media screen and (max-width: 768px) {
h1.title,
.mw-page-title-main,
h1.firstHeading {
font-size: 24px !important;
margin-bottom: 8px !important;
}
}
/* Simplified CSS for the radial menu */
/* Enhanced Radial Menu CSS with animations and polish */
/* Logo button styling */
.dune-logo-btn {
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 15px;
cursor: pointer;
transition: transform 0.2s ease;
}
.dune-logo-btn:hover {
transform: scale(1.1);
}
.dune-logo {
width: 24px;
height: 24px;
}
/* Breadcrumb nav styling */
.dune-breadcrumb-nav {
display: flex;
align-items: center;
margin-bottom: 15px;
font-size: 14px;
background-color: rgba(0, 0, 2, 0.7);
border: 1px solid #fce7c8;
padding: 5px 10px;
border-radius: 3px;
}
.dune-breadcrumb-nav a {
color: #fce7c8;
text-decoration: none;
transition: all 0.2s ease;
}
.dune-breadcrumb-nav a:hover {
color: #E3BB7A;
text-shadow: 0 0 5px rgba(200, 161, 101, 0.4);
}
.dune-breadcrumb-separator {
margin: 0 8px;
color: #BBBBBB;
}
/* Radial menu container */
.dune-radial-menu {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
width: 350px;
height: 350px;
background-color: rgba(0, 0, 2, 0.85);
border-radius: 50%;
z-index: 9999;
border: 2px solid #fce7c8;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
opacity: 0;
visibility: hidden;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
overflow: visible;
}
/* Show the menu when active */
.dune-radial-menu.active {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
visibility: visible;
}
/* Center button styling */
.dune-radial-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.8);
width: 70px;
height: 70px;
border-radius: 50%;
background-color: rgba(12, 10, 20, 0.8);
border: 2px solid #fce7c8;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
opacity: 0;
z-index: 10001;
}
/* Radial item styling */
.dune-radial-item {
position: absolute;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(12, 10, 20, 0.8);
border: 2px solid #fce7c8;
border-radius: 50%;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
opacity: 0;
transform: scale(0.8);
}
/* Animation for radial items */
.dune-radial-item.animated,
.dune-radial-center.animated {
opacity: 1;
transform: translate(0, 0) scale(1);
}
/* Hover effects */
.dune-radial-item:hover,
.dune-radial-center:hover {
border-color: #E3BB7A;
box-shadow: 0 0 15px rgba(200, 161, 101, 0.6);
transform: scale(1.1) !important;
}
/* Active effect for when an item is clicked */
.dune-radial-item:active,
.dune-radial-center:active {
transform: scale(0.95) !important;
transition: transform 0.1s ease;
}
/* Images inside buttons */
.dune-radial-item img,
.dune-radial-center img {
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 50%;
padding: 8px;
}
/* PRECISE POSITIONING - Using calculated coordinates */
/* North position */
.dune-radial-item.north {
top: 25px;
left: 145px;
}
/* Northeast position */
.dune-radial-item.northeast {
top: 65px;
left: 235px;
}
/* East position */
.dune-radial-item.east {
top: 145px;
left: 275px;
}
/* Southeast position */
.dune-radial-item.southeast {
top: 235px;
left: 235px;
}
/* South position */
.dune-radial-item.south {
top: 275px;
left: 145px;
}
/* Southwest position */
.dune-radial-item.southwest {
top: 235px;
left: 65px;
}
/* West position */
.dune-radial-item.west {
top: 145px;
left: 25px;
}
/* Northwest position */
.dune-radial-item.northwest {
top: 65px;
left: 65px;
}
/* Tooltip styling */
.dune-radial-tooltip {
position: absolute;
background-color: rgba(0, 0, 2, 0.9);
border: 1px solid #fce7c8;
padding: 4px 10px;
border-radius: 4px;
color: #fce7c8;
font-size: 12px;
font-weight: bold;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, transform 0.2s ease;
pointer-events: none;
z-index: 10002;
transform: translateY(5px);
}
.dune-radial-item:hover .dune-radial-tooltip,
.dune-radial-center:hover .dune-radial-tooltip {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
/* Tooltip positions */
.dune-radial-item.north .dune-radial-tooltip {
top: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-item.northeast .dune-radial-tooltip {
top: -30px;
right: -10px;
}
.dune-radial-item.east .dune-radial-tooltip {
right: -10px;
top: 50%;
transform: translateY(-50%);
}
.dune-radial-item.southeast .dune-radial-tooltip {
bottom: -30px;
right: -10px;
}
.dune-radial-item.south .dune-radial-tooltip {
bottom: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-item.southwest .dune-radial-tooltip {
bottom: -30px;
left: -10px;
}
.dune-radial-item.west .dune-radial-tooltip {
left: -10px;
top: 50%;
transform: translateY(-50%);
}
.dune-radial-item.northwest .dune-radial-tooltip {
top: -30px;
left: -10px;
}
.dune-radial-center .dune-radial-tooltip {
bottom: -30px;
left: 50%;
transform: translateX(-50%);
}
/* Decorative circles inside radial menu */
.dune-radial-menu::before,
.dune-radial-menu::after {
content: "";
position: absolute;
border-radius: 50%;
border: 1px solid rgba(200, 161, 101, 0.2);
pointer-events: none;
}
.dune-radial-menu::before {
top: 25px;
left: 25px;
right: 25px;
bottom: 25px;
}
.dune-radial-menu::after {
top: 75px;
left: 75px;
right: 75px;
bottom: 75px;
}
/* Overlay styling */
.dune-radial-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(3px);
z-index: 9998;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.dune-radial-overlay.active {
opacity: 1;
visibility: visible;
}
/* Basic header fixes */
h3#tagline {
display: none !important;
}
h1.title,
.mw-page-title-main,
h1.firstHeading {
margin-top: 0 !important;
padding-top: 5px !important;
margin-bottom: 10px !important;
}
/* Add subtle pulsing animation to center button */
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(200, 161, 101, 0.4);
}
70% {
box-shadow: 0 0 0 10px rgba(200, 161, 101, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(200, 161, 101, 0);
}
}
.dune-radial-center.animated {
animation: pulse 2s infinite;
}
/* Responsive adjustments */
@media (max-width: 640px) {
.dune-radial-menu {
width: 300px;
height: 300px;
}
.dune-radial-item {
width: 50px;
height: 50px;
}
.dune-radial-center {
width: 60px;
height: 60px;
}
/* Adjust positions for smaller screens */
.dune-radial-item.north { top: 25px; left: 125px; }
.dune-radial-item.northeast { top: 55px; left: 195px; }
.dune-radial-item.east { top: 125px; left: 225px; }
.dune-radial-item.southeast { top: 195px; left: 195px; }
.dune-radial-item.south { top: 225px; left: 125px; }
.dune-radial-item.southwest { top: 195px; left: 55px; }
.dune-radial-item.west { top: 125px; left: 25px; }
.dune-radial-item.northwest { top: 55px; left: 55px; }
}