|
| 1 | +@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700"); |
| 2 | +@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:wght@100..700"); |
| 3 | +@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css"); |
| 4 | + |
| 5 | +@import "tailwindcss"; |
| 6 | + |
| 7 | +@layer base { |
| 8 | + html, |
| 9 | + body { |
| 10 | + @apply h-full; |
| 11 | + |
| 12 | + font-family: |
| 13 | + "Pretendard Variable", |
| 14 | + Pretendard, |
| 15 | + -apple-system, |
| 16 | + BlinkMacSystemFont, |
| 17 | + system-ui, |
| 18 | + Roboto, |
| 19 | + "Helvetica Neue", |
| 20 | + "Segoe UI", |
| 21 | + "Apple SD Gothic Neo", |
| 22 | + "Noto Sans KR", |
| 23 | + "Malgun Gothic", |
| 24 | + "Apple Color Emoji", |
| 25 | + "Segoe UI Emoji", |
| 26 | + "Segoe UI Symbol", |
| 27 | + sans-serif; |
| 28 | + |
| 29 | + -webkit-font-smoothing: antialiased; |
| 30 | + |
| 31 | + line-height: 1.2; |
| 32 | + } |
| 33 | +} |
| 34 | + |
| 35 | +/* https://dev.to/derick1530/how-to-create-scrollable-element-in-tailwind-without-a-scrollbar-4mbd */ |
| 36 | +@layer utilities { |
| 37 | + /* Hide scrollbar for Chrome, Safari and Opera */ |
| 38 | + .no-scrollbar::-webkit-scrollbar { |
| 39 | + display: none; |
| 40 | + } |
| 41 | + |
| 42 | + /* Hide scrollbar for IE, Edge and Firefox */ |
| 43 | + .no-scrollbar { |
| 44 | + -ms-overflow-style: none; /* IE and Edge */ |
| 45 | + scrollbar-width: none; /* Firefox */ |
| 46 | + } |
| 47 | + |
| 48 | + .styled-scrollbar::-webkit-scrollbar { |
| 49 | + width: 10px; |
| 50 | + height: 5px; |
| 51 | + } |
| 52 | + |
| 53 | + .styled-scrollbar::-webkit-scrollbar-track { |
| 54 | + background-color: #f5f5f5; |
| 55 | + border-radius: 10px; |
| 56 | + } |
| 57 | + |
| 58 | + .styled-scrollbar::-webkit-scrollbar-thumb { |
| 59 | + background-color: #d4d4d4; |
| 60 | + background-clip: padding-box; |
| 61 | + border: 1px solid transparent; |
| 62 | + border-radius: 10px; |
| 63 | + } |
| 64 | + |
| 65 | + /* https://github.com/tailwindlabs/tailwindcss/discussions/8679#discussioncomment-4741637 */ |
| 66 | + /* https://github.com/tailwindlabs/tailwindcss/discussions/8679#discussioncomment-6577036 */ |
| 67 | + .autofill-bg-white:-webkit-autofill, |
| 68 | + .autofill-bg-white:-webkit-autofill:hover, |
| 69 | + .autofill-bg-white:-webkit-autofill:focus, |
| 70 | + .autofill-bg-white:-webkit-autofill:active { |
| 71 | + -webkit-text-fill-color: #262626 !important; |
| 72 | + -webkit-box-shadow: 0 0 0px 1000px #ffffff inset; |
| 73 | + box-shadow: 0 0 0px 1000px #ffffff inset; |
| 74 | + transition: background-color 5000s ease-in-out 0s; |
| 75 | + caret-color: #262626; |
| 76 | + } |
| 77 | + |
| 78 | + .autofill-bg-neutral-100:-webkit-autofill, |
| 79 | + .autofill-bg-neutral-100:-webkit-autofill:hover, |
| 80 | + .autofill-bg-neutral-100:-webkit-autofill:focus, |
| 81 | + .autofill-bg-neutral-100:-webkit-autofill:active { |
| 82 | + -webkit-text-fill-color: #262626 !important; |
| 83 | + -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset; |
| 84 | + box-shadow: 0 0 0px 1000px #f5f5f5 inset; |
| 85 | + transition: background-color 5000s ease-in-out 0s; |
| 86 | + caret-color: #262626; |
| 87 | + } |
| 88 | + |
| 89 | + .autofill-bg-neutral-200:-webkit-autofill, |
| 90 | + .autofill-bg-neutral-200:-webkit-autofill:hover, |
| 91 | + .autofill-bg-neutral-200:-webkit-autofill:focus, |
| 92 | + .autofill-bg-neutral-200:-webkit-autofill:active { |
| 93 | + -webkit-text-fill-color: #262626 !important; |
| 94 | + -webkit-box-shadow: 0 0 0px 1000px #e5e5e5 inset; |
| 95 | + box-shadow: 0 0 0px 1000px #e5e5e5 inset; |
| 96 | + transition: background-color 5000s ease-in-out 0s; |
| 97 | + caret-color: #262626; |
| 98 | + } |
| 99 | + |
| 100 | + .truncate-multi { |
| 101 | + text-overflow: ellipsis; |
| 102 | + overflow: hidden; |
| 103 | + word-break: break-word; |
| 104 | + display: -webkit-box; |
| 105 | + -webkit-line-clamp: 2; |
| 106 | + -webkit-box-orient: vertical; |
| 107 | + } |
| 108 | + |
| 109 | + .truncate-single { |
| 110 | + text-overflow: ellipsis; |
| 111 | + overflow: hidden; |
| 112 | + word-break: break-word; |
| 113 | + display: -webkit-box; |
| 114 | + -webkit-line-clamp: 1; |
| 115 | + -webkit-box-orient: vertical; |
| 116 | + } |
| 117 | +} |
0 commit comments