Actions

MediaWiki

MediaWiki:Template:ResourcePage/styles.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.
/**********************************************************
 *  Template:ResourcePage/styles.css
 *  Dune Awakening Resource Page Template Styles
 *  (v1.0 · 2025-05-26)
 **********************************************************/

/* ================================================
   INHERIT BUILDING PAGE STYLES
   ================================================ */
/* Import all building page styles as base */
@import url('Template:BuildingPage/styles.css');

/* ================================================
   RESOURCE-SPECIFIC OVERRIDES
   ================================================ */
/* Resource label styling */
.dune-card-label {
  background: linear-gradient(90deg, rgba(227, 187, 122, 0.1) 0%, transparent 100%);
  border-left: 3px solid #E3BB7A;
}

/* Resource icon colors */
.dune-card-title .icon {
  color: #E3BB7A;
  filter: drop-shadow(0 0 5px rgba(227, 187, 122, 0.7));
}

/* ================================================
   CRAFTING SECTION STYLES
   ================================================ */
.crafting-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0,0,2,.6);
  border: 1px solid rgba(252, 231, 200, 0.2);
  position: relative;
}

.dune-section-header {
  color: #fce7c8;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(252, 231, 200, 0.3);
  letter-spacing: 1px;
}

/* Recipe Search Styles */
.recipe-search-container {
  margin: 12px 0;
}

.recipe-search-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(0, 0, 2, 0.8);
  border: 2px solid rgba(252, 231, 200, 0.3);
  border-radius: 0;
  color: #fce7c8;
  font-size: 14px;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.recipe-search-input:focus {
  border-color: #fce7c8;
  box-shadow: 0 0 10px rgba(252, 231, 200, 0.3);
}

.recipe-search-input::placeholder {
  color: rgba(252, 231, 200, 0.5);
}

/* Recipe Table Preview */
.recipe-table-preview {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.recipe-table {
  font-size: 14px !important;
}

.recipe-table td {
  padding: 8px 6px !important;
  font-size: 14px !important;
}

.recipe-row {
  transition: all 0.2s ease;
}

.recipe-row.hidden {
  display: none;
}

/* Recipe Actions */
.recipe-actions {
  text-align: center;
  margin-top: 12px;
}

.dune-action-button {
  background: linear-gradient(135deg, rgba(252, 231, 200, 0.1) 0%, rgba(227, 187, 122, 0.1) 100%);
  border: 2px solid rgba(252, 231, 200, 0.3);
  color: #fce7c8;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dune-action-button:hover {
  background: linear-gradient(135deg, rgba(252, 231, 200, 0.2) 0%, rgba(227, 187, 122, 0.2) 100%);
  border-color: #fce7c8;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(252, 231, 200, 0.3);
}

.dune-action-button .icon {
  font-size: 16px;
}

/* ================================================
   RECIPE POPUP STYLES
   ================================================ */
.recipe-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.recipe-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.recipe-popup {
  background: linear-gradient(135deg, rgba(0,0,2,.95) 0%, rgba(12,10,20,.95) 100%);
  border: 2px solid rgba(252, 231, 200, 0.4);
  width: 90%;
  max-width: 1200px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  clip-path: polygon(
    0 20px,
    20px 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  box-shadow: 0 0 50px rgba(252, 231, 200, 0.3);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.recipe-popup-overlay.active .recipe-popup {
  transform: scale(1);
}

.popup-header {
  background: rgba(0,0,2,.9);
  border-bottom: 2px solid rgba(252, 231, 200, 0.3);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-title {
  color: #fce7c8;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  text-shadow: 0 0 20px rgba(252, 231, 200, 0.5);
}

.popup-close {
  background: transparent;
  border: 2px solid rgba(252, 231, 200, 0.3);
  color: #fce7c8;
  width: 36px;
  height: 36px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.popup-close:hover {
  background: rgba(252, 231, 200, 0.1);
  border-color: #fce7c8;
  transform: rotate(90deg);
}

.popup-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.popup-search-container {
  margin-bottom: 16px;
}

.popup-search-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  background: rgba(0, 0, 2, 0.8);
  border: 2px solid rgba(252, 231, 200, 0.3);
  color: #fce7c8;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.popup-table-wrapper {
  flex: 1;
  overflow-y: auto;
  border: 1px solid rgba(252, 231, 200, 0.2);
}

.recipe-popup-table {
  width: 100%;
  font-size: 14px !important;
}

.recipe-popup-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0,0,2,.95) !important;
  font-size: 14px !important;
  padding: 12px 8px !important;
}

.recipe-popup-table td {
  font-size: 14px !important;
  padding: 10px 8px !important;
}

/* ================================================
   RESOURCE STAT ICONS
   ================================================ */
.infobox-dune-two-column th .icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* ================================================
   SCROLLBAR STYLING FOR TABLES
   ================================================ */
.recipe-table-preview::-webkit-scrollbar,
.popup-table-wrapper::-webkit-scrollbar {
  width: 8px;
}

.recipe-table-preview::-webkit-scrollbar-track,
.popup-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0,0,2,.6);
}

.recipe-table-preview::-webkit-scrollbar-thumb,
.popup-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(252, 231, 200, 0.3);
  border-radius: 4px;
}

.recipe-table-preview::-webkit-scrollbar-thumb:hover,
.popup-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(252, 231, 200, 0.5);
}

/* ================================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ================================================ */
@media (max-width: 768px) {
  .crafting-section {
    padding: 12px;
  }
  
  .dune-section-header {
    font-size: 16px;
  }
  
  .recipe-popup {
    width: 95%;
    max-height: 90vh;
    clip-path: polygon(
      0 10px,
      10px 0,
      calc(100% - 10px) 0,
      100% 10px,
      100% calc(100% - 10px),
      calc(100% - 10px) 100%,
      10px 100%,
      0 calc(100% - 10px)
    );
  }
  
  .popup-title {
    font-size: 18px;
  }
  
  .popup-content {
    padding: 16px;
  }
  
  .recipe-popup-table {
    font-size: 12px !important;
  }
  
  .recipe-popup-table th,
  .recipe-popup-table td {
    padding: 6px 4px !important;
    font-size: 12px !important;
  }
  
  /* Hide some columns on mobile */
  .recipe-popup-table th:nth-child(4),
  .recipe-popup-table td:nth-child(4),
  .recipe-popup-table th:nth-child(6),
  .recipe-popup-table td:nth-child(6) {
    display: none;
  }
}

/* ================================================
   HARVEST LOCATIONS STYLING
   ================================================ */
.dune-card-description:empty {
  display:none;
}