Skip to content

Commit be729ae

Browse files
committed
fixed h1 and h1 tags for portrait, lanscape, mobile and ipad view
1 parent 4562590 commit be729ae

2 files changed

Lines changed: 61 additions & 18 deletions

File tree

src/pages/wizard/wizard.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ <h1 class="h1">Timeline</h1>
9090
</ion-slide>
9191

9292
<ion-slide class='quest-slide'>
93-
<div class='top-non-flex'>
94-
<ion-list class="non-flex-header" >
95-
<ion-list-header>
96-
<h1 class="h1">Questionnaire 2/3</h1>
93+
<div class='top-question'>
94+
<ion-list class="question-header" >
95+
<ion-list-header class='inner-question-header' >
96+
<h1 class="h1">Questionnaire 1/3</h1>
9797
</ion-list-header>
9898
<p class='h2'>Tell us about yourself</p>
9999
</ion-list>

src/pages/wizard/wizard.scss

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,21 @@ page-wizard {
5252
font-size: 2.5vw;
5353
top: 10vw;
5454
}
55-
.top-non-flex{
55+
.top-question{
5656
position: relative;
5757
//display: block;
5858
// width: 70%;
5959
margin: auto;
60-
font-size: 2.5vw;
60+
// font-size: 2.5vw;
6161
top: 10vw;
6262
}
6363
.h1{
6464
font-weight: bold;
65-
font-size: 3.5vw;
65+
font-size: 20px;
6666
}
6767
.h2 {
6868
white-space: normal;
69-
font-size: 25px;
69+
font-size: 20px;
7070
width: 80%;
7171
margin: 15px auto auto auto;
7272
top: 20px;
@@ -86,7 +86,6 @@ page-wizard {
8686
// margin-top: 10px auto auto auto;
8787
display: inline;
8888
box-shadow: 0px 1px 66px -4px rgba(0,0,0,0.68);
89-
9089
}
9190
.date {
9291
float: left;
@@ -131,12 +130,10 @@ page-wizard {
131130
// outline: none;
132131
// border:1px solid #cccccc
133132
// }
134-
135-
.non-flex-header {
133+
134+
.question-header {
136135
position: relative;
137-
// margin-top: 100px;
138136
}
139-
140137
.q-group {
141138
padding: 20px auto;
142139
// margin: 20px auto;
@@ -184,7 +181,34 @@ page-wizard {
184181
width: 20vw;
185182
}
186183
}
184+
185+
@media screen and (min-width: 1000px) {
186+
.h1 {
187+
font-size: 40px;
188+
}
189+
.h2 {
190+
font-size: 28px;
191+
}
192+
@media screen and (orientation: landscape) {
193+
.question-header .h1 {
194+
font-size: 35px;
195+
}
196+
.question-header {
197+
margin-bottom: 10px;
198+
}
199+
}
200+
}
201+
@media screen and (min-width: 700px) and (orientation: portrait){
202+
.h1 {
203+
font-size: 40px;
204+
}
205+
.h2 {
206+
font-size: 28px;
207+
}
208+
}
209+
187210
@media screen and (orientation:landscape) {
211+
188212
.demo-slide {
189213
align-items: center;
190214
}
@@ -218,17 +242,36 @@ page-wizard {
218242
#timeline {
219243
width: 35%;
220244
}
245+
// .question-header {
246+
// display: flex;
247+
// justify-content: space-around;
248+
// // margin-top: 100px;
249+
// }
250+
.question-header {
251+
// position: relative;
252+
// top: 1vh;
253+
}
254+
.top-question {
255+
position: relative;
256+
top: 60px;
257+
}
258+
259+
.top-question .h1 {
260+
margin: 0px;
261+
font-size: 25px;
262+
263+
}
264+
.top-question .h2 {
265+
margin: 0px auto 0px auto;
266+
font-size: 20px;
267+
}
221268
.buttons {
222269
margin-top: 5vw;
223270
}
224271
.button1 {
225272
height: 5vw;
226273
}
227-
// @media screen and (orientation: portrait) {
228-
// .simple-header{
229-
// width: 60%;
230-
// }
231-
// }
274+
232275
}
233276

234277
}

0 commit comments

Comments
 (0)