-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.less
112 lines (96 loc) · 2.05 KB
/
base.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
@import "colors.less";
html {
--typewriter-cursor-color: @electric-blue;
--typewriter-cursor-blink-rate: 1.2s;
overflow: hidden;
height: 100%;
}
body {
background: black;
font-family: Monaco;
font-size: 26px;
padding: 0;
margin: 0;
overflow: hidden;
height: 100%;
}
:global(.vbox) {
display: flex;
flex-flow: column nowrap;
align-items: center;
justify-content: center;
height: 100%;
}
h1 {
color: @electric-blue
}
.fixed(@top: 0, @left: 0, @right: auto, @width: 100vw, @height: 100vh, @bottom: auto) {
position: fixed;
width: @width;
height: @height;
top: @top;
left: @left;
bottom: @bottom;
right: @right;
}
.absolute(@top: 0, @left: 0, @width: 100vw, @height: 100vh) {
position: absolute;
width: @width;
height: @height;
top: @top;
left: @left;
}
.absoluteCenter {
.absolute(@top: 50%, @left: 50%, @width: auto, @height: auto);
transform: translate3d(-50%, -50%, 0);
}
@keyframes trippy {
0% { filter: hue-rotate(0); }
50% { filter: hue-rotate(180deg); }
100% { filter: hue-rotate(0); }
}
.trippy {
animation-name: trippy;
animation-duration: 2s;
animation-iteration-count: infinite;
}
#bootloader {
.fixed();
background: black;
color: white;
overflow: scroll;
> type-writer {
display: block;
--typewriter-typing-rate: 100;
--typewriter-cursor-color: rgba(0, 0, 0, 0);
}
> type-writer.terminal {
white-space: pre;
--typewriter-typing-rate: 100;
}
}
build-note {
display: none;
}
.type-writer-title(@bg: @electric-blue, @fg: black) {
display: inline-block;
transition: 1s;
background: @bg;
color: @fg;
--typewriter-cursor-color: @fg;
padding: 0 9px;
}
.window(@color: @electric-blue) {
.fixed(@top: 50%, @left: 50%, @width: auto, @height: auto);
transform: translate(-50%, -50%) scale(0);
transition: 1s;
box-sizing: border-box;
> type-writer { .type-writer-title(@color); }
> video, > img {
.window-content(@color);
}
}
.window-content(@color: @electric-blue) {
border: 3px solid @color;
box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.4);
}