-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
83 lines (68 loc) · 1.51 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
body { margin: 0; }
.foobar-container,
.foo-container,
.bar-container {
width: 100%;
height: 100vh;
display: flex;
}
.foobar-container { background: red; }
.foo-container { background: green; }
.bar-container { background: blue; }
.foobar,
.foo,
.bar {
width: 300px;
height: 400px;
margin: auto;
}
.foobar {
background: red;
background: linear-gradient(to right ,rgba(0, 0, 0, 1), rgba(255, 255, 255, 1));
}
.foo {
background: green;
background: radial-gradient(circle ,red 25%, yellow 25%, black 50%);
}
.bar {
background: gray;
box-shadow: 1px 1px 1px 2px white;
}
.bar.is-loading .bar__image::before,
.bar.is-loading .bar__caption-title::before,
.bar.is-loading .bar__caption-subtitle::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(255, 255, 255, 1), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
transform: translateX(-100%);
animation: loading 1.5s infinite;
}
.bar.is-loading .bar__image::before {
background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 255, 255, 1), rgba(0, 0, 0, 0));
}
.bar__caption { padding: 10px; }
.bar__image,
.bar__caption-title,
.bar__caption-subtitle {
position: relative;
background: black;
overflow: hidden;
}
.bar__image {
width: 100%;
height: 60%;
}
.bar__caption-title {
width: 100%;
height: 30px;
margin-bottom: 15px;
}
.bar__caption-subtitle {
width: 75%;
height: 20px;
}
@keyframes loading {
100% { transform: translateX(100%); }
}