forked from e621ng/e621ng
[DText] Adjust the font size on desktop (#745)
This commit is contained in:
parent
0d23500a86
commit
54cc34ee9f
@ -1,3 +1,4 @@
|
||||
@import "base/breakpoints";
|
||||
@import "base/functions";
|
||||
@import "base/palette";
|
||||
@import "base/themable"; //Drags in themes automatically
|
||||
|
11
app/javascript/src/styles/base/_breakpoints.scss
Normal file
11
app/javascript/src/styles/base/_breakpoints.scss
Normal 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;
|
||||
}
|
||||
}
|
@ -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 {
|
||||
|
@ -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 %>
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user