편집 요약 없음 |
편집 요약 없음 |
||
215번째 줄: | 215번째 줄: | ||
.hanja-info-table .variants { /* 이체자 모음 */ | .hanja-info-table .variants { /* 이체자 모음 */ | ||
display: flex; | display: flex; | ||
text-align: center; | |||
} | } | ||
.hanja-info-table .variant { /* 이체자 사진 or 글자 */ | .hanja-info-table .variant { /* 이체자 사진 or 글자 */ |
2024년 5월 11일 (토) 02:06 판
.hanja-info-header, .hanja-info {
--border-color: #d0dbe3;
}
/*** {한자 정보} 헤드 國 나라 (국) ***/
ul.hanja-projectlink {
margin: 0 !important;
}
ul.hanja-projectlink li {
border-left: 1px solid var(--border-color);
padding: 0 0.8em;
display: inline-block;
}
ul.hanja-projectlink li:first-child {
border: none !important;
}
.hanja-info-header > hr {
margin-top: 0.5rem;
}
.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 var(--border-color);
padding: 0.2em 0.6em 0.3em 0.8em;
}
.hanja-info-header #toc > ul > li:first-child > a:first-child > .toctext {
border-left: none;
}
.hanja-info-header .hanja {
font-family: Noto Sans KR, sans-serif;
font-size: 2em;
}
.hanja-info-header .hanja a {
font-weight: 400;
}
.hanja-info-header.is-hanja-dict .hanja a:not(.new) {
color: inherit;
cursor: default;
pointer-events: none;
text-decoration: none;
}
.hanja-info {
width: 20em;
float: right;
clear: right;
margin: 0 0 1em 1em;
padding: 0 1rem!important;
}
.hanja-info-header.onlyhanja {
display: inline-block;
}
/*** 한자 정보에 내장된 탭, 모바일, etc ***/
.hanja-info .libre-tab .libre-tab-btns {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0 !important/*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;
cursor: pointer;
border-bottom: 2px solid #e1e8ed;
transition: background 0.2s;
}
/*.hanja-info .libre-tab .libre-tab-btn:first-child { border-radius: 0.25em 0 0 0; }
.hanja-info .libre-tab .libre-tab-btn:last-child { border-radius: 0 0.25em 0 0; }*/
.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 !important;
}
.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% !important ;
}
}
@media screen and (max-width: 520px) {
.hanja-info {
width: 100%;
margin: auto;
margin-bottom: 1em;
float: none;
clear: both;
}
}
/*** {한자 정보} 내부 ***/
.hanja-info-table {
width: 100%;
}
.hanja-info-table [lang='zh-tw'] {font-family: Noto Serif TC, Noto Serif CJK TC, serif;}
/* 표 셀 */
.hanja-info-table > tbody > tr > th,
.hanja-info-table > tbody > tr > td {
padding: 0.25rem 0;
border-bottom: 1px solid #e1e8ed;
}
.hanja-info-table > tbody > tr:last-child > th ,
.hanja-info-table > tbody > tr:last-child > td {
border-bottom: none;
padding-bottom: 0.5em;
}
/* 소리, 뜻 ... */
.hanja-info-table > tbody > tr > th {
width: 6em;
}
.hanja-info-table th span:lang(ja) {font-family: sans-serif;}
.hanja-info-table td[colspan="2"] {
text-align: center;
}
.hanja-info-table td.unicodechar-sub {
font-weight: inherit;
}
/*** 한자 정보 유니코드 틀 ***/
.hanja-info-table .unicodechar {
border:none !important; width: 100%;
}
/* 폰트 지정 */
.hanja-info-table .unicodechar [lang='ko'] {
font-family: Noto Serif KR,Noto Serif SC,Noto Serif JP,Noto Serif CJK KR,
Yu Mincho, SimSun, serif;
}
.hanja-info-table .unicodechar [lang='zh-cn'] { font-family: Noto Serif SC, Noto Serif CJK SC, serif;}
.hanja-info-table .unicodechar [lang='ja'] {font-family: Noto Serif JP, Noto Serif CJK JP, serif;}
.hanja-info-table .unicodechar th {
text-align: center;
font-size: medium;
color: gray;
}
.hanja-info-table .unicodechar td {
}
.hanja-info-table .unicodechar th, .hanja-info-table .unicodechar td {
border: none !important;
padding: 0;
}
.hanja-info-table .unicodechar td.unicodechar-char div:first-child /* 雨 U+96E8 */ {
line-height: 100% !important;
height: 1em !important;
font-size: 5.5em !important;
}
.hanja-info-table .unicodechar td.unicodechar-char div b /* 雨 */ {
font-weight: normal !important;
}
.hanja-info-table .unicodechar-box {
padding: 0.2rem 0 0 !important;
}
.hanja-info-table .unicodechar-arrow {
display: none;
}
.hanja-info-table .unicodechar-prev,
.hanja-info-table .unicodechar-next {
font-size: 3em !important;
}
/*** 이체자 표기 ***/
.hanja-info-table .variants { /* 이체자 모음 */
display: flex;
text-align: center;
}
.hanja-info-table .variant { /* 이체자 사진 or 글자 */
display: flex;
font-size: 2.5em;
flex-direction: column;
align-items: center;
}
.hanja-info-table .variant > span {
line-height: 1.1em;
}
.hanja-info-table .variant img {
width: 1em;
vertical-align: bottom;
}
.hanja-info-table .variant .reference a {
font-size: small;
vertical-align: text-top;
}
/*** 한자 획수 ***/
.hanja-strokeorder .mw-collapsible {
position: relative;
}
.hanja-strokeorder .mw-collapsible-toggle {
right: 0;
position: absolute;
}
.hanja-strokeorder .mw-collapsible-text {
display: none;
}
.hanja-strokeorder .mw-collapsible-toggle-default {
transition: 0.2s ease-out;
}
.hanja-strokeorder .mw-collapsible-toggle-default:before {
content: "\f078";
font-family: "Font Awesome 5 Free";
font-weight: 900;
}
.hanja-strokeorder .mw-collapsible-toggle-default:after {
content: "";
}
.hanja-strokeorder .mw-collapsible-toggle-expanded {
transform: scale(-1);
}