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...")
 
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
+
.infolink:before
.tooltip {
+
{
  position: relative;
+
    content: '?';
  display: inline-block;
+
    display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
+
    font-family: sans-serif;
 +
    font-weight: bold;
 +
    text-align: center;
 +
    width: 1.8ex;
 +
    height: 1.8ex;
 +
    font-size: 1.4ex;
 +
    line-height: 1.8ex;
 +
    border-radius: 1.2ex;
 +
    margin-right: 4px;
 +
    padding: 1px;
 +
    color: blue;
 +
    background: white;
 +
    border: 1px solid blue;
 +
    text-decoration: none;
 
}
 
}
  
/* Tooltip text */
+
.infolink:hover:before
.tooltip .tooltiptext {
+
{
  visibility: hidden;
+
    color: white;
  width: 120px;
+
    background: blue;
  background-color: black;
+
    border-color: white;
  color: #fff;
+
    text-decoration: none;
  text-align: center;
 
  padding: 5px 0;
 
  border-radius: 6px;
 
 
  /* Position the tooltip text - see examples below! */
 
  position: absolute;
 
  z-index: 1;
 
}
 
 
 
/* Show the tooltip text when you mouse over the tooltip container */
 
.tooltip:hover .tooltiptext {
 
  visibility: visible;
 
 
}
 
}

Revision as of 11:48, 3 August 2020

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

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