annotate site/css/menu.css @ 2:380da6d0a7e9

Swapped fonts, return of the webring
author yakumo_izuru
date Sat, 07 Jun 2025 22:47:50 -0300
parents edf035b5437a
children 21b2c131d8c7
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;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
25 --link-hover: #800080;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
26 --link-visited: #ff0000;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
27 --border: #9d9d9d;
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
28 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
29 body {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
30 background-image: url('/img/reimu.jpg');
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
31 background-position: 40% 10%;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
32 }
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
33 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
34
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
35 /* Youkai mode */
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
36 @media (prefers-color-scheme: dark) {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
37 :root {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
38 --bg: #000000;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
39 --fg: #ffffff;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
40 --link: #ffffff;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
41 --link-hover: #ffd700;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
42 --link-visited: #ffa500;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
43 --border: #494949;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
44 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
45 body {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
46 background-image: url('/img/yukari.jpg');
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
47 background-position: 35% 35%;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
48 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
49 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
50
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
51 body {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
52 background-repeat: no-repeat;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
53 background-color: var(--bg);
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
54 font-family: 'Ume UI Gothic';
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
55 font-weight: bold;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
56 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
57 div.content {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
58 color: var(--fg);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
59 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
60 .menu {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
61 position: absolute;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
62 text-align: justified;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
63 float: left;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
64 bottom: 2px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
65 left: 5px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
66 right: 30px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
67 top: 420px;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
68 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
69 .menu a {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
70 color: var(--link);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
71 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
72 .menu a:hover {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
73 color: var(--link-hover);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
74 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
75 .menu a:visited {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
76 color: var(--link-visited);
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
77 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
78 .powered_by {
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
79 float: right;
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
80 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
81
2
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
82 @media screen and (max-width: 600px) {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
83 body {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
84 background: var(--bg);
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
85 font-family: 'Roboto', sans-serif;
0
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 .menu {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
88 font-size: 20px;
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
89 }
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
90 .powered_by {
380da6d0a7e9 Swapped fonts, return of the webring
yakumo_izuru
parents: 0
diff changeset
91 display: none;
0
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
92 }
edf035b5437a It starts with
yakumo_izuru
parents:
diff changeset
93 }