Miscellaneous CSS cleanup (and make the report modal look better) (#1334)

This commit is contained in:
Emma Alexia Triphora
2023-08-24 15:21:12 -04:00
committed by GitHub
parent 51b07fc0c3
commit 57964282ee
9 changed files with 22 additions and 99 deletions

View File

@@ -974,6 +974,8 @@ tr.button-transparent {
display: flex; display: flex;
grid-gap: var(--spacing-card-sm); grid-gap: var(--spacing-card-sm);
flex-wrap: wrap; flex-wrap: wrap;
margin-top: var(--spacing-card-md);
justify-content: right;
} }
.multiselect--above .multiselect__content-wrapper { .multiselect--above .multiselect__content-wrapper {
@@ -1339,58 +1341,6 @@ button {
} }
} }
.legacy-label-styles {
label {
display: flex;
flex-direction: column;
margin-bottom: 0.5rem;
&.no-margin {
margin-bottom: 0;
}
@media screen and (min-width: 1024px) {
flex-direction: row;
align-items: center;
}
> span {
flex: 2;
padding-right: var(--spacing-card-lg);
&.no-padding {
padding-right: 0;
}
}
> input,
> .multiselect,
> .input-group {
flex: 3;
height: fit-content;
}
> input[type='button'] {
height: fit-content;
flex: 1;
}
> input[type='button']:hover {
cursor: pointer;
}
> div,
> a {
height: fit-content;
flex: 1;
}
> div:hover {
cursor: pointer;
}
}
}
.input-group { .input-group {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View File

@@ -123,10 +123,5 @@ export default {
max-width: 100%; max-width: 100%;
} }
} }
.button-group {
margin-left: auto;
margin-top: 1.5rem;
}
} }
</style> </style>

View File

@@ -1,6 +1,6 @@
<template> <template>
<Modal ref="modal" :header="`Report ${itemType}`"> <Modal ref="modal" :header="`Report ${itemType}`">
<div class="modal-report legacy-label-styles"> <div class="modal-report universal-labels">
<div class="markdown-body"> <div class="markdown-body">
<p> <p>
Modding should be safe for everyone, so we take abuse and malicious intent seriously at Modding should be safe for everyone, so we take abuse and malicious intent seriously at
@@ -15,10 +15,8 @@
Discord invite, consider reporting it there. Discord invite, consider reporting it there.
</p> </p>
</div> </div>
<label class="report-label" for="report-type"> <label for="report-type">
<span> <span class="label__title">Reason</span>
<strong>Reason</strong>
</span>
</label> </label>
<Multiselect <Multiselect
id="report-type" id="report-type"
@@ -31,10 +29,11 @@
:show-labels="false" :show-labels="false"
placeholder="Choose report type" placeholder="Choose report type"
/> />
<label class="report-label" for="additional-information"> <label for="report-body">
<strong>Additional information</strong> <span class="label__title">Additional information</span>
<span> <span class="label__description add-line-height">
Include links and images if possible. This editor supports Please provide additional context about your report. Include links and images if possible.
<strong>Empty reports will be closed.</strong> This editor supports
<a <a
class="text-link" class="text-link"
href="https://docs.modrinth.com/docs/tutorials/markdown/" href="https://docs.modrinth.com/docs/tutorials/markdown/"
@@ -126,6 +125,7 @@ export default {
}) })
this.$refs.modal.hide() this.$refs.modal.hide()
await this.$router.push('/dashboard/reports')
} catch (err) { } catch (err) {
this.$notify({ this.$notify({
group: 'main', group: 'main',
@@ -149,24 +149,13 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.markdown-body { .add-line-height {
margin-bottom: 1rem; line-height: 1.5;
margin-bottom: 0;
} }
.multiselect { .multiselect {
max-width: 20rem; max-width: 20rem;
margin-bottom: 1rem;
}
.report-label {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.button-group {
margin-left: auto;
margin-top: 1.5rem;
} }
.textarea-wrapper { .textarea-wrapper {

View File

@@ -187,11 +187,6 @@ export default {
} }
} }
.button-group {
margin-top: var(--spacing-card-md);
justify-content: right;
}
strong { strong {
color: var(--color-text-dark); color: var(--color-text-dark);
font-weight: 500; font-weight: 500;

View File

@@ -804,10 +804,5 @@ export default defineNuxtComponent({
background-color: #000000; background-color: #000000;
} }
} }
.button-group {
margin-left: auto;
margin-top: 1.5rem;
}
} }
</style> </style>

View File

@@ -466,4 +466,8 @@ svg {
min-height: 8rem; min-height: 8rem;
max-width: 24rem; max-width: 24rem;
} }
.multiselect {
max-width: 15rem;
}
</style> </style>

View File

@@ -276,4 +276,8 @@ export default defineNuxtComponent({
max-width: 26rem; max-width: 26rem;
} }
} }
.multiselect {
max-width: 15rem;
}
</style> </style>

View File

@@ -1596,10 +1596,5 @@ export default defineNuxtComponent({
.multiselect { .multiselect {
max-width: 20rem; max-width: 20rem;
} }
.button-group {
margin-left: auto;
margin-top: 1.5rem;
}
} }
</style> </style>

View File

@@ -500,10 +500,6 @@ export default defineNuxtComponent({
} }
} }
.button-group:first-child {
margin-left: auto;
}
.textarea-wrapper { .textarea-wrapper {
height: 10rem; height: 10rem;
} }