“MediaWiki: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-he…”
 
第1行: 第1行:
/* See [[mw:Reference Tooltips]] */
+
/* <pre> */
 +
/**
 +
* -------------------------------------------------------------------------
 +
* !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!!
 +
* -------------------------------------------------------------------------
 +
*/
 +
._addText { content: '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/ReferenceTooltips/MediaWiki:Gadget-ReferenceTooltips.css|user=[[U:AnnAngela]]|co-authors=|longId=8c7df25bff6ed46497be5bbfaac3ded5104abaae|shortId=8c7df25|message=feat(Gadget-ReferenceTooltips): Update to newest version}}'; }
  
.rt-tooltip {
+
.rt-tooltip{
position: absolute;
+
    position:absolute;
z-index: 100;
+
    z-index:100;
max-width: 350px;
+
    max-width:350px;
background: #fff;
+
    background:#fff;
color: #222;
+
    color:#222;
font-size: 13px;
+
    font-size:13px;
line-height: 1.5em;
+
    line-height:1.5em;
border: 1px solid #c8ccd1;
+
    border:1px solid #c8ccd1;
border-radius: 3px;
+
    border-radius:3px;
box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.3);
+
    box-shadow:0 15px 45px -10px rgb(0 0 0 / 30%);
overflow-wrap: break-word;
+
    overflow-wrap:break-word;
 
}
 
}
  
.rt-tooltip.rt-tooltip-insideWindow {
+
.rt-tooltip.rt-tooltip-insideWindow{
z-index: 110;
+
    z-index:110;
 
}
 
}
  
.rt-tooltipContent {
+
.rt-tooltipContent{
padding: 8px 11px;
+
    padding:8px 11px;
 
}
 
}
  
.rt-tooltip-above .rt-tooltipContent {
+
.rt-tooltip-above .rt-tooltipContent{
margin-bottom: -8px;
+
    margin-bottom:-8px;
padding-bottom: 16px;
+
    padding-bottom:16px;
 
}
 
}
  
.rt-tooltip-below .rt-tooltipContent {
+
.rt-tooltip-below .rt-tooltipContent{
margin-top: -10px;
+
    margin-top:-10px;
padding-top: 18px;
+
    padding-top:18px;
 
}
 
}
  
 
.rt-tooltipTail,
 
.rt-tooltipTail,
.rt-tooltipTail:after {
+
.rt-tooltipTail::after{
position: absolute;
+
    position:absolute;
width: 12px;
+
    width:12px;
height: 12px;
+
    height:12px;
 
}
 
}
  
.rt-tooltipTail {
+
.rt-tooltipTail{
background: #c8ccd1;
+
    background:linear-gradient(to top right, #c8ccd1 50%, rgb(0 0 0 / 0%) 50%);
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 {
+
.rt-tooltipTail::after{
content: "";
+
    content:"";
background: #fff;
+
    background:#fff;
bottom: 1px;
+
    bottom:1px;
left: 1px;
+
    left:1px;
 
}
 
}
  
.rt-tooltip-above .rt-tooltipTail {
+
.rt-tooltip-above .rt-tooltipTail{
-webkit-transform: rotate(-45deg);
+
    transform:rotate(-45deg);
transform: rotate(-45deg);
+
    transform-origin:100% 100%;
-webkit-transform-origin: 100% 100%;
+
    bottom:0;
transform-origin: 100% 100%;
+
    left:15px;
bottom: 0;
 
left: 15px;
 
 
}
 
}
  
.rt-tooltip-below .rt-tooltipTail {
+
.rt-tooltip-below .rt-tooltipTail{
-webkit-transform: rotate(135deg);
+
    transform:rotate(135deg);
transform: rotate(135deg);
+
    transform-origin:0 0;
-webkit-transform-origin: 0 0;
+
    top:0;
transform-origin: 0 0;
+
    left:27px;
top: 0;
 
left: 27px;
 
 
}
 
}
  
.rt-settingsLink {
+
.rt-settingsLink{
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);
+
    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;
+
    float:right;
cursor: pointer;
+
    cursor:pointer;
margin: -4px -4px 0 8px;
+
    margin:-4px -4px 0 8px;
height: 24px;
+
    height:24px;
width: 24px;
+
    width:24px;
border-radius: 2px;
+
    border-radius:2px;
background-position: center center;
+
    background-position:center center;
background-repeat: no-repeat;
+
    background-repeat:no-repeat;
background-size: 24px 24px;
+
    background-size:24px 24px;
 
}
 
}
  
.rt-settingsLink:hover {
+
.rt-settingsLink:hover{
background-color: #eee;
+
    background-color:#eee;
 
}
 
}
  
.rt-target {
+
.rt-target{
background-color: #def;
+
    background-color:#def;
 
}
 
}
  
.rt-enableSelect {
+
.rt-enableSelect{
font-weight: bold;
+
    font-weight:bold;
 
}
 
}
  
.rt-settingsFormSeparator {
+
.rt-settingsFormSeparator{
margin: 0.85714286em 0;
+
    margin:0.85714286em 0;
 
}
 
}
  
.rt-numberInput.rt-numberInput {
+
.rt-numberInput.rt-numberInput{
width: 150px;
+
    width:150px;
 
}
 
}
  
.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField {
+
.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField{
margin-top: 1.64285714em;
+
    margin-top:1.64285714em;
 
}
 
}
  
.rt-disabledHelp {
+
.rt-disabledHelp{
border-collapse: collapse;
+
    border-collapse:collapse;
 
}
 
}
  
.rt-disabledHelp td {
+
.rt-disabledHelp td{
padding: 0;
+
    padding:0;
 
}
 
}
  
.rt-disabledNote.rt-disabledNote {
+
.rt-disabledNote.rt-disabledNote{
vertical-align: bottom;
+
    vertical-align:bottom;
padding-left: 0.36em;
+
    padding-left:0.36em;
font-weight: bold;
+
    font-weight:bold;
 
}
 
}
  
@-webkit-keyframes rt-fade-in-up {
+
@keyframes rt-fade-in-up{
0% {
+
    0%{
opacity: 0;
+
        opacity:0;
-webkit-transform: translate(0, 20px);
+
        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 {
+
    100%{
0% {
+
        opacity:1;
opacity: 0;
+
        transform:translate(0, 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 {
+
@keyframes rt-fade-in-down{
0% {
+
    0%{
opacity: 0;
+
        opacity:0;
-webkit-transform: translate(0, -20px);
+
        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 {
+
    100%{
0% {
+
        opacity:1;
opacity: 0;
+
        transform:translate(0, 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 {
+
@keyframes rt-fade-out-down{
0% {
+
    0%{
opacity: 0;
+
        opacity:1;
-webkit-transform: translate(0, -20px);
+
        transform:translate(0, 0);
-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 {
+
    100%{
0% {
+
        opacity:0;
opacity: 1;
+
        transform:translate(0, 20px);
-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 {
+
@keyframes rt-fade-out-up{
0% {
+
    0%{
opacity: 1;
+
        opacity:1;
-webkit-transform: translate(0, 0);
+
        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 {
+
    100%{
0% {
+
        opacity:0;
opacity: 1;
+
        transform:translate(0, -20px);
-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 {
+
.rt-fade-in-up{
0% {
+
    animation:rt-fade-in-up 0.2s ease forwards;
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 {
+
.rt-fade-in-down{
0% {
+
    animation:rt-fade-in-down 0.2s ease forwards;
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 {
+
.rt-fade-out-down{
0% {
+
    animation:rt-fade-out-down 0.2s ease forwards;
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 {
+
.rt-fade-out-up{
-webkit-animation: rt-fade-in-up 0.2s ease forwards;
+
    animation:rt-fade-out-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 {
+
/* </pre> */
-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
 
}
 

2023年10月10日 (二) 11:35的版本

/* <pre> */
/**
 * -------------------------------------------------------------------------
 * !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!!
 * -------------------------------------------------------------------------
 */
._addText { content: '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/ReferenceTooltips/MediaWiki:Gadget-ReferenceTooltips.css|user=[[U:AnnAngela]]|co-authors=|longId=8c7df25bff6ed46497be5bbfaac3ded5104abaae|shortId=8c7df25|message=feat(Gadget-ReferenceTooltips): Update to newest version}}'; }

.rt-tooltip{
    position:absolute;
    z-index:100;
    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 rgb(0 0 0 / 30%);
    overflow-wrap:break-word;
}

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

.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%, rgb(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;
}

/* </pre> */