-
Notifications
You must be signed in to change notification settings - Fork 3
/
bug.less
91 lines (82 loc) · 1.89 KB
/
bug.less
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
@import "charter-webfont/charter.css";
@import "colors.less";
#letterbox-clip-svg {
pointer-events: none;
position: fixed;
z-index: -10000;
top: 0; left: 0; bottom: 0; right: 0;
}
#bug {
position: fixed;
pointer-events: none;
top: 0; left: 0;
color: fuchsia;
// background: linear-gradient(90deg, @midnight-darkest 40%, black, @midnight-darkest 60%);
border: thin solid @yellow-base;
border-left: 10% solid @yellow-base;
padding: 4px;
font-family: Charter, serif;
font-size: 36px;
z-index: 100;
opacity: 0.8;
width: 100vw;
height: 36px;
box-shadow: 0px 0px px rgba(0, 0, 0, 0.2);
transform-origin: center center;
transform:
translate(
calc(
var(--letterbox-width) +
var(--letterbox-left) +
-50% +
-72px
),
calc(
var(--letterbox-height) +
var(--letterbox-top) +
-50% +
-72px
)
)
rotate(-45deg);
> * {
.absoluteCenter();
color: @yellow-base;
text-decoration: none;
opacity: 0;
transition: opacity 3s;
text-align: center;
&.visible { opacity: 1; }
}
}
.absolute(@top: 0, @left: 0, @width: 100vw, @height: 100vh) {
position: absolute;
width: @width;
height: @height;
top: @top;
left: @left;
}
.absoluteCenter(@top: 50%, @left: 50%) {
.absolute(@top, @left, @width: auto, @height: auto);
transform: translate3d(-50%, -50%, 0);
}
.letterbox-bar(@color: black) {
background: black;
position: fixed;
z-index: 2000;
box-sizing: border-box;
}
#letterbox-bar-1 {
.letterbox-bar();
top: var(--letterbox-bars-0-top);
left: var(--letterbox-bars-0-left);
width: var(--letterbox-bars-0-width);
height: var(--letterbox-bars-0-height);
}
#letterbox-bar-2 {
.letterbox-bar();
top: var(--letterbox-bars-1-top);
left: var(--letterbox-bars-1-left);
width: var(--letterbox-bars-1-width);
height: var(--letterbox-bars-1-height);
}