40 lines
1.1 KiB
CSS
40 lines
1.1 KiB
CSS
@import 'tailwindcss';
|
|
|
|
@theme {
|
|
--font-sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
|
|
--font-jua: 'Jua', 'Pretendard Variable', sans-serif;
|
|
--font-bagel: 'Bagel Fat One', 'Jua', sans-serif;
|
|
--font-batang: 'Gowun Batang', 'Nanum Myeongjo', serif;
|
|
|
|
--color-ink: #28304a;
|
|
--color-page: #f7fbff;
|
|
--color-rain: #4f97e3;
|
|
}
|
|
|
|
@layer base {
|
|
html {
|
|
word-break: keep-all;
|
|
overflow-wrap: break-word;
|
|
-webkit-text-size-adjust: 100%;
|
|
}
|
|
body {
|
|
@apply bg-page font-sans text-ink antialiased;
|
|
/* 앱처럼: 끌어도 글자가 선택되지 않게. 입력칸은 아래에서 다시 허용 */
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
:is(input, textarea, [contenteditable='true']) {
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
}
|
|
/* 아이폰 사파리는 16px 보다 작은 입력칸을 누르면 화면을 확대한다 */
|
|
:is(input, textarea, select) {
|
|
font-size: max(16px, 1em);
|
|
}
|
|
:focus-visible {
|
|
outline: 3px solid var(--color-rain);
|
|
outline-offset: 3px;
|
|
}
|
|
}
|