diff options
| author | Factiven <[email protected]> | 2023-04-11 23:23:29 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-11 23:23:29 +0700 |
| commit | 1fcdd9f7d859b925bf92265f441655d5522e351c (patch) | |
| tree | 86391522f6fcc70d105f7e796a9f91d132ee4a29 /styles/globals.css | |
| parent | Initial commit (diff) | |
| download | moopa-1fcdd9f7d859b925bf92265f441655d5522e351c.tar.xz moopa-1fcdd9f7d859b925bf92265f441655d5522e351c.zip | |
initial commit
Diffstat (limited to 'styles/globals.css')
| -rw-r--r-- | styles/globals.css | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/styles/globals.css b/styles/globals.css new file mode 100644 index 0000000..e8ab602 --- /dev/null +++ b/styles/globals.css @@ -0,0 +1,124 @@ +@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Outfit:wght@100;200;300;400;500;600;700;800;900&family=Ramabhadra&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"); +@tailwind base; +@tailwind components; +@tailwind utilities; + +@media (max-width: 768px) { + svg { + height: 90%; + } +} + +body { + @apply bg-[#131313] scrollbar-hide; +} + +@layer components { + .flex-center { + @apply flex justify-center items-center; + } +} + +.tooltiptext { + visibility: hidden; + opacity: 0; + min-width: fit-content; +} + +.tooltip:hover .tooltiptext { + visibility: visible; + opacity: 1; +} + +.nav-hidden { + top: -100%; +} + +a { + -webkit-tap-highlight-color: transparent; +} + +button { + -webkit-tap-highlight-color: transparent; +} + +.chapter-button { + @apply h-auto w-20 scale-100 rounded-full border-[1px] text-center md:w-40 md:scale-90 md:rounded-3xl md:border-2 md:p-3 md:text-2xl; +} + +.search-box { + position: absolute; + display: flex; + top: 50%; + left: 50%; + transform: translate(-100%, 0%); + background: #2f3640; + height: 40px; + border-radius: 40px; + @apply h-12; +} + +.search-box:hover > .search-text { + width: 240px; + padding: 0 19px; + @apply py-2; +} + +.search-box:hover > .search-btn { + background: white; + color: black; +} + +.search-btn { + color: #e84118; + float: right; + width: 40px; + height: 40px; + border-radius: 50%; + background: #2f3640; + display: flex; + justify-content: center; + align-items: center; + transition: 0.4s; + cursor: pointer; + text-decoration: none; + @apply h-12 w-12; +} +.search-btn > i { + fontsize: 30px; +} + +.search-text { + border: none; + background: none; + outline: none; + float: left; + padding: 0; + color: white; + font-size: 16px; + font-weight: normal; + transition: 0.4s; + line-height: 30px; + width: 0px; + + /* width: 250px; */ +} + +.title-overflow { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + white-space: normal; +} + +.banner { + transform: translateY(-50%); + position: absolute; + top: 50%; + left: 0; + width: 100%; + height: 100%; + z-index: -1; +} |