forked from HackYourFuture-CPH/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
121 lines (98 loc) · 1.97 KB
/
main.css
File metadata and controls
121 lines (98 loc) · 1.97 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
body {
font-family: "Open Sans", sans-serif;
background-color: #F9FBFD;
}
* {
box-sizing: border-box;
}
body, h1, h2 {
margin: 0;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
header {
background-color: white;
box-shadow: 0 1px 2px rgba(190, 190, 190, 0.5);
}
header .wrapper {
width: 800px;
margin: 0 auto;
height: 80px;
background: #FFFFFF;
position: relative;
}
header .wrapper h1, header .wrapper h2 {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
header .wrapper h2 {
left: 125px;
}
/*#FF813F*/
section.table-view-control, section.products, section.cart {
max-width: 800px;
margin: 0 auto;
}
section.table-view-control, section.products {
margin: 24px auto 12px;
background-color: white;
box-shadow: 0 1px 2px rgba(190, 190, 190, 0.5);
border-radius: 8px;
}
section.table-view-control {
padding: 12px;
}
section.table-view-control>div, section.table-view-control .filters>div {
margin-bottom: 24px;
}
section.products>ul {
padding: 0;
}
section.products>ul>li>ul {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 12px 12px 12px;
}
section.products>ul>li>ul>li:first-child {
width: 200px;
}
section.products>ul>li:nth-child(odd) {
background-color: #f0f0f0;
}
section.products li div, section.products li button {
margin-right: 12px;
width: 100px;
}
section.products li .name {
width: 200px;
}
section.cart {
position: fixed;
bottom: 12px;
right: 12px;
width: 300px;
height: 200px;
background-color: white;
overflow-y: auto;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
padding: 12px;
border-radius: 8px;
}
section.cart ul {
list-style-type: none;
margin: 0;
padding: 0;
}
section.cart ul>li {
display: flex;
justify-content: space-between;
padding: 6px;
}
section.cart ul>li:nth-child(odd) {
background-color: #f0f0f0;
}