MediaWiki:Common.css: Difference between revisions
From MalveraWiki
No edit summary |
No edit summary Tag: Reverted |
||
| Line 70: | Line 70: | ||
/* Custom Tooltip Styles */ | /* Custom Tooltip Styles */ | ||
.custom-tooltip { | /* --- Tooltip Wrapper --- */ | ||
.tooltip-wrapper { | |||
position: relative; | |||
display: inline-block; | |||
cursor: pointer; /* wskazuje, że można najechać */ | |||
} | |||
/* --- Tooltip Box --- */ | |||
.tooltip-wrapper .custom-tooltip { | |||
display: none; | |||
position: absolute; | |||
top: 110%; /* trochę poniżej elementu */ | |||
left: 50%; | |||
transform: translateX(-50%); | |||
min-width: 200px; | |||
max-width: 300px; | |||
padding: 0.75em 1em; | |||
background: rgba(24, 18, 61, 0.9); | |||
color: #e2d8ff; | |||
font-family: 'Segoe UI', Lato, Helvetica, sans-serif; | |||
font-size: 0.95em; | |||
line-height: 1.4; | |||
border: 1px solid rgba(255, 255, 255, 0.15); | |||
border-radius: 6px; | |||
box-shadow: 0 4px 8px rgba(0,0,0,0.15); | |||
z-index: 1000; | |||
word-wrap: break-word; | |||
} | |||
/* --- Pokaż tooltip przy hoverze --- */ | |||
.tooltip-wrapper:hover .custom-tooltip { | |||
display: block; | |||
} | |||
/* --- Stylowanie tabel wewnątrz tooltipa --- */ | |||
.custom-tooltip table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
margin: 0.5em 0; | |||
} | |||
.custom-tooltip table th, | |||
.custom-tooltip table td { | |||
border: 1px solid rgba(255, 255, 255, 0.15); | |||
padding: 0.4em 0.6em; | |||
background: rgba(24, 18, 61, 0.85); | |||
color: #e2d8ff; | |||
text-align: left; | |||
font-weight: normal; | |||
} | |||
.custom-tooltip table th { | |||
background: rgba(126, 96, 195, 0.3); | |||
} | |||
.custom-tooltip table tr:hover td { | |||
background: rgba(126, 96, 195, 0.2); | |||
} | |||
/* --- Linki w tooltipie --- */ | |||
.custom-tooltip a { | |||
color: #cbb4ff; | |||
text-decoration: none; | |||
} | |||
.custom-tooltip a:hover { | |||
color: #e2d8ff; | |||
text-decoration: underline; | |||
} | |||
/* --- Nagłówki w tooltipie --- */ | |||
.custom-tooltip h1, .custom-tooltip h2, .custom-tooltip h3, | |||
.custom-tooltip h4, .custom-tooltip h5, .custom-tooltip h6 { | |||
margin: 0.5em 0 0.25em 0; | |||
color: #e2d8ff; | |||
font-weight: normal; | |||
border-bottom: 1px solid rgba(255, 255, 255, 0.15); | |||
padding-bottom: 0.2em; | |||
} | |||
.custom-tooltip h1 { font-size: 1.4em; } | |||
.custom-tooltip h2 { font-size: 1.2em; } | |||
.custom-tooltip h3 { font-size: 1em; } | |||
/* --- Listy w tooltipie --- */ | |||
.custom-tooltip ul, .custom-tooltip ol { | |||
margin: 0.5em 0; | |||
padding-left: 1.5em; | |||
} | |||
/* --- Kod i pre w tooltipie --- */ | |||
.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: monospace; | |||
font-size: 0.9em; | |||
} | |||
.custom-tooltip pre { | |||
padding: 0.5em; | |||
overflow-x: auto; | |||
border-radius: 4px; | |||
} | |||
/* --- Animacja (opcjonalnie, płynne pojawianie się) --- */ | |||
.tooltip-wrapper .custom-tooltip { | |||
opacity: 0; | |||
transition: opacity 0.2s ease-in-out; | |||
} | |||
.tooltip-wrapper:hover .custom-tooltip { | |||
opacity: 1; | |||
} | |||
Revision as of 17:55, 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 */
/* --- Tooltip Wrapper --- */
.tooltip-wrapper {
position: relative;
display: inline-block;
cursor: pointer; /* wskazuje, że można najechać */
}
/* --- Tooltip Box --- */
.tooltip-wrapper .custom-tooltip {
display: none;
position: absolute;
top: 110%; /* trochę poniżej elementu */
left: 50%;
transform: translateX(-50%);
min-width: 200px;
max-width: 300px;
padding: 0.75em 1em;
background: rgba(24, 18, 61, 0.9);
color: #e2d8ff;
font-family: 'Segoe UI', Lato, Helvetica, sans-serif;
font-size: 0.95em;
line-height: 1.4;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 6px;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
z-index: 1000;
word-wrap: break-word;
}
/* --- Pokaż tooltip przy hoverze --- */
.tooltip-wrapper:hover .custom-tooltip {
display: block;
}
/* --- Stylowanie tabel wewnątrz tooltipa --- */
.custom-tooltip table {
width: 100%;
border-collapse: collapse;
margin: 0.5em 0;
}
.custom-tooltip table th,
.custom-tooltip table td {
border: 1px solid rgba(255, 255, 255, 0.15);
padding: 0.4em 0.6em;
background: rgba(24, 18, 61, 0.85);
color: #e2d8ff;
text-align: left;
font-weight: normal;
}
.custom-tooltip table th {
background: rgba(126, 96, 195, 0.3);
}
.custom-tooltip table tr:hover td {
background: rgba(126, 96, 195, 0.2);
}
/* --- Linki w tooltipie --- */
.custom-tooltip a {
color: #cbb4ff;
text-decoration: none;
}
.custom-tooltip a:hover {
color: #e2d8ff;
text-decoration: underline;
}
/* --- Nagłówki w tooltipie --- */
.custom-tooltip h1, .custom-tooltip h2, .custom-tooltip h3,
.custom-tooltip h4, .custom-tooltip h5, .custom-tooltip h6 {
margin: 0.5em 0 0.25em 0;
color: #e2d8ff;
font-weight: normal;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
padding-bottom: 0.2em;
}
.custom-tooltip h1 { font-size: 1.4em; }
.custom-tooltip h2 { font-size: 1.2em; }
.custom-tooltip h3 { font-size: 1em; }
/* --- Listy w tooltipie --- */
.custom-tooltip ul, .custom-tooltip ol {
margin: 0.5em 0;
padding-left: 1.5em;
}
/* --- Kod i pre w tooltipie --- */
.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: monospace;
font-size: 0.9em;
}
.custom-tooltip pre {
padding: 0.5em;
overflow-x: auto;
border-radius: 4px;
}
/* --- Animacja (opcjonalnie, płynne pojawianie się) --- */
.tooltip-wrapper .custom-tooltip {
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
.tooltip-wrapper:hover .custom-tooltip {
opacity: 1;
}
