| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- .chapter-page {
- @apply w-full flex-1 py-5 px-5 bg-white;
- @apply lg:w-0 lg:max-w-3xl lg:px-10 lg:border-x lg:border-x-gray-200;
- :global(.dark) & {
- @apply bg-gray-800 border-x-gray-700;
- }
- }
- .chapter-header {
- @apply flex px-5 items-center relative;
- @apply lg:sticky;
- &.open {
- @apply sticky;
- }
- }
- .chapter-main {
- @apply flex justify-center bg-gray-100 lg:pr-12 lg:min-h-[calc(100vh-65px)];
- :global(.dark) & {
- @apply bg-gray-900;
- }
- }
- .novel {
- @apply w-full;
- header {
- @apply mb-5;
- }
- h1 {
- @apply text-3xl font-bold;
- }
- h2 {
- @apply text-2xl font-bold;
- }
- p {
- @apply my-[1em] leading-[1.5];
- }
- }
- .toolbar {
- color-scheme: dark;
- @apply fixed bottom-0 left-0 w-full bg-gray-900 z-30 text-gray-400; // hidden;
- @apply lg:bg-gray-800 lg:right-0 lg:w-auto lg:left-auto lg:h-full lg:flex lg:items-center lg:justify-center;
- .toolbar-items {
- @apply flex lg:flex-col lg:w-full;
- }
- .toolbar-item {
- // position: relative;
- // display: flex;
- // height: 100%;
- // flex-basis: 100%;
- // cursor: pointer;
- // flex-direction: column;
- // align-items: center;
- // justify-content: center;
- // gap: 0.25rem;
- // border-color: currentColor;
- @apply flex-1 flex items-center justify-center py-5 lg:border-t lg:border-t-gray-900 lg:p-4 lg:hover:bg-gray-700 lg:last:border-b lg:last:border-b-gray-900;
- svg {
- @apply w-5 h-5 lg:w-4 lg:h-4;
- }
- &.toolbar-item-current {
- @apply lg:bg-blue-700 text-white;
- }
- }
- }
- .toolbar-display {
- color-scheme: dark;
- @apply fixed bottom-0 left-0 w-full bg-gray-900 text-gray-100 z-30 pt-4 pb-16 px-5 shadow-xl shadow-white/10;
- @apply lg:w-96 lg:max-h-[calc(100vh-65px)] lg:sticky lg:top-[65px] lg:pb-4 lg:px-0;
- .toolbar-display-title {
- @apply text-base mb-2;
- }
- .toolbar-display-label {
- @apply text-sm mb-2 mt-5;
- }
- // :global(.btn-group){
- // @apply w-full;
- // }
- .toolbar-inner {
- @apply max-h-[70vh] flex flex-col flex-1 flex-shrink-0;
- @apply lg:max-h-full lg:px-5;
- .toolbar-scrollbar {
- @apply -mr-5 pr-5;
- }
- ol {
- // @apply flex-1 h-0 overflow-y-auto;
- // @apply -mr-5 pr-5;
- li {
- a {
- @apply flex w-full h-full py-1;
- &:hover {
- strong {
- text-decoration: underline;
- }
- }
- }
- i {
- @apply w-11 mr-1 flex-shrink-0 not-italic text-slate-400;
- }
- strong {
- @apply block font-normal flex-1 whitespace-nowrap w-0 overflow-hidden text-ellipsis text-gray-100;
- }
- small {
- @apply text-slate-400 ml-2;
- }
- &.current {
- a strong {
- @apply text-blue-300 font-extrabold;
- }
- }
- }
- }
- }
- }
|