-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimeo-vortex.css
129 lines (102 loc) · 1.75 KB
/
vimeo-vortex.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
/*
* Custom CSS
*/
.vimeo-item {
display: block;
background-color: #eee;
background-size: cover;
width: 100%;
margin-bottom: 1em;
position: relative;
}
.vimeoframe {
display: table;
display: block;
position: relative;
width: 100%;
-webkit-transition: background 0.3s ease;
-moz-transition: background 0.3s ease;
-o-transition: background 0.3s ease;
-ms-transition: background 0.3s ease;
transition: background 0.3s ease;
}
.vimeoframe:hover {
background: rgba(0, 0, 0, 0.4);
}
.vimeo-item iframe {
width: 100% !important;
height: 100%;
position: absolute;
}
.vimeo-play-icon {
position: absolute;
text-align: center;
top: 35%;
left: 35%;
width: 30%;
height: 30%;
background: rgba(255, 255, 255, 0.5);
border-radius: 1em;
}
.vimeoframe:hover .vimeo-play-icon {
background: rgba(0, 0, 0, 0.3);
background: rgba(255, 255, 255, 0.3);
}
.vimeo-play-icon svg {
height: 60%;
margin-top: 10%;
margin-left: 10%;
}
.vimeo-play-icon svg polygon {
fill: white;
}
.vid-legende {
display: none;
position: absolute;
top: 1em;
left: 1em;
padding: 0.8em 0.7em;
background-color: #fff;
background-color: rgba(255, 255, 255, 0.8);
}
.vid-legende p {
margin: 0.1em;
}
.vimeoframe img {
display: none;
}
@media only screen
and (min-width : 600px) {
.vid-legende {
display: block;
}
}
/* 768px ----------- */
@media only screen
and (min-width : 768px) {
.vid-legende {
font-size: 110%;
}
.vimeo-item {
margin-bottom: 1.5em;
}
}
/* 930px - Laptop */
@media only screen
and (min-width : 930px) {
.vid-legende {
font-size: 120%;
}
.vimeo-item {
margin-bottom: 2em;
}
}
@media only screen
and (min-width : 1024px) {
.vimeo-play-icon {
/*width: 231px;
height: 228px;
margin-top: -114px;
margin-left: -116px;*/
}
}