-
Notifications
You must be signed in to change notification settings - Fork 0
/
cartNav.html
143 lines (135 loc) · 2.48 KB
/
cartNav.html
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CartNav</title>
</head>
<style>
body {
margin: 0px;
}
#navbar {
background-color: rgb(30, 138, 239);
min-height: 100px;
display: flex;
flex-wrap: wrap;
padding: 0px 20px;
align-items: center;
position: sticky;
top: 0px;
}
#navbar a > img {
width: 180px;
height: 50px;
}
#navOpt {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
#navOpt > div {
display: flex;
align-items: center;
}
#navOpt a + span {
height: 30px;
display: flex;
align-items: center;
padding-left: 34px;
margin-left: 34px;
border-left: 2.5px solid rgba(232, 222, 222, 0.648);
color: white;
font-family: sans-serif;
}
#navOpt span > img {
width: 16px;
height: 20px;
padding-right: 5px;
}
#navText {
display: flex;
justify-content: flex-end;
}
#navText > div {
display: flex;
align-items: center;
}
#navText > div > p:nth-child(odd) {
width: 100px;
height: 4px;
background-color: white;
}
#navText > div > p:nth-child(even) {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: rgb(64, 29, 180);
border: 3px solid white;
}
#navText p > span {
color: white;
font-family: sans-serif;
font-size: 14px;
position: absolute;
top: 65px;
}
@media all and (min-width: 200px) and (max-width: 900px) {
#navbar a > img {
width: 100px;
height: 30px;
}
#navOpt {
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
padding: 2px;
}
#navOpt > div {
flex-wrap: wrap;
}
#navText > div {
max-width: 360px;
}
#navText span {
padding: 12px;
padding-left: 0px;
}
#tableH > :nth-child(1) {
font-size: 0.6rem;
}
#tableBody > :nth-child(n) {
font-size: 0.7rem;
}
#tableBody > tr > td > table > tbody {
max-width: 500px;
}
#tableBody > tr > td > table > tbody > tr {
display: flex;
flex-wrap: wrap;
}
#tableBody > tr > td > table > tbody > tr > :nth-child(n) {
padding: 5px;
}
#orderDiv > div {
font-size: 1.1rem;
display: flex;
flex-wrap: wrap;
}
#totalValue{
font-size: .4rem;
}
#orderDiv > div > :nth-child(n+2) {
width: 120px;
}
}
</style>
<body>
<div id="navbar">
</div>
</body>
</html>
<script src="cartNav.js" type="module"></script>