<style>
.main-frosted-glass{
width: 100%;
margin: auto;
padding: 59px 29px;
border-radius: .3em;
text-shadow: 0 1px 1px hsla(0, 0%, 100%, .3);
box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .3) inset, 0 .3em 1em rgba(0, 0, 0, 0.12);
font: 150%/1.6 Baskerville, Palatino, serif;
}
.main-frosted-glass, .main-frosted-glass > div::before {
background: url("./static/city-night.jpg") fixed 0 / cover;
}
.main-frosted-glass > div::before{
content: "";
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
z-index: -1;
filter: blur(10px);
margin: -30px;
}
.main-frosted-glass > div{
font-style: italic;
color: #000;
padding: 30px;
hyphens: auto;
background: hsla(0,0%,100%,.5);
overflow: hidden;
position: relative;
}
.main-frosted-glass > div cite{
font-style: normal;
}
.main-frosted-glass footer {
text-align: right;
}
</style>
<template>
<div class="main-frosted-glass">
<div>
"O God, I could be bounded in a nutshell and count myself a king of infinite space, were it not that I have bad dreams."<br>
“即使我身处果壳之中,我仍以为自己是宇宙之王”
<footer>——
<cite>William Shakespeare</cite>
</footer>
</div>
</div>
</template>
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