|
| 1 | +@tailwind base; |
| 2 | +@tailwind components; |
| 3 | +@tailwind utilities; |
| 4 | + |
| 5 | +* { |
| 6 | + /* for debugging purpose */ |
| 7 | + /* @apply border border-red-500 */ |
| 8 | + @apply text-base md:text-lg |
| 9 | +} |
| 10 | + |
| 11 | +.no-transition * { |
| 12 | + -webkit-transition: none !important; |
| 13 | + -moz-transition: none !important; |
| 14 | + -ms-transition: none !important; |
| 15 | + -o-transition: none !important; |
| 16 | + transition: none !important; |
| 17 | +} |
| 18 | + |
| 19 | +body { |
| 20 | + @apply font-sans text-slate-900 bg-sky-50 dark:text-slate-50 dark:bg-slate-800 |
| 21 | +} |
| 22 | + |
| 23 | +main { |
| 24 | + @apply max-w-[calc(100vw-4px)] |
| 25 | +} |
| 26 | + |
| 27 | +h1, h2, h3, h4, h5, h6 { |
| 28 | + @apply font-bold |
| 29 | +} |
| 30 | + |
| 31 | +h1 { |
| 32 | + @apply text-4xl |
| 33 | +} |
| 34 | + |
| 35 | +h2 { |
| 36 | + @apply text-3xl |
| 37 | +} |
| 38 | + |
| 39 | +h3 { |
| 40 | + @apply text-2xl |
| 41 | +} |
| 42 | + |
| 43 | +h4 { |
| 44 | + @apply text-xl |
| 45 | +} |
| 46 | + |
| 47 | +h5 { |
| 48 | + @apply text-lg |
| 49 | +} |
| 50 | + |
| 51 | +h6 { |
| 52 | + @apply text-base |
| 53 | +} |
| 54 | + |
| 55 | +h1, h2, h3, h4, h5, h6, p, ol:not(li ol), ul:not(li ul), dl, blockquote, pre, table { |
| 56 | + @apply leading-relaxed mb-4 |
| 57 | +} |
| 58 | + |
| 59 | +ol { |
| 60 | + @apply list-decimal |
| 61 | +} |
| 62 | + |
| 63 | +ul { |
| 64 | + @apply list-disc |
| 65 | +} |
| 66 | + |
| 67 | +ul, ol { |
| 68 | + @apply pl-5 |
| 69 | +} |
| 70 | + |
| 71 | +.highlight { |
| 72 | + @apply min-w-0 |
| 73 | +} |
| 74 | + |
| 75 | +pre { |
| 76 | + @apply min-w-0 overflow-auto p-4 rounded-lg |
| 77 | +} |
| 78 | + |
| 79 | +pre code span { |
| 80 | + @apply min-w-0 |
| 81 | +} |
| 82 | + |
| 83 | +code:not(pre code) { |
| 84 | + @apply px-2 py-1 rounded-md text-sm bg-gray-300 dark:bg-slate-600 |
| 85 | +} |
| 86 | + |
| 87 | +a { |
| 88 | + @apply text-sky-600 hover:underline dark:text-sky-500 |
| 89 | +} |
| 90 | + |
| 91 | +blockquote { |
| 92 | + @apply bg-sky-100 px-7 py-7 rounded-lg text-slate-600 dark:bg-slate-900 dark:text-slate-300 |
| 93 | +} |
| 94 | + |
| 95 | +table { |
| 96 | + @apply block max-w-fit my-0 mx-auto overflow-x-auto whitespace-nowrap |
| 97 | +} |
| 98 | + |
| 99 | +th, td { |
| 100 | + @apply border border-slate-400 p-2 |
| 101 | +} |
| 102 | + |
| 103 | +thead { |
| 104 | + @apply bg-slate-200 dark:bg-slate-900 |
| 105 | +} |
| 106 | + |
| 107 | +.btn { |
| 108 | + @apply hover:no-underline dark:text-white dark:no-underline |
| 109 | +} |
| 110 | + |
| 111 | +/* syntax highlighter: monokai */ |
| 112 | + |
| 113 | +/* Background */ .bg { color: #f8f8f2; background-color: #272822 } |
| 114 | +/* PreWrapper */ .chroma { color: #f8f8f2; background-color: #272822; } |
| 115 | +/* Other */ .chroma .x { } |
| 116 | +/* Error */ .chroma .err { color: #960050; background-color: #1e0010 } |
| 117 | +/* CodeLine */ .chroma .cl { } |
| 118 | +/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } |
| 119 | +/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } |
| 120 | +/* LineHighlight */ .chroma .hl { background-color: #ffffcc } |
| 121 | +/* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } |
| 122 | +/* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } |
| 123 | +/* Line */ .chroma .line { display: flex; } |
| 124 | +/* Keyword */ .chroma .k { color: #66d9ef } |
| 125 | +/* KeywordConstant */ .chroma .kc { color: #66d9ef } |
| 126 | +/* KeywordDeclaration */ .chroma .kd { color: #66d9ef } |
| 127 | +/* KeywordNamespace */ .chroma .kn { color: #f92672 } |
| 128 | +/* KeywordPseudo */ .chroma .kp { color: #66d9ef } |
| 129 | +/* KeywordReserved */ .chroma .kr { color: #66d9ef } |
| 130 | +/* KeywordType */ .chroma .kt { color: #66d9ef } |
| 131 | +/* Name */ .chroma .n { } |
| 132 | +/* NameAttribute */ .chroma .na { color: #a6e22e } |
| 133 | +/* NameBuiltin */ .chroma .nb { } |
| 134 | +/* NameBuiltinPseudo */ .chroma .bp { } |
| 135 | +/* NameClass */ .chroma .nc { color: #a6e22e } |
| 136 | +/* NameConstant */ .chroma .no { color: #66d9ef } |
| 137 | +/* NameDecorator */ .chroma .nd { color: #a6e22e } |
| 138 | +/* NameEntity */ .chroma .ni { } |
| 139 | +/* NameException */ .chroma .ne { color: #a6e22e } |
| 140 | +/* NameFunction */ .chroma .nf { color: #a6e22e } |
| 141 | +/* NameFunctionMagic */ .chroma .fm { } |
| 142 | +/* NameLabel */ .chroma .nl { } |
| 143 | +/* NameNamespace */ .chroma .nn { } |
| 144 | +/* NameOther */ .chroma .nx { color: #a6e22e } |
| 145 | +/* NameProperty */ .chroma .py { } |
| 146 | +/* NameTag */ .chroma .nt { color: #f92672 } |
| 147 | +/* NameVariable */ .chroma .nv { } |
| 148 | +/* NameVariableClass */ .chroma .vc { } |
| 149 | +/* NameVariableGlobal */ .chroma .vg { } |
| 150 | +/* NameVariableInstance */ .chroma .vi { } |
| 151 | +/* NameVariableMagic */ .chroma .vm { } |
| 152 | +/* Literal */ .chroma .l { color: #ae81ff } |
| 153 | +/* LiteralDate */ .chroma .ld { color: #e6db74 } |
| 154 | +/* LiteralString */ .chroma .s { color: #e6db74 } |
| 155 | +/* LiteralStringAffix */ .chroma .sa { color: #e6db74 } |
| 156 | +/* LiteralStringBacktick */ .chroma .sb { color: #e6db74 } |
| 157 | +/* LiteralStringChar */ .chroma .sc { color: #e6db74 } |
| 158 | +/* LiteralStringDelimiter */ .chroma .dl { color: #e6db74 } |
| 159 | +/* LiteralStringDoc */ .chroma .sd { color: #e6db74 } |
| 160 | +/* LiteralStringDouble */ .chroma .s2 { color: #e6db74 } |
| 161 | +/* LiteralStringEscape */ .chroma .se { color: #ae81ff } |
| 162 | +/* LiteralStringHeredoc */ .chroma .sh { color: #e6db74 } |
| 163 | +/* LiteralStringInterpol */ .chroma .si { color: #e6db74 } |
| 164 | +/* LiteralStringOther */ .chroma .sx { color: #e6db74 } |
| 165 | +/* LiteralStringRegex */ .chroma .sr { color: #e6db74 } |
| 166 | +/* LiteralStringSingle */ .chroma .s1 { color: #e6db74 } |
| 167 | +/* LiteralStringSymbol */ .chroma .ss { color: #e6db74 } |
| 168 | +/* LiteralNumber */ .chroma .m { color: #ae81ff } |
| 169 | +/* LiteralNumberBin */ .chroma .mb { color: #ae81ff } |
| 170 | +/* LiteralNumberFloat */ .chroma .mf { color: #ae81ff } |
| 171 | +/* LiteralNumberHex */ .chroma .mh { color: #ae81ff } |
| 172 | +/* LiteralNumberInteger */ .chroma .mi { color: #ae81ff } |
| 173 | +/* LiteralNumberIntegerLong */ .chroma .il { color: #ae81ff } |
| 174 | +/* LiteralNumberOct */ .chroma .mo { color: #ae81ff } |
| 175 | +/* Operator */ .chroma .o { color: #f92672 } |
| 176 | +/* OperatorWord */ .chroma .ow { color: #f92672 } |
| 177 | +/* Punctuation */ .chroma .p { } |
| 178 | +/* Comment */ .chroma .c { color: #75715e } |
| 179 | +/* CommentHashbang */ .chroma .ch { color: #75715e } |
| 180 | +/* CommentMultiline */ .chroma .cm { color: #75715e } |
| 181 | +/* CommentSingle */ .chroma .c1 { color: #75715e } |
| 182 | +/* CommentSpecial */ .chroma .cs { color: #75715e } |
| 183 | +/* CommentPreproc */ .chroma .cp { color: #75715e } |
| 184 | +/* CommentPreprocFile */ .chroma .cpf { color: #75715e } |
| 185 | +/* Generic */ .chroma .g { } |
| 186 | +/* GenericDeleted */ .chroma .gd { color: #f92672 } |
| 187 | +/* GenericEmph */ .chroma .ge { font-style: italic } |
| 188 | +/* GenericError */ .chroma .gr { } |
| 189 | +/* GenericHeading */ .chroma .gh { } |
| 190 | +/* GenericInserted */ .chroma .gi { color: #a6e22e } |
| 191 | +/* GenericOutput */ .chroma .go { } |
| 192 | +/* GenericPrompt */ .chroma .gp { } |
| 193 | +/* GenericStrong */ .chroma .gs { font-weight: bold } |
| 194 | +/* GenericSubheading */ .chroma .gu { color: #75715e } |
| 195 | +/* GenericTraceback */ .chroma .gt { } |
| 196 | +/* GenericUnderline */ .chroma .gl { } |
| 197 | +/* TextWhitespace */ .chroma .w { } |
0 commit comments