123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810 |
- $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;
- 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;
- margin-left: 5px;
- margin-right: 5px;
- }
- a {
- color: $link;
- text-decoration: none;
- }
- /* Scrollbars */
- * {
- scrollbar-width: thin;
- 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;
- }
- label {
- font-weight: bold;
- margin-bottom: 0.2rem;
- }
- .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;
- }
- }
- 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;
- .pagination-button {
- margin-right: 5px;
- }
- #highlight {
- filter: brightness($hover-brightness);
- }
- #disabled {
- pointer-events: none;
- background-color: $bg-secondary;
- filter: brightness(1);
- }
- }
- nav {
- margin-top: 15px;
- margin-bottom: 15px;
- margin-left: 20px;
- margin-right: 20px;
- .navigation-wrapper {
- display: flex;
- justify-content: space-between;
- align-items: center;
- width: auto;
- .navbar-brand {
- display: inline-flex;
- gap: 10px;
- span {
- font-weight: bold;
- font-size: 1.3em;
- color: $fg;
- }
- }
- .navbar-entry {
- img {
- width: 30px;
- height: 30px;
- }
- }
- .search-form {
- input {
- margin: 0;
- }
- }
- .sidebar-toggler {
- display: none;
- &:checked ~ .sidebar {
- transform: translateX(0);
- }
- }
- .sidebar-label {
- margin-right: 9px;
- cursor: pointer;
- }
- .sidebar {
- 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);
- z-index: 999;
- 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;
- }
- }
- }
- }
- }
- // .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
- // );
- // }
- }
- @media screen and (max-width: 600px) {
- nav {
- .search-form {
- display: none;
- }
- }
- }
- .component-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- h2 {
- margin: 0;
- display: inline-block;
- }
- }
- .container {
- max-width: 1200px;
- margin-left: auto;
- margin-right: auto;
- padding-left: 10px;
- padding-right: 10px;
- }
- .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;
- }
- }
- }
- }
- }
- .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 {
- margin-top: 15px;
- max-height: 1000px;
- width: auto;
- max-width: 100%;
- }
- }
- .illust-attr {
- display: flex;
- align-items: center;
- margin-top: 10px;
- margin-bottom: 10px;
- .illust-avatar {
- width: 62px;
- height: 62px;
- border-radius: 50px;
- }
- .attr-wrap {
- margin-left: 5px;
- .illust-title {
- font-weight: bold;
- }
- .illust-author {
- font-size: 0.8em;
- a {
- color: $fg-secondary;
- }
- }
- }
- }
- .illust-description {
- font-size: 0.85em;
- }
- .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;
- }
- }
- }
- .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 {
- 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;
- }
- }
- }
- }
- .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 {
- margin: auto;
- aspect-ratio: 1/1;
- width: 170px;
- height: 170px;
- img {
- border-radius: 50%;
- }
- }
- .user-social {
- text-align: center;
- img {
- aspect-ratio: 1/1;
- width: 36px;
- height: 36px;
- }
- }
- .user-details {
- text-align: center;
- h2 {
- margin: 0;
- }
- }
- }
- #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-size: cover;
- background-position: center;
- background-color: $bg-secondary;
- position: relative;
- 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;
- }
- }
- @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;
- }
- }
|