bunch of px -> em, small fixes

This commit is contained in:
Henry Jameson 2025-08-14 17:27:13 +03:00
commit 49a98a6fe2
15 changed files with 58 additions and 47 deletions

View file

@ -741,17 +741,17 @@ option {
} }
&.-dot { &.-dot {
min-height: 8px; min-height: 0.6em;
max-height: 8px; max-height: 0.6em;
min-width: 8px; min-width: 0.6em;
max-width: 8px; max-width: 0.6em;
padding: 0; padding: 0;
line-height: 0; line-height: 0;
font-size: 0; font-size: 0;
left: calc(50% - 4px); left: calc(50% - 0.6em);
top: calc(50% - 4px); top: calc(50% - 0.6em);
margin-left: 6px; margin-left: 0.4em;
margin-top: -6px; margin-top: -0.4em;
} }
&.-counter { &.-counter {

View file

@ -107,9 +107,9 @@
.play-icon { .play-icon {
position: absolute; position: absolute;
font-size: 64px; font-size: 4.5em;
top: calc(50% - 32px); top: calc(50% - 2.25rem);
left: calc(50% - 32px); left: calc(50% - 2.25rem);
color: rgb(255 255 255 / 75%); color: rgb(255 255 255 / 75%);
text-shadow: 0 0 2px rgb(0 0 0 / 40%); text-shadow: 0 0 2px rgb(0 0 0 / 40%);

View file

@ -129,7 +129,7 @@
.gallery-item { .gallery-item {
margin: 0; margin: 0;
height: 200px; height: 15em;
} }
} }
} }

View file

@ -168,7 +168,7 @@ $modal-view-button-icon-margin: 0.5em;
flex: 0 0 auto; flex: 0 0 auto;
overflow-y: auto; overflow-y: auto;
min-height: 1em; min-height: 1em;
max-width: 500px; max-width: 35.8em;
max-height: 9.5em; max-height: 9.5em;
overflow-wrap: break-word; overflow-wrap: break-word;
text-wrap: pretty; text-wrap: pretty;

View file

@ -7,7 +7,6 @@
& .new, & .new,
& .original { & .original {
display: inline; display: inline;
border-radius: 2px;
} }
.mention-avatar { .mention-avatar {

View file

@ -4,13 +4,13 @@
table { table {
width: 100%; width: 100%;
text-align: left; text-align: left;
padding-left: 10px; padding-left: 0.5em;
padding-bottom: 20px; padding-bottom: 1.1em;
th, th,
td { td {
width: 180px; width: 11em;
max-width: 360px; max-width: 25em;
overflow: hidden; overflow: hidden;
vertical-align: text-top; vertical-align: text-top;
} }

View file

@ -229,8 +229,8 @@ export default {
padding-bottom: 0.5em; padding-bottom: 0.5em;
.emoji { .emoji {
width: 32px; width: 2.3em;
height: 32px; height: 2.3em;
} }
} }
</style> </style>

View file

@ -159,10 +159,16 @@
.qr-code { .qr-code {
flex: 1; flex: 1;
padding-right: 10px; padding-right: 0.7em;
}
.verify {
flex: 1;
}
.error {
margin: 0.3em 0 0;
} }
.verify { flex: 1; }
.error { margin: 4px 0 0; }
.confirm-otp-actions { .confirm-otp-actions {
button { button {

View file

@ -21,7 +21,7 @@
</div> </div>
<div class="panel-body theme-preview-content"> <div class="panel-body theme-preview-content">
<div class="post"> <div class="post">
<div class="avatar still-image"> <div class="avatar still-image" aria-hidden="true">
( ͡° ͜ʖ ͡°) ( ͡° ͜ʖ ͡°)
</div> </div>
<div class="content"> <div class="content">
@ -71,7 +71,7 @@
</div> </div>
<div class="after-post"> <div class="after-post">
<div class="avatar-alt"> <div class="avatar-alt" aria-hidden="true">
:^) :^)
</div> </div>
<div class="content"> <div class="content">
@ -149,7 +149,7 @@ export default {
background-position: 50% 50%; background-position: 50% 50%;
.theme-preview-content { .theme-preview-content {
padding: 20px; padding: 1.5em;
} }
.dummy { .dummy {
@ -203,19 +203,21 @@ export default {
.avatar-alt { .avatar-alt {
flex: 0 auto; flex: 0 auto;
margin-left: 28px; margin-left: 2em;
font-size: 12px; font-size: 0.85em;
min-width: 20px; min-width: 2.2rem;
min-height: 20px; min-height: 2.2rem;
line-height: 20px; line-height: 1.5em;
align-content: center;
} }
.avatar { .avatar {
flex: 0 auto; flex: 0 auto;
width: 48px; width: 3.5em;
height: 48px; height: 3.5em;
font-size: 14px; font-size: 1rem;
line-height: 48px; line-height: 3.5em;
justify-content: center;
} }
.actions { .actions {
@ -241,7 +243,7 @@ export default {
.underlay-preview { .underlay-preview {
position: absolute; position: absolute;
inset: 0 10px; inset: 0 0.9em;
} }
} }
</style> </style>

View file

@ -107,7 +107,7 @@
justify-content: space-between; justify-content: space-between;
align-items: baseline; align-items: baseline;
width: 100%; width: 100%;
min-height: 30px; min-height: 2.1em;
margin-bottom: 1em; margin-bottom: 1em;
p { p {
@ -212,7 +212,7 @@
.theme-color-cl, .theme-color-cl,
.theme-radius-in, .theme-radius-in,
.theme-color-in { .theme-color-in {
margin-left: 4px; margin-left: 0.3em;
} }
.theme-radius-in { .theme-radius-in {

View file

@ -122,8 +122,8 @@
.shout-avatar { .shout-avatar {
img { img {
height: 24px; height: 0.6em;
width: 24px; width: 0.6em;
border-radius: var(--roundness); border-radius: var(--roundness);
margin-right: 0.5em; margin-right: 0.5em;
margin-top: 0.25em; margin-top: 0.25em;

View file

@ -202,9 +202,9 @@
} }
img { img {
max-height: 26px; max-height: 1.9em;
vertical-align: top; vertical-align: top;
margin-top: -5px; margin-top: -0.3em;
} }
} }

View file

@ -10,7 +10,7 @@
keypath="user_reporting.title" keypath="user_reporting.title"
class="title" class="title"
> >
<UserLink :user="user" /> <UserLink class="user-link" :user="user" />
</i18n-t> </i18n-t>
</div> </div>
<div class="panel-body"> <div class="panel-body">
@ -74,10 +74,14 @@
<style lang="scss"> <style lang="scss">
.user-reporting-panel { .user-reporting-panel {
width: 90vw; width: 90vw;
max-width: 700px; max-width: 50rem;
min-height: 20vh; min-height: 20vh;
max-height: 80vh; max-height: 80vh;
.user-link {
display: inline
}
.panel-body { .panel-body {
display: flex; display: flex;
flex-direction: column-reverse; flex-direction: column-reverse;
@ -104,7 +108,7 @@
} }
textarea.form-control { textarea.form-control {
line-height: 16px; line-height: 1.1;
resize: none; resize: none;
overflow: hidden; overflow: hidden;
transition: min-height 200ms 100ms; transition: min-height 200ms 100ms;

View file

@ -1,6 +1,6 @@
.with-load-more { .with-load-more {
&-footer { &-footer {
padding: 10px; padding: 0.9em;
text-align: center; text-align: center;
border-top: 1px solid; border-top: 1px solid;
border-top-color: var(--border); border-top-color: var(--border);

View file

@ -1,6 +1,6 @@
.with-subscription { .with-subscription {
&-loading { &-loading {
padding: 10px; padding: 0.7em;
text-align: center; text-align: center;
.error { .error {