forked from smart-components/smart-dialog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
103 lines (90 loc) · 2.04 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/**
* fxos-tv-dialog
* - State:
* 1. closed
* 2. opening
* 3. opened - content visible
* 4. closing
* Default scale: 1920x1080 (2*sqrt(960*960 + 1080*1080) / 20 = 144.5)
*/
fxos-tv-dialog {
position: fixed;
z-index: 2147483647;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
fxos-tv-dialog:before {
content: attr(title);
display: block;
margin-top: 5rem;
margin-left: 7.6rem;
font-family: "Fira Sans";
font-size: 5.4rem;
font-style: italic;
color: #ffffff;
}
fxos-tv-dialog:after {
content: "";
display: block;
position: fixed;
height: 2rem;
width: 2rem;
top: calc(100% - 1rem);
left: calc(50% - 1rem);
background-color: rgba(0, 0, 0, 0.9);
transition: none;
transform: scale(20);
}
fxos-tv-dialog.closed > *,
fxos-tv-dialog.closing > *,
fxos-tv-dialog.opening > *,
fxos-tv-dialog.closed:before,
fxos-tv-dialog.closing:before,
fxos-tv-dialog.opening:before {
display: none;
}
fxos-tv-dialog.closed {
visibility: hidden;
}
fxos-tv-dialog.opened {
background-color: rgba(0, 0, 0, 0.9);
}
fxos-tv-dialog.opened:after {
visibility: hidden;
border-radius: 50%;
transform: scale(144.5);
}
fxos-tv-dialog.opening:after {
border-radius: 50%;
transform: scale(144.5);
/* transitionDuration should be the same as openDuration variable in script */
transition: transform 1s cubic-bezier(0, 0, 0 ,1);
}
fxos-tv-dialog.closing:after {
border-radius: 50%;
transform: scale(20);
/* transitionDuration should be the same as closeDuration variable in script */
transition: transform 0.65s cubic-bezier(0.6, 0, 1 ,1);
}
/* 1280x800 for flatfish */
@media (width: 1280px) and (height: 800px) {
fxos-tv-dialog:after,
fxos-tv-dialog.closing:after {
transform: scale(7.5);
}
fxos-tv-dialog.opening:after {
transform: scale(102.5);
}
}
/* 800x1280 for flatfish vertical */
@media (width: 800px) and (height: 1280px) {
fxos-tv-dialog:after,
fxos-tv-dialog.closing:after {
transform: scale(8.3);
}
fxos-tv-dialog.opening:after {
transform: scale(134);
}
}