Difference between revisions of "MediaWiki:Common.css"

From Game Logs
Jump to: navigation, search
(add Grimoire styles)
m (switch grimoire styles to tabs)
Line 85: Line 85:
  
 
.dnd5-grimoire {
 
.dnd5-grimoire {
    position: relative;
+
position: relative;
    color: #8f713f;
+
color: #8f713f;
    cursor: pointer;
+
cursor: pointer;
    font-weight: bold;
+
font-weight: bold;
 
}
 
}
  
 
.dnd5-grimoire-wrapper  {
 
.dnd5-grimoire-wrapper  {
    position: absolute;
+
position: absolute;
    z-index: +10;
+
z-index: +10;
    top: 0%;
+
top: 0%;
    min-width: 30em;
+
min-width: 30em;
    padding: 1.25em 0 0 0;
+
padding: 1.25em 0 0 0;
    /* break font inheritance from parent selector */
+
/* break font inheritance from parent selector */
    color: black;
+
color: black;
    font-weight: normal;
+
font-weight: normal;
 
}
 
}
  
 
.dnd5-grimoire-embed {
 
.dnd5-grimoire-embed {
    font-size: 0.9em;
+
font-size: 0.9em;
    background-color: white;
+
background-color: white;
    border: solid 1px silver;
+
border: solid 1px silver;
    padding: 0.5em 1em;
+
padding: 0.5em 1em;
    cursor: default;
+
cursor: default;
 
}
 
}
  
 
.dnd5-grimoire-embed.loader {
 
.dnd5-grimoire-embed.loader {
    /* note: use slash-prefixed relative link when uploaded locally.. */
+
/* note: use slash-prefixed relative link when uploaded locally.. */
    background: url(//logs.ur-dnd.ru/images/d/de/Ajax-loader.gif) no-repeat 50% 50%;
+
background: url(//logs.ur-dnd.ru/images/d/de/Ajax-loader.gif) no-repeat 50% 50%;
    background-color: white;
+
background-color: white;
    height: 32px;
+
height: 32px;
    width: 32px;
+
width: 32px;
    overflow: hidden;
+
overflow: hidden;
 
}
 
}
  
 
/* GRIMOIRE ENDS */
 
/* GRIMOIRE ENDS */

Revision as of 23:08, 18 February 2018

/* CSS placed here will be applied to all skins */


/* table with borders */

table.border {
	border-collapse: collapse;
}
table.border th,
table.border td {
	border: 1px solid #aaa;
	padding: 5px;
}


/* table with striped rows */

table.zebra {
	border-collapse: collapse;
}
table.zebra tr:nth-child(odd) {
	background-color: #f0f0f0;
}


/* table with row highlight on mouseover */

table.hover tr:hover {
	background-color: #e0e0e0;
}


/* table with column highlight on mouseover */

table.columns {
	border-spacing: 0;
	border-collapse: collapse;
	overflow: hidden;
	z-index: 1;
}
table.columns td, 
th {
	cursor: pointer;
	position: relative;
}
table.columns td:hover::after {
	background-color: #e0e0e0;
	content: '\00a0';
	height: 10000px;
	left: 0;
	position: absolute;
	top: -5000px;
	width: 100%;
	z-index: -1;
}


/* tooltip popups */

.tooltip {
	position: relative;
	border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
	visibility: hidden;
	border: 1px solid #aaa;
	border-spacing: 3px;
	background-color: #f9f9f9;
	color: black;
	text-align: center;
	border-radius: 3px;
	padding: 0.2em;
	/* Position the tooltip */
	position: absolute;
	z-index: 1;
	top: 100%;
	left: 25px;
}
.tooltip:hover .tooltiptext {
	visibility: visible;
}


/* GRIMOIRE STARTS */

.dnd5-grimoire {
	position: relative;
	color: #8f713f;
	cursor: pointer;
	font-weight: bold;
}

.dnd5-grimoire-wrapper  {
	position: absolute;
	z-index: +10;
	top: 0%;
	min-width: 30em;
	padding: 1.25em 0 0 0;
	/* break font inheritance from parent selector */
	color: black;
	font-weight: normal;
}

.dnd5-grimoire-embed {
	font-size: 0.9em;
	background-color: white;
	border: solid 1px silver;
	padding: 0.5em 1em;
	cursor: default;
}

.dnd5-grimoire-embed.loader {
	/* note: use slash-prefixed relative link when uploaded locally.. */
	background: url(//logs.ur-dnd.ru/images/d/de/Ajax-loader.gif) no-repeat 50% 50%;
	background-color: white;
	height: 32px;
	width: 32px;
	overflow: hidden;
}

/* GRIMOIRE ENDS */