Skip to content

Commit

Permalink
iOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
donkuri authored Nov 15, 2024
1 parent 43e3108 commit cf3676d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions css/styling.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
--mobile-info-font-size: 16px;

/* Miscellaneous */
--font-serif: "A-OTF Ryumin Pr6N", serif;
--font-sans: "Hiragino Sans Rd Pr6N", sans-serif;
--font-serif: serif;
--font-sans: sans-serif;
--light-mode-image-brightness: 85%;
--dark-mode-image-brightness: 80%;
--light-mode-tooltip-hover-color: rgb(256, 256, 256, 0.9);
Expand All @@ -52,6 +52,12 @@
color: var(--fg-color) !important;
}

/* Define --canvas for .nightMode (iphone, ipad) as mentioned in https://github.com/donkuri/lapis/issues/3#issuecomment-2453049969 */
.iphone .nightMode,
.ipad .nightMode {
--canvas: #2c2c2c;
}

.card.nightMode {
--bg-color: var(--canvas);
--fg-color: var(--fg-color);
Expand Down Expand Up @@ -400,7 +406,7 @@ header {
}


/* Hide NFSW Images */
/* Hide NFSW Images -- make sure you use the tag `NSFW` EXACTLY */
.NSFW img {
filter: blur(30px);
transition: filter 0.2s;
Expand Down Expand Up @@ -755,4 +761,4 @@ ol li[data-details=新和英] details.glossary-text__details .glossary-text__sum

.dict-group__tag-list::after {
content: ") ";
}
}

0 comments on commit cf3676d

Please sign in to comment.