|
| 1 | +@tailwind base; |
| 2 | +@tailwind components; |
| 3 | +@tailwind utilities; |
| 4 | + |
| 5 | +@layer base { |
| 6 | + html { |
| 7 | + /*font-size: 17px;*/ |
| 8 | + } |
| 9 | + |
| 10 | + body { |
| 11 | + @apply antialiased leading-relaxed; |
| 12 | + } |
| 13 | + |
| 14 | +} |
| 15 | + |
| 16 | +@layer components { |
| 17 | + .container { |
| 18 | + @apply mx-auto px-12; |
| 19 | + } |
| 20 | + .emoji { |
| 21 | + @apply inline-block w-5 h-5 align-text-top my-0; |
| 22 | + } |
| 23 | + .text-2xl .emoji { |
| 24 | + @apply w-6 h-6; |
| 25 | + } |
| 26 | + dt .emoji { |
| 27 | + @apply mr-2 -mt-1 align-text-bottom; |
| 28 | + } |
| 29 | + [data-tippy-content] { |
| 30 | + cursor: help; |
| 31 | + } |
| 32 | + |
| 33 | + |
| 34 | + .prose a { |
| 35 | + @apply text-indigo-600; |
| 36 | + } |
| 37 | + |
| 38 | + .prose a:hover { |
| 39 | + @apply text-indigo-800; |
| 40 | + } |
| 41 | + |
| 42 | + .dark { |
| 43 | + .prose a { |
| 44 | + @apply text-indigo-400; |
| 45 | + } |
| 46 | + |
| 47 | + .prose a:hover { |
| 48 | + @apply text-indigo-500; |
| 49 | + } |
| 50 | + |
| 51 | + .prose hr { |
| 52 | + @apply border-gray-800; |
| 53 | + } |
| 54 | + } |
| 55 | +} |
| 56 | + |
| 57 | +@layer utilities { |
| 58 | + @variants group-hover, hover { |
| 59 | + .rainbow { |
| 60 | + background: linear-gradient(124deg, #ff2400, #e81d1d, #e8b71d, #e3e81d, #1de840, #1ddde8, #2b1de8, #dd00f3, #dd00f3); |
| 61 | + background-size: 1800% 1800%; |
| 62 | + background-clip: text; |
| 63 | + color: transparent; |
| 64 | + |
| 65 | + -webkit-animation: rainbow 18s ease infinite; |
| 66 | + -z-animation: rainbow 18s ease infinite; |
| 67 | + -o-animation: rainbow 18s ease infinite; |
| 68 | + animation: rainbow 18s ease infinite; |
| 69 | + } |
| 70 | + } |
| 71 | + |
| 72 | + @-webkit-keyframes rainbow { |
| 73 | + 0%{background-position:0% 82%} |
| 74 | + 50%{background-position:100% 19%} |
| 75 | + 100%{background-position:0% 82%} |
| 76 | + } |
| 77 | + @-moz-keyframes rainbow { |
| 78 | + 0%{background-position:0% 82%} |
| 79 | + 50%{background-position:100% 19%} |
| 80 | + 100%{background-position:0% 82%} |
| 81 | + } |
| 82 | + @-o-keyframes rainbow { |
| 83 | + 0%{background-position:0% 82%} |
| 84 | + 50%{background-position:100% 19%} |
| 85 | + 100%{background-position:0% 82%} |
| 86 | + } |
| 87 | + @keyframes rainbow { |
| 88 | + 0%{background-position:0% 82%} |
| 89 | + 50%{background-position:100% 19%} |
| 90 | + 100%{background-position:0% 82%} |
| 91 | + } |
| 92 | +} |
0 commit comments