Skip to content

Commit 3b6306f

Browse files
committed
docs: website light mode, styling, embed
1 parent c89ee7e commit 3b6306f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

docs/web/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<title>SourceAutoRecord</title>
88
<link rel="stylesheet" type="text/css" href="style.css">
99
<link rel="icon" type="image/png" href="https://avatars.githubusercontent.com/u/83299896">
10+
<meta name="description" content="SourceAutoRecord (SAR) is a plugin for Portal 2 and mods based on it, bringing lots of features and modifications into the game for speedrunners and people alike.">
11+
<meta property="og:description" content="SourceAutoRecord (SAR) is a plugin for Portal 2 and mods based on it, bringing lots of features and modifications into the game for speedrunners and people alike.">
12+
<meta name="twitter:description" content="SourceAutoRecord (SAR) is a plugin for Portal 2 and mods based on it, bringing lots of features and modifications into the game for speedrunners and people alike.">
13+
<meta property="og:title" content="SourceAutoRecord">
14+
<meta property="og:image" content="/img/sar_logo.webp">
15+
<meta property="og:type" content="website">
16+
<meta property="og:url" content="https://sar.portal2.sr/">
17+
<meta name="twitter:card" content="summary_large_image">
18+
<meta name="twitter:title" content="SourceAutoRecord">
19+
<meta name="twitter:image" content="/img/sar_logo.webp">
1020
</head>
1121
<body>
1222
<nav>

docs/web/style.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@
3939
--accent: #379;
4040
}
4141

42+
@media (prefers-color-scheme: light)
43+
{
44+
:root
45+
{
46+
--background: #f0f0f0;
47+
--alternate-background: #e0e0e0;
48+
--foreground: #111;
49+
--medium: #aaa;
50+
--accent: #59F;
51+
}
52+
}
53+
4254
/* 2.1 Main layout styling */
4355
body
4456
{
@@ -120,12 +132,25 @@ main
120132
white-space: nowrap;
121133
}
122134

135+
#download
136+
{
137+
padding: 0 0 1rem 1.5rem;
138+
border-left: 5px solid var(--accent);
139+
background: var(--alternate-background);
140+
}
141+
123142
.stable
124143
{
125144
background: var(--accent) !important;
126145
color: var(--foreground);
127146
}
128147

148+
.pdb
149+
{
150+
text-decoration: underline;
151+
text-decoration-style: dashed !important;
152+
}
153+
129154
.off-os
130155
{
131156
background: transparent !important;
@@ -172,6 +197,7 @@ p, li
172197
table
173198
{
174199
border-spacing: 0;
200+
margin-bottom: 1rem;
175201
}
176202

177203
th, td

0 commit comments

Comments
 (0)