[DText] Adjust the font size on desktop (#745)

This commit is contained in:
Cinder 2024-09-02 16:45:41 -07:00 committed by GitHub
parent 0d23500a86
commit 54cc34ee9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,4 @@
@import "base/breakpoints";
@import "base/functions";
@import "base/palette";
@import "base/themable"; //Drags in themes automatically

View File

@ -0,0 +1,11 @@
@mixin window-larger-than($value) {
@media (min-width: $value) {
@content;
}
}
@mixin window-smaller-than($value) {
@media (max-width: $value) {
@content;
}
}

View File

@ -7,6 +7,10 @@
.styled-dtext {
font-size: 1rem;
@include window-larger-than(800px) {
font-size: 0.9rem;
}
div.spoiler, details, pre, blockquote, ul {
margin-bottom: 0.75em;
}
@ -67,7 +71,6 @@
pre {
font-family: monospace;
white-space: pre-wrap;
font-size: 1.2em;
}
.inline-code {

View File

@ -3,7 +3,7 @@
<section class="blacklist-ui"
filters="0"
collapsed="true"
<% if post_id.presence.present? %>
<% if post_id.present? %>
post="<%= post_id %>"
<% end %>
>