-
-
Notifications
You must be signed in to change notification settings - Fork 680
/
webviews.css
59 lines (56 loc) · 1.49 KB
/
webviews.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
#webviews {
height: calc(100vh - 36px - var(--control-space-top));
position: relative;
}
.arrow-indicator {
width: 140px;
height: 140px;
border-radius: 70px;
background: #000;
position: fixed;
top: 50%;
z-index: 1;
opacity: 0;
visibility: hidden;
}
/* use a separate class to avoid an issue where the arrow sometimes appears briefly on startup beginning in Chromium 61 */
.arrow-indicator.animating {
transition: opacity 0.3s, visibility 0.3s;
}
.arrow-indicator.shown {
opacity: 0.6;
visibility: visible;
}
#leftArrowContainer {
left: -70px;
}
#rightArrowContainer {
right: -70px;
}
.arrow {
color: white;
font-size: 40px !important;
margin-top: 50px;
}
#leftArrow {
float: right;
margin-right: 15px;
}
#rightArrow {
float: left;
margin-left: 15px;
}
#webview-placeholder {
width: 100%;
height: 100%;
/* the built-in blur() function creates white edges around the image, avoid this by using an SVG filter. Source:
https://codepen.io/tigt/post/fixing-the-white-glow-in-the-css-blur-filter#comment-id-6373
https://jsbin.com/kupaqa/edit?html,css,output
*/
filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a' x='0' y='0' width='100%' height='100%' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='6' /%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E %3C/svg%3E#a");
background: #fff;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}