MediaWiki:Common.css: Difference between revisions

From MalveraWiki
No edit summary
No edit summary
 
(52 intermediate revisions by the same user not shown)
Line 70: Line 70:


/* Custom Tooltip Styles */
/* Custom Tooltip Styles */
.item-tooltip-wrapper {
.custom-tooltip {
    position: relative;
  background: rgba(24, 18, 61, 0.85);
    display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
  box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.05);
  padding: 1em;
  margin: 0.5em 0;
  color: #e2d8ff;
  font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", "Lato", "Liberation Sans", "Noto Sans", "Helvetica Neue", "Helvetica", sans-serif;
  font-size: 0.95em;
  line-height: 1.5;
  display: inline-block;
  position: relative;
  border-radius: 0;
  word-wrap: break-word;
  vertical-align: middle;
}
}


.item-tooltip-box {
td .custom-tooltip,
    display: none;
th .custom-tooltip,
    position: absolute;
.custom-tooltip-in-table {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: block;
    border: 2px solid #0f3460;
  margin: 0;
    border-radius: 8px;
  padding: 0.75em;
    padding: 0;
  width: 100%;
    z-index: 10000;
  box-sizing: border-box;
    bottom: calc(100% + 12px);
  min-width: 200px;
    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 {
td span.custom-tooltip,
    content: '';
th span.custom-tooltip {
    position: absolute;
  display: block;
    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 {
.custom-tooltip table {
    display: block;
  width: 100%;
    opacity: 1;
  border-collapse: collapse;
    visibility: visible;
  margin: 0.5em 0;
}
}


.item-tooltip-header {
.custom-tooltip table.wikitable,
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
.custom-tooltip table {
    padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
  background: rgba(24, 18, 61, 0.95);
    border-bottom: 2px solid #0f3460;
    border-radius: 6px 6px 0 0;
}
}


.item-tooltip-header img {
.custom-tooltip table.wikitable th,
    display: block;
.custom-tooltip table th {
    margin: 0 auto 8px;
  background: rgba(126, 96, 195, 0.3);
    max-width: 64px;
  color: #e2d8ff;
    height: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5em;
  font-weight: normal;
  text-align: left;
}
}


.item-tooltip-name {
.custom-tooltip table.wikitable td,
    display: block;
.custom-tooltip table td {
    font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: bold;
  padding: 0.5em;
    color: #e94560;
  color: #e2d8ff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(24, 18, 61, 0.85);
    margin-top: 8px;
}
}


.item-tooltip-content {
.custom-tooltip table.wikitable tr:hover td,
    padding: 15px;
.custom-tooltip table tr:hover td {
    background: #1a1a2e;
  background: rgba(126, 96, 195, 0.2);
}
}


.item-tooltip-content .itemAttrInfo {
.custom-tooltip a {
    color: #ededed;
  color: #cbb4ff;
  text-decoration: none;
}
}


.item-tooltip-content .itemAttrInfo > div {
.custom-tooltip a:hover {
    margin-bottom: 15px;
  color: #e2d8ff;
  text-decoration: underline;
}
}


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


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


.item-tooltip-content .Table11 td {
.custom-tooltip h1,
    padding: 6px 8px;
.custom-tooltip h2,
    border: 1px solid rgba(15, 52, 96, 0.5);
.custom-tooltip h3,
    text-align: center;
.custom-tooltip h4,
.custom-tooltip h5,
.custom-tooltip h6 {
  color: #e2d8ff;
  margin: 0.75em 0 0.5em 0;
  font-weight: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.25em;
}
}


.item-tooltip-content .Table11 .attrInfo {
.custom-tooltip h1 { font-size: 1.5em; }
    color: #ededed;
.custom-tooltip h2 { font-size: 1.3em; }
    font-size: 12px;
.custom-tooltip h3 { font-size: 1.1em; }
 
.custom-tooltip ul,
.custom-tooltip ol {
  margin: 0.5em 0;
  padding-left: 2em;
  color: #e2d8ff;
}
 
.custom-tooltip li { margin: 0.25em 0; }
.custom-tooltip p { margin: 0.5em 0; color: #e2d8ff; }
 
.custom-tooltip code,
.custom-tooltip pre {
  background: rgba(24, 18, 61, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2d8ff;
  padding: 0.2em 0.4em;
  font-family: "Menlo", "Consolas", "Monaco", "Noto Mono", "Nimbus Mono L", monospace;
}
 
.custom-tooltip pre {
  padding: 0.5em;
  overflow-x: auto;
}
 
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}
 
.tooltip-wrapper img {
  cursor: pointer;
}
 
.tooltip-wrapper .custom-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out;
  background: rgba(24, 18, 61, 0.95);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  font-size: 0.7em;
  line-height: 1.3;
  z-index: 9999;
  width: auto;
  max-width: 90vw;
  overflow: visible;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
 
.tooltip-wrapper:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
}
 
.tooltip-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
 
.tooltip-item-image {
  text-align: center;
}
 
.tooltip-item-name {
  text-align: center;
  font-weight: bold;
}
 
.tooltip-tables-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
  justify-items: center;
}
 
.tooltip-table-container {
  width: 100%;
  min-width: 120px;
  max-width: 300px;
  box-sizing: border-box;
}
 
.tooltip-table-header {
  text-align: center;
  font-weight: bold;
  margin-bottom: 2px;
}
 
.tooltip-wrapper .custom-tooltip table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 0;
}
 
.tooltip-wrapper .custom-tooltip table th,
.tooltip-wrapper .custom-tooltip table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5em;
  color: #e2d8ff;
  background: rgba(24, 18, 61, 0.85);
  text-align: left;
}
 
.tooltip-wrapper .custom-tooltip table th {
  background: rgba(126, 96, 195, 0.3);
  font-weight: normal;
}
 
.tooltip-wrapper .custom-tooltip table tr:hover td {
  background: rgba(126, 96, 195, 0.2);
}
 
.tooltip-wrapper .custom-tooltip a {
  color: #cbb4ff;
  text-decoration: none;
}
}


.item-tooltip-content .Table11 tr:first-child .attrInfo {
.tooltip-wrapper .custom-tooltip a:hover {
    color: #a1dfb1;
  color: #e2d8ff;
    font-weight: bold;
  text-decoration: underline;
    background: rgba(15, 52, 96, 0.5);
}
}

Latest revision as of 21:20, 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 */
.custom-tooltip {
  background: rgba(24, 18, 61, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.05);
  padding: 1em;
  margin: 0.5em 0;
  color: #e2d8ff;
  font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", "Lato", "Liberation Sans", "Noto Sans", "Helvetica Neue", "Helvetica", sans-serif;
  font-size: 0.95em;
  line-height: 1.5;
  display: inline-block;
  position: relative;
  border-radius: 0;
  word-wrap: break-word;
  vertical-align: middle;
}

td .custom-tooltip,
th .custom-tooltip,
.custom-tooltip-in-table {
  display: block;
  margin: 0;
  padding: 0.75em;
  width: 100%;
  box-sizing: border-box;
  min-width: 200px;
}

td span.custom-tooltip,
th span.custom-tooltip {
  display: block;
}

.custom-tooltip table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5em 0;
}

.custom-tooltip table.wikitable,
.custom-tooltip table {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(24, 18, 61, 0.95);
}

.custom-tooltip table.wikitable th,
.custom-tooltip table th {
  background: rgba(126, 96, 195, 0.3);
  color: #e2d8ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5em;
  font-weight: normal;
  text-align: left;
}

.custom-tooltip table.wikitable td,
.custom-tooltip table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5em;
  color: #e2d8ff;
  background: rgba(24, 18, 61, 0.85);
}

.custom-tooltip table.wikitable tr:hover td,
.custom-tooltip table tr:hover td {
  background: rgba(126, 96, 195, 0.2);
}

.custom-tooltip a {
  color: #cbb4ff;
  text-decoration: none;
}

.custom-tooltip a:hover {
  color: #e2d8ff;
  text-decoration: underline;
}

.custom-tooltip a:visited {
  color: #a89ad1;
}

.custom-tooltip a.new {
  color: #ab93f2;
}

.custom-tooltip h1,
.custom-tooltip h2,
.custom-tooltip h3,
.custom-tooltip h4,
.custom-tooltip h5,
.custom-tooltip h6 {
  color: #e2d8ff;
  margin: 0.75em 0 0.5em 0;
  font-weight: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.25em;
}

.custom-tooltip h1 { font-size: 1.5em; }
.custom-tooltip h2 { font-size: 1.3em; }
.custom-tooltip h3 { font-size: 1.1em; }

.custom-tooltip ul,
.custom-tooltip ol {
  margin: 0.5em 0;
  padding-left: 2em;
  color: #e2d8ff;
}

.custom-tooltip li { margin: 0.25em 0; }
.custom-tooltip p { margin: 0.5em 0; color: #e2d8ff; }

.custom-tooltip code,
.custom-tooltip pre {
  background: rgba(24, 18, 61, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2d8ff;
  padding: 0.2em 0.4em;
  font-family: "Menlo", "Consolas", "Monaco", "Noto Mono", "Nimbus Mono L", monospace;
}

.custom-tooltip pre {
  padding: 0.5em;
  overflow-x: auto;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper img {
  cursor: pointer;
}

.tooltip-wrapper .custom-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out;
  background: rgba(24, 18, 61, 0.95);
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  font-size: 0.7em;
  line-height: 1.3;
  z-index: 9999;
  width: auto;
  max-width: 90vw;
  overflow: visible;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tooltip-wrapper:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
}

.tooltip-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tooltip-item-image {
  text-align: center;
}

.tooltip-item-name {
  text-align: center;
  font-weight: bold;
}

.tooltip-tables-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
  justify-items: center;
}

.tooltip-table-container {
  width: 100%;
  min-width: 120px;
  max-width: 300px;
  box-sizing: border-box;
}

.tooltip-table-header {
  text-align: center;
  font-weight: bold;
  margin-bottom: 2px;
}

.tooltip-wrapper .custom-tooltip table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 0;
}

.tooltip-wrapper .custom-tooltip table th,
.tooltip-wrapper .custom-tooltip table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5em;
  color: #e2d8ff;
  background: rgba(24, 18, 61, 0.85);
  text-align: left;
}

.tooltip-wrapper .custom-tooltip table th {
  background: rgba(126, 96, 195, 0.3);
  font-weight: normal;
}

.tooltip-wrapper .custom-tooltip table tr:hover td {
  background: rgba(126, 96, 195, 0.2);
}

.tooltip-wrapper .custom-tooltip a {
  color: #cbb4ff;
  text-decoration: none;
}

.tooltip-wrapper .custom-tooltip a:hover {
  color: #e2d8ff;
  text-decoration: underline;
}