Skip to content

Commit 63ec1f5

Browse files
Merge pull request #63 from hcorson-dosch-usgs/adjust_mobile
Adjust mobile
2 parents d8b6450 + 0ec475a commit 63ec1f5

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ sup {
242242
}
243243
.sticky-header {
244244
position: fixed;
245+
z-index: 5;
245246
top: 0;
246247
left: 0;
247248
width: 100vw;

src/components/DroughtThresholds.vue

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,7 @@ $usgsBlue: #032a56;
28352835
.grid-container{
28362836
display: grid;
28372837
grid-template-columns: 3fr 0.5fr;
2838-
grid-template-rows: auto 10em auto 10em;
2838+
grid-template-rows: auto 10em auto 3em;
28392839
grid-template-areas:
28402840
"title chevron"
28412841
"textbox textbox"
@@ -2847,7 +2847,7 @@ $usgsBlue: #032a56;
28472847
position: sticky;
28482848
left: 10px;
28492849
top: 81px;
2850-
height: 88vh;
2850+
height: 86vh;
28512851
@media (min-width: 950px){
28522852
width: 70vw;
28532853
max-width: 1400px;
@@ -2857,6 +2857,7 @@ $usgsBlue: #032a56;
28572857
"title title chevron"
28582858
"textbox chart chart"
28592859
"navigation navigation navigation";
2860+
height: 88vh;
28602861
}
28612862
}
28622863
.title-text {
@@ -2880,13 +2881,14 @@ $usgsBlue: #032a56;
28802881
justify-self: center;
28812882
height: 95%;
28822883
width: 95%;
2883-
max-height: 60vh;
2884+
max-height: 40vh;
28842885
display: flex;
28852886
display: -webkit-flex;
28862887
justify-content: space-between;
28872888
-webkit-justify-content: space-between;
28882889
@media (min-width: 950px){
28892890
height: 60vh;
2891+
max-height: 60vh;
28902892
}
28912893
}
28922894
.textBox {
@@ -2904,7 +2906,7 @@ $usgsBlue: #032a56;
29042906
}
29052907
// currently empty scroll-by divs used to trigger animation
29062908
.scrolly{
2907-
height:55vh;
2909+
height:85vh;
29082910
@media (min-width: 950px){
29092911
height:55vh;
29102912
}
@@ -2995,7 +2997,14 @@ $usgsBlue: #032a56;
29952997
left: 50%;
29962998
bottom: 20px;
29972999
transform: translate(-50%, -50%);
3000+
top: 1em;
29983001
margin: 0 auto;
3002+
width: 95vw;
3003+
align-self: center;
3004+
text-align: center;
3005+
@media (min-width: 950px){
3006+
width: auto;
3007+
}
29993008
}
30003009
.circleForm{ // circle shape and sizing
30013010
color: white;

0 commit comments

Comments
 (0)