1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579 |
- /*
- style.css is generated from style.scss
- do not edit style.css
- edit style.scss
- */
- /* adopted from https://piccalil.li/blog/a-more-modern-css-reset/ */
- @layer reset {
- /* Box sizing rules */
- *,
- *::before,
- *::after {
- box-sizing: border-box;
- }
- /* Prevent font size inflation */
- html {
- -moz-text-size-adjust: none;
- -webkit-text-size-adjust: none;
- text-size-adjust: none;
- }
- /* Remove default margin in favour of better control in authored CSS */
- body,
- h1,
- h2,
- h3,
- h4,
- p,
- figure,
- blockquote,
- dl,
- dd {
- margin-block-end: 0;
- }
- /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
- ul[role='list'],
- ol[role='list'] {
- list-style: none;
- }
- /* Fix list style to not indent */
- ul,
- ol,
- menu {
- padding-inline-start: 1.5em;
- }
- li {
- padding-inline-start: 0.25em;
- }
- /* Set core body defaults */
- body {
- min-height: 100vh;
- line-height: 1.5;
- }
- /* Set shorter line heights on headings and interactive elements */
- h1,
- h2,
- h3,
- h4,
- button,
- input,
- label {
- line-height: 1.1;
- }
- /* Balance text wrapping on headings */
- h1,
- h2,
- h3,
- h4 {
- text-wrap: balance;
- }
- /* A elements that don't have a class get default styles */
- a:not([class]) {
- text-decoration-skip-ink: auto;
- color: currentColor;
- }
- /* Make images easier to work with */
- img,
- picture {
- // max-width: 100%;
- display: block;
- }
- /* Inherit fonts for inputs and buttons */
- input,
- button,
- textarea,
- select {
- font-family: inherit;
- font-size: inherit;
- }
- /* Make sure textareas without a rows attribute are not tiny */
- textarea:not([rows]) {
- min-height: 10em;
- }
- /* Anything that has been anchored to should have extra scroll margin */
- :target {
- scroll-margin-block: 5ex;
- }
- }
- $bg: #131516;
- $bg-secondary: #222;
- $fg: #fff;
- $fg-secondary: #aaa;
- $link: #118bee;
- $highlight: #fc365b;
- $border-radius: 5px;
- $line-height: 1.5;
- $active-brightness: 0.85;
- $hover-brightness: 1.2;
- $box-shadow: 2px 2px 10px;
- $color-shadow: #bbbbbb20;
- $font-family: "Roboto", "Open Sans", "Noto Sans", sans-serif, "Noto Sans CJK JP";
- $small-artwork-width: 184px;
- $large-artwork-width: 288px;
- $novel-width: 392px;
- $small-breakpoint: 440px;
- html {
- font-size: 62.5%;
- }
- body {
- top: 0;
- margin: 0;
- background-color: $bg;
- color: $fg;
- font-size: 1.8rem;
- font-family: $font-family;
- margin-bottom: 10px;
- }
- main {
- @media (min-width: $small-breakpoint) {
- margin-inline: 5px;
- }
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin-block-end: 0.5em;
- }
- h1 {
- font-size: 1.5em;
- }
- h2 {
- font-size: 1.17em;
- }
- h3 {
- font-size: 1em;
- }
- h4 {
- font-size: 0.83em;
- }
- h5 {
- font-size: 0.67em;
- }
- h6 {
- font-size: 0.50em;
- }
- a {
- color: $link;
- text-decoration: none;
- }
- /* Scrollbars */
- * {
- scrollbar-width: thin;
- // invalid line
- // scrollbar-color: $link auto;
- }
- *::-webkit-scrollbar {
- width: 5px;
- height: 5px;
- }
- *::-webkit-scrollbar-track {
- background: transparent;
- }
- *::-webkit-scrollbar-thumb {
- background-color: $link;
- border-radius: 10px;
- }
- .special-symbol {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 1.8rem;
- height: 1.8rem;
- font-size: 1.8rem;
- }
- [hidden] {
- display: none;
- }
- input,
- label,
- select,
- textarea {
- display: block;
- font-size: inherit;
- max-width: 600px;
- }
- input[type="checkbox"],
- input[type="radio"] {
- display: inline-block;
- }
- input[type="checkbox"]+label,
- input[type="radio"]+label {
- display: inline-flex;
- flex-direction: column;
- font-weight: normal;
- position: relative;
- top: 1px;
- }
- input[type="range"] {
- padding: 0.4rem 0;
- }
- input,
- select,
- textarea {
- border: 1px solid $bg-secondary;
- border-radius: $border-radius;
- margin-bottom: 1rem;
- padding: 0.4rem 0.8rem;
- }
- input[type="text"],
- textarea {
- width: calc(100% - 1.6rem);
- background-color: $bg-secondary;
- color: $fg-secondary;
- }
- input[readonly],
- textarea[readonly] {
- background-color: $bg-secondary;
- }
- .form-field {
- border: 1px solid $bg-secondary;
- border-radius: $border-radius;
- box-shadow: $box-shadow $color-shadow;
- display: block;
- max-width: 800px;
- min-width: 460px;
- padding: 1.5rem;
- margin: 0.5rem 0;
- header {
- margin: 1.5rem 0;
- padding: 1.5rem 0;
- }
- label {
- font-weight: bold;
- margin-bottom: 0.2rem;
- }
- }
- a b,
- a em,
- a i,
- a strong,
- button,
- input[type="submit"],
- .switch-button,
- .pagination-button {
- border-radius: $border-radius;
- display: inline-block;
- font-size: medium;
- font-weight: bold;
- line-height: $line-height;
- margin: 0.5rem 0;
- padding: 0.5rem 1rem;
- }
- button,
- input[type="submit"],
- .switch-button,
- .pagination-button {
- font-family: $font-family;
- }
- button:active,
- input[type="submit"]:active,
- .switch-button:active,
- .pagination-button:active {
- filter: brightness($active-brightness);
- }
- button:hover,
- input[type="submit"]:hover,
- .switch-button:hover,
- .pagination-button:hover {
- cursor: pointer;
- filter: brightness($hover-brightness);
- }
- a b,
- a strong,
- button,
- input[type="submit"],
- .switch-button,
- .pagination-button {
- background-color: $link;
- color: $fg;
- }
- input[type="submit"][hidden] {
- display: none;
- }
- .switch-button[selected="1"] {
- background: $highlight;
- }
- .switch-seperator {
- display: inline-block;
- margin-left: 10px;
- }
- .pagination {
- text-align: center;
- form {
- display: inline-block;
- }
- .pagination-buttons {
- text-align: center;
- input {
- width: 5em;
- }
- }
- .pagination-button {
- margin-right: 5px;
- }
- #highlight {
- filter: brightness($hover-brightness);
- }
- .disabled {
- pointer-events: none;
- background-color: $bg-secondary;
- filter: brightness(1);
- }
- }
- .tabs {
- margin-top: 1rem;
- margin-bottom: 1rem;
- border: 1px solid white;
- border-radius: 3px;
- overflow: hidden;
- display: flex;
- flex-wrap: wrap;
- input[type="radio"]:checked + label + .tabs-content {
- display: block;
- }
- .tabs-content {
- order: 999;
- width: 100%;
- border-top: 1px solid white;
- padding: .5rem 1rem 1rem;
- display: none;
- }
- }
- #site-config {
- display: none;
- }
- // https://stackoverflow.com/questions/63787241/css-how-to-create-an-infinitely-moving-repeating-linear-gradient/63787567#63787567
- #loading-indicator {
- z-index: 2;
- isolation: isolate;
- position: sticky;
- top: 0;
- height: 4px;
- margin-bottom: -4px;
- // background-size: 200px auto;
- animation: rolling-something 1s linear infinite;
- background-image: repeating-linear-gradient(-0.25turn, $link 0vw, transparent 40vw);
- background-size: 80vw auto;
- will-change: opacity;
- transition: opacity 0.3s;
- opacity: 0;
- &.htmx-request {
- opacity: 1;
- transition-duration: 1s;
- transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
- }
- }
- @keyframes rolling-something {
- 0% {
- background-position-x: 0vw
- }
- 100% {
- background-position-x: 40vw
- }
- }
- nav {
- margin-bottom: 15px;
- padding-left: 20px;
- padding-right: 20px;
- .navigation-wrapper {
- padding-block: 15px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: auto;
- }
- // .navbar-shadow {
- // width: 100%;
- // height: 10px;
- // background: repeating-linear-gradient(
- // 52.5deg,
- // rgba(32, 32, 32, 0.7),
- // rgba(32, 32, 32, 0.7) 14px,
- // rgba(240, 248, 255, 0) 14px,
- // rgba(240, 248, 255, 0) 28px
- // );
- // }
- .sidebar-container {
- height: 30px;
- }
- .navbar-brand {
- display: inline-flex;
- align-items: center;
- gap: 10px;
- span {
- font-weight: bold;
- font-size: 1.3em;
- color: $fg;
- }
- }
- .navbar-entry {
- display: flex;
- img {
- width: 30px;
- height: 30px;
- }
- }
- .search-form {
- display: flex;
- gap: 4px;
- margin-left: 8px;
- align-items: center;
- input {
- margin: 0;
- }
- }
- .sidebar-toggler {
- display: none;
- &:checked~.sidebar {
- transform: translateX(0);
- }
- }
- .sidebar-label {
- display: flex;
- margin-right: 20px;
- cursor: pointer;
- }
- .sidebar {
- z-index: 1;
- isolation: isolate;
- background-color: $bg;
- position: absolute;
- padding-top: 6px;
- left: 0;
- width: 220px;
- transform: translateX(-220px);
- transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
- br {
- align-self: stretch;
- margin-top: 10px;
- }
- }
- .sidebar-list {
- list-style-type: none;
- margin: 0;
- padding: 0;
- }
- .sidebar-item {
- display: flex;
- align-items: center;
- list-style: none;
- color: $fg;
- font-size: 0.9em;
- text-decoration: none;
- padding: 10px;
- &:hover {
- background-color: $bg-secondary;
- }
- img {
- width: 30px;
- height: 30px;
- margin-left: 1.2rem;
- margin-right: 10px;
- }
- }
- }
- // mobile nav bar
- @media screen and (max-height: 767px) {
- nav {
- position: sticky;
- top: 0;
- isolation: isolate;
- z-index: 1;
- background-color: $bg;
- .navigation-wrapper {
- background-color: $bg;
- padding-block: 8px; // Reduced from 15px
- }
- .sidebar {
- z-index: -1;
- width: 100vw;
- transform: translateY(-110%);
- padding-block: 8px 16px;
- br {
- display: none;
- }
- }
- .sidebar-list {
- background-color: $bg;
- // display: flex;
- // flex-direction: row;
- // flex-wrap: wrap;
- display: grid;
- grid-template-columns: minmax(0px, 400px) repeat(auto-fit,
- minmax(0px, 400px));
- }
- .sidebar-item {
- padding-inline: unset;
- }
- }
- }
- .component-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- h2 {
- margin: 0;
- display: inline-block;
- }
- }
- .container {
- max-width: 1200px;
- margin-inline: auto;
- padding-inline: 4px;
- scroll-margin-top: 71px; // Prevent images from being covered; equal to the navigation bar height
- @media (min-width: $small-breakpoint) {
- padding-inline: 10px;
- }
- }
- .error.container {
- text-align: center;
- }
- .artwork-container-header {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between;
- }
- .artwork-container {
- display: grid;
- grid-template-columns: repeat(auto-fit,
- minmax(calc($small-artwork-width + 15px), 1fr));
- align-items: center;
- justify-items: center;
- }
- .artwork-container-scroll {
- display: flex;
- overflow: hidden;
- overflow-x: scroll;
- }
- .artwork-container,
- .artwork-container-scroll {
- a {
- text-decoration: none;
- color: $fg;
- }
- .artwork-large {
- img {
- width: $large-artwork-width;
- height: $large-artwork-width;
- }
- .artwork-title {
- max-width: $large-artwork-width;
- }
- .artwork-author {
- max-width: $large-artwork-width;
- a {
- max-width: $small-artwork-width;
- }
- }
- }
- .artwork-small {
- img {
- width: $small-artwork-width;
- height: $small-artwork-width;
- background: rgb(19,21,22);
- background: linear-gradient(0deg, rgba(10,10,10,0.5) 0%, rgba(19,21,22,0) 80%, rgba(34,33,33,0) 100%);
- }
- .artwork-image {
- position: relative;
- .overlay-cover {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- cursor: pointer;
- }
- .overlay-button {
- position: absolute;
- bottom: 0;
- right: 0;
- padding: 0 5px;
- background-color: rgba(0, 0, 0, 0.3);
- cursor: pointer;
- }
- }
- .artwork-title {
- max-width: $small-artwork-width;
- }
- .artwork-author {
- max-width: $small-artwork-width;
- a {
- max-width: $small-artwork-width;
- }
- }
- }
- .artwork {
- padding: 5px;
- width: fit-content;
- position: relative;
- .artwork-additional {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- box-sizing: border-box;
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- padding: 4px 4px 0px;
- pointer-events: none;
- .artwork-position {
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 50%;
- font-weight: bold;
- width: 40px;
- height: 40px;
- font-size: 16px;
- background-color: rgba(0, 0, 0, 0.32);
- }
- .artwork-profanity-label {
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 10px;
- border-radius: 20px;
- padding: 0.4rem;
- background-color: $highlight;
- color: $fg;
- }
- .artwork-page-count {
- display: flex;
- justify-content: center;
- align-items: center;
- flex: 0 0 auto;
- box-sizing: border-box;
- height: 20px;
- min-width: 20px;
- color: $fg;
- font-weight: bold;
- padding: 0px 6px;
- background: rgba(0, 0, 0, 0.32);
- border-radius: 10px;
- font-size: 10px;
- line-height: 10px;
- .boxbox {
- font-size: 9px;
- }
- }
- }
- img {
- object-fit: cover;
- object-position: center center;
- border-radius: $border-radius;
- }
- .artwork-title {
- display: flex;
- align-items: center;
- a {
- font-size: 14px;
- display: inline;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- line-height: 22px;
- font-weight: bold;
- }
- }
- .artwork-author {
- display: flex;
- align-items: center;
- a {
- display: flex;
- align-items: center;
- img {
- aspect-ratio: 1/1;
- width: 24px;
- height: 24px;
- object-fit: cover;
- object-position: center top;
- border-radius: 50%;
- margin-right: 5px;
- }
- span {
- font-size: 14px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- line-height: 22px;
- }
- }
- }
- }
- }
- /* Brought out here because both artworks and novels needed this */
- .illust-tags {
- font-size: 0.9em;
- .illust-tag-attr {
- display: inline-flex;
- align-items: center;
- margin-right: 15px;
- img {
- aspect-ratio: 1/1;
- width: 18px;
- height: 18px;
- margin-right: 5px;
- }
- }
- .illust-tag {
- margin-right: 10px;
- #highlight {
- color: $highlight;
- }
- .illust-tag-name {
- color: $link;
- font-weight: bold;
- margin-right: 5px;
- }
- }
- }
- .illust-attr {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 10px;
- margin-bottom: 10px;
- .illust-author-attr {
- display: flex;
- align-items: center;
- }
- .illust-avatar {
- width: 62px;
- height: 62px;
- border-radius: 50px;
- object-fit: cover;
- object-position: center top;
- aspect-ratio: 1/1;
- }
- .attr-wrap {
- margin-left: 5px;
- .illust-title {
- font-weight: bold;
- }
- .illust-author {
- font-size: 0.8em;
- }
- a {
- color: $fg-secondary;
- }
- }
- .artwork-actions {
- img {
- aspect-ratio: 1/1;
- width: 30px;
- height: 30px;
- display: inline;
- }
- }
- }
- .illust {
- background-color: $bg-secondary;
- border-radius: $border-radius;
- padding: 5px 15px;
- .illust-images {
- display: flex;
- align-items: center;
- flex-direction: column;
- width: 100%;
- img,
- video {
- margin-top: 15px;
- max-height: 1000px;
- width: auto;
- max-width: 100%;
- }
- }
- .illust-description {
- font-size: 0.85em;
- }
- .comment {
- display: flex;
- margin-bottom: 10px;
- p {
- margin: 0;
- font-size: 0.8em;
- }
- .comment-avatar {
- width: 40px;
- height: 40px;
- border-radius: 50%;
- margin-right: 10px;
- }
- .comment-author {
- color: $fg;
- font-size: medium;
- font-weight: bold;
- }
- .stamp {
- width: 96px;
- height: 96px;
- border-radius: 4px;
- }
- .emoji {
- width: 24px;
- height: 24px;
- margin-left: 3px;
- margin-right: 3px;
- }
- }
- .illust-other-works {
- a.illust-other-works-author {
- display: inline-flex;
- align-items: center;
- text-decoration: none;
- color: $fg;
- &>img {
- aspect-ratio: 1/1;
- width: 50px;
- height: 50px;
- border-radius: 50%;
- margin-right: 5px;
- object-fit: cover;
- object-position: center top;
- }
- }
- }
- }
- .novel-container {
- display: grid;
- grid-template-columns: repeat(auto-fit,
- minmax(calc($novel-width + 15px), 1fr));
- justify-content: center;
- }
- .novel-card {
- font-size: 1.5rem;
- padding: 5px 15px;
- padding-top: 1em;
- .novel-detail {
- display: flex;
- .novel-author {
- display: flex;
- align-items: center;
- font-size: 0.8em;
- img {
- width: 16px;
- height: 16px;
- border-radius: 50%;
- }
- span {
- color: $fg;
- display: inline-block;
- margin-left: 5px;
- }
- }
- .novel-metadata {
- margin-left: 1.5rem;
- .novel-title {
- color: $fg;
- font-size: 1.17em;
- font-weight: bold;
- overflow: hidden;
- overflow-wrap: break-word;
- word-break: break-word;
- text-overflow: ellipsis;
- width: 100%;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .novel-description {
- font-size: 0.85em;
- overflow: hidden;
- overflow-wrap: break-word;
- word-break: break-word;
- text-overflow: ellipsis;
- width: 100%;
- display: -webkit-box;
- -webkit-line-clamp: 4;
- -webkit-box-orient: vertical;
- }
- }
- }
- .novel-cover img {
- /* warning: hard-coded values */
- width: 136px;
- height: 191px;
- object-fit: cover;
- object-position: center center;
- }
- .novel-content {
- margin: 1.2rem 0;
- line-height: 1.8;
- color: black;
- background-color: white;
- }
- }
- .novel {
- background-color: $bg-secondary;
- border-radius: $border-radius;
- padding: 5px 15px;
- padding-top: 1em;
- .novel-detail {
- display: flex;
- .novel-metadata {
- margin-left: 1.5rem;
- .novel-title {
- font-size: 1.17em;
- font-weight: bold;
- }
- .novel-description {
- font-size: 0.85em;
- }
- }
- }
- .novel-cover img {
- /* warning: hard-coded values */
- width: 136px;
- height: 191px;
- object-fit: cover;
- object-position: center center;
- }
- .novel-content {
- margin: 1.2rem 0;
- line-height: 2;
- color: black;
- background-color: white;
- max-width: 100%;
- width: 100%;
- overflow-x: scroll;
- .novel-content-text {
- padding: 6.4rem 10rem;
- text-align: justify;
- img {
- max-width: 100%;
- max-height: 100%;
- margin: 0 0.5rem;
- }
- }
- }
- .novel-attr {
- display: flex;
- align-items: center;
- margin-top: 10px;
- margin-bottom: 10px;
- .novel-avatar {
- width: 62px;
- height: 62px;
- border-radius: 50px;
- object-fit: cover;
- object-position: center top;
- }
- .attr-wrap {
- margin-left: 5px;
- .novel-author {
- font-size: 0.8em;
- }
- a {
- color: $fg-secondary;
- }
- }
- }
- .novel-settings {
- background-color: $bg;
- padding: 0.5rem;
- position: sticky;
- top: 0;
- img {
- width: 30px;
- height: 30px;
- }
- .novel-settings-wrapper {
- display: flex;
- }
- /* The container <div> - needed to position the dropdown content */
- .dropdown {
- position: relative;
- display: inline-block;
- }
- /* Dropdown Content (Hidden by Default) */
- .dropdown-content {
- display: none;
- position: absolute;
- background-color: $bg;
- min-width: 160px;
- box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
- z-index: 1;
- padding: 1rem;
- .value-holder {
- display: none;
- }
- }
- .dropdown-toggler {
- display: none;
- &:checked~.dropdown-content {
- display: block;
- }
- }
- }
- }
- // Font settings for novels
- $font-fallback-serif: "Yu Mincho",
- YuMincho,
- "Hiragino Mincho ProN",
- "Hiragino Mincho Pro",
- "Source Han Serif",
- "BIZ UDMincho Medium",
- "Source Serif Pro",
- "Source Serif",
- "Noto Serif",
- "Times New Roman",
- "Georgia Pro",
- Georgia,
- Simsun,
- PMingLiu,
- AppleMyungjo,
- "Source Han Serif K",
- "Source Han Serif KR",
- "Noto Serif KR",
- Batang,
- serif;
- [data-font=mincho][data-font=jp] {
- font-family:
- "Source Han Serif JP",
- "Noto Serif JP",
- $font-fallback-serif;
- }
- [data-font=mincho][data-font=zh-cn],
- [data-font=mincho][data-font=zh-hans] {
- font-family:
- "Songti SC",
- "Source Han Serif SC",
- "Noto Serif SC",
- "Source Han Serif CN",
- $font-fallback-serif;
- }
- // todo: technically, zh-hk > zh-hant > zh
- // Noto Sans have
- // CJK HK
- // CJK JP
- // CJK KR
- // CJK SC
- // CJK TC
- [data-font=mincho][data-font=zh-tw],
- [data-font=mincho][data-font=zh-hk],
- [data-font=mincho][data-font=zh-hant] {
- font-family:
- "Songti TC",
- "Source Han Serif TC",
- "Noto Serif TC",
- "Source Han Serif TW",
- "Source Han Serif HK",
- $font-fallback-serif;
- }
- [data-font=mincho] {
- font-family: $font-fallback-serif;
- }
- $font-fallback-sans: YuGothic,
- "Hiragino Kaku Gothic Pro",
- Meiryo,
- "Source Han Sans",
- "Source Han Sans JP",
- "Noto Sans CJK JP",
- "Avenir Next",
- Avenir,
- "Source Sans",
- "Noto Sans",
- Roboto,
- Verdana,
- "Pingfang TC",
- "Pingfang HK",
- "Hiragino Sans CNS",
- "Lantinghei TC",
- "Source Han Sans TW",
- "Source Han Sans HK",
- "Noto Sans CJK TC",
- "Microsoft JhengHei",
- "Pingfang SC",
- "Hiragino Sans GB",
- "Lantinghei SC",
- "Source Han Sans CN",
- "Noto Sans CJK SC",
- "Microsoft Yahei",
- DengXian,
- "Apple SD Gothic Neo",
- "Source Han Sans K",
- "Source Han Sans KR",
- "Noto Sans CJK KR",
- "Malgun Gothic",
- sans-serif;
- [data-font=gothic] {
- font-family: $font-fallback-sans;
- }
- [data-view="2"] {
- writing-mode: vertical-rl;
- text-orientation: upright;
- }
- .background-cover {
- background: repeating-linear-gradient(52.5deg,
- rgba(32, 32, 32, 0.8),
- rgba(32, 32, 32, 0.8) 14px,
- rgba(240, 248, 255, 0) 14px,
- rgba(240, 248, 255, 0) 28px);
- height: 10vw;
- min-height: 100px;
- overflow: hidden;
- padding-top: 10px;
- padding-bottom: 10px;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- }
- #hasbg {
- height: 40vw;
- min-height: 100px;
- max-height: 60vh;
- }
- .user {
- transform: translateY(-8rem);
- img {
- display: inline;
- }
- .user-avatar {
- text-align: center;
- }
- .user-avatar img {
- aspect-ratio: 1/1;
- width: 150px;
- height: 150px;
- border-radius: 50%;
- object-fit: cover;
- object-position: center top;
- }
- .user-social {
- text-align: center;
- img {
- aspect-ratio: 1/1;
- width: 36px;
- height: 36px;
- }
- }
- .user-details {
- text-align: center;
- h2 {
- margin: 0;
- }
- }
- }
- .tag-list {
- display: flex;
- flex-wrap: wrap;
- row-gap: 8px;
- column-gap: 1em;
- margin-block: 4px 20px;
- &>a {
- line-height: 1;
- &:hover {
- text-decoration: underline;
- }
- }
- }
- .vision-container {
- display: grid;
- width: 100%;
- gap: 15px;
- grid-template-columns: 1fr 1fr;
- .vision-preview {
- background: $bg-secondary;
- padding: 10px;
- display: flex;
- flex-flow: column wrap;
- }
- .vision-thumbnail {
- img {
- width: 100%;
- }
- }
- .vision-metadata {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- flex-grow: 1;
- .vision-title {
- color: $fg;
- margin: 0.5rem 0;
- }
- .vision-metadata-other {
- display: flex;
- justify-content: space-between;
- }
- }
- .tag-list {
- align-items: center;
- margin: 0;
- }
- }
- .vision-article {
- background-color: $bg-secondary;
- border-radius: 5px;
- padding: 5px 15px;
- }
- #calendar {
- width: 100%;
- height: auto;
- }
- .calendar-weeks,
- .calendar-board {
- max-width: 1000px;
- margin: 0 auto;
- display: flex;
- flex-wrap: wrap;
- gap: 5px;
- }
- .calendar-weeks div {
- width: 128px;
- text-align: center;
- }
- .calendar-node {
- width: 128px;
- height: 128px;
- border-radius: 8px;
- background-color: $bg-secondary;
- position: relative;
- img {
- border-radius: 8px;
- object-fit: cover;
- object-position: center center;
- }
- span {
- font-size: small;
- color: $fg;
- background-color: $bg-secondary;
- position: absolute;
- top: 0.3rem;
- left: 0.3rem;
- padding: 0.05rem 0.3rem;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- .calendar-node-empty {
- visibility: hidden;
- }
- @media screen and (max-width: 950px) {
- .calendar-board {
- justify-content: center;
- }
- .calendar-weeks,
- .calendar-node-empty {
- display: none;
- }
- }
- .tag-header {
- display: flex;
- .tag-thumbnail {
- width: 120px;
- height: 120px;
- border-radius: 5px;
- margin-right: 20px;
- object-fit: cover;
- object-position: center center;
- }
- .tag-details {
- .main-tag {
- font-size: 1.6rem;
- }
- }
- }
- .tag-container {
- background-color: $bg-secondary;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding-left: 20px;
- padding-right: 20px;
- margin-right: 10px;
- width: max-content;
- height: 40px;
- margin-bottom: 4px;
- text-align: center;
- font-weight: bold;
- font-size: 1rem;
- border-radius: 4px;
- .main {
- font-size: 1.6em;
- }
- .sub {
- font-size: 1.2em;
- font-weight: normal;
- }
- }
- summary> :is(h1, h2, h3, h4, h5, h6) {
- display: inline-block;
- }
- .settings-set-cookie h3 {
- font-size: smaller;
- margin-block: 4px 0;
- }
- .settings-set-cookie form {
- display: flex;
- gap: 4px;
- }
- .settings-set-cookie form>* {
- margin: unset !important;
- }
- .settings-set-cookie form>input[type="text"] {
- width: 20em;
- }
- input.critical {
- background-color: $highlight;
- }
|