-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
127 lines (127 loc) · 2.46 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: consolas;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #1111111;
}
.container
{
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
flex-wrap: wrap;
}
.container .box
{
position: relative;
width: 320px;
height: 400px;
color: #fff;
background: #111;
display: flex;
justify-content: center;
align-items: center;
margin: 20px 30px;
transition:0.5s;
}
.container .box:hover
{
transform: translateY(-20px);
}
.container .box::before
{
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, #ffbc00, #ff0058);
}
.container.box::after
{
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, #ffbc00, #ff0058);
filter: 30px;
}
.container .box:nth-child(2)::before,
.container .box:nth-child(2)::after
{
background: linear-gradient(315deg, #03a9f4,#ff0058);
}
.container .box:nth-child(3)::before,
.container .box:nth-child(3)::after
{
background: linear-gradient(315deg, #4dff03,#00d0ff);
}
.container .box:nth-child(4)::before,
.container .box:nth-child(4)::after
{
background: linear-gradient(315deg, #4dff03,#00d0ff);
background: linear-gradient(315deg, #00d0ff,#ff0058);
}
.container .box span
{
position: absolute;
top: 6px;
left: 6px;
right: 6px;
bottom: 6px;
background: rgba(0, 0, 0, 0.6);
z-index: 2;
}
.container.box span::before
{
content:'' ;
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 100%;
background: rgba(255,255,255,0.1);
pointer-events: none;
}
.container .box .content
{
position:relative;
z-index: 10;
padding: 20px 40px ;
}
.container .box .content h2
{
font-size: 1.1em;
color: #fff;
margin-bottom: 10px;
}
.container .box .content p
{
font-size: 1.1em;
color: #fff;
margin-bottom: 10px;
line-height: 1.4em;
}
.container .box .content a
{
display: inline-block;
font-size: 1.1em;
color: #111;
background: #fff;
padding: 10px;
text-decoration: none;
font-weight:700;
}