-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
144 lines (120 loc) · 2.28 KB
/
style.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
/*
in color : linear-gradient(color1,color2) use for make mix color
the value vh it is mean 100 form screen show
clip-path: use for make circle or shap
clip-path: circle(degree of shap at direction n%);
clip-path: circle(40% at right 70%);
*/
* {
padding: 0;
margin: 0;
font-family: sans-serif;
}
body {
background: linear-gradient(#111, #222);
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
body::after {
content: '';
width: 100%;
height: 100%;
background: red;
position: absolute;
z-index: -1;
clip-path: circle(40% at right 70%);
animation: cis ease 1s 1 normal both;
}
.container {
width: 80%;
height: 80%;
background: rgba(225, 225, 225, 0.1);
border-radius: 20%;
overflow: hidden;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
width: 80%;
margin: auto;
padding: 20px 0;
}
nav .logo {
color: white;
text-decoration: none;
font-size: 32px;
text-transform: uppercase;
letter-spacing: 3px;
font-weight: 700;
}
nav ul li {
display: inline-block;
margin: 0 6px;
}
nav ul li a {
color: white;
text-decoration: none;
font-size: 18px;
font-weight: 500;
}
nav ul li a:hover {
color: #e80202;
}
.content {
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
width: 80%;
margin: auto;
}
.content .text {
color: white;
width: 40%;
}
.content .text h2 {
font-size: 40px;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 2px;
}
.content .text p {
font-size: 18px;
line-height: 25px;
letter-spacing: 1px;
}
.content .img {
width: 40%;
}
.content .image img {
width: 400px;
}
@media (min-width:950px) and (max-width:1150px) {
.content .image img {
width: 330px;
}
}
@media (max-width:950px) {
.content,
nav {
flex-direction: column;
justify-content: center;
}
.content .image,
.content .text {
width: 120%;
}
body::after {
clip-path: circle(50% at bottom);
}
@keyframes cis {
100% {
translate: 0 100px;
background: blue;
}
}
}