:한자/styles.css

/*** 시리즈:리브레 한자사전 메인페이지 ***/
.hanja-dict .notice {
	padding: 1em;
	background-color: #d9edf7;
	border-radius: .25rem;
	margin: 1em 0 ;
	text-align: center;
	color: #31708f;
}
.hanja-dict .notice ul {
	list-style-type: none;
	margin: 0 ;
	list-style-image: none ;
}
/*** 시리즈:리브레 한자사전/음으로 찾기 ***/
 /* [[틀:한자/목록/styles.css]] */
 
/*** 괄호 ***/
.hanja-info-head i { font-style: normal; }
.hanja-info-head i:before, .hanja-info-head i:after { font-family: Hankc; } /* 전각 괄호 반각화 */
.hanja-info-head i:before { content: '〔'; }
.hanja-info-head i:after { content: '〕'; }

/*** {한자 정보} ***/
.hanja-info {
	width: 18em;
	float: right;
	clear: right;
	margin: 0 0 1em 1em;
}
.hanja-info th {
	width: 7em;
	background: none;
	font-size: small;
}
.hanja-info th,
.hanja-info td {
	padding: 0.2rem 0.6rem;
}
.hanja-info th table:not(.unicodechar) a {
	color: inherit;
}
/*** {한자 정보} 헤드***/
.hanja-projectlink { margin-bottom: 0.5em; }
@media screen and (min-width: 521px) {
	.hanja-info-header > .hanja-projectlink { float: right; }
}
@media screen and (max-width: 520px) {
	.hanja-info-header > hr { margin-top: 0; border-color: transparent; }
}
.hanja-info-header #toc {
	height: 0;
}
.hanja-info-header #toc ul {
	display: contents;
	border: none;
	flex-wrap: wrap;
	padding: 0;
	margin-left: 0 ;
}
.hanja-info-header #toc li {
	display: contents;
}
.hanja-info-header #toc .toctitle,
.hanja-info-header #toc .tocnumber {
	display: none;
}
.hanja-info-header #toc .toctext {
    border-left: 1px solid #d0dbe3;
    padding: 0.2em 0.6em 0.3em 0.8em;
    display: inline-block;
}
.hanja-info-header #toc > ul > li:first-child > a:first-child > .toctext {
    border-left: none;
}
.hanja-info-head .hanja {
	font-family: Noto Sans CJK KR, sans-serif;
	font-size: 2em;
}
.hanja-info-head .hanja a {
	font-weight: 400;
}
.hanja-info-head .mean {
	font-size: 1em;
}
.hanja-info-head .mean i {
	font-style: inherit;
}
/*** {한자 정보2} ***/
.hanja-info-head .plainlinks.new a {
	color: #b73333 !important;
}
/*** {한자 정보} 내부 ***/
.hanja-info td.hanja {
	position: relative;
	padding: 1em;
}
.hanja-info .unicodechar-char div:first-child {
	line-height: 100% !important;
	height: 1em !important;
	font-size: 5.2em !important;
}
.hanja-info .unicodechar-char div b {
	font-weight:normal !important;
}
/*** 폰트 지정 ***/
.hanja-info .unicodechar [lang='ko'] {
	font-family: Noto Serif KR,Noto Serif SC,Noto Serif JP,Noto Serif CJK KR,
	Yu Mincho, SimSun, serif;
}
.hanja-info .unicodechar [lang='zh-cn'] {font-family: Noto Serif SC, Noto Serif JP, Noto Serif CJK KR, serif;}
.hanja-info .unicodechar [lang='ja'] {font-family: Noto Serif JP, Noto Serif SC, Noto Serif CJK KR, serif;}
.hanja-info [lang='zh-tw'] {font-family: Noto Serif TC, serif;}
.hanja-info th span:lang(ja) {font-family: Noto Sans JP, sans-serif;}
/*** 이체자 표기 ***/
.hanja-info .variants { /* 이체자 모음 */
	display: flex;
}
.hanja-info .variant { /* 이체자 사진 or 글자 */
	display: flex;
	font-size: 2.5em;
    flex-direction: column;
    align-items: center;
}
.hanja-info .variant > span {
    line-height: 1.1em;
}
.hanja-info .variant img {
	width: 1em;
	vertical-align: bottom;
}
.hanja-info .variant .reference a {
    font-size: small;
    vertical-align: text-top;
}
.hanja-info .hanja > :nth-child(2) {
	position: absolute;
	bottom: 0.5em;
	right: 0.4em;
}
.hanja-alternativeform .hanja { /* ? */
	padding: 1em;
}
/*** 한자 정보 유니코드 틀 ***/
.hanja-info .unicodechar {
	border:none !important;
}
.hanja-info .unicodechar th {
	text-align: center;
    font-size: medium;
    padding: 0;
    color: gray;
}
.hanja-info .unicodechar td {
    padding: 0;
}
.hanja-info .unicodechar-box {
    padding: 0.2rem 0 0 !important;
}
.hanja-info .unicodechar .plainlinks a {
	color: #ba0000 !important;
}
.hanja-info .unicodechar-arrow {
	display: none;
}
.hanja-info .unicodechar-prev,
.hanja-info .unicodechar-next {
	font-size: 2.5em !important;
}
/*** 한자 획수 ***/
.hanja-strokeorder.KanjiVG .image {
    filter: contrast(0.5)opacity(70%)drop-shadow(0 0 0.01px currentcolor) brightness(120%);
    color: inherit;
}
.hanja-style span > a:first-child { color: inherit; }
/*** 한자 정보에 내장된 탭, 모바일, etc ***/
.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 {
}
.hanja-info .libre-tab .libre-tab-main-content-active {
}
.libre-tab-main-content:not(.libre-tab-main-content-active) {
    filter: opacity(0);
    height: 0;
}
.libre-tab-main-content:not(.libre-tab-main-content-active) td:not(.unicodechar-char),
.libre-tab-main-content:not(.libre-tab-main-content-active) th {
	display: none;
}
@media (min-width: 521px) {
	.hanja-info .libre-tab-btns {
		max-width: 100% ;
	}
}

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