Difference between revisions of "MediaWiki:Common.css"

From DIQA-Homepage
(Created page with "CSS placed here will be applied to all skins: .tooltip { position: relative; display: inline-block; border-bottom: 1px dotted black; /* If you want dots under the h...")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
+
body {
.tooltip {
+
  overflow-anchor: none; // repariert das Geister-Scrollen in Chrome
  position: relative;
 
  display: inline-block;
 
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
 
 
}
 
}
  
/* Tooltip text */
+
 
.tooltip .tooltiptext {
+
.infolink:before
  visibility: hidden;
+
{
  width: 120px;
+
    content: '?';
  background-color: black;
+
    display: inline-block;
  color: #fff;
+
    font-family: sans-serif;
  text-align: center;
+
    font-weight: bold;
  padding: 5px 0;
+
    text-align: center;
  border-radius: 6px;
+
    width: 2.2ex;
+
    height: 2.2ex;
  /* Position the tooltip text - see examples below! */
+
    font-size: 2ex;
  position: absolute;
+
    border-radius: 3ex;
   z-index: 1;
+
    margin-right: 4px;
 +
    padding: 2px;
 +
    color: white;
 +
    background: lightgray;
 +
    border: 2px solid lightgray;
 +
    text-decoration: none;
 +
    margin-left: 5px;
 +
    line-height: 1.4ex;
 +
}
 +
 
 +
.infolink:hover:before
 +
{
 +
    color: lightgray;
 +
    background: white;
 +
    border-color: white;
 +
    text-decoration: none;
 +
}
 +
 
 +
#lang-small {
 +
    position: relative;
 +
    float: right;
 +
    margin-right: 15px;
 +
    top: 28px;
 +
    font-weight: 900;
 +
    color: gray;
 +
}
 +
 
 +
#lang-small a {
 +
   color: gray !important;
 
}
 
}
  
/* Show the tooltip text when you mouse over the tooltip container */
+
@media (min-width: 1020px) {
.tooltip:hover .tooltiptext {
+
#lang-small {
  visibility: visible;
+
  display: none;
 +
}
 
}
 
}

Latest revision as of 13:52, 16 April 2021

body {
   overflow-anchor: none; // repariert das Geister-Scrollen in Chrome
}


.infolink:before
{
    content: '?';
    display: inline-block;
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
    width: 2.2ex;
    height: 2.2ex;
    font-size: 2ex;
    border-radius: 3ex;
    margin-right: 4px;
    padding: 2px;
    color: white;
    background: lightgray;
    border: 2px solid lightgray;
    text-decoration: none;
    margin-left: 5px;
    line-height: 1.4ex;
}

.infolink:hover:before
{
    color: lightgray;
    background: white;
    border-color: white;
    text-decoration: none;
}

#lang-small {
    position: relative;
    float: right;
    margin-right: 15px;
    top: 28px;
    font-weight: 900;
    color: gray;
}

#lang-small a {
  color: gray !important;
}

@media (min-width: 1020px) {
 #lang-small {
   display: none;
 }
}