summaryrefslogtreecommitdiffhomepage
path: root/game/ui/hud.rcss
blob: b5b1586be0effcb5533eb2dcb0aaa99a296b1672 (plain)
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
body {
    font-family: Mononoki Nerd Font Mono;
    font-size: 14px;
    color: #cdd6f4;
}

/* Translucent rounded HUD panels, tilted in 3D toward the screen centre
   (left panel pivots on its outer/left edge, right panel on its outer/right
   edge, so the inner edges angle forward toward the viewer). */
#hud-left, #hud-right {
    position: absolute;
    top: 14px;
    padding: 10px 16px;
    box-sizing: border-box;
    border-width: 1px;
    border-color: #45475a;
    border-radius: 12px;
}

#hud-left {
    left: 14px;
    width: 480px;
    transform-origin-x: 0%;
    transform-origin-y: 50%;
}

#hud-right {
    left: 630px;
    width: 76px;
    height: 22px;
    transform-origin-x: 100%;
    transform-origin-y: 50%;
}

.line {
    display: block;
    margin-bottom: 3px;
}

#hud-fps {
    color: #a6e3a1;
}