mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-16 11:27:01 +00:00
Added support for custom.css
This commit is contained in:
parent
3c3f1d2f38
commit
b15e888584
4 changed files with 81 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,3 +9,4 @@ private/cache/*
|
||||||
!private/cache/.gitkeep
|
!private/cache/.gitkeep
|
||||||
private/config.ini
|
private/config.ini
|
||||||
error_log
|
error_log
|
||||||
|
custom.css
|
||||||
58
custom_template.css
Normal file
58
custom_template.css
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
/* === Custom CSS based on: https://github.com/ilyadzh/plain-css */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--green: #27ae60;
|
||||||
|
--blue: #3498db;
|
||||||
|
--yellow: #f7af15;
|
||||||
|
--red: #e74c3c;
|
||||||
|
--orange: #fe5722;
|
||||||
|
--purple: #9b27af;
|
||||||
|
--gray: #747681;
|
||||||
|
--black: #333;
|
||||||
|
--alice: #f4f5f6;
|
||||||
|
--apple: #bfffbf;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Global variables. */
|
||||||
|
:root,
|
||||||
|
::backdrop {
|
||||||
|
/* Set sans-serif & mono fonts */
|
||||||
|
--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
|
||||||
|
"Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
|
||||||
|
"Helvetica Neue", sans-serif;
|
||||||
|
--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
||||||
|
--standard-border-radius: 5px;
|
||||||
|
|
||||||
|
/* Default (light) theme */
|
||||||
|
--bg: #fff;
|
||||||
|
--accent-bg: var(--alice);
|
||||||
|
--text: #212121;
|
||||||
|
--text-light: #585858;
|
||||||
|
--border: #d1d1d1;
|
||||||
|
--accent: var(--green);
|
||||||
|
--code: #000;
|
||||||
|
--preformatted: #444;
|
||||||
|
--marked: #ffdd33;
|
||||||
|
--disabled: #efefef;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dark theme */
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root,
|
||||||
|
::backdrop {
|
||||||
|
color-scheme: dark;
|
||||||
|
--bg: #212121;
|
||||||
|
--accent-bg: #2b2b2b;
|
||||||
|
--text: #dcdcdc;
|
||||||
|
--text-light: #ababab;
|
||||||
|
--accent: #ffb300;
|
||||||
|
--code: #f06292;
|
||||||
|
--preformatted: #ccc;
|
||||||
|
--disabled: #111;
|
||||||
|
}
|
||||||
|
/* Add a bit of transparency so light media isn't so glaring in dark mode */
|
||||||
|
img,
|
||||||
|
video {
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,10 +1,14 @@
|
||||||
/* === SimpleCSS overwrites === */
|
/* Global variables. */
|
||||||
:root, ::backdrop {
|
:root,
|
||||||
|
::backdrop {
|
||||||
|
/* Set sans-serif & mono fonts */
|
||||||
|
--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
|
||||||
|
"Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
|
||||||
|
"Helvetica Neue", sans-serif;
|
||||||
|
--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
||||||
|
--standard-border-radius: 5px;
|
||||||
|
|
||||||
/* Default (light) theme */
|
/* Default (light) theme */
|
||||||
--sans-font: -apple-system,BlinkMacSystemFont,"Avenir Next",Avenir,"Nimbus Sans L",Roboto,"Noto Sans","Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif;
|
|
||||||
--mono-font: Consolas,Menlo,Monaco,"Andale Mono","Ubuntu Mono",monospace;
|
|
||||||
--standard-border-radius: 0.5rem;
|
|
||||||
--bg: #fff;
|
--bg: #fff;
|
||||||
--accent-bg: #f5f7ff;
|
--accent-bg: #f5f7ff;
|
||||||
--text: #212121;
|
--text: #212121;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ $profile = getTwtsFromTwtxtString($config['public_txt_url']);
|
||||||
<link rel="webmention" href="<?= $baseURL ?>/webmention" />
|
<link rel="webmention" href="<?= $baseURL ?>/webmention" />
|
||||||
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/libs/simple.css">
|
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/libs/simple.css">
|
||||||
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/libs/timeline.css">
|
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/libs/timeline.css">
|
||||||
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/custom_style.css">
|
<link rel="stylesheet" type="text/css" href="<?= $baseURL ?>/custom.css">
|
||||||
<title><?= $title ?></title>
|
<title><?= $title ?></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue