MediaWiki:Common.css: Difference between revisions

From MalveraWiki
No edit summary
No edit summary
Line 70: Line 70:


/* Custom Tooltip Styles */
/* Custom Tooltip Styles */
.custom-tooltip-wrapper {
.item-tooltip-wrapper {
     position: relative;
     position: relative;
     display: inline-block;
     display: inline-block;
Line 76: Line 76:
}
}


.custom-tooltip-box {
.item-tooltip-box {
     display: none;
     display: none;
     position: absolute;
     position: absolute;
     background: #ffffff;
     background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
     border: 2px solid #4a90e2;
     border: 2px solid #0f3460;
     border-radius: 8px;
     border-radius: 8px;
     padding: 15px;
     padding: 0;
     z-index: 10000;
     z-index: 10000;
     bottom: calc(100% + 15px);
     bottom: calc(100% + 12px);
     left: 50%;
     left: 50%;
     transform: translateX(-50%);
     transform: translateX(-50%);
     min-width: 300px;
     min-width: 450px;
     max-width: 500px;
     max-width: 650px;
     box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
     opacity: 0;
     opacity: 0;
     visibility: hidden;
     visibility: hidden;
     transition: opacity 0.3s ease, visibility 0.3s ease;
     transition: opacity 0.2s ease, visibility 0.2s ease;
}
}


.custom-tooltip-box::after {
.item-tooltip-box::before {
     content: '';
     content: '';
     position: absolute;
     position: absolute;
Line 105: Line 105:
     border-left: 10px solid transparent;
     border-left: 10px solid transparent;
     border-right: 10px solid transparent;
     border-right: 10px solid transparent;
     border-top: 10px solid #4a90e2;
     border-top: 10px solid #0f3460;
}
}


.custom-tooltip-wrapper:hover .custom-tooltip-box {
.item-tooltip-wrapper:hover .item-tooltip-box {
     display: block;
     display: block;
     opacity: 1;
     opacity: 1;
Line 114: Line 114:
}
}


.custom-tooltip-box .wikitable {
.item-tooltip-header {
     margin: 0;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #0f3460;
    border-radius: 6px 6px 0 0;
}
 
.item-tooltip-header img {
    display: block;
     margin: 0 auto 8px;
    max-width: 64px;
    height: auto;
}
 
.item-tooltip-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #e94560;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 8px;
}
 
.item-tooltip-content {
    padding: 15px;
    background: #1a1a2e;
}
 
.item-tooltip-content .itemAttrInfo {
    color: #ededed;
}
 
.item-tooltip-content .itemAttrInfo > div {
    margin-bottom: 15px;
}
 
.item-tooltip-content .itemAttrInfo span[style*="color: #a1dfb1"] {
    color: #a1dfb1 !important;
    font-weight: bold;
    font-size: 13px;
}
 
.item-tooltip-content .Table11 {
     width: 100%;
     width: 100%;
     border-collapse: collapse;
     border-collapse: collapse;
    margin-top: 5px;
    background: rgba(15, 52, 96, 0.3);
    border-radius: 4px;
}
.item-tooltip-content .Table11 td {
    padding: 6px 8px;
    border: 1px solid rgba(15, 52, 96, 0.5);
    text-align: center;
}
}


.custom-tooltip-box .wikitable td,
.item-tooltip-content .Table11 .attrInfo {
.custom-tooltip-box .wikitable th {
     color: #ededed;
     padding: 8px;
     font-size: 12px;
     border: 1px solid #ddd;
}
}


.custom-tooltip-box .wikitable th {
.item-tooltip-content .Table11 tr:first-child .attrInfo {
     background-color: #f0f0f0;
     color: #a1dfb1;
     font-weight: bold;
     font-weight: bold;
    background: rgba(15, 52, 96, 0.5);
}
}

Revision as of 13:45, 2 February 2026

/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata&display=swap');
body {
  background: url('https://i.imgur.com/n94IzKR.png') no-repeat center center fixed;
  background-size: cover;
font-family: 'Inconsolata', monospace;
}
/* Grid wrapper for menu sections */
.menu-section {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 1rem;
}

.menu-title {
  text-align: center;
  font-size: 2rem;
  color: var(--accent, #cbb4ff);
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.15));
  padding-bottom: 0.5rem;
  font-weight: bold;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.menu-item {
  background: var(--box-bg, rgba(24, 18, 61, 0.85));
  border: 1px solid var(--border-color, rgba(255,255,255,0.15));
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.menu-item img {
  max-width: 64px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.menu-item a {
  display: block;
  color: var(--text, #e2d8ff);
  font-size: 18px;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.menu-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Custom Tooltip Styles */
.item-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.item-tooltip-box {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #0f3460;
    border-radius: 8px;
    padding: 0;
    z-index: 10000;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 450px;
    max-width: 650px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.item-tooltip-box::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #0f3460;
}

.item-tooltip-wrapper:hover .item-tooltip-box {
    display: block;
    opacity: 1;
    visibility: visible;
}

.item-tooltip-header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #0f3460;
    border-radius: 6px 6px 0 0;
}

.item-tooltip-header img {
    display: block;
    margin: 0 auto 8px;
    max-width: 64px;
    height: auto;
}

.item-tooltip-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #e94560;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 8px;
}

.item-tooltip-content {
    padding: 15px;
    background: #1a1a2e;
}

.item-tooltip-content .itemAttrInfo {
    color: #ededed;
}

.item-tooltip-content .itemAttrInfo > div {
    margin-bottom: 15px;
}

.item-tooltip-content .itemAttrInfo span[style*="color: #a1dfb1"] {
    color: #a1dfb1 !important;
    font-weight: bold;
    font-size: 13px;
}

.item-tooltip-content .Table11 {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    background: rgba(15, 52, 96, 0.3);
    border-radius: 4px;
}

.item-tooltip-content .Table11 td {
    padding: 6px 8px;
    border: 1px solid rgba(15, 52, 96, 0.5);
    text-align: center;
}

.item-tooltip-content .Table11 .attrInfo {
    color: #ededed;
    font-size: 12px;
}

.item-tooltip-content .Table11 tr:first-child .attrInfo {
    color: #a1dfb1;
    font-weight: bold;
    background: rgba(15, 52, 96, 0.5);
}