Moved duplicate container & h1 styling to global.
This commit is contained in:
		| @@ -66,23 +66,7 @@ export default { | |||||||
| @import "./src/styles/variables"; | @import "./src/styles/variables"; | ||||||
|  |  | ||||||
| .container { | .container { | ||||||
|   width: 90vw; |   max-width: unset; | ||||||
|   margin: 3rem auto; |  | ||||||
|   margin-bottom: 0; |  | ||||||
|   padding-bottom: 4rem; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| h1 { |  | ||||||
|   font-size: 3rem; |  | ||||||
|   font-family: "knowit"; |  | ||||||
|   font-weight: normal; |  | ||||||
|  |  | ||||||
|   font-family: knowit, Arial; |  | ||||||
|   margin-bottom: 25px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .label { |  | ||||||
|   font-weight: 600; |  | ||||||
| } | } | ||||||
|  |  | ||||||
| #wines-container { | #wines-container { | ||||||
| @@ -91,10 +75,6 @@ h1 { | |||||||
|   justify-content: space-evenly; |   justify-content: space-evenly; | ||||||
|   align-items: flex-start; |   align-items: flex-start; | ||||||
|  |  | ||||||
|   @include desktop { |  | ||||||
|     margin: 0 2rem; |  | ||||||
|   } |  | ||||||
|  |  | ||||||
|   > div { |   > div { | ||||||
|     justify-content: flex-start; |     justify-content: flex-start; | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="container"> |   <div class="container"> | ||||||
|     <h1 class="title" @click="startCountdown">Loddgenerator</h1> |     <h1 class="text-center title" @click="startCountdown">Loddgenerator</h1> | ||||||
|     <p class="subtext"> |     <p class="subtext"> | ||||||
|       Velg hvilke farger du vil ha, fyll inn antall lodd og klikk 'generer' |       Velg hvilke farger du vil ha, fyll inn antall lodd og klikk 'generer' | ||||||
|     </p> |     </p> | ||||||
| @@ -54,13 +54,16 @@ export default { | |||||||
| @import "../styles/variables.scss"; | @import "../styles/variables.scss"; | ||||||
| @import "../styles/global.scss"; | @import "../styles/global.scss"; | ||||||
| @import "../styles/media-queries.scss"; | @import "../styles/media-queries.scss"; | ||||||
|  |  | ||||||
|  | .container { | ||||||
|  |   display: flex; | ||||||
|  |   flex-direction: column; | ||||||
|  |   margin-top: 0; | ||||||
|  | } | ||||||
|  |  | ||||||
| h1 { | h1 { | ||||||
|   cursor: pointer; |   cursor: pointer; | ||||||
| } | } | ||||||
| .header-link { |  | ||||||
|   color: #333333; |  | ||||||
|   text-decoration: none; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| p { | p { | ||||||
|   text-align: center; |   text-align: center; | ||||||
| @@ -74,10 +77,4 @@ p { | |||||||
|     margin-top: 2rem; |     margin-top: 2rem; | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
| .container { |  | ||||||
|   margin: auto; |  | ||||||
|   display: flex; |  | ||||||
|   flex-direction: column; |  | ||||||
| } |  | ||||||
| </style> | </style> | ||||||
|   | |||||||
| @@ -101,25 +101,6 @@ $elementSpacing: 3.5rem; | |||||||
|   margin-bottom: $elementSpacing; |   margin-bottom: $elementSpacing; | ||||||
| } | } | ||||||
|  |  | ||||||
| .container { |  | ||||||
|   width: 90vw; |  | ||||||
|   margin: 3rem auto; |  | ||||||
|   max-width: 1200px; |  | ||||||
|   margin-bottom: 0; |  | ||||||
|   padding-bottom: 3rem; |  | ||||||
|  |  | ||||||
|   @include desktop { |  | ||||||
|     width: 80vw; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| h1 { |  | ||||||
|   font-size: 3rem; |  | ||||||
|   font-family: "knowit"; |  | ||||||
|   color: $matte-text-color; |  | ||||||
|   font-weight: normal; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .filter input { | .filter input { | ||||||
|   font-size: 1rem; |   font-size: 1rem; | ||||||
|   width: 30%; |   width: 30%; | ||||||
|   | |||||||
| @@ -141,24 +141,6 @@ $elementSpacing: 3rem; | |||||||
|   border-color: gray; |   border-color: gray; | ||||||
| } | } | ||||||
|  |  | ||||||
| .container { |  | ||||||
|   width: 90vw;   |  | ||||||
|   margin: 3rem auto; |  | ||||||
|   margin-bottom: 0; |  | ||||||
|   padding-bottom: 3rem; |  | ||||||
|   max-width: 1200px; |  | ||||||
|  |  | ||||||
|   @include desktop { |  | ||||||
|     width: 80vw; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| h1 { |  | ||||||
|   font-size: 3rem; |  | ||||||
|   font-family: "knowit"; |  | ||||||
|   font-weight: normal; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .name { | .name { | ||||||
|   text-transform: capitalize; |   text-transform: capitalize; | ||||||
|   font-size: 3.5rem; |   font-size: 3.5rem; | ||||||
|   | |||||||
| @@ -116,13 +116,18 @@ h1 { | |||||||
| .container{ | .container{ | ||||||
|   display: flex; |   display: flex; | ||||||
|   flex-direction: column; |   flex-direction: column; | ||||||
|    |   width: 100%; | ||||||
|  |  | ||||||
|   .header-and-notification{ |   .header-and-notification{ | ||||||
|     display: flex; |     display: flex; | ||||||
|     flex-direction: row; |     flex-direction: row; | ||||||
|     margin: auto; |     margin: auto; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   h1 { | ||||||
|  |     margin-top: 0; | ||||||
|  |   } | ||||||
|  |  | ||||||
|   .vipps-icon{ |   .vipps-icon{ | ||||||
|     margin: 1em; |     margin: 1em; | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -77,6 +77,11 @@ export default { | |||||||
|   margin-top: 2rem; |   margin-top: 2rem; | ||||||
|   padding: 2rem; |   padding: 2rem; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | h1 { | ||||||
|  |   color: $matte-text-color; | ||||||
|  | } | ||||||
|  |  | ||||||
| .sent-container { | .sent-container { | ||||||
|   width: 100%; |   width: 100%; | ||||||
|   height: 90vh; |   height: 90vh; | ||||||
|   | |||||||
| @@ -37,6 +37,33 @@ a { | |||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .container { | ||||||
|  |   width: 90vw; | ||||||
|  |   margin: 3rem auto; | ||||||
|  |   margin-bottom: 0; | ||||||
|  |   padding-bottom: 3rem; | ||||||
|  |   max-width: 1700px; | ||||||
|  |  | ||||||
|  |   @include desktop { | ||||||
|  |     width: 80vw; | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   h1 { | ||||||
|  |     font-family: "knowit"; | ||||||
|  |     font-weight: normal; | ||||||
|  |     font-size: 2rem; | ||||||
|  |  | ||||||
|  |     @include desktop { | ||||||
|  |       font-size: 3rem; | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .text-center { | ||||||
|  |   text-align: center; | ||||||
|  | } | ||||||
|  |  | ||||||
|  |  | ||||||
| .subtext { | .subtext { | ||||||
|   margin-top: 0.5rem; |   margin-top: 0.5rem; | ||||||
|   font-size: 1.22rem; |   font-size: 1.22rem; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| <template> | <template> | ||||||
|   <div class="container"> |   <div class="flex column"> | ||||||
|     <div class="input-line"> |     <div class="input-line"> | ||||||
|       <label for="redCheckbox"> |       <label for="redCheckbox"> | ||||||
|         <input type="checkbox" id="redCheckbox" v-model="redCheckbox" @click="generateColors"/> |         <input type="checkbox" id="redCheckbox" v-model="redCheckbox" @click="generateColors"/> | ||||||
| @@ -208,12 +208,6 @@ export default { | |||||||
| @import "../styles/global.scss"; | @import "../styles/global.scss"; | ||||||
| @import "../styles/media-queries.scss"; | @import "../styles/media-queries.scss"; | ||||||
|  |  | ||||||
| .container { |  | ||||||
|   margin: auto; |  | ||||||
|   display: flex; |  | ||||||
|   flex-direction: column; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .input-line { | .input-line { | ||||||
|   margin: auto; |   margin: auto; | ||||||
|   display: flex; |   display: flex; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user