-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.css
152 lines (121 loc) · 2.19 KB
/
order.css
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
144
145
146
147
148
149
150
151
152
button {
transition: 0.4s;
}
.bg-black {
background-color: rgb(18, 18, 18);
}
header {
position: fixed;
}
header.cybertruck {
background: transparent;
backdrop-filter: blur(48px);
}
header .logo {
width: 7em;
filter: brightness(0);
}
header .logo.cybertruck {
filter: initial;
}
main {
display: grid;
grid-template-columns: 70% 30%;
height: 100vh;
}
#preview {
background-position: center;
background-size: 140%;
}
#preview.model-3 {
background-image: url("./public/model3_blue.jpeg");
}
#preview.cybertruck {
background-image: url("./public/cybertuck.jpeg");
background-size: 120%;
}
#info {
position: relative;
margin-top: 4rem;
}
.tech-number {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.tech-number .data span {
font-size: 0.8rem;
}
.tech-number .data p {
font-size: 0.8rem;
width: 80%;
margin: 0;
}
.tech-desc {
height: 50vh;
}
.tech-desc li {
font-size: 0.8rem;
margin-bottom: 0.5rem;
}
.order-box {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 90%;
box-shadow: 0px 0px 8px hsla(0, 0%, 0%, 0.3);
border-radius: 0.7rem 0.7rem 0 0 ;
}
.order-box.order-cybertruck {
clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.order-box .price p, .order-box button {
font-size: 0.8rem;
}
.order-box button {
height: 2.4rem;
width: 9em;
font-weight: bold;
}
/* Cybertruck styling */
.name img {
width: 10rem;
margin: auto;
}
.info-cybertruck {
margin-top: 4rem;
}
#options-panel {
width: 80%;
margin: auto;
}
#options-panel .finance-options {
display: grid;
grid-template-columns: 1fr 1fr;
}
#options-panel .finance-options button {
font-size: 0.8em;
}
.edition-options button, .edition-options a {
font-size: 0.8em;
}
.edition-options button:hover {
border: 1px solid white;
}
.edition-options .option-active {
background-color: rgb(36, 36, 36);
}
.terms p {
font-size: 0.8rem;
}
.btn-explore {
border: 1px solid grey;
font-weight: 500;
width: 10rem;
}
.link-edit {
align-self: center;
}
.link-edit:hover {
cursor: pointer;
}