틀:Namucat/styles.css: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
108번째 줄: 108번째 줄:
/* 리스트를 나무위키처럼 */
/* 리스트를 나무위키처럼 */
ul:not(.toc) {
ul:not(.toc) {
margin: .2em 0 .2em 1.5em!important;
margin: .2em 0 .2em 1.5em;
padding-left: .5rem!important;
padding-left: .5rem;
list-style-type: disc;
list-style-type: disc;
list-style-image: none;
list-style-image: none;
}
}
li:not(.toc) {
li:not(.toc) {
margin: .2em 0!important;
margin: .2em 0;
}
}
ul ul:not(.toc) {
ul ul:not(.toc) {

2023년 7월 7일 (금) 05:20 판

/* 모바일에서 */
@media screen and (max-width: 768px) {
	/* 모바일 분류 박스 */
	.namucat-main-box {
    	margin-bottom: .6rem;
    	border: 1px solid #ccc;
    	border-radius: 4px;
    	padding: 3px 3px 3px 5px;
	}
	/* 모바일 미분류 박스 */
	.namucat-no-box {
		margin-bottom: .6rem;
		border: 1px solid #bcdff1;
		padding: 10px;
		background: #d9edf7;
		border-radius: 5px;
		color: #31708f;
	}
	/* 링크 클릭 시 파란 박스 */
	a:active {
		animation-name: btn-background;
		animation-duration: .5s;
		animation-iteration-count: 1;
		animation-timing-function: steps(1, end);
		animation-fill-mode: forwards;
	}
	/* 순환 링크 애니메이션 제외 */
	a.selflink:active {
		animation: none;
	}
}
/* 파란 박스가 0.5초 뒤 사라지는 애니메이션 */
@keyframes btn-background {
	from {
		background: blue;
		background: rgba(0, 0, 255, .1);
	}
	to {
		background: none;
	}
}
/* PC에서 */
@media screen and (min-width: 768px) {
	/* PC 분류 박스 */
	.namucat-main-box {
    	margin-bottom: 1rem;
    	border: 1px solid #ccc;
    	border-radius: 4px;
    	padding: 3px 3px 3px 5px;
	}
	/* PC 미분류 박스 */
	.namucat-no-box {
		margin-bottom: 1rem;
		border: 1px solid #bcdff1;
		padding: 10px;
		background: #d9edf7;
		border-radius: 5px;
		color: #31708f;
	}
}
/* 분류 블러 */
.namucat-blur {
	filter: blur(3px);
}
.namucat-blur:hover {
	filter: none;
}
/* 분류 간 구분선 */
.namucat-stick:after {
	content: '|';
	padding: 0 5px;
	user-select: none;
}
/* 링크 색 변화 없애기 */
a:hover {
	color: #337ab7;
}
a:active {
	color: #337ab7;
}
a.new:hover {
	color: #ba0000;
}
a.new:active {
	color: #ba0000;
}
a.external:hover {
	color: #33b733;
}
a.external:active {
	color: #33b733;
}
.plainlinks:hover a.external {
	color: #337ab7;
}
.plainlinks:active a.external {
	color: #337ab7;
}
a.selflink {
	color: inherit;
}
a.selflink:hover {
	color: inherit;
}
a.selflink:active {
	color: inherit;
}
/* 리스트를 나무위키처럼 */
ul:not(.toc) {
	margin: .2em 0 .2em 1.5em;
	padding-left: .5rem;
	list-style-type: disc;
	list-style-image: none;
}
li:not(.toc) {
	margin: .2em 0;
}
ul ul:not(.toc) {
	list-style-type: circle;
	list-style-image: none;
}
ul ul ul:not(.toc) {
	list-style-type: square;
	list-style-image: none;
}