12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085 |
- $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;
- }
- }
- 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-block;
- 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;
- 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;
- border: 2px solid $link;
- color: $fg;
- }
- input[type="submit"][hidden] {
- display: none;
- }
- .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);
- }
- }
- // 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;
- 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;
- @media (min-width: $small-breakpoint) {
- padding-inline: 10px;
- }
- scroll-margin-top: 71px; // Prevent images from being covered; equal to the navigation bar height
- }
- .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;
- }
- .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: 4px;
- left: 4px;
- right: 4px;
- 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;
- margin-top: 10px;
- margin-bottom: 10px;
- .illust-avatar {
- width: 62px;
- height: 62px;
- border-radius: 50px;
- object-fit: cover;
- object-position: center top;
- }
- .attr-wrap {
- margin-left: 5px;
- .illust-title {
- font-weight: bold;
- }
- .illust-author {
- font-size: 0.8em;
- }
- a {
- color: $fg-secondary;
- }
- }
- }
- .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;
- }
- .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;
- padding: 6.4rem 10rem;
- line-height: 1.8;
- color: black;
- background-color: white;
- }
- }
- .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);
- .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;
- }
- }
- }
- .user-tags {
- display: flex;
- flex-wrap: wrap;
- row-gap: 8px;
- column-gap: 1em;
- margin-block: 4px 20px;
- &>a {
- line-height: 1;
- &:hover {
- text-decoration: underline;
- }
- }
- }
- #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;
- }
- }
|