Skip to content

Commit 632e928

Browse files
committed
changed color and responsive sizing
1 parent f3df32d commit 632e928

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

css/crumple.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,13 @@
351351

352352
@media (hover: hover) {
353353
.footer > a:nth-child(odd):hover~.crumple {
354-
background: #6190e8; /* fallback for old browsers */
355-
background: -webkit-linear-gradient(45deg, #6190e8, #e0ebff); /* Chrome 10-25, Safari 5.1-6 */
356-
background: linear-gradient(45deg, #6190e8, #e0ebff);
354+
background: #1E90FF; /* fallback for old browsers */
355+
background: -webkit-linear-gradient(45deg, #1E90FF, #00BFFF); /* Chrome 10-25, Safari 5.1-6 */
356+
background: linear-gradient(45deg, #1E90FF, #00BFFF);
357357
background-size: 400% 400%;
358358
}
359359
.footer > a:nth-child(2n):hover~.crumple {
360-
background: #ee5c87; /* fallback for old browsers */
360+
background: #66CDAA; /* fallback for old browsers */
361361
background: -webkit-linear-gradient(45deg, #66CDAA, #20B2AA); /* Chrome 10-25, Safari 5.1-6 */
362362
background: linear-gradient(45deg, #66CDAA, #20B2AA);
363363
background-size: 400% 400%;

css/font.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ a:focus, a:hover {
6565
h1 {
6666
font-size: 2.5em;
6767
}
68+
.menu {
69+
font-size: 2.5em;
70+
}
6871
}
6972

7073
.reference {

css/mobile.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
flex-direction: column;
3232
font-size: 1.5em;
3333
height: 100vh;
34-
justify-content: space-around;
34+
justify-content: space-evenly;
3535
}
3636
.menu > div {
3737
flex-basis: auto;
38-
margin: 0;
39-
padding: 1em;
38+
flex-grow: 1;
39+
margin: 0.5em;
4040
}
4141
.menu > div > div {
4242
flex-basis: auto;
@@ -54,13 +54,22 @@
5454
padding-top: 0.7em;
5555
}
5656
}
57-
@media (min-width:1080px) {
57+
@media only screen and (min-width:1080px) {
5858
.bio {
5959
max-width: 1100px;
6060
}
6161
.writing {
6262
max-width: 750px;
6363
}
64+
.menu {
65+
height: calc(100vh - 2.1em);
66+
max-height: calc(100vh - 1.4em);
67+
min-height: calc(100vh - 1.4em);
68+
}
69+
.menu > div {
70+
flex-basis: calc(50% - 72px);
71+
margin: 36px;
72+
}
6473
.footer {
6574
right: 3em;
6675
bottom: 5em;

js/main.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
$(window).scroll(function() {
33
var isMobile = window.matchMedia("only screen and (max-width: 850px)").matches ||
44
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
5-
if(isMobile) {
5+
var isOtherMediaQuery = window.matchMedia("only screen and (min-width:1080px)").matches;
6+
if(isMobile && !isOtherMediaQuery) {
67
// some code..
78
console.log('there');
89
} else {
@@ -15,10 +16,11 @@ $(window).scroll(function() {
1516
if (wS > (hT+hH-wH)){
1617
$('#footer').addClass("menu-footer");
1718
$('#footer').removeClass("hero-footer");
18-
19+
console.log("welp");
1920
} else {
2021
$('#footer').addClass("hero-footer");
2122
$('#footer').removeClass("menu-footer");
23+
console.log("welp there");
2224
}
2325
}
2426
});

0 commit comments

Comments
 (0)