:한자/styles.css

< 틀:한자
하늘 (토론 | 기여)님의 2021년 11월 7일 (일) 14:26 판
/* 시리즈:리브레 한자사전 메인페이지 */
.hanja-dict .notice {
	padding: 1rem;
	background-color: #d9edf7;
	border-radius: .25rem;
	margin: 1rem 0 ;
	text-align: center;
	color: #31708f;
}
.hanja-dict .notice ul {
	list-style-type: none;
	margin: 0 ;
	list-style-image: none ;
}

/* 시리즈:리브레 한자사전/음으로 찾기 */
ul.hanja-list {
	margin: 0 1.5em;list-style: none;
}

ul.hanja-list i {
	font-family: Hankc;font-style: normal;
}
ul.hanja-list i.edu {
	color: #eb0000;
}

ul.hanja-list i.edu > a, ul.hanja-list i.ext > a {
    font-family: Noto Sans CJK KR,Source Han Sans KR,Noto Sans KR, sans-serif;
}
ul.hanja-list i.edu, ul.hanja-list i.ext {
    font-size: 200%;letter-spacing: -3px;margin-right: 0.4em;
}
@media screen and (min-width: 521px) {
	ul.hanja-list {
		columns: 0 2;
	}
	ul.hanja-list-test {
		columns: 0 2;
	}
}
@media screen and (max-width: 520px) {
	ul.hanja-list {
		columns: 0 1;
	}
	ul.hanja-list-test {
		columns: 0 1;
	}
}
/* 급수 한자 목록 */

/* 한자 정보 */
.hanja-info .toc {
	display: table ;
	margin-bottom: 1em;
}
.hanja-info .toc div, .hanja-info .toc ul, .hanja-info .toc li {
	border:none ;
	padding: 0 ;
	background: transparent ;
}
.hanja-info .toc ul {
	padding: 14px ;
}

.hanja-info {
	width: 21em;
	float: right;
	margin: 0 0.5em;
	margin-bottom: 0.7em;
}
.hanja-info table {
	background: transparent;
}
.hanja-info th {
	width: 30%;
	background: none;
	font-size: small;
}
.hanja-info th,
.hanja-info td {
	padding: 0.3rem 0.6rem;
}

.hanja-info th a {
	color: inherit;
}

/* 한자 정보 헤드*/
.hanja-info-head {
	display: inline-block;
	padding-bottom: 0.2em;
}
.hanja-info-head .hanja {
	font-family: Noto Sans CJK KR, Source Han Sans KR,  Noto Sans KR, sans-serif;
	font-size: 200%;
	letter-spacing: -2px;
}
.hanja-info-head .hanja a {
	font-weight: 400;
}
.hanja-info-head .mean {
	font-size: 100%;
}
/* 한자 정보 내부 */
.hanja-info .hanja {
	position: relative;
	padding: 1em ;
}
.hanja-info .hanja > :lang(ko):first-child,
.hanja-info .hanja > :lang(ja),
.hanja-info .hanja > :lang(zh-cn) {
	line-height: 100%;
	height: 1em;
	font-size: 6em;
}
/******* 폰트 지정 **********************/
.hanja-info .hanja > :lang(ko):first-child {font-family: Noto Serif CJK KR, Noto Serif KR, serif;}
.hanja-info .hanja > :lang(zh-cn) {font-family: Noto Serif CJK KR, Noto Serif JP, serif;}
.hanja-info .hanja > :lang(ja) {font-family: Noto Serif CJK KR, Noto Serif SC, serif;}
.hanja-info .hanja :lang(zh-tw) {font-family: Noto Serif CJK KR, Noto Serif TC, serif;}

.hanja-info .variants {
	display: flex;
}

.hanja-info .variant {
	display: flex;
	font-size: 3em;
    flex-direction: column;
    align-items: center;
    width: min-content;
}
.hanja-info .variant > span {
    line-height: 1em;
}
.hanja-info .hanja > :nth-child(2) {
	position: absolute;
	bottom: 0.5em;
	right: 0.4em;

}
/* 한자 획수 */
.hanja-strokeorder .NavHead {
	background-color: transparent ;
	text-align:center;
	/*height: unset;*/
}
/*.hanja-strokeorder.NavFrame {}*/
.hanja-strokeorder .NavContent {
	overflow-y : hidden;
	font-weight: normal;
	background-color: transparent;
	text-align:center;
	padding-top: 0.3em;
}
.hanja-strokeorder.KanjiVG .image {
    filter: contrast(0.5)opacity(70%)drop-shadow(0 0 0.01px currentcolor) brightness(120%);
    color: inherit;
}
/*.NavContent[style*="display: none"] {
	transition: none max-height 0.5s cubic-bezier(0,1,0,1) 0s, opacity ease-in-out 0.1s;
	max-height: 0px;
	opacity: 0;
}
.NavContent {
	display: block;
	transition: none max-height 1s cubic-bezier(0, 0.24, 0, 0.99) 0s,opacity cubic-bezier(0.4,0,1,1)0.25s;
	max-height: 300px;
	opacity: 1;
}*/
/* {{한자서체}} */
.hanja-style span > a:first-child {
    filter: opacity(50%)drop-shadow(0 0 0.01px currentcolor)brightness(250%);
	color: inherit;
}
/* 한자성어
	한자성어는 영어로 중국발 외래어이기 때문에 알아듣기 힘들고
	마땅한 이름이 없어 한글로 class명을 정했습니다.
*/
.한자성어 {
	display: flex; margin: 0 auto; justify-content: center; flex-wrap: wrap;
}
.한자성어 .hanja {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	text-align: center;
/*	padding: 0px 0.2em;*/
}
.한자성어 .hanja span:first-child {
	line-height: 100%;
	font-size: 3em;
	/*	padding: 0px 0.2em;*/
}
.한자성어 .hanja span:first-child:lang(ko) { font-family: Noto Serif KR, serif;}
.한자성어 .hanja span:first-child { font-family: Noto Serif CJK KR, serif;}

.한자성어 .hanja span:last-child, .한자성어 .hanja span:first-child {
    width: 4rem;
}

.한자성어 .hanja a.new {
	color: inherit;
	transition: none ;
	text-decoration-color: #ba0000;
}
/*.한자성어 .hanja a.new:hover {
}

.한자성어 .hanja a:hover {
}
.한자성어 .hanja a:not(.new):hover {
    text-decoration-color: #23527c;
}*/
/* 한자 정보에 내장된 {{탭}} */
.hanja-info .libre-tab .libre-tab-btns {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
	margin: 0/*1rem auto 2.5em*/;
    justify-content: center ;
}

.hanja-info .libre-tab .libre-tab-btn {
    position: relative;
    display: grid;
    flex: 1 auto;
    padding: 0.4rem;
    text-align: center;
    word-break: keep-all;
    align-items: center;
    max-width: 14rem;
    cursor: pointer;
    border-bottom: 2px solid #e1e8ed;
    transition: 0.2s;
}

.hanja-info .libre-tab .libre-tab-btn-active,
.hanja-info .libre-tab .libre-tab-btn:hover {
    font-weight: bold;
}
@media (hover: hover) and (pointer: fine) {
    .hanja-info .libre-tab .libre-tab-btn:hover {
        background: rgba(213,225,230,0.35);
    }
}

.hanja-info .libre-tab .libre-tab-btn-active::before,
.hanja-info .libre-tab .libre-tab-btn:hover::before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: ' ';
    width: 100%;
    display: block;
    border-bottom: 2px solid #4188F1;
    margin-bottom: -2px;
}

.hanja-info .libre-tab .libre-tab-main {
    border: none;
    padding: 0;
    margin-top: 0;
}

.hanja-info .libre-tab .libre-tab-main-content {
    display: none;
}

.hanja-info .libre-tab .libre-tab-main-content-active {
    display: block;
}

@media (min-width: 544px) {
	.hanja-info .libre-tab-btns {
		max-width: 100% ;
	}
}

@media screen and (max-width: 520px) {
	.hanja-info {
		width: 100% ;
		margin: 0 auto ;
		margin-bottom: 0.7em;
		float: none ;
		clear: both ;
	}
	.hanja-info-head {
		width: 100% ;
	}
	.hanja-info .hanja {
		border-radius: 0 ;
	}

}