Skip to content

Commit 48935ae

Browse files
adding fix for device size of my phone --- dev tools had incorrect size for my phone 360x772
1 parent db5d6c0 commit 48935ae

10 files changed

Lines changed: 74 additions & 28 deletions

File tree

css/00-sections.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,14 @@
7171
}
7272
}
7373

74-
/*@media only screen and (max-width: 400px) {*/
75-
@media only screen and (max-width: 481px) {
74+
@media only screen and (max-width: 400px) {
7675
/*@media only screen and (max-width: 6.2in) {*/
7776
#contact .section-intro {
7877
padding: 1.5rem;
7978
}
8079
}
8180

82-
/*@media only screen and (max-width: 400px) {*/
83-
@media only screen and (max-width: 481px) {
81+
@media only screen and (max-width: 400px) {
8482
/*@media only screen and (max-width: 6.2in) {*/
8583
.section-intro h1 {
8684
font-size: 3.3rem;

css/01-main.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,3 +390,10 @@ button::-moz-focus-inner, input::-moz-focus-inner {
390390
.narrow {
391391
max-width: 800px;
392392
}
393+
394+
@media only screen and (max-width: 400px) {
395+
/*@media only screen and (max-width: 6.2in) {*/
396+
.btn--primary {
397+
font-size: 1rem;
398+
}
399+
}

css/02-home.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,11 +792,20 @@ html.no-csstransitions .home-content__main {
792792
}
793793
}
794794

795-
/*@media only screen and (max-width: 400px) {*/
796-
@media only screen and (max-width: 481px) {
795+
@media only screen and (max-width: 400px) {
797796
/*@media only screen and (max-width: 6.2in) {*/
798797
.home-content {
799798
vertical-align: middle;
799+
/*width: 100%;
800+
height: 100%;
801+
vertical-align: bottom;*/
802+
padding-bottom: 10rem;
803+
}
804+
.home-content__scroll {
805+
/*position: absolute;
806+
left: .6rem;
807+
/*bottom: -13.2rem;*/
808+
bottom: -2.2rem;
800809
}
801810
.home-content h1 {
802811
font-size: 3.5rem;

css/03-about.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,24 @@
8282
padding-left: 10px;
8383
}
8484
.s-about p.lead { /* .lead is in bootstrap */
85-
padding: 0px;
85+
/*padding: 0px;*/
8686
font-size: 1.7rem;
87-
margin-bottom: 2rem;
87+
padding-bottom: 2rem;
8888
}
8989
p {
9090
font-size: 1.3rem;
9191
}
9292
}
9393

94-
/*@media only screen and (max-width: 400px) {*/
95-
@media only screen and (max-width: 481px) {
94+
@media only screen and (max-width: 400px) {
9695
/*@media only screen and (max-width: 6.2in) {*/
9796
.about-content .left {
9897
padding-right: 0;
9998
}
10099
.about-content .right {
101100
padding-left: 0;
102101
}
102+
.about-content .btn-primary {
103+
font-size: 1rem;
104+
}
103105
}

css/04-projects.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,7 @@
269269
}
270270
}
271271

272-
/*@media only screen and (max-width: 400px) {*/
273-
@media only screen and (max-width: 481px) {
272+
@media only screen and (max-width: 400px) {
274273
/*@media only screen and (max-width: 6.2in) {*/
275274
.masonry-wrap {
276275
width: auto;

css/04-xp.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@
115115
}
116116
}
117117

118-
/*@media only screen and (max-width: 400px) {*/
119-
@media only screen and (max-width: 481px) {
118+
@media only screen and (max-width: 400px) {
120119
/*@media only screen and (max-width: 6.2in) {*/
121120
.timeline__block {
122121
padding-left: 5.5rem;

css/10-contact.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@
277277
}
278278
}
279279

280-
/*@media only screen and (max-width: 400px) {*/
281-
@media only screen and (max-width: 481px) {
280+
@media only screen and (max-width: 400px) {
282281
/*@media only screen and (max-width: 6.2in) {*/
283282
.contact__form {
284283
padding-right: 0;
@@ -465,7 +464,7 @@ input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:foc
465464
/* parallax without JS - Create the scrolling effect */
466465
background-attachment: fixed;
467466
background-size: auto 100%;
468-
background-position: 20%, center;
467+
background-position: 10%, 25%;
469468
padding-top: 7rem;
470469
padding-bottom: 3rem;
471470
/*background-repeat: no-repeat;

css/11-footer.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ footer a:hover, footer a:focus {
204204
}
205205
}
206206

207-
/*@media only screen and (max-width: 400px) {*/
208-
@media only screen and (max-width: 481px) {
207+
@media only screen and (max-width: 400px) {
209208
/*@media only screen and (max-width: 6.2in) {*/
210209
.footer-site-logo {
211210
width: 100px;

css/blog.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,7 @@ article.blog-single .blog-content {
770770
}
771771
}
772772

773-
/*@media only screen and (max-width: 400px) {*/
774-
@media only screen and (max-width: 481px) {
773+
@media only screen and (max-width: 400px) {
775774
/*@media only screen and (max-width: 6.2in) {*/
776775
.page-header__content {
777776
font-size: 1.6rem;

css/media.css

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@
279279
}
280280
}
281281

282-
/*@media only screen and (max-width: 400px) {*/
283-
@media only screen and (max-width: 481px) {
282+
@media only screen and (max-width: 400px) {
284283
/*@media only screen and (max-width: 6.2in) {*/
285284
/* On screens that are 413px wide or less,
286285
make the columns stack on top of each other
@@ -289,12 +288,15 @@
289288
flex-direction: column;
290289
}
291290
#home .home-content .row h2 {
292-
font-size: 2.63rem;
293-
width: 90%;
291+
font-size: 2rem;
292+
width: 95%;
294293
}
295294

296295
#home .home-content .flex-row {
297-
padding-top: 35rem;
296+
padding-top: 60%;
297+
}
298+
#home .home-content {
299+
margin-bottom: 0px;
298300
}
299301
}
300302

@@ -307,8 +309,7 @@
307309
/* stack columns on small mobile devices
308310
* ------------------------------------------------------------------- */
309311

310-
/*@media only screen and (max-width: 400px) {*/
311-
@media only screen and (max-width: 481px) {
312+
@media only screen and (max-width: 400px) {
312313
/*@media only screen and (max-width: 6.2in) {*/
313314
/* typography */
314315
html {
@@ -342,4 +343,38 @@
342343
margin-left: 0;
343344
margin-right: 0;
344345
}
346+
347+
#about h1,
348+
#XP h1 {
349+
font-size: 3.1rem;
350+
}
351+
#about .section-intro,
352+
#XP .section-intro,
353+
#XP .col-six {
354+
padding-left: 0px;
355+
padding-right: 0px;
356+
}
357+
#about p.lead,
358+
#XP p.lead {
359+
font-size: 1.8rem;
360+
}
361+
#about p {
362+
font-size: 1.65rem; /* less than p .ead */
363+
/*padding-bottom: 2.2rem;*/
364+
}
365+
#XP h3 {
366+
font-size: 2.1rem;
367+
}
368+
#XP h5 {
369+
font-size: 1.25rem;
370+
}
371+
#XP ul.lead {
372+
font-size: 1.6rem;
373+
}
374+
#contact .section-intro {
375+
padding: 0px;
376+
margin-left: 0px;
377+
margin-right: 0px;
378+
width: 98%;
379+
}
345380
}

0 commit comments

Comments
 (0)