forked from CodeYourFuture/HTML-CSS-Module-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstore-mobile.css
More file actions
83 lines (79 loc) · 1.54 KB
/
store-mobile.css
File metadata and controls
83 lines (79 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@media screen and (max-width: 540px) {
/* HEADER */
.nav-list {
display: none;
}
#hamburger-menu {
grid-area: b;
}
.karma-logo{
grid-area: a;
}
.images{
display: grid;
grid-template-columns: 10px 50px 30px 30px 30px 30px 30px 30px 30px 30px 50px 10px;
grid-row: auto;
grid-template-areas: ". a . . . . . . . . b .";
position: absolute;
}
/* MAIN */
.store-main {
display: flex;
flex-direction: column;
}
.form-group-inline {
display: flex;
flex-direction: column;
}
.city-postcode {
display: flex;
flex-direction: column;
}
#postcode {
width: 120px;
}
.orange-grey {
display: grid;
grid-template-columns: 30px 160px;
grid-template-rows: repeat(2, 1fr);
grid-template-areas:
"a c"
"b d";
}
#color1 {
grid-area: a;
}
#color2 {
grid-area: b;
}
.color1-orange {
grid-area: c;
}
.color1-grey {
grid-area: d;
}
.form-line {
display: none;
}
.form-line-mobile {
border-bottom: 2px solid grey;
margin-top: 10px;
}
.mobile-img {
display: inline;
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Do not repeat the image */
background-size: cover; /* Resize the background image to cover the entire container */
margin-top: 80px;
margin-bottom: 50px;
}
footer {
border-top: 2px solid rgb(223, 221, 221);
margin-right: 30px;
margin-left: 30px;
}
.form-button {
margin-left: 70px;
margin-top: 30px;
}
}