Skip to content

Commit

Permalink
using a centrailzed container styles
Browse files Browse the repository at this point in the history
  • Loading branch information
goemen committed May 8, 2024
1 parent 3b35e64 commit 0c5cb83
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 111 deletions.
6 changes: 6 additions & 0 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ a {
color: #255a90;
}
.v-container {
width: 85%;
margin-left: auto;
margin-right: auto;
}
a:hover {
cursor: pointer;
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ContactError.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container fluid>
<v-container>
<v-row align="center" justify="center">
<v-col sm="4" md="4" lg="4" xl="4">
<v-alert class="alert-error mb-3">
Expand Down
10 changes: 1 addition & 9 deletions frontend/src/components/DraftReportPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container class="d-flex justify-center h-100 narrow">
<v-container class="d-flex justify-center h-100">
<v-form ref="inputForm" class="w-100 h-100">
<v-banner
sticky
Expand Down Expand Up @@ -183,14 +183,6 @@ async function downloadPdf(reportId: string | undefined) {
</script>

<style scoped lang="scss">
@import "../scss/_common.scss";
.narrow {
width: 85% !important;
padding-left: 0;
padding-right: 0;
@include layout-margins;
}
.back-button-banner {
padding-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ErrorPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container fluid>
<v-container>
<v-row align="center" justify="center">
<v-col xs="4" sm="4" md="4" lg="4" xl="4">
<v-alert dense outlined class="alert-error mb-3" v-if="errorMessage">
Expand Down
56 changes: 22 additions & 34 deletions frontend/src/components/Header.vue
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
<template>
<v-app-bar
absolute
style="z-index: 1002"
class="pt-header"
>
<!-- Navbar content -->
<a tabindex="-1" href="/" class="d-flex align-center">
<img
tabindex="-1"
src="../assets/images/bc-gov-logo-light.png"
width="155"
class="logo"
alt="B.C. Government Logo"
/>
<v-toolbar-title
><h3
data-testid="header-title"
class="mainTitle"
style="color: rgb(32, 31, 30)"
<v-app-bar absolute style="z-index: 1002">
<v-container class="d-flex">
<a tabindex="-1" href="/" class="d-flex align-center">
<img
tabindex="-1"
src="../assets/images/bc-gov-logo-light.png"
width="155"
class="logo"
alt="B.C. Government Logo"
/>
<v-toolbar-title
><h3
data-testid="header-title"
class="mainTitle"
style="color: rgb(32, 31, 30)"
>
{{ appTitle }}
</h3></v-toolbar-title
>
{{ appTitle }}
</h3></v-toolbar-title
>
</a>
</a>

<v-spacer />
<v-spacer />

<template #append>
<v-menu
v-if="isAuthenticated"
v-model="menu"
Expand Down Expand Up @@ -75,7 +70,8 @@
</v-card-actions>
</v-card>
</v-menu>
</template>
</v-container>
<!-- Navbar content -->
</v-app-bar>
</template>
Expand Down Expand Up @@ -109,14 +105,6 @@ export default {
</script>
<style lang="scss">
@import "../scss/_common.scss";
.pt-header {
.v-toolbar__content {
@include layout-margins;
}
}
.gov-header .v-icon {
padding-left: 10px;
}
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/components/Home.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--suppress ALL -->
<template>
<v-container fluid class="d-flex justify-center fill-height w-85">
<v-container class="d-flex justify-center fill-height">
<dashboard></dashboard>
</v-container>
</template>
Expand Down Expand Up @@ -43,9 +43,5 @@ export default {
.margin-initial {
margin: initial;
}
.w-85 {
width: 85%;
}
</style>

12 changes: 1 addition & 11 deletions frontend/src/components/InputForm.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container class="d-flex justify-center h-100 narrow">
<v-container class="d-flex justify-center h-100">
<v-form ref="inputForm" @submit.prevent="submit" class="w-100 h-100">
<v-row no-gutters>
<v-col>
Expand Down Expand Up @@ -1162,16 +1162,6 @@ export default {
</script>

<style scoped lang="scss">
@import "../scss/_common.scss";
.narrow {
width: 85% !important;
padding-left: 0;
padding-right: 0;
@include layout-margins;
}
.back-button-banner {
padding-left: 0;
}
Expand Down
26 changes: 5 additions & 21 deletions frontend/src/components/Login.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<template>
<v-container class="undized">
<v-row no-gutters>
<v-col cols="12">
<v-container :class="{
'justify-center': true,
narrow: true,
}">
<v-container>
<v-row no-gutters>
<v-col>
<!-- begin -->
Expand Down Expand Up @@ -39,7 +35,7 @@
</v-row>
<v-row no-gutters class="grey-div">
<v-col>
<v-container class="justify-center narrow">
<v-container class="justify-center">
<v-row no-gutters>
<v-col>
<h3 class="centered-text mt-14 mb-8">
Expand Down Expand Up @@ -144,7 +140,7 @@

</v-col>
</v-row>
</v-container>
<!-- </v-container> -->
</template>

<script>
Expand Down Expand Up @@ -199,11 +195,7 @@ export default {
</script>

<style scoped lang="scss">
@import "../scss/_common.scss";
.narrow {
@include layout-margins;
}
.image-monitor {
border-style: none;
Expand Down Expand Up @@ -303,13 +295,5 @@ export default {
height: 100%;
}
.undized {
margin: 0;
padding: 0;
min-width: 100%;
max-width: 100%;
height: 100%;
overflow: hidden;
word-wrap: break-word;
}
</style>
2 changes: 1 addition & 1 deletion frontend/src/components/LoginError.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container fluid>
<v-container>
<v-row align="center" justify="center">
<v-col xs="4" sm="4" md="4" lg="4" xl="4">
<v-alert dense variant="outlined" class="alert-error mb-3">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Logout.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container fluid>
<v-container>
<v-row align="center" justify="center">
<v-col xs="4" sm="4" md="4" lg="4" xl="4">
<v-alert dense variant="outlined" class="mb-3 alert-info">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/NotFound.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container fluid>
<v-container>
<v-row align="center" justify="center">
<v-col xs="4" sm="4" md="4" lg="4" xl="4">
<v-alert
Expand Down
11 changes: 1 addition & 10 deletions frontend/src/components/PublishedReportPage.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container class="d-flex justify-center h-100 narrow">
<v-container class="d-flex justify-center h-100">
<v-form ref="inputForm" class="w-100 h-100">
<v-banner
sticky
Expand Down Expand Up @@ -110,15 +110,6 @@ const editReport = async () => {
</script>

<style lang="scss">
@import '../scss/_common.scss';
.narrow {
width: 85% !important;
padding-left: 0;
padding-right: 0;
@include layout-margins;
}
.sticky-top {
padding-left: 0;
z-index: 190;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/TokenExpired.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container fluid>
<v-container>
<v-row align="center" justify="center">
<v-col xs="4" sm="4" md="4" lg="4" xl="4">
<v-alert dense variant="outlined" class="alert-error mb-3">
Expand Down
15 changes: 0 additions & 15 deletions frontend/src/scss/_common.scss

This file was deleted.

0 comments on commit 0c5cb83

Please sign in to comment.