Improve images display on mobile #53
This commit is contained in:
parent
ac82ee65d7
commit
be089ba47b
4 changed files with 34 additions and 1 deletions
|
|
@ -43,6 +43,8 @@ main {
|
||||||
min-height: calc(100vh - var(--gutter) * 2);
|
min-height: calc(100vh - var(--gutter) * 2);
|
||||||
}
|
}
|
||||||
main > header {
|
main > header {
|
||||||
|
--column-gap: 1rem;
|
||||||
|
--row-gap: 1rem;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,12 @@
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.project-details {
|
||||||
|
flex-wrap: wrap !important;
|
||||||
|
}
|
||||||
|
.project-details > * {
|
||||||
|
min-width: 20rem;
|
||||||
|
}
|
||||||
.project-details textarea {
|
.project-details textarea {
|
||||||
resize: none;
|
resize: none;
|
||||||
max-height: 5rem;
|
max-height: 5rem;
|
||||||
|
|
|
||||||
|
|
@ -157,6 +157,8 @@ function remove() {
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 1102;
|
z-index: 1102;
|
||||||
padding: 1.5rem var(--space-32);
|
padding: 1.5rem var(--space-32);
|
||||||
|
height: auto;
|
||||||
|
background: var(--color-background);
|
||||||
}
|
}
|
||||||
#image-details [data-pc-section="content"] {
|
#image-details [data-pc-section="content"] {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -166,5 +168,19 @@ function remove() {
|
||||||
}
|
}
|
||||||
#image-details [data-pc-section="content"] > div {
|
#image-details [data-pc-section="content"] > div {
|
||||||
padding-top: 5rem;
|
padding-top: 5rem;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
#image-details [data-pc-section="content"] {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
#image-details [data-pc-section="header"] {
|
||||||
|
top: 50%;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
#image-details [data-pc-section="content"] > * {
|
||||||
|
width: 100%;
|
||||||
|
height: 50%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@
|
||||||
:to="'/' + page.parent"
|
:to="'/' + page.parent"
|
||||||
class="btn btn--white"
|
class="btn btn--white"
|
||||||
data-icon="arrow-left"
|
data-icon="arrow-left"
|
||||||
|
aria-labelledby="back-to-project"
|
||||||
>
|
>
|
||||||
<span>Retour au projet</span>
|
<span id="back-to-project">Retour au projet</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
<button class="btn | ml-auto">Valider et envoyer le brief</button>
|
<button class="btn | ml-auto">Valider et envoyer le brief</button>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -47,3 +48,11 @@ function setInitialStep() {
|
||||||
if (hasImages) return "Images";
|
if (hasImages) return "Images";
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
@media (max-width: 540px) {
|
||||||
|
#back-to-project {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue