MediaWiki:Common.css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Schevv (Diskussion | Beiträge) |
Schevv (Diskussion | Beiträge) |
||
Zeile 22: | Zeile 22: | ||
ul.HorizontalList li { | ul.HorizontalList li { | ||
display: inline; | display: inline; | ||
} | |||
.wikitooltip { | |||
position: relative; | |||
display: inline-block; | |||
border-bottom: 1px dotted black; | |||
} | |||
.wikitooltip .wikitooltiptext { | |||
visibility: hidden; | |||
width: 120px; | |||
background-color: #555; | |||
color: #fff; | |||
text-align: center; | |||
border-radius: 6px; | |||
padding: 5px 0; | |||
position: absolute; | |||
z-index: 1; | |||
bottom: 125%; | |||
left: 50%; | |||
margin-left: -60px; | |||
opacity: 0; | |||
transition: opacity 0.3s; | |||
} | |||
.wikitooltip .wikitooltiptext::after { | |||
content: ""; | |||
position: absolute; | |||
top: 100%; | |||
left: 50%; | |||
margin-left: -5px; | |||
border-width: 5px; | |||
border-style: solid; | |||
border-color: #555 transparent transparent transparent; | |||
} | |||
.wikitooltip:hover .wikitooltiptext { | |||
visibility: visible; | |||
opacity: 1; | |||
} | } |
Version vom 27. Mai 2022, 09:07 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ .Hauptseite_Box { margin: 0 10px 0 10px; border: thin solid lightgrey; } .Hauptseite_Box h2 { border: thin solid lightgrey; background-color: #D8E8FF; text-align:center; font-size:1em; font-family: sans-serif; font-weight: bold; margin: 0; } ul.HorizontalList { list-style-image: none; list-style-position: outside; list-style-type: none; } ul.HorizontalList li { display: inline; } .wikitooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; } .wikitooltip .wikitooltiptext { visibility: hidden; width: 120px; background-color: #555; color: #fff; text-align: center; border-radius: 6px; padding: 5px 0; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -60px; opacity: 0; transition: opacity 0.3s; } .wikitooltip .wikitooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #555 transparent transparent transparent; } .wikitooltip:hover .wikitooltiptext { visibility: visible; opacity: 1; }