Actions

MediaWiki

MediaWiki:Gadget-ResourcePage.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.
/**
 * ResourcePage Gadget CSS
 * Styles for recipe popups and additional functionality
 */

/* Recipe Popup Overlay */
.recipe-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

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

/* Recipe Popup Container */
.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,.3);
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,.8), inset 0 0 30px rgba(252,231,200,.05);
    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)
    );
}

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

.popup-title {
    color: #fce7c8;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: #fce7c8;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Popup Content */
.popup-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Popup Search */
.popup-search-container {
    margin-bottom: 16px;
}

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

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

/* Popup Table */
.popup-table-wrapper {
    overflow-x: auto;
}

.recipe-popup-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.recipe-popup-table thead th {
    background: rgba(0,0,2,.9) !important;
    color: #fce7c8 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 12px !important;
    font-size: 14px !important;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid rgba(252,231,200,.4);
    cursor: pointer;
    user-select: none;
}

.recipe-popup-table thead th:hover {
    background: rgba(252,231,200,.1) !important;
}

.recipe-popup-table tbody tr {
    transition: background 0.2s ease;
}

.recipe-popup-table tbody tr:hover {
    background: rgba(252,231,200,.05);
}

.recipe-popup-table tbody td {
    padding: 12px !important;
    font-size: 14px !important;
    color: #E0E0E0;
    background: rgba(12,10,20,.6);
    border-bottom: 1px solid rgba(252,231,200,.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .recipe-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .popup-title {
        font-size: 18px !important;
    }
    
    .recipe-popup-table th,
    .recipe-popup-table td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
    
    /* Hide less important columns on mobile */
    .recipe-popup-table th:nth-child(4),
    .recipe-popup-table td:nth-child(4),
    .recipe-popup-table th:nth-child(5),
    .recipe-popup-table td:nth-child(5),
    .recipe-popup-table th:nth-child(6),
    .recipe-popup-table td:nth-child(6) {
        display: none;
    }
}