:한자/styles.css

< 틀:한자
하늘 (토론 | 기여)님의 2022년 2월 2일 (수) 13:32 판
/*** 시리즈:리브레 한자사전 메인페이지 ***/
.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 ;
}
/*** 시리즈:리브레 한자사전/음으로 찾기 ***/
ul.hanja-list {
	margin: 0 !important;list-style: none;
}
ul.hanja-list i {
	font-style: normal;
}
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;
}
ul.hanja-list i.edu {
	color: #eb0000;
}
@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;
	}
}
/*** 괄호 ***/
ul.hanja-list i:before, ul.hanja-list i:after,
.hanja-info-head .mean i:before, .hanja-info-head .mean i:after
{
	font-family: Hankc;
}
ul.hanja-list i:first-child:before { content: '【'; }
ul.hanja-list i:first-child:after { content: '】'; }
ul.hanja-list i:last-child:before,
.hanja-info-head .mean i:before { content: '〔'; }
ul.hanja-list i:last-child:after,
.hanja-info-head .mean i:after { content: '〕'; }

/*** {한자 정보} ***/
.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: 18em;
	float: right;
	clear: right;
	margin: 0 0 1em 1em;
}
.hanja-info .hanja-info-table {
	background: transparent;
}
.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-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%;
}
.hanja-info-head .hanja a {
	font-weight: 400;
}
.hanja-info-head .mean {
	font-size: 100%;
}
.hanja-info-head .mean i {
	font-style: inherit;
}
.hanja-projectlink {
	display: inline-block;
	margin-bottom: 0.5em;
}
/*** {한자 정보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-char > div:first-child :lang(ko) {font-family: Noto Serif CJK KR, Noto Serif KR, serif;}
.hanja-info .unicodechar-char > div:first-child :lang(zh-cn) {font-family: Noto Serif CJK KR, Noto Serif SC, serif;}
.hanja-info .unicodechar-char > div:first-child :lang(ja) {font-family: Noto Serif CJK KR, Noto Serif JP, serif;}
.hanja-info :lang(zh-tw) {font-family: Noto Serif CJK KR, Noto Serif TC, serif;}
.hanja-info th span:lang(ja) {font-family: Noto Sans CJK KR, 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 .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 !important;
    padding: 0;
}
.hanja-info .unicodechar td {
    padding: 0.2rem 0 0 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 .NavHead {
	background-color: transparent ;
	text-align:center;
	/*height: unset;*/
}
.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;
}
/*.hanja-strokeorder.NavFrame {}*/
/*.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 { 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 {
    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 ;
	}

}