annotate site/css/menu.css @ 4:6cb09daeb401 default tip

Forgot I don't know regex
author yakumo_izuru
date Sun, 08 Jun 2025 13:11:08 -0300
parents 21b2c131d8c7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
1 /*
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
2 * ----------------------------------------------------------------------------
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
3 * "THE BEER-WARE LICENSE" (Revision 42.1+yakumolabs):
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
4 * <eternal-servant@yakumo.dev> wrote this file. As long as you retain this notice you
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
5 * can do whatever you want with this stuff. If we meet some day, and you think
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
6 * this stuff is worth it, you can buy me a Yukari Yakumo fumo (or related merch) in return Izuru Yakumo
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
7 * ----------------------------------------------------------------------------
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
8 */
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
9
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
10 /*
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
11 * This is a hand-written layout which aims to replicate the user interface of
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
12 * GoldSrc-based game menus as much as possible.
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
13 * It contains a lot of hacks just to make stuff work.
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
14 * Mobile support is a non-goal (it works, but wallpaper doesn't fit for obvious reasons)
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
15 */
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
16
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
17 @import "/css/font.css";
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
18
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
19 /* Human mode */
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
20 @media (prefers-color-scheme: light) {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
21 :root {
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
22 --bg: #ffffff;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
23 --fg: #000000;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
24 --link: #000000;
3
21b2c131d8c7 Wallpapers take a long time to load, and the mobile ones were removed because of the same reason
yakumo_izuru
parents: 2
diff changeset
25 --link-ext: #0098C0;
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
26 --link-hover: #800080;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
27 --link-visited: #ff0000;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
28 --border: #9d9d9d;
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
29 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
30 body {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
31 background-image: url('/img/reimu.jpg');
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
32 background-position: 40% 10%;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
33 }
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
34 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
35
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
36 /* Youkai mode */
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
37 @media (prefers-color-scheme: dark) {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
38 :root {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
39 --bg: #000000;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
40 --fg: #ffffff;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
41 --link: #ffffff;
3
21b2c131d8c7 Wallpapers take a long time to load, and the mobile ones were removed because of the same reason
yakumo_izuru
parents: 2
diff changeset
42 --link-ext: #0098C0;
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
43 --link-hover: #ffd700;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
44 --link-visited: #ffa500;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
45 --border: #494949;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
46 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
47 body {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
48 background-image: url('/img/yukari.jpg');
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
49 background-position: 35% 35%;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
50 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
51 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
52
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
53 body {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
54 background-repeat: no-repeat;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
55 background-color: var(--bg);
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
56 font-family: 'Ume UI Gothic';
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
57 font-weight: bold;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
58 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
59 div.content {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
60 color: var(--fg);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
61 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
62 .menu {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
63 position: absolute;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
64 text-align: justified;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
65 float: left;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
66 bottom: 2px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
67 left: 5px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
68 right: 30px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
69 top: 420px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
70 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
71 .menu a {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
72 color: var(--link);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
73 }
3
21b2c131d8c7 Wallpapers take a long time to load, and the mobile ones were removed because of the same reason
yakumo_izuru
parents: 2
diff changeset
74 .menu a.external {
21b2c131d8c7 Wallpapers take a long time to load, and the mobile ones were removed because of the same reason
yakumo_izuru
parents: 2
diff changeset
75 color: var(--link-ext);
21b2c131d8c7 Wallpapers take a long time to load, and the mobile ones were removed because of the same reason
yakumo_izuru
parents: 2
diff changeset
76 }
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
77 .menu a:hover {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
78 color: var(--link-hover);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
79 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
80 .menu a:visited {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
81 color: var(--link-visited);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
82 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
83 .powered_by {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
84 float: right;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
85 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
86
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
87 @media screen and (max-width: 600px) {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
88 body {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
89 background: var(--bg);
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
90 font-family: 'Roboto', sans-serif;
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
91 }
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
92 .menu {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
93 font-size: 20px;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
94 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
95 .powered_by {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
96 display: none;
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
97 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
98 }