/
d3_flotoolkit_ui1.html
74 lines (57 loc) · 1.07 KB
/
d3_flotoolkit_ui1.html
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
<style>
/*
Thanks to: Usama Tahir
https://medium.com/@AmJustSam
*/
*{
margin: 0;
padding: 0;
}
html{
width: 100vw;
height: 100vh;
}
/* CSS which you need for blurred box */
body{
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-position: top;
background-image:url(http://bit.ly/2gPLxZ4);
width: 100%;
height: 100%;
font-family: Arial, Helvetica;
letter-spacing: 0.02em;
font-weight: 400;
-webkit-font-smoothing: antialiased;
}
.blurred-box{
position: relative;
width: 250px;
height: 350px;
top: calc(50% - 175px);
left: calc(50% - 125px);
background: inherit;
border-radius: 2px;
overflow: hidden;
}
.blurred-box:after{
content: '';
width: 300px;
height: 300px;
background: inherit;
position: absolute;
left: -25px;
right: 0;
top: -25px;
bottom: 0;
box-shadow: inset 0 0 0 200px rgba(255,255,255,0.1);
filter: blur(10px);
}
</style>
<!--
Thanks to:
https://medium.com/@AmJustSam/how-to-do-css-only-frosted-glass-effect-e2666bafab91
-->
<div class="blurred-box">
</div>