Scaling tweaks

This commit is contained in:
Dallas Hoffman 2023-09-21 23:11:20 -04:00
parent 519f8a77d9
commit ec52e33b0d
No known key found for this signature in database
4 changed files with 24 additions and 6 deletions

View File

@ -87,6 +87,7 @@ body:has(.bytemd-fullscreen) {
} }
.CodeMirror { .CodeMirror {
font-size: 1rem;
color: var(--editor-text); color: var(--editor-text);
background-color: var(--editor-bg); background-color: var(--editor-bg);
} }
@ -133,3 +134,11 @@ body:has(.bytemd-fullscreen) {
--editor-bg: var(--note-color, hsl(0 0% 80%)); --editor-bg: var(--note-color, hsl(0 0% 80%));
} }
} }
@media (min-width: 768px) {
.bytemd {
.CodeMirror {
font-size: 0.9rem;
}
}
}

View File

@ -75,10 +75,9 @@
<style lang="scss"> <style lang="scss">
.note-list { .note-list {
--note-width: 350px;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(0, var(--note-width))); grid-template-columns: repeat(auto-fill, minmax(0, calc(var(--note-height, 385px) * 0.92)));
grid-auto-rows: var(--note-height, calc(var(--note-width) * 1.1)); grid-auto-rows: var(--note-height, 385px);
gap: var(--note-gap, 1rem); gap: var(--note-gap, 1rem);
justify-content: center; justify-content: center;
height: var(--scroll-height, auto); height: var(--scroll-height, auto);

View File

@ -57,10 +57,10 @@
&__tag, &__tag,
&__textbox input { &__textbox input {
font-size: 0.8rem; font-size: 1rem;
width: auto; width: auto;
height: auto; height: auto;
padding: 0 0.4rem; padding: 0 0.5em;
margin: 0; margin: 0;
color: inherit; color: inherit;
background-color: transparent; background-color: transparent;
@ -70,7 +70,7 @@
&__tag { &__tag {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.3rem; gap: 0.4em;
border: 1px solid hsl(0 0% 0% / 0.4); border: 1px solid hsl(0 0% 0% / 0.4);
border-radius: 0.8em; border-radius: 0.8em;
} }
@ -99,4 +99,13 @@
} }
} }
} }
@media (min-width: 768px) {
.note-tags {
&__tag,
&__textbox input {
font-size: 0.8rem;
}
}
}
</style> </style>

View File

@ -24,6 +24,7 @@
<style lang="scss"> <style lang="scss">
time { time {
font-size: 0.85em; font-size: 0.85em;
text-align: right;
color: hsl(0 0% 0% / 0.5); color: hsl(0 0% 0% / 0.5);
} }
</style> </style>