-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
120 lines (105 loc) · 3.15 KB
/
index.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
* {
margin: 0;
padding: 0;
}
html, body {
width: 100vw;
background: black;
font-family: monospace, Helvetica,Arial,sans-serif;
}
body::after{
position: absolute;
left:0;
top:0;
width:100%;
height: 500px;
content: "";
background: linear-gradient(130deg,#ff7a18,#af002d 41.07%,#319197 76.05%);
clip-path: polygon(100% 0,0 0,0 77.5%,1% 77.4%,2% 77.1%,3% 76.6%,4% 75.9%,5% 75.05%,6% 74.05%,7% 72.95%,8% 71.75%,9% 70.55%,10% 69.3%,11% 68.05%,12% 66.9%,13% 65.8%,14% 64.8%,15% 64%,16% 63.35%,17% 62.85%,18% 62.6%,19% 62.5%,20% 62.65%,21% 63%,22% 63.5%,23% 64.2%,24% 65.1%,25% 66.1%,26% 67.2%,27% 68.4%,28% 69.65%,29% 70.9%,30% 72.15%,31% 73.3%,32% 74.35%,33% 75.3%,34% 76.1%,35% 76.75%,36% 77.2%,37% 77.45%,38% 77.5%,39% 77.3%,40% 76.95%,41% 76.4%,42% 75.65%,43% 74.75%,44% 73.75%,45% 72.6%,46% 71.4%,47% 70.15%,48% 68.9%,49% 67.7%,50% 66.55%,51% 65.5%,52% 64.55%,53% 63.75%,54% 63.15%,55% 62.75%,56% 62.55%,57% 62.5%,58% 62.7%,59% 63.1%,60% 63.7%,61% 64.45%,62% 65.4%,63% 66.45%,64% 67.6%,65% 68.8%,66% 70.05%,67% 71.3%,68% 72.5%,69% 73.6%,70% 74.65%,71% 75.55%,72% 76.35%,73% 76.9%,74% 77.3%,75% 77.5%,76% 77.45%,77% 77.25%,78% 76.8%,79% 76.2%,80% 75.4%,81% 74.45%,82% 73.4%,83% 72.25%,84% 71.05%,85% 69.8%,86% 68.55%,87% 67.35%,88% 66.2%,89% 65.2%,90% 64.3%,91% 63.55%,92% 63%,93% 62.65%,94% 62.5%,95% 62.55%,96% 62.8%,97% 63.3%,98% 63.9%,99% 64.75%,100% 65.7%);
}
.wrapper {
position: relative;
display: flex;
align-items: center;
flex-direction: column;
z-index: 1;
width: 80%;
min-height: calc(100vh - 120px);
margin: 0 auto;
padding-top: 40px;
padding-bottom: 60px;
color: #fff;
}
header {
margin: 10px 0 40px 0;
}
main {
min-width: calc(100% - 40px);
min-height: calc(100vh - 270px);
background: #fff;
padding: 20px;
border-radius: 8px;
}
main > section {
display: flex;
align-items: flex-start;
flex-wrap: wrap;
}
main > section::after {
content: '';
flex-grow: 999999999;
}
main > section img {
position: absolute;
top: 0;
width: 100%;
vertical-align: bottom;
border-radius: inherit;
box-shadow: 0 0 2px 0 #c4c4c4;
}
main > section > div:not(:last-child) {
margin-right: 10px;
}
.ins-item-container {
position: relative;
border-radius: 8px;
margin-bottom: 10px;
background-color: violet;
cursor: pointer;
}
.ins-item-container:hover::before, .ins-item-container:hover::after {
position: absolute;
display: flex;
justify-content: center;
z-index: 2;
width: 100%;
background: rgba(0, 0, 0, .7);
}
.ins-item-container:hover::before {
top: 0;
align-items: flex-end;
height: calc(50% - 20px);
content: attr(ins-name);
border-top-left-radius: 8px;
border-top-right-radius: 8px;
font-size: 16px;
padding-bottom: 20px;
}
.ins-item-container:hover::after {
top: 50%;
align-items: flex-start;
height: 50%;
content: '去看看';
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
font-size: 14px;
color: #8b8b8b;
}
footer {
position: absolute;
bottom: 0;
padding: 20px 0 10px 0;
}
footer a {
color: #fff;
}