Update mobile styling for assignment submission form
This commit is contained in:
parent
b8f97b101b
commit
7303a6e5a3
|
|
@ -19,9 +19,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { defineAsyncComponent } from 'vue';
|
import { defineAsyncComponent } from 'vue';
|
||||||
const DocumentIcon = defineAsyncComponent(() =>
|
const DocumentIcon = defineAsyncComponent(() => import('@/components/icons/DocumentIcon.vue'));
|
||||||
import('@/components/icons/DocumentIcon.vue')
|
|
||||||
);
|
|
||||||
const TrashIcon = defineAsyncComponent(() => import('@/components/icons/TrashIcon.vue'));
|
const TrashIcon = defineAsyncComponent(() => import('@/components/icons/TrashIcon.vue'));
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -47,12 +45,16 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="postcss">
|
||||||
@import 'styles/helpers';
|
@import 'styles/css/mixins/desktop.css';
|
||||||
|
|
||||||
.document-block {
|
.document-block {
|
||||||
|
display: flex;
|
||||||
|
gap: var(--small-spacing);
|
||||||
|
@mixin desktop {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 50px 1fr 50px;
|
grid-template-columns: 50px 1fr 50px;
|
||||||
|
}
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
|
|
@ -68,14 +70,16 @@ export default {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
align-self: flex-end;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__trash-icon {
|
&__trash-icon {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
fill: $color-silver-dark;
|
fill: var(--color-silver-dark);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
justify-self: center;
|
justify-self: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,28 +86,37 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
&__explanation {
|
&__explanation {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
gap: $small-spacing;
|
||||||
|
align-items: center;
|
||||||
|
@include desktop {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__explanation-icon {
|
&__explanation-icon {
|
||||||
|
width: $default-icon-dimension;
|
||||||
|
height: $default-icon-dimension;
|
||||||
|
@include desktop {
|
||||||
width: $large-icon-dimension;
|
width: $large-icon-dimension;
|
||||||
height: $large-icon-dimension;
|
height: $large-icon-dimension;
|
||||||
|
}
|
||||||
fill: $color-brand;
|
fill: $color-brand;
|
||||||
margin-right: $small-spacing;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__explanation-text {
|
&__explanation-text {
|
||||||
color: $color-brand;
|
color: $color-brand;
|
||||||
font-family: $sans-serif-font-family;
|
font-family: $sans-serif-font-family;
|
||||||
font-weight: $font-weight-regular;
|
font-weight: $font-weight-regular;
|
||||||
margin-right: $medium-spacing;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__reopen {
|
&__reopen {
|
||||||
@include small-text;
|
@include small-text;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: $color-charcoal-light;
|
color: $color-charcoal-light;
|
||||||
|
grid-column: 1 / span 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -122,13 +122,15 @@ const changeDocumentUrl = (documentUrl: string) => {
|
||||||
|
|
||||||
&__actions {
|
&__actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
gap: var(--small-spacing);
|
gap: var(--small-spacing);
|
||||||
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
align-items: flex-start;
|
||||||
@mixin desktop {
|
@mixin desktop {
|
||||||
gap: var(--medium-spacing);
|
gap: var(--medium-spacing);
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,13 @@ export default {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="postcss">
|
||||||
@import 'styles/helpers';
|
@import 'styles/css/mixins/desktop.css';
|
||||||
|
|
||||||
|
.file-upload {
|
||||||
|
width: 100%;
|
||||||
|
@mixin desktop {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue