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 {
min-height: 8px;
max-height: 8px;
min-width: 8px;
max-width: 8px;
min-height: 0.6em;
max-height: 0.6em;
min-width: 0.6em;
max-width: 0.6em;
padding: 0;
line-height: 0;
font-size: 0;
left: calc(50% - 4px);
top: calc(50% - 4px);
margin-left: 6px;
margin-top: -6px;
left: calc(50% - 0.6em);
top: calc(50% - 0.6em);
margin-left: 0.4em;
margin-top: -0.4em;
}
&.-counter {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -159,10 +159,16 @@
.qr-code {
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 {
button {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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