-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyles.css
More file actions
180 lines (156 loc) · 2.59 KB
/
styles.css
File metadata and controls
180 lines (156 loc) · 2.59 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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
outline: none;
font-family: 'Tw Cen MT', sans-serif;
}
main {
position: relative;
height: 100vh;
width: 100%;
background: linear-gradient(to left top, rgb(183, 235, 86), #6bffd3 65%);
overflow: hidden;
}
nav {
position: sticky;
width: 85%;
margin: 20px auto;
display: flex;
align-items: center;
z-index: 1000;
}
nav .logo {
flex-basis: 20%;
cursor: pointer;
font-size: 2.5rem;
font-style: oblique;
font-weight: bold;
text-decoration: none;
color: #fff;
}
nav ul {
display: flex;
justify-content: flex-end;
flex: 1;
align-items: center;
padding-right: 40px;
text-align: right;
list-style-type: none;
}
ul li {
margin-right: 10px;
}
ul li a {
position: relative;
padding: 10px 20px;
text-decoration: none;
color: #000;
font-size: 16px;
font-weight: bold;
}
.info {
position: absolute;
top: 50%;
left: -10%;
width: 800px;
height: 800px;
transform: translateY(-50%);
z-index: 100;
}
.phone {
position: absolute;
z-index: 1;
width: 300px;
top: 50%;
left: calc(50% - 150px);
transform: translateY(-50%);
}
#circle {
position: absolute;
top: 0;
left: 0;
width: 800px;
height: 800px;
border-radius: 50%;
transform: rotate(0deg);
transition: 1s;
}
.feature {
position: absolute;
display: flex;
align-items: center;
width: 200px;
}
.feature div {
margin-left: 20px;
}
.feature div h1 {
margin-bottom: 5px;
font-size: 20px;
}
.feature p {
font-size: 14px;
}
.feature img {
width: 40px;
}
.camera {
top: 370px;
right: 50px;
}
.processor {
top: 120px;
left: 300px;
transform: rotate(-90deg);
}
.display {
bottom: 360px;
left: 50px;
transform: rotate(180deg);
}
.weight {
bottom: 130px;
left: 300px;
transform: rotate(-270deg);
}
.controls {
position: absolute;
top: 50%;
right: 10%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
transform: translateY(-50%);
}
.controls h3 {
color: #fff;
margin: 15px 0;
}
.controls img {
position: relative;
width: 25px;
cursor: pointer;
transition: background 0.3s;
}
.controls img:hover {
background: rgb(0 0 0 /15%);
}
.controls #arrowUp {
transform: rotate(180deg);
}
.overlay {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
border-top: 400px solid rgb(7, 7, 10);
border-bottom: 400px solid rgb(7, 7, 10);
border-left: 400px solid rgb(7, 7, 10);
border-right: 400px solid transparent;
z-index: 1;
}