미디어위키:Common.css: 두 판 사이의 차이

S.T.E.L.L.A.-WIKI
편집 요약 없음
태그: 되돌려진 기여
편집 요약 없음
태그: 되돌려진 기여
72번째 줄: 72번째 줄:
}
}


.custom-footnote .tooltiptext {
.custom-ref {
   visibility: hidden;
   cursor: pointer;
  width: 120px;
   position: relative;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
   position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}
}


.custom-footnote .tooltiptext::after {
.custom-ref::after {
   content: "";
   content: attr(data-tooltip);
   position: absolute;
   position: absolute;
   top: 100%;
   background: #fff;
   left: 50%;
   border: 1px solid #ccc;
  margin-left: -5px;
   padding: 5px;
   border-width: 5px;
   display: none;
   border-style: solid;
   z-index: 100;
   border-color: #555 transparent transparent transparent;
}
}


.custom-footnote:hover .tooltiptext {
.custom-ref:hover::after {
   visibility: visible;
   display: block;
  opacity: 1;
}
}

2024년 5월 28일 (화) 05:17 판

/* 이 CSS 설정은 모든 스킨에 적용됩니다 */
td {
	position: relative;
}
.mw-collapsible-toggle {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	opacity: 0;
}
.spoiler {
	width: fit-content;
	height: fit-content;
}
.spoiler h4 {
	font-size: 14px;
	text-align: center;
	background: yellow;
	border: 1px solid black;
	padding: 4px 0;
	margin: 0;
}
.spoiler div {
	overflow: hidden;
}
.spoiler .spoiler-img {
	overflow: hidden;
	filter: blur(20px) saturate(.5) contrast(.5) brightness(1.2);
	transition: filter 0.2s;
}
.spoiler .spoiler-img:hover {
	filter: none;
}

.spoiler-text {
	position: relative;
	color: #424242;
	background-color: #424242;
	padding: 2px 4px;
	border-radius: 3px;
	transition: background-color 0.2s, color 0.2s;
}
.spoiler-text::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 10px;
	color: white;
	white-space: nowrap;
	transition: opacity 0.2s;
	pointer-events: none;
}
.spoiler-text:hover {
	color: inherit;
	background-color: #0002;
}
.spoiler-text:hover::after {
	opacity: 0;
}

.fake-ref-text {
  vertical-align: super;
  font-size: smaller;
  color: #3366CC;
}

.custom-ref {
  cursor: pointer;
  position: relative;
}

.custom-ref::after {
  content: attr(data-tooltip);
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  display: none;
  z-index: 100;
}

.custom-ref:hover::after {
  display: block;
}