@import url('https://fonts.googleapis.com/css?family=Nova+Flat'); /* @import 'tailwindcss/base'; */ /* common base styles */ .frontcover{ margin-left: auto; margin-right: auto; text-align: center; /* colors don't work using @apply for some reason... even background below */ color: #fff; } .frontcover > h1{ position: absolute; top: 50%; left: 50%; width: 100%; --tw-translate-x: -50%; --tw-translate-y: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); border-radius: 1.5rem; padding: 1rem; font-family: Nova Flat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 4.5rem; line-height: 1; font-weight: 700; --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); background: #334155; } .frontcover > span{ position: absolute; bottom: 0px; left: 50%; width: 100%; --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); border-radius: 1.5rem; padding: 1rem; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); background: #4338ca; } .frontcover > span:before { content: 'by '; } /* use this to style the web */ /* style the web */ @media screen { body { background: #0f172a; } .container{ margin-left: auto; margin-right: auto; } .frontcover{ position: relative; height: 100vh; max-width: 36rem; background-image: url('./cover.png'); background-size: cover; background-position: center; background-repeat: no-repeat; } .frontcover > h1{ font-size: 3rem; line-height: 1; } .frontcover > span{ position: absolute; bottom: 5rem; font-size: 1.5rem; line-height: 2rem; } } /* use this only for print */ /* style the print */ @media print { @page { size: 6.6in 8.5in; margin: 70pt 60pt 70pt; } @page cover { background: url('./cover.png'); background-size: cover; } .frontcover { page: cover; page-break-after: always; } .pagebreak::before { content: ' '; display: block; page-break-after: always; } #toc > h1, h1.chapter { font-size: 32pt; font-weight: 900; } h2.subtitle { font-size: 28pt; font-weight: 900; } h1, h2 { -moz-column-break-before: page; break-before: page; } img { background: red; width: 125%; margin-left: -5%; margin-right: -5%; } /* table of contents start */ #toc { -moz-column-break-before: page; break-before: page; } #toc ol { list-style-type: none; } #toc a:after { content: leader('. ') target-counter(attr(href), page); } #toc a { text-decoration: none; } /* table of contents end */ } .container{ width: 100%; } @media (min-width: 640px){ .container{ max-width: 640px; } } @media (min-width: 768px){ .container{ max-width: 768px; } } @media (min-width: 1024px){ .container{ max-width: 1024px; } } @media (min-width: 1280px){ .container{ max-width: 1280px; } } @media (min-width: 1536px){ .container{ max-width: 1536px; } } .ml-3{ margin-left: 0.75rem; } .table{ display: table; } .contents{ display: contents; }