Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 52 additions & 12 deletions theme/static/css/arescentral.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$dark: mix($color, black, 66.6666%);
$darker: mix($color, black, 50%);
$darkish: mix($color, black, 75%);
#header .content {
#header {
border-color: $dark;
}
nav {
Expand Down Expand Up @@ -80,15 +80,13 @@ body.plugins {
bottom: 0;
width: 23em;
background: #eee;
border-width: 0 1px 0 0;
border-style: solid;
border-color: rgba(0, 0, 0, 0.2);
border-width: 1em 0 0 0;
.content {
margin: 0 -1px 0 0;
height: 100%;
padding: 0 1.5em;
border-width: 0;
border-top-width: 1em;
border-style: solid;
border: solid rgba(0, 0, 0, 0.2);
border-width: 0 1px 0 0;
}
.home {
line-height: 0;
Expand Down Expand Up @@ -491,13 +489,11 @@ tr:last-child td {
@media (max-width: 50em) {
#header {
position: inherit;
top: 0;
left: 0;
width: 100%;
border-width: 0 0 1px 0;
border-width: 0 0 0 1em;
.content {
border-width: 0 0 0 1em;
margin: 0 0 -1px 0;
height: auto;
border-width: 0 0 1px 0;
padding: 1em 1em 1em 50%;
position: relative;
}
Expand Down Expand Up @@ -553,6 +549,50 @@ tr:last-child td {
}
}

@media screen and (prefers-color-scheme: dark) {
html {
background: black;
color: #ccc;
}
#header {
background: #111;
.content {
border-color: rgba(255, 255, 255, 0.2);
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: hsl(0, 0%, 70%);
}
table {
background: hsl(0, 0%, 10%);
}
tr:nth-child(10n+1),
tr:nth-child(10n+2),
tr:nth-child(10n+3),
tr:nth-child(10n+4),
tr:nth-child(10n+5) {
background: hsl(0, 0%, 5%);
}
tt,
.highlight,
.line-block,
.literal-block,
.admonition,
#contents,
blockquote {
background: rgba(255, 255, 255, 0.1);
}
.figure {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.2);
}
}

.youtube-16x9 {
padding-bottom: 56.25%; /* inverse of 16:9 aspect ratio */
position: relative;
Expand Down
8 changes: 7 additions & 1 deletion theme/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{% set root = output_file.split('/')[0].split('.')[0] %}
{% if root in ["antares", "plugins"] %}
{% if root == "antares" %}
{% set favicon = root %}
{% set theme_color = "#396039" %}
{% elif root == "plugins" %}
{% set favicon = root %}
{% set theme_color = "#1d558d" %}
{% else %}
{% set favicon = "favicon" %}
{% set theme_color = "#8d1d1d" %}
{% endif %}
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
Expand All @@ -18,6 +23,7 @@
<link rel="icon" href="/{{ favicon }}.ico?v=1"/>
<link rel="manifest" href="/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="theme-color" content="{{ theme_color }}"/>

<!--[if IE]>
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
Expand Down