Actions

MediaWiki

Common.css: Difference between revisions

From Dune Awakening DB

mNo edit summary
mNo edit summary
Line 57: Line 57:




 
/* Enhanced Radial Menu CSS with animations and polish */
/* Image-based radial menu with precise positioning */
/* Logo button styling */
/* Logo button styling */
.dune-logo-btn {
.dune-logo-btn {
Line 66: Line 65:
   margin-right: 15px;
   margin-right: 15px;
   cursor: pointer;
   cursor: pointer;
  transition: transform 0.2s ease;
}
.dune-logo-btn:hover {
  transform: scale(1.1);
}
}


Line 71: Line 75:
   width: 24px;
   width: 24px;
   height: 24px;
   height: 24px;
  transition: transform 0.3s ease;
}
.dune-logo:hover {
  transform: scale(1.1);
}
}


Line 106: Line 105:
}
}


/* Radial menu styling - larger to accommodate images */
/* Radial menu container */
.dune-radial-menu {
.dune-radial-menu {
   position: fixed;
   position: fixed;
Line 121: Line 120:
   opacity: 0;
   opacity: 0;
   visibility: hidden;
   visibility: hidden;
   transition: all 0.3s ease;
   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 {
.dune-radial-menu.active {
   transform: translate(-50%, -50%) scale(1);
   transform: translate(-50%, -50%) scale(1);
Line 135: Line 136:
   top: 50%;
   top: 50%;
   left: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   transform: translate(-50%, -50%) scale(0.8);
   width: 70px;
   width: 70px;
   height: 70px;
   height: 70px;
Line 145: Line 146:
   justify-content: center;
   justify-content: center;
   overflow: hidden;
   overflow: hidden;
   transition: all 0.2s ease;
   transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
   opacity: 0;
 
   z-index: 10001;
.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 */
/* Radial item styling */
.dune-radial-item {
.dune-radial-item {
   position: absolute;
   position: absolute;
Line 172: Line 163:
   border-radius: 50%;
   border-radius: 50%;
   overflow: hidden;
   overflow: hidden;
   transition: all 0.2s ease;
   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);
}
}


.dune-radial-item:hover {
/* 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;
   transform: scale(1.1) !important;
  box-shadow: 0 0 10px rgba(200, 161, 101, 0.6);
  z-index: 10;
}
}


.dune-radial-item img {
/* 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%;
   width: 100%;
   height: 100%;
   height: 100%;
   object-fit: cover;
   object-fit: contain;
   border-radius: 50%;
   border-radius: 50%;
  padding: 8px;
}
}


/* Position each item precisely around the circle */
/* PRECISE POSITIONING - Using calculated coordinates */
/* North position (top) */
/* North position */
.dune-radial-item.north {
.dune-radial-item.north {
   top: 20px;
   top: 25px;
   left: 50%;
   left: 145px;
  transform: translateX(-50%);
}
}


/* Northeast position (top right) */
/* Northeast position */
.dune-radial-item.northeast {
.dune-radial-item.northeast {
   top: 75px;
   top: 65px;
   right: 75px;
   left: 235px;
  transform: translate(0, 0);
}
}


/* East position (right) */
/* East position */
.dune-radial-item.east {
.dune-radial-item.east {
   top: 50%;
   top: 145px;
   right: 20px;
   left: 275px;
  transform: translateY(-50%);
}
}


/* Southeast position (bottom right) */
/* Southeast position */
.dune-radial-item.southeast {
.dune-radial-item.southeast {
   bottom: 75px;
   top: 235px;
   right: 75px;
   left: 235px;
  transform: translate(0, 0);
}
}


/* South position (bottom) */
/* South position */
.dune-radial-item.south {
.dune-radial-item.south {
   bottom: 20px;
   top: 275px;
   left: 50%;
   left: 145px;
  transform: translateX(-50%);
}
}


/* Southwest position (bottom left) */
/* Southwest position */
.dune-radial-item.southwest {
.dune-radial-item.southwest {
   bottom: 75px;
   top: 235px;
   left: 75px;
   left: 65px;
  transform: translate(0, 0);
}
}


/* West position (left) */
/* West position */
.dune-radial-item.west {
.dune-radial-item.west {
   top: 50%;
   top: 145px;
   left: 20px;
   left: 25px;
  transform: translateY(-50%);
}
}


/* Northwest position (top left) */
/* Northwest position */
.dune-radial-item.northwest {
.dune-radial-item.northwest {
   top: 75px;
   top: 65px;
   left: 75px;
   left: 65px;
  transform: translate(0, 0);
}
}


/* Tooltips */
/* Tooltip styling */
.dune-radial-tooltip {
.dune-radial-tooltip {
   position: absolute;
   position: absolute;
Line 258: Line 262:
   opacity: 0;
   opacity: 0;
   visibility: hidden;
   visibility: hidden;
   transition: opacity 0.2s ease;
   transition: opacity 0.2s ease, transform 0.2s ease;
   pointer-events: none;
   pointer-events: none;
   z-index: 11;
   z-index: 10002;
  transform: translateY(5px);
}
}


Line 267: Line 272:
   opacity: 1;
   opacity: 1;
   visibility: visible;
   visibility: visible;
  transform: translateY(0);
}
}


/* Position tooltips for each direction */
/* Tooltip positions */
.dune-radial-item.north .dune-radial-tooltip {  
.dune-radial-item.north .dune-radial-tooltip {  
   top: -30px;  
   top: -30px;  
Line 278: Line 284:
.dune-radial-item.northeast .dune-radial-tooltip {  
.dune-radial-item.northeast .dune-radial-tooltip {  
   top: -30px;  
   top: -30px;  
   left: 50%;
   right: -10px;  
  transform: translateX(-50%);  
}
}


.dune-radial-item.east .dune-radial-tooltip {  
.dune-radial-item.east .dune-radial-tooltip {  
   right: -5px;  
   right: -10px;  
   top: 50%;  
   top: 50%;  
   transform: translateY(-50%) translateX(100%);  
   transform: translateY(-50%);  
}
}


.dune-radial-item.southeast .dune-radial-tooltip {  
.dune-radial-item.southeast .dune-radial-tooltip {  
   bottom: -30px;  
   bottom: -30px;  
   left: 50%;
   right: -10px;  
  transform: translateX(-50%);  
}
}


Line 302: Line 306:
.dune-radial-item.southwest .dune-radial-tooltip {  
.dune-radial-item.southwest .dune-radial-tooltip {  
   bottom: -30px;  
   bottom: -30px;  
   left: 50%;
   left: -10px;  
  transform: translateX(-50%);  
}
}


.dune-radial-item.west .dune-radial-tooltip {  
.dune-radial-item.west .dune-radial-tooltip {  
   left: -5px;  
   left: -10px;  
   top: 50%;  
   top: 50%;  
   transform: translateY(-50%) translateX(-100%);  
   transform: translateY(-50%);  
}
}


.dune-radial-item.northwest .dune-radial-tooltip {  
.dune-radial-item.northwest .dune-radial-tooltip {  
   top: -30px;  
   top: -30px;  
   left: 50%;
   left: -10px;  
  transform: translateX(-50%);  
}
}


Line 324: Line 326:
}
}


/* Overlay */
/* 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 {
.dune-radial-overlay {
   position: fixed;
   position: fixed;
Line 332: Line 358:
   height: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
   z-index: 9998;
   z-index: 9998;
   display: none;
   opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
}


.dune-radial-overlay.active {
.dune-radial-overlay.active {
   display: block;
   opacity: 1;
  visibility: visible;
}
}


Line 351: Line 381:
   padding-top: 5px !important;
   padding-top: 5px !important;
   margin-bottom: 10px !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; }
}
}

Revision as of 01:26, 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;
  }
}

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