Actions

MediaWiki

Common.css: Difference between revisions

From Dune Awakening DB

 
mNo edit summary
Line 51: Line 51:
   }
   }
}
}
/* Fix for radial menu positioning */
.dune-logo-container {
  position: relative;
  display: inline-block;
  margin-right: 15px;
  z-index: 1000; /* Ensure high z-index */
}
.dune-logo {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.dune-logo:hover {
  transform: scale(1.1);
}
/* Radial menu that appears on logo click - fixed positioning */
.dune-radial-menu {
  position: fixed; /* Changed from absolute to fixed */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 200px;
  height: 200px;
  background-color: rgba(0, 0, 2, 0.9);
  border-radius: 50%;
  z-index: 9999; /* Very high z-index to ensure it's on top */
  border: 1px solid var(--dune-gold);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.dune-logo-container.active .dune-radial-menu {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}
/* Make radial menu centered on the screen regardless of scroll position */
.dune-radial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998; /* Just below the menu */
  display: none;
}
.dune-logo-container.active + .dune-radial-overlay {
  display: block;
}
/* Position each radial menu item */
.dune-radial-item {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(12, 10, 20, 0.8);
  border: 1px solid var(--dune-gold);
  border-radius: 50%;
  color: var(--dune-gold);
  font-size: 16px;
  transition: all 0.2s ease;
}
.dune-radial-item:hover {
  background-color: rgba(200, 161, 101, 0.2);
  transform: scale(1.1);
}
.dune-radial-item:nth-child(1) { top: 20px; left: 50%; transform: translateX(-50%); }
.dune-radial-item:nth-child(2) { top: 50%; right: 20px; transform: translateY(-50%); }
.dune-radial-item:nth-child(3) { bottom: 20px; left: 50%; transform: translateX(-50%); }
.dune-radial-item:nth-child(4) { top: 50%; left: 20px; transform: translateY(-50%); }
.dune-radial-item:nth-child(5) { top: 30%; left: 30%; }
.dune-radial-item:nth-child(6) { top: 30%; right: 30%; }
.dune-radial-item:nth-child(7) { bottom: 30%; right: 30%; }
.dune-radial-item:nth-child(8) { bottom: 30%; left: 30%; }
/* Ensure the hover state maintains correct position */
.dune-radial-item:hover:nth-child(1) { transform: translateX(-50%) scale(1.1); }
.dune-radial-item:hover:nth-child(2) { transform: translateY(-50%) scale(1.1); }
.dune-radial-item:hover:nth-child(3) { transform: translateX(-50%) scale(1.1); }
.dune-radial-item:hover:nth-child(4) { transform: translateY(-50%) scale(1.1); }

Revision as of 00:55, 7 April 2025

/* 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;
  }
}

/* Fix for radial menu positioning */
.dune-logo-container {
  position: relative;
  display: inline-block;
  margin-right: 15px;
  z-index: 1000; /* Ensure high z-index */
}

.dune-logo {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.dune-logo:hover {
  transform: scale(1.1);
}

/* Radial menu that appears on logo click - fixed positioning */
.dune-radial-menu {
  position: fixed; /* Changed from absolute to fixed */
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 200px;
  height: 200px;
  background-color: rgba(0, 0, 2, 0.9);
  border-radius: 50%;
  z-index: 9999; /* Very high z-index to ensure it's on top */
  border: 1px solid var(--dune-gold);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.dune-logo-container.active .dune-radial-menu {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Make radial menu centered on the screen regardless of scroll position */
.dune-radial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998; /* Just below the menu */
  display: none;
}

.dune-logo-container.active + .dune-radial-overlay {
  display: block;
}

/* Position each radial menu item */
.dune-radial-item {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(12, 10, 20, 0.8);
  border: 1px solid var(--dune-gold);
  border-radius: 50%;
  color: var(--dune-gold);
  font-size: 16px;
  transition: all 0.2s ease;
}

.dune-radial-item:hover {
  background-color: rgba(200, 161, 101, 0.2);
  transform: scale(1.1);
}

.dune-radial-item:nth-child(1) { top: 20px; left: 50%; transform: translateX(-50%); }
.dune-radial-item:nth-child(2) { top: 50%; right: 20px; transform: translateY(-50%); }
.dune-radial-item:nth-child(3) { bottom: 20px; left: 50%; transform: translateX(-50%); }
.dune-radial-item:nth-child(4) { top: 50%; left: 20px; transform: translateY(-50%); }
.dune-radial-item:nth-child(5) { top: 30%; left: 30%; }
.dune-radial-item:nth-child(6) { top: 30%; right: 30%; }
.dune-radial-item:nth-child(7) { bottom: 30%; right: 30%; }
.dune-radial-item:nth-child(8) { bottom: 30%; left: 30%; }

/* Ensure the hover state maintains correct position */
.dune-radial-item:hover:nth-child(1) { transform: translateX(-50%) scale(1.1); }
.dune-radial-item:hover:nth-child(2) { transform: translateY(-50%) scale(1.1); }
.dune-radial-item:hover:nth-child(3) { transform: translateX(-50%) scale(1.1); }
.dune-radial-item:hover:nth-child(4) { transform: translateY(-50%) scale(1.1); }