MediaWiki:Gadget-ReferenceTooltips.css: Difference between revisions

From Halachipedia
m (1 revision)
 
No edit summary
 
Line 1: Line 1:
/* See [[mw:Reference Tooltips]] */
/* See [[mw:Reference Tooltips]] */


.referencetooltip {
.rt-tooltip {
        position: absolute;
position: absolute;
        list-style: none;
z-index: 800; /* match z-index-tooltip in https://doc.wikimedia.org/codex/latest/design-tokens/z-index.html */
        list-style-image: none;
max-width: 350px;
        opacity: 0;
background: #fff;
        font-size: 10px;
color: #222;
        margin: 0;
font-size: 13px;
        z-index: 5;
line-height: 1.5em;
        padding: 0;
border: 1px solid #c8ccd1;
border-radius: 3px;
box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.3);
overflow-wrap: break-word;
}
}
.referencetooltip li {
 
        border: #080086 2px solid;
.rt-tooltip.rt-tooltip-insideWindow {
        max-width: 260px;
z-index: 810;
        padding: 10px 8px 13px 8px;
        margin: 0px;
        background-color: #F7F7F7;
        box-shadow: 2px 4px 2px rgba(0,0,0,0.3);
        -moz-box-shadow: 2px 4px 2px rgba(0,0,0,0.3);
        -webkit-box-shadow: 2px 4px 2px rgba(0,0,0,0.3);
}
}
.referencetooltip li+li {
 
        margin-left: 7px;
.rt-tooltipContent {
        margin-top: -2px;
padding: 8px 11px;
        border: 0;
        padding: 0;
        height: 3px;
        width: 0px;
        background-color: transparent;
        box-shadow: none;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        border-top: 12px #080086 solid;
        border-right: 7px transparent solid;
        border-left: 7px transparent solid;
}
}
.referencetooltip>li+li::after {
 
        content: '';
.rt-tooltip-above .rt-tooltipContent {
        border-top: 8px #F7F7F7 solid;
margin-bottom: -8px;
        border-right: 5px transparent solid;
padding-bottom: 16px;
        border-left: 5px transparent solid;
        margin-top: -12px;
        margin-left: -5px;
        z-index: 1;
        height: 0px;
        width: 0px;
        display: block;
}
}
.client-js body .referencetooltip li li {
 
        border: none;
.rt-tooltip-below .rt-tooltipContent {
        box-shadow: none;
margin-top: -10px;
        -moz-box-shadow: none;
padding-top: 18px;
        -webkit-box-shadow: none;
        height: auto;
        width: auto;
        margin: auto;
        padding: 0;
        position: static;
}
}
.RTflipped {
 
        padding-top: 13px;
.rt-tooltipTail,
.rt-tooltipTail:after {
position: absolute;
width: 12px;
height: 12px;
}
}
.referencetooltip.RTflipped li+li {
 
        position: absolute;
.rt-tooltipTail {
        top: 2px;
background: linear-gradient(to top right, #c8ccd1 50%, rgba(0, 0, 0, 0) 50%);
        border-top: 0;
        border-bottom: 12px #080086 solid;
}
}
.referencetooltip.RTflipped li+li::after {
 
        border-top: 0;
.rt-tooltipTail:after {
        border-bottom: 8px #F7F7F7 solid;
content: "";
        position: absolute;
background: #fff;
        margin-top: 7px;
bottom: 1px;
left: 1px;
}
}
.RTsettings{
 
        float: right;
.rt-tooltip-above .rt-tooltipTail {
        height: 16px;
transform: rotate(-45deg);
        width: 16px;
transform-origin: 100% 100%;
        cursor: pointer;
bottom: 0;
        background-image: url(//upload.wikimedia.org/wikipedia/commons/e/ed/Cog.png);
left: 15px;
        margin-top: -9px;
        margin-right: -7px;
        -webkit-transition: opacity 0.15s;
        -moz-transition: opacity 0.15s;
        -o-transition: opacity 0.15s;
        -ms-transition: opacity 0.15s;
        transition: opacity 0.15s;
        opacity: 0.6;
        filter: alpha(opacity=60);
}
}
.RTsettings:hover{
 
        opacity: 1;
.rt-tooltip-below .rt-tooltipTail {
        filter: alpha(opacity=100);
transform: rotate(135deg);
transform-origin: 0 0;
top: 0;
left: 27px;
}
}
.RTTarget{
 
        border: #080086 2px solid;
.rt-settingsLink {
background-image: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0D%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%0D%0A%20%20%20%20%3Cpath%20fill%3D%22%23555%22%20d%3D%22M20%2014.5v-2.9l-1.8-.3c-.1-.4-.3-.8-.6-1.4l1.1-1.5-2.1-2.1-1.5%201.1c-.5-.3-1-.5-1.4-.6L13.5%205h-2.9l-.3%201.8c-.5.1-.9.3-1.4.6L7.4%206.3%205.3%208.4l1%201.5c-.3.5-.4.9-.6%201.4l-1.7.2v2.9l1.8.3c.1.5.3.9.6%201.4l-1%201.5%202.1%202.1%201.5-1c.4.2.9.4%201.4.6l.3%201.8h3l.3-1.8c.5-.1.9-.3%201.4-.6l1.5%201.1%202.1-2.1-1.1-1.5c.3-.5.5-1%20.6-1.4l1.5-.3zM12%2016c-1.7%200-3-1.3-3-3s1.3-3%203-3%203%201.3%203%203-1.3%203-3%203z%22%2F%3E%0D%0A%3C%2Fsvg%3E);
float: right;
cursor: pointer;
margin: -4px -4px 0 8px;
height: 24px;
width: 24px;
border-radius: 2px;
background-position: center center;
background-repeat: no-repeat;
background-size: 24px 24px;
}
 
.rt-settingsLink:hover {
background-color: #eee;
}
 
.rt-target {
background-color: #def;
}
 
.rt-enableSelect {
font-weight: bold;
}
 
.rt-settingsFormSeparator {
margin: 0.85714286em 0;
}
 
.rt-numberInput.rt-numberInput {
width: 150px;
}
 
.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField {
margin-top: 1.64285714em;
}
 
.rt-disabledHelp {
border-collapse: collapse;
}
 
.rt-disabledHelp td {
padding: 0;
}
 
.rt-disabledNote.rt-disabledNote {
vertical-align: bottom;
padding-left: 0.36em;
font-weight: bold;
}
 
@keyframes rt-fade-in-up {
0% {
opacity: 0;
transform: translate(0, 20px)
}
100% {
opacity: 1;
transform: translate(0, 0)
}
}
 
@keyframes rt-fade-in-down {
0% {
opacity: 0;
transform: translate(0, -20px)
}
100% {
opacity: 1;
transform: translate(0, 0)
}
}
 
@keyframes rt-fade-out-down {
0% {
opacity: 1;
transform: translate(0, 0)
}
100% {
opacity: 0;
transform: translate(0, 20px)
}
}
 
@keyframes rt-fade-out-up {
0% {
opacity: 1;
transform: translate(0, 0)
}
100% {
opacity: 0;
transform: translate(0, -20px)
}
}
 
.rt-fade-in-up {
animation: rt-fade-in-up 0.2s ease forwards
}
 
.rt-fade-in-down {
animation: rt-fade-in-down 0.2s ease forwards
}
 
.rt-fade-out-down {
animation: rt-fade-out-down 0.2s ease forwards
}
 
.rt-fade-out-up {
animation: rt-fade-out-up 0.2s ease forwards
}
}

Latest revision as of 19:23, 6 July 2023

/* See [[mw:Reference Tooltips]] */

.rt-tooltip {
	position: absolute;
	z-index: 800; /* match z-index-tooltip in https://doc.wikimedia.org/codex/latest/design-tokens/z-index.html */
	max-width: 350px;
	background: #fff;
	color: #222;
	font-size: 13px;
	line-height: 1.5em;
	border: 1px solid #c8ccd1;
	border-radius: 3px;
	box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.3);
	overflow-wrap: break-word;
}

.rt-tooltip.rt-tooltip-insideWindow {
	z-index: 810;
}

.rt-tooltipContent {
	padding: 8px 11px;
}

.rt-tooltip-above .rt-tooltipContent {
	margin-bottom: -8px;
	padding-bottom: 16px;
}

.rt-tooltip-below .rt-tooltipContent {
	margin-top: -10px;
	padding-top: 18px;
}

.rt-tooltipTail,
.rt-tooltipTail:after {
	position: absolute;
	width: 12px;
	height: 12px;
}

.rt-tooltipTail {
	background: linear-gradient(to top right, #c8ccd1 50%, rgba(0, 0, 0, 0) 50%);
}

.rt-tooltipTail:after {
	content: "";
	background: #fff;
	bottom: 1px;
	left: 1px;
}

.rt-tooltip-above .rt-tooltipTail {
	transform: rotate(-45deg);
	transform-origin: 100% 100%;
	bottom: 0;
	left: 15px;
}

.rt-tooltip-below .rt-tooltipTail {
	transform: rotate(135deg);
	transform-origin: 0 0;
	top: 0;
	left: 27px;
}

.rt-settingsLink {
	background-image: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%0D%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%0D%0A%20%20%20%20%3Cpath%20fill%3D%22%23555%22%20d%3D%22M20%2014.5v-2.9l-1.8-.3c-.1-.4-.3-.8-.6-1.4l1.1-1.5-2.1-2.1-1.5%201.1c-.5-.3-1-.5-1.4-.6L13.5%205h-2.9l-.3%201.8c-.5.1-.9.3-1.4.6L7.4%206.3%205.3%208.4l1%201.5c-.3.5-.4.9-.6%201.4l-1.7.2v2.9l1.8.3c.1.5.3.9.6%201.4l-1%201.5%202.1%202.1%201.5-1c.4.2.9.4%201.4.6l.3%201.8h3l.3-1.8c.5-.1.9-.3%201.4-.6l1.5%201.1%202.1-2.1-1.1-1.5c.3-.5.5-1%20.6-1.4l1.5-.3zM12%2016c-1.7%200-3-1.3-3-3s1.3-3%203-3%203%201.3%203%203-1.3%203-3%203z%22%2F%3E%0D%0A%3C%2Fsvg%3E);
	float: right;
	cursor: pointer;
	margin: -4px -4px 0 8px;
	height: 24px;
	width: 24px;
	border-radius: 2px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
}

.rt-settingsLink:hover {
	background-color: #eee;
}

.rt-target {
	background-color: #def;
}

.rt-enableSelect {
	font-weight: bold;
}

.rt-settingsFormSeparator {
	margin: 0.85714286em 0;
}

.rt-numberInput.rt-numberInput {
	width: 150px;
}

.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField {
	margin-top: 1.64285714em;
}

.rt-disabledHelp {
	border-collapse: collapse;
}

.rt-disabledHelp td {
	padding: 0;
}

.rt-disabledNote.rt-disabledNote {
	vertical-align: bottom;
	padding-left: 0.36em;
	font-weight: bold;
}

@keyframes rt-fade-in-up {
	0% {
		opacity: 0;
		transform: translate(0, 20px)
	}
	100% {
		opacity: 1;
		transform: translate(0, 0)
	}
}

@keyframes rt-fade-in-down {
	0% {
		opacity: 0;
		transform: translate(0, -20px)
	}
	100% {
		opacity: 1;
		transform: translate(0, 0)
	}
}

@keyframes rt-fade-out-down {
	0% {
		opacity: 1;
		transform: translate(0, 0)
	}
	100% {
		opacity: 0;
		transform: translate(0, 20px)
	}
}

@keyframes rt-fade-out-up {
	0% {
		opacity: 1;
		transform: translate(0, 0)
	}
	100% {
		opacity: 0;
		transform: translate(0, -20px)
	}
}

.rt-fade-in-up {
	animation: rt-fade-in-up 0.2s ease forwards
}

.rt-fade-in-down {
	animation: rt-fade-in-down 0.2s ease forwards
}

.rt-fade-out-down {
	animation: rt-fade-out-down 0.2s ease forwards
}

.rt-fade-out-up {
	animation: rt-fade-out-up 0.2s ease forwards
}