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 */
/* Image-based radial menu with precise positioning */
/* Logo button styling */
.dune-logo-btn {
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: 15px;
cursor: pointer;
}
.dune-logo {
width: 24px;
height: 24px;
transition: transform 0.3s ease;
}
.dune-logo:hover {
transform: scale(1.1);
}
/* 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 styling - larger to accommodate images */
.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 ease;
}
.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%);
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.2s ease;
}
.dune-radial-center:hover {
transform: translate(-50%, -50%) scale(1.1);
box-shadow: 0 0 10px rgba(200, 161, 101, 0.6);
}
.dune-radial-center img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}
/* Radial menu items 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.2s ease;
}
.dune-radial-item:hover {
transform: scale(1.1) !important;
box-shadow: 0 0 10px rgba(200, 161, 101, 0.6);
z-index: 10;
}
.dune-radial-item img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}
/* Position each item precisely around the circle */
/* North position (top) */
.dune-radial-item.north {
top: 20px;
left: 50%;
transform: translateX(-50%);
}
/* Northeast position (top right) */
.dune-radial-item.northeast {
top: 75px;
right: 75px;
transform: translate(0, 0);
}
/* East position (right) */
.dune-radial-item.east {
top: 50%;
right: 20px;
transform: translateY(-50%);
}
/* Southeast position (bottom right) */
.dune-radial-item.southeast {
bottom: 75px;
right: 75px;
transform: translate(0, 0);
}
/* South position (bottom) */
.dune-radial-item.south {
bottom: 20px;
left: 50%;
transform: translateX(-50%);
}
/* Southwest position (bottom left) */
.dune-radial-item.southwest {
bottom: 75px;
left: 75px;
transform: translate(0, 0);
}
/* West position (left) */
.dune-radial-item.west {
top: 50%;
left: 20px;
transform: translateY(-50%);
}
/* Northwest position (top left) */
.dune-radial-item.northwest {
top: 75px;
left: 75px;
transform: translate(0, 0);
}
/* Tooltips */
.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;
pointer-events: none;
z-index: 11;
}
.dune-radial-item:hover .dune-radial-tooltip,
.dune-radial-center:hover .dune-radial-tooltip {
opacity: 1;
visibility: visible;
}
/* Position tooltips for each direction */
.dune-radial-item.north .dune-radial-tooltip {
top: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-item.northeast .dune-radial-tooltip {
top: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-item.east .dune-radial-tooltip {
right: -5px;
top: 50%;
transform: translateY(-50%) translateX(100%);
}
.dune-radial-item.southeast .dune-radial-tooltip {
bottom: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-item.south .dune-radial-tooltip {
bottom: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-item.southwest .dune-radial-tooltip {
bottom: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-item.west .dune-radial-tooltip {
left: -5px;
top: 50%;
transform: translateY(-50%) translateX(-100%);
}
.dune-radial-item.northwest .dune-radial-tooltip {
top: -30px;
left: 50%;
transform: translateX(-50%);
}
.dune-radial-center .dune-radial-tooltip {
bottom: -30px;
left: 50%;
transform: translateX(-50%);
}
/* Overlay */
.dune-radial-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9998;
display: none;
}
.dune-radial-overlay.active {
display: block;
}
/* 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;
}