미디어위키:Gadget-ReferenceTooltips.css: 두 판 사이의 차이

(새 문서: →‎See [[mw:Reference Tooltips]]: .rt-tooltip { position: absolute; z-index: 100; max-width: 350px; background: #fff; color: #222; font-size: 13px; line-height: 1.5em; bord...)
 
편집 요약 없음
 
(같은 사용자의 중간 판 2개는 보이지 않습니다)
1번째 줄: 1번째 줄:
/* See [[mw:Reference Tooltips]] */
/* This code is licensed under CC BY-SA 3.0
Source: https://librewiki.net/wiki/미디어위키:Gadget-ReferenceTooltips.css
Contributors: https://librewiki.net/index.php?title=미디어위키:Gadget-ReferenceTooltips.css&action=history */


.rt-tooltip {
/* Drawer css start */
position: absolute;
.mode-drawer #reference-drawer {
z-index: 100;
position: fixed;
max-width: 350px;
bottom: 0;
background: #fff;
left: 0;
color: #222;
right: 0;
font-size: 13px;
-webkit-transition: -webkit-transform .25s, opacity .25s, visibility 0s .25s;
line-height: 1.5em;
-ms-transition: -ms-transform .25s, opacity .25s, visibility 0s .25s;
border: 1px solid #c8ccd1;
transition: transform .25s, opacity .25s, visibility 0s .25s;
border-radius: 3px;
-webkit-transform: translate(0,100px);
box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.3);
-ms-transform: translate(0,100px);
overflow-wrap: break-word;
transform: translate(0,100px);
}
border: 1px solid #e1e8ed;
 
z-index: 10000;
.rt-tooltip.rt-tooltip-insideWindow {
opacity: 0;
z-index: 110;
visibility: hidden;
box-shadow: 0 -2px 5px rgba(0, 0, 0, .4);
}
}


.rt-tooltipContent {
.mode-drawer #reference-drawer.visible {
padding: 8px 11px;
-webkit-transition: -webkit-transform .25s, opacity .25s;
-ms-transition: -ms-transform .25s, opacity .25s;
transition: transform .25s, opacity .25s;
-webkit-transform: translate(0,0);
-ms-transform: translate(0,0);
transform: translate(0,0);
opacity: 1;
visibility: visible;
}
}


.rt-tooltip-above .rt-tooltipContent {
.mode-drawer #reference-drawer .settings-icon {
margin-bottom: -8px;
display: none;
padding-bottom: 16px;
}
}
/* Drawer css end */


.rt-tooltip-below .rt-tooltipContent {
/* Tooltip css */
margin-top: -10px;
.mode-tooltip #reference-drawer {
padding-top: 18px;
}
 
.rt-tooltipTail,
.rt-tooltipTail:after {
position: absolute;
position: absolute;
width: 12px;
display: none;
height: 12px;
opacity: 0;
font-size : 0.9em;
max-width: 300px;
border-radius: 4px;
box-shadow: 0 0 12px rgba(0,0,0,.375);
z-index: 10000;
}
}


.rt-tooltipTail {
.mode-tooltip #reference-drawer .close-icon {
background: #c8ccd1;
display: none;
background: -webkit-linear-gradient(bottom left, #c8ccd1 50%, rgba(0, 0, 0, 0) 50%);
background: linear-gradient(to top right, #c8ccd1 50%, rgba(0, 0, 0, 0) 50%);
}
}


.rt-tooltipTail:after {
/* common css */
content: "";
#reference-drawer {
background: #fff;
padding: 10px 15px;
bottom: 1px;
background: #fcfcfc;
left: 1px;
}
}


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


.rt-tooltip-below .rt-tooltipTail {
#reference-settings {
-webkit-transform: rotate(135deg);
position: fixed;
transform: rotate(135deg);
top: 50%;
-webkit-transform-origin: 0 0;
left: 50%;
transform-origin: 0 0;
width: 300px;
top: 0;
height: 200px;
left: 27px;
margin-top: -100px;
margin-left: -150px;
padding: 10px;
background: white;
box-shadow: 0 0 6px gray;
z-index: 1003;
}
}


.rt-settingsLink {
#reference-settings .content {
background-image: linear-gradient(transparent,transparent),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);
height: 150px;
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 {
#reference-settings .content label > input {
background-color: #eee;
margin-right: 4px;
}
}


.rt-target {
#reference-settings .foot {
background-color: #def;
text-align: right;
}
}


.rt-enableSelect {
#reference-settings .foot input {
font-weight: bold;
margin-left: 4px;
}
}


.rt-settingsFormSeparator {
#reference-drawer .settings-icon {
margin: 0.85714286em 0;
margin: -5px -8px 0 5px;
float: right;
width: 14px;
height: 14px;
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/1/13/Cog%2C_Web_Fundamentals.svg/14px-Cog%2C_Web_Fundamentals.svg.png);
pointer: cursor;
}
}


.rt-numberInput.rt-numberInput {
#reference-drawer .close-icon {
width: 150px;
float: right;
}
width: 16px;
 
height: 16px;
.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField {
background: url(//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/VisualEditor_-_Icon_-_Close.svg/24px-VisualEditor_-_Icon_-_Close.svg.png);
margin-top: 1.64285714em;
background-position: -4px -4px;
}
 
.rt-disabledHelp {
border-collapse: collapse;
}
 
.rt-disabledHelp td {
padding: 0;
}
 
.rt-disabledNote.rt-disabledNote {
vertical-align: bottom;
padding-left: 0.36em;
font-weight: bold;
}
 
@-webkit-keyframes rt-fade-in-up {
0% {
opacity: 0;
-webkit-transform: translate(0, 20px);
-moz-transform: translate(0, 20px);
transform: translate(0, 20px)
}
100% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
}
 
@-moz-keyframes rt-fade-in-up {
0% {
opacity: 0;
-webkit-transform: translate(0, 20px);
-moz-transform: translate(0, 20px);
transform: translate(0, 20px)
}
100% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
}
 
@keyframes rt-fade-in-up {
0% {
opacity: 0;
-webkit-transform: translate(0, 20px);
-moz-transform: translate(0, 20px);
transform: translate(0, 20px)
}
100% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
}
 
@-webkit-keyframes rt-fade-in-down {
0% {
opacity: 0;
-webkit-transform: translate(0, -20px);
-moz-transform: translate(0, -20px);
transform: translate(0, -20px)
}
100% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
}
 
@-moz-keyframes rt-fade-in-down {
0% {
opacity: 0;
-webkit-transform: translate(0, -20px);
-moz-transform: translate(0, -20px);
transform: translate(0, -20px)
}
100% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
}
 
@keyframes rt-fade-in-down {
0% {
opacity: 0;
-webkit-transform: translate(0, -20px);
-moz-transform: translate(0, -20px);
transform: translate(0, -20px)
}
100% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
}
 
@-webkit-keyframes rt-fade-out-down {
0% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
100% {
opacity: 0;
-webkit-transform: translate(0, 20px);
-moz-transform: translate(0, 20px);
transform: translate(0, 20px)
}
}
 
@-moz-keyframes rt-fade-out-down {
0% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
100% {
opacity: 0;
-webkit-transform: translate(0, 20px);
-moz-transform: translate(0, 20px);
transform: translate(0, 20px)
}
}
 
@keyframes rt-fade-out-down {
0% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
100% {
opacity: 0;
-webkit-transform: translate(0, 20px);
-moz-transform: translate(0, 20px);
transform: translate(0, 20px)
}
}
 
@-webkit-keyframes rt-fade-out-up {
0% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
100% {
opacity: 0;
-webkit-transform: translate(0, -20px);
-moz-transform: translate(0, -20px);
transform: translate(0, -20px)
}
}
 
@-moz-keyframes rt-fade-out-up {
0% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
100% {
opacity: 0;
-webkit-transform: translate(0, -20px);
-moz-transform: translate(0, -20px);
transform: translate(0, -20px)
}
}
 
@keyframes rt-fade-out-up {
0% {
opacity: 1;
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
transform: translate(0, 0)
}
100% {
opacity: 0;
-webkit-transform: translate(0, -20px);
-moz-transform: translate(0, -20px);
transform: translate(0, -20px)
}
}
 
.rt-fade-in-up {
-webkit-animation: rt-fade-in-up 0.2s ease forwards;
-moz-animation: rt-fade-in-up 0.2s ease forwards;
animation: rt-fade-in-up 0.2s ease forwards
}
 
.rt-fade-in-down {
-webkit-animation: rt-fade-in-down 0.2s ease forwards;
-moz-animation: rt-fade-in-down 0.2s ease forwards;
animation: rt-fade-in-down 0.2s ease forwards
}
 
.rt-fade-out-down {
-webkit-animation: rt-fade-out-down 0.2s ease forwards;
-moz-animation: rt-fade-out-down 0.2s ease forwards;
animation: rt-fade-out-down 0.2s ease forwards
}
 
.rt-fade-out-up {
-webkit-animation: rt-fade-out-up 0.2s ease forwards;
-moz-animation: rt-fade-out-up 0.2s ease forwards;
animation: rt-fade-out-up 0.2s ease forwards
}
}

2021년 2월 1일 (월) 03:01 기준 최신판

/* This code is licensed under CC BY-SA 3.0
Source: https://librewiki.net/wiki/미디어위키:Gadget-ReferenceTooltips.css
Contributors: https://librewiki.net/index.php?title=미디어위키:Gadget-ReferenceTooltips.css&action=history */

/* Drawer css start */
.mode-drawer #reference-drawer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	-webkit-transition: -webkit-transform .25s, opacity .25s, visibility 0s .25s;
	-ms-transition: -ms-transform .25s, opacity .25s, visibility 0s .25s;
	transition: transform .25s, opacity .25s, visibility 0s .25s;
	-webkit-transform: translate(0,100px);
	-ms-transform: translate(0,100px);
	transform: translate(0,100px);
	border: 1px solid #e1e8ed;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, .4);
}

.mode-drawer #reference-drawer.visible {
	-webkit-transition: -webkit-transform .25s, opacity .25s;
	-ms-transition: -ms-transform .25s, opacity .25s;
	transition: transform .25s, opacity .25s;
	-webkit-transform: translate(0,0);
	-ms-transform: translate(0,0);
	transform: translate(0,0);
	opacity: 1;
	visibility: visible;
}

.mode-drawer #reference-drawer .settings-icon {
	display: none;
}
/* Drawer css end */

/* Tooltip css */
.mode-tooltip #reference-drawer {
	position: absolute;
	display: none;
	opacity: 0;
	font-size : 0.9em;
	max-width: 300px;
	border-radius: 4px;
	box-shadow: 0 0 12px rgba(0,0,0,.375);
	z-index: 10000;
}

.mode-tooltip #reference-drawer .close-icon {
	display: none;
}

/* common css */
#reference-drawer {
	padding: 10px 15px;
	background: #fcfcfc;
}

#reference-origin {
	padding-right: 8px;
}

#reference-settings {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 300px;
	height: 200px;
	margin-top: -100px;
	margin-left: -150px;
	padding: 10px;
	background: white;
	box-shadow: 0 0 6px gray;
	z-index: 1003;
}

#reference-settings .content {
	height: 150px;
}

#reference-settings .content label > input {
	margin-right: 4px;
}

#reference-settings .foot {
	text-align: right;
}

#reference-settings .foot input {
	margin-left: 4px;
}

#reference-drawer .settings-icon {
	margin: -5px -8px 0 5px;
	float: right;
	width: 14px;
	height: 14px;
	background: url(//upload.wikimedia.org/wikipedia/commons/thumb/1/13/Cog%2C_Web_Fundamentals.svg/14px-Cog%2C_Web_Fundamentals.svg.png);
	pointer: cursor;
}

#reference-drawer .close-icon {
	float: right;
	width: 16px;
	height: 16px;
	background: url(//upload.wikimedia.org/wikipedia/commons/thumb/8/8d/VisualEditor_-_Icon_-_Close.svg/24px-VisualEditor_-_Icon_-_Close.svg.png);
	background-position: -4px -4px;
}