Update mobile styling for project list and detail pages
Resolves MS-532
This commit is contained in:
parent
dc8c37f476
commit
45b9e7e57b
|
|
@ -25,7 +25,9 @@
|
||||||
"install:cypress": "cypress install",
|
"install:cypress": "cypress install",
|
||||||
"test:unit": "jest",
|
"test:unit": "jest",
|
||||||
"cypress:parallel": "CYPRESS_API_URL=\"https://iterativ-cypress-director.herokuapp.com/\" cy2 run --parallel --record --key somekey --config-file cypress.frontend.json --ci-build-id some-id",
|
"cypress:parallel": "CYPRESS_API_URL=\"https://iterativ-cypress-director.herokuapp.com/\" cy2 run --parallel --record --key somekey --config-file cypress.frontend.json --ci-build-id some-id",
|
||||||
"cypress:parallel:run": "cy2 run --parallel --record --config-file cypress.frontend.json --ci-build-id "
|
"cypress:parallel:run": "cy2 run --parallel --record --config-file cypress.frontend.json --ci-build-id ",
|
||||||
|
"prettier": "prettier . --write",
|
||||||
|
"prettier:check": "prettier . --check"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^3.5.8",
|
"@apollo/client": "^3.5.8",
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<owner-widget :owner="project.student" class="project__owner" />
|
<owner-widget :owner="project.student" class="project__owner" />
|
||||||
|
|
||||||
<entry-count-widget :verbose="false" :entry-count="project.entriesCount" />
|
<entry-count-widget class="project__entry-count" :verbose="false" :entry-count="project.entriesCount" />
|
||||||
</router-link>
|
</router-link>
|
||||||
<project-actions
|
<project-actions
|
||||||
:final="project.final"
|
:final="project.final"
|
||||||
|
|
@ -23,9 +23,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import OwnerWidget from '@/components/portfolio/OwnerWidget';
|
import OwnerWidget from '@/components/portfolio/OwnerWidget.vue';
|
||||||
import ProjectActions from '@/components/portfolio/ProjectActions';
|
import ProjectActions from '@/components/portfolio/ProjectActions.vue';
|
||||||
import EntryCountWidget from '@/components/rooms/EntryCountWidget';
|
import EntryCountWidget from '@/components/rooms/EntryCountWidget.vue';
|
||||||
|
|
||||||
import me from '@/mixins/me';
|
import me from '@/mixins/me';
|
||||||
|
|
||||||
|
|
@ -65,18 +65,43 @@ export default {
|
||||||
border-bottom: 1px solid $color-silver;
|
border-bottom: 1px solid $color-silver;
|
||||||
|
|
||||||
&__link {
|
&__link {
|
||||||
flex: 80%;
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
grid-auto-rows: auto;
|
||||||
|
row-gap: $small-spacing;
|
||||||
|
align-items: flex-start;
|
||||||
|
flex-direction: column;
|
||||||
|
@include desktop {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex: 80%;
|
||||||
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__title {
|
&__title {
|
||||||
flex: 50%;
|
flex: 50%;
|
||||||
@include heading-4;
|
@include heading-4;
|
||||||
|
grid-column: 1 / span 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__owner {
|
&__owner {
|
||||||
flex: 40%;
|
flex: 40%;
|
||||||
|
grid-column: 1 / span 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__actions {
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
@include desktop {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__entry-count {
|
||||||
|
justify-self: flex-end;
|
||||||
|
grid-column: 2 / span 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -121,27 +121,44 @@ export default {
|
||||||
|
|
||||||
.project {
|
.project {
|
||||||
&__header {
|
&__header {
|
||||||
|
padding: $medium-spacing;
|
||||||
|
@include desktop {
|
||||||
padding: $large-spacing;
|
padding: $large-spacing;
|
||||||
|
}
|
||||||
border-bottom: 1px solid $color-silver;
|
border-bottom: 1px solid $color-silver;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
|
grid-template-areas:
|
||||||
|
'b'
|
||||||
|
't'
|
||||||
|
'd'
|
||||||
|
'm'
|
||||||
|
'a';
|
||||||
|
@include desktop {
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
'b a'
|
'b a'
|
||||||
't t'
|
't t'
|
||||||
'd d'
|
'd d'
|
||||||
'm m';
|
'm m';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__back {
|
&__back {
|
||||||
grid-area: b;
|
grid-area: b;
|
||||||
|
margin-bottom: $medium-spacing;
|
||||||
|
@include desktop {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__actions {
|
&__actions {
|
||||||
grid-area: a;
|
grid-area: a;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
@include desktop {
|
||||||
justify-self: end;
|
justify-self: end;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__more {
|
&__more {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
@ -181,21 +198,29 @@ export default {
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
margin-bottom: $medium-spacing;
|
||||||
|
|
||||||
@include desktop {
|
@include desktop {
|
||||||
flex-direction: row-reverse;
|
flex-direction: row-reverse;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
position: relative;
|
position: relative;
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
& > :first-child {
|
& > :first-child {
|
||||||
|
margin-bottom: $medium-spacing;
|
||||||
|
@include desktop {
|
||||||
margin-left: $large-spacing;
|
margin-left: $large-spacing;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& > :nth-child(2) {
|
& > :nth-child(2) {
|
||||||
|
@include desktop {
|
||||||
margin-left: $large-spacing;
|
margin-left: $large-spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__content {
|
&__content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue