MediaWiki:Gadget-ReferenceTooltips.css

From Old School Near-Reality Wiki
Revision as of 18:22, 3 October 2022 by Jacmob (talk | contribs) (Created page with "→‎See [[mw:Reference Tooltips]] * Original source: https://en.wikipedia.org/wiki/MediaWiki:Gadget-ReferenceTooltips.css * with modifications: .rt-tooltip { position: absolute; z-index: 100; max-width: 350px; background: var(--body-light); color: var(--text-color); font-size: 0.8125em; line-height: 1.5em; border: 1px solid var(--body-border); border-radius: 2px; box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.3); overflow-wrap: break-word; } .rt-tooltip....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
  1 /* See [[mw:Reference Tooltips]] 
  2  * Original source: https://en.wikipedia.org/wiki/MediaWiki:Gadget-ReferenceTooltips.css
  3  * with modifications
  4  */
  5 
  6 .rt-tooltip {
  7 	position: absolute;
  8 	z-index: 100;
  9 	max-width: 350px;
 10 	background: var(--body-light);
 11 	color: var(--text-color);
 12 	font-size: 0.8125em;
 13 	line-height: 1.5em;
 14 	border: 1px solid var(--body-border);
 15 	border-radius: 2px;
 16 	box-shadow: 0 15px 45px -10px rgba(0, 0, 0, 0.3);
 17 	overflow-wrap: break-word;
 18 }
 19 
 20 .rt-tooltip.rt-tooltip-insideWindow {
 21 	z-index: 110;
 22 }
 23 
 24 .rt-tooltipContent {
 25 	padding: 8px 11px;
 26 }
 27 
 28 .rt-tooltip-above .rt-tooltipContent {
 29 	margin-bottom: -8px;
 30 	padding-bottom: 16px;
 31 }
 32 
 33 .rt-tooltip-below .rt-tooltipContent {
 34 	margin-top: -10px;
 35 	padding-top: 18px;
 36 }
 37 
 38 .rt-tooltipTail,
 39 .rt-tooltipTail:after {
 40 	position: absolute;
 41 	width: 12px;
 42 	height: 12px;
 43 }
 44 
 45 .rt-tooltipTail {
 46 	background: linear-gradient(to top right, var(--body-border) 50%, rgba(0, 0, 0, 0) 50%);
 47 }
 48 
 49 .rt-tooltipTail:after {
 50 	content: "";
 51 	background: var(--body-light);
 52 	bottom: 1px;
 53 	left: 1px;
 54 }
 55 
 56 .rt-tooltip-above .rt-tooltipTail {
 57 	transform: rotate(-45deg);
 58 	transform-origin: 100% 100%;
 59 	bottom: 0;
 60 	left: 15px;
 61 }
 62 
 63 .rt-tooltip-below .rt-tooltipTail {
 64 	transform: rotate(135deg);
 65 	transform-origin: 0 0;
 66 	top: 0;
 67 	left: 27px;
 68 }
 69 
 70 .rt-settingsLink {
 71 	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);
 72 	float: right;
 73 	cursor: pointer;
 74 	margin: -4px -4px 0 8px;
 75 	height: 24px;
 76 	width: 24px;
 77 	border-radius: 2px;
 78 	background-position: center center;
 79 	background-repeat: no-repeat;
 80 	background-size: 24px 24px;
 81 	transition: background-color 100ms;
 82 }
 83 
 84 .rt-settingsLink:hover {
 85 	background-color: rgba(0,0,0,0.06);
 86 }
 87 
 88 .rt-target {
 89 	background-color: var(--body-light);
 90 }
 91 
 92 .rt-enableSelect {
 93 	font-weight: bold;
 94 }
 95 
 96 .rt-settingsFormSeparator {
 97 	margin: 0.85714286em 0;
 98 }
 99 
100 .rt-numberInput.rt-numberInput {
101 	width: 150px;
102 }
103 
104 .rt-tooltipsForCommentsField.rt-tooltipsForCommentsField.rt-tooltipsForCommentsField {
105 	margin-top: 1.64285714em;
106 }
107 
108 .rt-disabledHelp {
109 	border-collapse: collapse;
110 }
111 
112 .rt-disabledHelp td {
113 	padding: 0;
114 }
115 
116 .rt-disabledNote.rt-disabledNote {
117 	vertical-align: bottom;
118 	padding-left: 0.36em;
119 	font-weight: bold;
120 }
121 
122 @keyframes rt-fade-in-up {
123 	0% {
124 		opacity: 0;
125 		transform: translate(0, 20px)
126 	}
127 	100% {
128 		opacity: 1;
129 		transform: translate(0, 0)
130 	}
131 }
132 
133 @keyframes rt-fade-in-down {
134 	0% {
135 		opacity: 0;
136 		transform: translate(0, -20px)
137 	}
138 	100% {
139 		opacity: 1;
140 		transform: translate(0, 0)
141 	}
142 }
143 
144 @keyframes rt-fade-out-down {
145 	0% {
146 		opacity: 1;
147 		transform: translate(0, 0)
148 	}
149 	100% {
150 		opacity: 0;
151 		transform: translate(0, 20px)
152 	}
153 }
154 
155 @keyframes rt-fade-out-up {
156 	0% {
157 		opacity: 1;
158 		transform: translate(0, 0)
159 	}
160 	100% {
161 		opacity: 0;
162 		transform: translate(0, -20px)
163 	}
164 }
165 
166 .rt-fade-in-up {
167 	animation: rt-fade-in-up 0.2s ease forwards
168 }
169 
170 .rt-fade-in-down {
171 	animation: rt-fade-in-down 0.2s ease forwards
172 }
173 
174 .rt-fade-out-down {
175 	animation: rt-fade-out-down 0.2s ease forwards
176 }
177 
178 .rt-fade-out-up {
179 	animation: rt-fade-out-up 0.2s ease forwards
180 }
181 
182 /* dark mode - temporary until we convert to variables */
183 body.wgl-darkmode .rt-tooltip {
184 	background: #313e59;
185 	color: #cbd9f4;
186 	border-color: #596e96;
187 }
188 
189 body.wgl-darkmode .rt-tooltipTail {
190 	background: linear-gradient(to top right, #596e96 50%, rgba(0, 0, 0, 0) 50%);
191 }
192 
193 body.wgl-darkmode .rt-tooltipTail:after {
194 	background: #313e59;
195 }
196 
197 body.wgl-darkmode .rt-settingsLink {
198 	filter: invert(1);
199 }
200 
201 body.wgl-darkmode .rt-target {
202 	background-color: #313e59;
203 }
204 
205 /* blends with tabber bg */
206 .tabber .rt-target {
207 	background-color: rgb(255, 255, 255, 30%);
208 }
209 
210 body.wgl-darkmode .tabber .rt-target {
211 	background-color: rgb(0, 0, 0, 10%);
212 }