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

(줄 높이 세부조정)
편집 요약 없음
117번째 줄: 117번째 줄:
     font-size: medium;
     font-size: medium;
     padding: 0;
     padding: 0;
    line-height: 1.3em;
     color: gray;
     color: gray;
}
}

2022년 2월 11일 (금) 14:50 판

/*** 시리즈:리브레 한자사전 메인페이지 ***/
.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 .mean i:before, .hanja-info-head .mean i:after { font-family: Hankc; } /* 전각 괄호 반각화 */
.hanja-info-head .mean i:before { content: '〔'; }
.hanja-info-head .mean 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-info-head, .hanja-projectlink {
	margin-bottom: 0.5em;
}
.hanja-projectlink {
	display: inline-block;
}
.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 div :lang(ko) {font-family: Noto Serif CJK KR, Noto Serif KR, serif;}
.hanja-info .unicodechar div :lang(zh-cn) {font-family: Noto Serif CJK KR, Noto Serif SC, serif;}
.hanja-info .unicodechar div :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 .variant img {
	width: 1em;
	vertical-align: bottom;
}

.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 .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-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: 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;
	}
}