Skip to content

Commit 1f35f7c

Browse files
committed
Adapted to mobile draft 1
1 parent 83f2c44 commit 1f35f7c

File tree

7 files changed

+85
-13
lines changed

7 files changed

+85
-13
lines changed

about.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,16 @@ $(document).ready(function(){
6262
};
6363
});
6464

65+
/// When you click everywhere in the document
66+
$(document).click(function (event) {
67+
68+
/// If *navbar-collapse* is not among targets of event
69+
if (!$(event.target).is('.navbar-collapse')) {
70+
71+
/// Collapse every *navbar-collapse*
72+
$('.navbar-collapse').collapse('hide');
73+
74+
};
75+
});
76+
6577
});

consultations.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1><u>Consultancy</u></h1>
5656
</div>
5757

5858
<div class="row about-page-row1" id="row4">
59-
<h1 style="padding-left: 15px"><u>Application</u></h1>
59+
<h1><u>Application</u></h1>
6060
<div class="col-md-9">
6161
<p>We constantly work on new innovative ways of incorporating new ingredients into existing food products. Whether it is new recipe formulations or enhancements, Unifamm Trading is here to help you achieve your manufacturing and processing needs.</p>
6262
</div>

index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,16 @@ $(document).ready(function(){
7777
};
7878
});
7979

80+
/// When you click everywhere in the document
81+
$(document).click(function (event) {
82+
83+
/// If *navbar-collapse* is not among targets of event
84+
if (!$(event.target).is('.navbar-collapse')) {
85+
86+
/// Collapse every *navbar-collapse*
87+
$('.navbar-collapse').collapse('hide');
88+
89+
};
90+
});
91+
8092
});

ingredients.css

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
html {
22
margin: 0;
33
padding: 0;
4-
box-sizing: border-box;
4+
/* box-sizing: border-box; */
55
overflow-y: scroll;
66
overflow-x: hidden;
77
scroll-behavior: smooth;
@@ -10,6 +10,7 @@ html {
1010
body {
1111
background-color: #fefad4;
1212
width: 100%;
13+
position: relative;
1314
}
1415

1516
nav {
@@ -19,7 +20,7 @@ nav {
1920
h1 {
2021
font-family: 'utopia-std-headline', serif;
2122
font-weight: 400;
22-
font-size: 15vh;
23+
font-size: 10vw;
2324
font-style: normal;
2425
}
2526

@@ -62,7 +63,7 @@ img[alt="unifamm-logo"] {
6263
img[alt="powder1-img"] {
6364
position: absolute;
6465
left: 0;
65-
height: 100vh;
66+
/* height: 100%; */
6667
border-top-right-radius: 20px;
6768
border-bottom-right-radius: 20px;
6869
z-index: -1;
@@ -97,7 +98,7 @@ img[alt="powder1-img"] {
9798
.heading-h2 {
9899
font-family: 'utopia-std-headline', serif;
99100
font-weight: 600;
100-
font-size: 3rem;
101+
font-size: 5vw;
101102
color: #fefad4;
102103
}
103104

@@ -220,17 +221,18 @@ img[alt="powder1-img"] {
220221
#questions-btn {
221222
font-family: "Montserrat", sans-serif;
222223
width: 100%;
223-
height: 3rem;
224+
height: 8vh;
224225
background-color: rgb(254,250,212);
225226
border: 1px solid rgb(0, 0, 0);
226227
transition: 0.3s;
227228
text-decoration: none;
228229
color: black;
229-
width: 100%;
230230
display: flex;
231231
align-items: center;
232232
justify-content: center;
233233
border-radius: 20px;
234+
padding: 5vh 3vw 5vh 3vw;
235+
text-align: center;
234236
}
235237

236238
#questions-btn:hover {
@@ -250,3 +252,23 @@ footer p {
250252
margin-top: 50px;
251253
margin-bottom: 0;
252254
}
255+
256+
@media only screen and (max-width: 800px) {
257+
258+
.ingredients-page-heading-container-fluid {
259+
text-align: right;
260+
height: 50vh;
261+
width: 100%;
262+
display: flex;
263+
align-items: center;
264+
object-position: left;
265+
margin-bottom: 3vh;
266+
opacity: 0;
267+
overflow-x: hidden;
268+
}
269+
270+
img[alt="powder1-img"] {
271+
width: 80%;
272+
}
273+
274+
}

ingredients.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ <h2 class="mb-0">
326326
</div>
327327

328328
<div class="container" id="questions-btn-container">
329-
<a href="index.html#contact" id="questions-btn">Questions on our products? Click to contact us!</a>
329+
<a href="index.html#contact" id="questions-btn">Questions about our products? Click here to contact us!</a>
330330
</div>
331331

332332

ingredients.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,16 @@ $(document).ready(function(){
44
opacity: 1
55
}, 1000);
66

7+
/// When you click everywhere in the document
8+
$(document).click(function (event) {
9+
10+
/// If *navbar-collapse* is not among targets of event
11+
if (!$(event.target).is('.navbar-collapse *')) {
12+
13+
/// Collapse every *navbar-collapse*
14+
$('.navbar-collapse').collapse('hide');
15+
16+
}
17+
});
18+
719
});

styles.css

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,21 @@ img[alt="unifamm-logo"] {
8282
}
8383

8484
.whoAreWe-h1 {
85-
font-size: 3.7rem !important;
85+
font-size: 300% !important;
8686
}
8787

8888
.second-container h1 {
89-
font-size: 3.3rem !important;
89+
font-size: 300% !important;
90+
padding: 20% 0 20% 10% !important;
91+
}
92+
93+
#consultationBox p {
94+
margin: 5% 0 5% 0;
95+
}
96+
97+
#ingredientBox {
98+
bottom: 15%;
99+
padding-top: 2%;
90100
}
91101

92102
#img-container {
@@ -381,7 +391,7 @@ footer p {
381391
}
382392

383393
.about-page-row1 h1 {
384-
font-size: 4rem;
394+
font-size: 500%;
385395
padding-left: 100px;
386396
padding-right: 100px;
387397
}
@@ -420,28 +430,32 @@ u {
420430

421431
.about-page-row1 h1 {
422432
padding-left: 15px;
433+
font-size: 250%;
423434
}
424435

425436
#slogan {
426437
font-size: 2.5rem !important;
427438
width: 300px;
428439
display: inline-block;
429-
padding-left: 50px;
430440
}
431441

432442
p {
433443
font-size: 16px !important;
434444
}
435445

436446
#unifamm-logo-about {
437-
width: 20%;
447+
width: 40%;
438448
}
439449

440450
.supplierLogos {
441451
display: flex;
442452
justify-content: space-between;
443453
width: 120% !important;
444454
}
455+
456+
footer p {
457+
font-size: 0.5rem !important;
458+
}
445459
}
446460

447461
/* consultations page */

0 commit comments

Comments
 (0)