Compare commits
33 Commits
980ffad386
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e3dfaf3680 | |||
|
16ae126308
|
|||
|
de85c23805
|
|||
|
21187be0b6
|
|||
|
7db24ea730
|
|||
|
7e823484b0
|
|||
|
3e93cc7ffb
|
|||
|
9634b3958f
|
|||
|
31277ed144
|
|||
|
a347aedd0f
|
|||
|
b2dd3b075c
|
|||
|
6b6af5f505
|
|||
|
5ebcbf6362
|
|||
|
82517eda04
|
|||
|
ca58ef6639
|
|||
|
70ee222886
|
|||
|
4061fdd9be
|
|||
|
27d832b244
|
|||
|
f0795da618
|
|||
|
22ab71170b
|
|||
|
f6ee2cf09d
|
|||
|
b10387392a
|
|||
|
8fb62b291d
|
|||
|
c7465706c4
|
|||
|
6143411d69
|
|||
|
f99ba417cf
|
|||
|
c4264eb362
|
|||
|
3709c37527
|
|||
|
3f21f7152b
|
|||
|
ae9ce73739
|
|||
|
a8f04a0b18
|
|||
|
0a3b787cb6
|
|||
|
bb6d68a997
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "fonts/comic-mono-font"]
|
||||
path = fonts/comic-mono-font
|
||||
url = https://git.alv.cx/alvierahman90/comic-mono-font.git
|
||||
66
base.css
66
base.css
@@ -1,29 +1,30 @@
|
||||
@import url("https://styles.alv.cx/modules/colors/gruvbox.css");
|
||||
|
||||
:root {
|
||||
--light: var(--gruvbox-fg);
|
||||
--dark: var(--gruvbox-bg);
|
||||
--light: var(--colorscheme-light);
|
||||
--dark: var(--colorscheme-dark);
|
||||
|
||||
--fg: var(--dark);
|
||||
--fg-lc: var(--colorscheme-dark-lighter);
|
||||
--bg: var(--light);
|
||||
--a: var(--gruvbox-blue);
|
||||
--a-visited: var(--gruvbox-purple);
|
||||
--bg-lc: var(--colorscheme-light-darker);
|
||||
|
||||
--body-max-width: 800px;
|
||||
--font-size: 16px;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: monospace, sans-serif;
|
||||
color: var(--fg);
|
||||
font-size: 16px;
|
||||
font-size: var(--font-size);
|
||||
margin: 2em auto;
|
||||
max-width: 800px;
|
||||
max-width: var(--body-max-width);
|
||||
padding: 1em;
|
||||
line-height: 1.4;
|
||||
overflow-wrap: break-word;
|
||||
background-color: var(--bg);
|
||||
}
|
||||
|
||||
a { color: var(--a); }
|
||||
a:visited { color: var(--a-visited); }
|
||||
a { color: var(--blue); }
|
||||
a:visited { color: var(--purple); }
|
||||
|
||||
.tableWrapper {
|
||||
max-width: 100%;
|
||||
@@ -38,20 +39,19 @@ table {
|
||||
|
||||
th, td {
|
||||
padding: 1em;
|
||||
border: 1px solid #454545;
|
||||
border: 1px solid var(--fg-lc);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
pre {
|
||||
padding: 1em;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
code, pre{
|
||||
background-color: #d9d9d9 ;
|
||||
color: #000;
|
||||
background-color: var(--light);
|
||||
color: var(--dark);
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ li {
|
||||
|
||||
|
||||
blockquote {
|
||||
border-left: 0.4em solid #454545;
|
||||
border-left: 0.4em solid var(--fg-lc);
|
||||
margin-left: 0;
|
||||
padding-left: 1em;
|
||||
padding-top: 0.5em;
|
||||
@@ -97,9 +97,43 @@ figcaption {
|
||||
|
||||
kbd {
|
||||
color: var(--bg);
|
||||
background-color: var(--fg);
|
||||
background-color: var(--fg-lc);
|
||||
border-radius: 0.25em;
|
||||
padding: 0.2em;
|
||||
margin-left: 0.2em;
|
||||
margin-right: 0.2em;
|
||||
}
|
||||
|
||||
input, select, button {
|
||||
color: var(--fg-lc);
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--fg);
|
||||
border-radius: 0.5em;
|
||||
padding: 0.5em;
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
::placeholder {
|
||||
color: var(--fg-lc);
|
||||
}
|
||||
|
||||
/* scrollbar */
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
box-shadow: none;
|
||||
border-radius: 0px;
|
||||
background-color: var(--bg);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--fg-lc);
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--fg);
|
||||
}
|
||||
|
||||
24
colors.txt
Normal file
24
colors.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/colors/<colorscheme>.css");
|
||||
|
||||
and use the variables created in the file
|
||||
|
||||
the following colors will be available to use with all colorschemes (useful for
|
||||
switching between colorschemes easily)
|
||||
|
||||
|
||||
--orange
|
||||
--red
|
||||
--green
|
||||
--yellow
|
||||
--blue
|
||||
--purple
|
||||
|
||||
--colorscheme-light
|
||||
--colorscheme-light-darker
|
||||
--colorscheme-dark
|
||||
--colorscheme-dark-lighter
|
||||
|
||||
colorschemes also have their own custom colors inside, which can be used if
|
||||
switching themes is not a concern.
|
||||
@@ -24,8 +24,20 @@
|
||||
--base16-orange: var(--base16-base09);
|
||||
--base16-yellow: var(--base16-base0A);
|
||||
--base16-green: var(--base16-base0B);
|
||||
--base16-lightblue: var(--base16-base0C);
|
||||
--base16-teal: var(--base16-base0C);
|
||||
--base16-blue: var(--base16-base0D);
|
||||
--base16-purple: var(--base16-base0E);
|
||||
--base16-brown: var(--base16-base0F);
|
||||
|
||||
--colorscheme-light: var(--base16-fg);
|
||||
--colorscheme-light-darker: var(--base16-base04);
|
||||
--colorscheme-dark: var(--base16-bg);
|
||||
--colorscheme-dark-lighter: var(--base16-base01);
|
||||
|
||||
--orange: var(--base16-orange);
|
||||
--red: var(--base16-red);
|
||||
--green: var(--base16-green);
|
||||
--yellow: var(--base16-yellow);
|
||||
--blue: var(--base16-blue);
|
||||
--purple: var(--base16-purple);
|
||||
}
|
||||
@@ -32,4 +32,18 @@
|
||||
--gruvbox-fg3: #bdae93;
|
||||
--gruvbox-fg4: #a89984;
|
||||
--gruvbox-gray: #928374;
|
||||
|
||||
--colorscheme-light: var(--gruvbox-fg);
|
||||
--colorscheme-light-darker: var(--gruvbox-fg4);
|
||||
--colorscheme-dark: var(--gruvbox-bg);
|
||||
--colorscheme-dark-lighter: var(--gruvbox-bg4);
|
||||
|
||||
--orange: var(--gruvbox-orange);
|
||||
--red: var(--gruvbox-red);
|
||||
--green: var(--gruvbox-green);
|
||||
--yellow: var(--gruvbox-yellow);
|
||||
--blue: var(--gruvbox-blue);
|
||||
--purple: var(--gruvbox-purple);
|
||||
--light: var(--gruvbox-fg);
|
||||
--dark: var(--gruvbox-bg);
|
||||
}
|
||||
93
fonts/Source_Code_Pro/OFL.txt
Normal file
93
fonts/Source_Code_Pro/OFL.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
79
fonts/Source_Code_Pro/README.txt
Normal file
79
fonts/Source_Code_Pro/README.txt
Normal file
@@ -0,0 +1,79 @@
|
||||
Source Code Pro Variable Font
|
||||
=============================
|
||||
|
||||
This download contains Source Code Pro as both variable fonts and static fonts.
|
||||
|
||||
Source Code Pro is a variable font with this axis:
|
||||
wght
|
||||
|
||||
This means all the styles are contained in these files:
|
||||
SourceCodePro-VariableFont_wght.ttf
|
||||
SourceCodePro-Italic-VariableFont_wght.ttf
|
||||
|
||||
If your app fully supports variable fonts, you can now pick intermediate styles
|
||||
that aren’t available as static fonts. Not all apps support variable fonts, and
|
||||
in those cases you can use the static font files for Source Code Pro:
|
||||
static/SourceCodePro-ExtraLight.ttf
|
||||
static/SourceCodePro-Light.ttf
|
||||
static/SourceCodePro-Regular.ttf
|
||||
static/SourceCodePro-Medium.ttf
|
||||
static/SourceCodePro-SemiBold.ttf
|
||||
static/SourceCodePro-Bold.ttf
|
||||
static/SourceCodePro-ExtraBold.ttf
|
||||
static/SourceCodePro-Black.ttf
|
||||
static/SourceCodePro-ExtraLightItalic.ttf
|
||||
static/SourceCodePro-LightItalic.ttf
|
||||
static/SourceCodePro-Italic.ttf
|
||||
static/SourceCodePro-MediumItalic.ttf
|
||||
static/SourceCodePro-SemiBoldItalic.ttf
|
||||
static/SourceCodePro-BoldItalic.ttf
|
||||
static/SourceCodePro-ExtraBoldItalic.ttf
|
||||
static/SourceCodePro-BlackItalic.ttf
|
||||
|
||||
Get started
|
||||
-----------
|
||||
|
||||
1. Install the font files you want to use
|
||||
|
||||
2. Use your app's font picker to view the font family and all the
|
||||
available styles
|
||||
|
||||
Learn more about variable fonts
|
||||
-------------------------------
|
||||
|
||||
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
|
||||
https://variablefonts.typenetwork.com
|
||||
https://medium.com/variable-fonts
|
||||
|
||||
In desktop apps
|
||||
|
||||
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
|
||||
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
|
||||
|
||||
Online
|
||||
|
||||
https://developers.google.com/fonts/docs/getting_started
|
||||
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
|
||||
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
|
||||
|
||||
Installing fonts
|
||||
|
||||
MacOS: https://support.apple.com/en-us/HT201749
|
||||
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
|
||||
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
|
||||
|
||||
Android Apps
|
||||
|
||||
https://developers.google.com/fonts/docs/android
|
||||
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
|
||||
|
||||
License
|
||||
-------
|
||||
Please read the full license text (OFL.txt) to understand the permissions,
|
||||
restrictions and requirements for usage, redistribution, and modification.
|
||||
|
||||
You can use them in your products & projects – print or digital,
|
||||
commercial or otherwise.
|
||||
|
||||
This isn't legal advice, please consider consulting a lawyer and see the full
|
||||
license for all details.
|
||||
BIN
fonts/Source_Code_Pro/SourceCodePro-Italic-VariableFont_wght.ttf
Normal file
BIN
fonts/Source_Code_Pro/SourceCodePro-Italic-VariableFont_wght.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/SourceCodePro-VariableFont_wght.ttf
Normal file
BIN
fonts/Source_Code_Pro/SourceCodePro-VariableFont_wght.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Black.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Black.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-BlackItalic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Bold.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-BoldItalic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraBold.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraBold.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraBoldItalic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraBoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraLight.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraLightItalic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-ExtraLightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Italic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Light.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Light.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-LightItalic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-LightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Medium.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Medium.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-MediumItalic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-MediumItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Regular.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-SemiBold.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-SemiBold.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Code_Pro/static/SourceCodePro-SemiBoldItalic.ttf
Normal file
BIN
fonts/Source_Code_Pro/static/SourceCodePro-SemiBoldItalic.ttf
Normal file
Binary file not shown.
93
fonts/Source_Sans_Pro/OFL.txt
Normal file
93
fonts/Source_Sans_Pro/OFL.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
Copyright 2010, 2012, 2014 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
BIN
fonts/Source_Sans_Pro/SourceSansPro-Black.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-Black.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-BlackItalic.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-Bold.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-BoldItalic.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-ExtraLight.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-ExtraLightItalic.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-ExtraLightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-Italic.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-Light.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-Light.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-LightItalic.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-LightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-SemiBold.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Sans_Pro/SourceSansPro-SemiBoldItalic.ttf
Normal file
BIN
fonts/Source_Sans_Pro/SourceSansPro-SemiBoldItalic.ttf
Normal file
Binary file not shown.
93
fonts/Source_Serif_Pro/OFL.txt
Normal file
93
fonts/Source_Serif_Pro/OFL.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Black.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Black.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-BlackItalic.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-BlackItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Bold.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-BoldItalic.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-ExtraLight.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-ExtraLight.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-ExtraLightItalic.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-ExtraLightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Italic.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Light.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Light.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-LightItalic.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-LightItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Regular.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-SemiBold.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-SemiBold.ttf
Normal file
Binary file not shown.
BIN
fonts/Source_Serif_Pro/SourceSerifPro-SemiBoldItalic.ttf
Normal file
BIN
fonts/Source_Serif_Pro/SourceSerifPro-SemiBoldItalic.ttf
Normal file
Binary file not shown.
1
fonts/comic-mono-font
Submodule
1
fonts/comic-mono-font
Submodule
Submodule fonts/comic-mono-font added at 9a96d04cdd
12
fonts/comic-mono-font.css
Normal file
12
fonts/comic-mono-font.css
Normal file
@@ -0,0 +1,12 @@
|
||||
@font-face {
|
||||
font-family: 'Comic Mono';
|
||||
font-style: normal;
|
||||
src: url('/fonts/comic-mono-font/ComicMono.ttf'), format('ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Comic Mono';
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
src: url('/fonts/comic-mono-font/ComicMono-Bold.ttf'), format('ttf');
|
||||
}
|
||||
15
fonts/pairings/source_pro.css
Normal file
15
fonts/pairings/source_pro.css
Normal file
@@ -0,0 +1,15 @@
|
||||
@import url("/fonts/source_code_pro.css");
|
||||
@import url("/fonts/source_sans_pro.css");
|
||||
@import url("/fonts/source_serif_pro.css");
|
||||
|
||||
body {
|
||||
font-family: 'Source Sans Pro', sans-serif;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Source Serif Pro', serif;
|
||||
}
|
||||
|
||||
code, pre {
|
||||
font-family: 'Source Code Pro', monospace;
|
||||
}
|
||||
10
fonts/readme.txt
Normal file
10
fonts/readme.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
styles.alv.cx/fonts
|
||||
===================
|
||||
|
||||
alvficially approved fonts and pairings
|
||||
|
||||
font pairings set body, header, and code font-families and can be found in the folder /fonts/pairings
|
||||
|
||||
fonts can be loaded with
|
||||
|
||||
@import url("https://styles.alv.cx/fonts/<family.css");
|
||||
13
fonts/source_code_pro.css
Normal file
13
fonts/source_code_pro.css
Normal file
@@ -0,0 +1,13 @@
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/Source_Code_Pro/SourceCodePro-VariableFont_wght.ttf') format('ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Source Code Pro';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/Source_Code_Pro/SourceCodePro-Italic-VariableFont_wght.ttf') format('ttf');
|
||||
}
|
||||
6
fonts/source_sans_pro.css
Normal file
6
fonts/source_sans_pro.css
Normal file
@@ -0,0 +1,6 @@
|
||||
@font-face {
|
||||
font-family: 'Source Sans Pro';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf') format('ttf');
|
||||
}
|
||||
6
fonts/source_serif_pro.css
Normal file
6
fonts/source_serif_pro.css
Normal file
@@ -0,0 +1,6 @@
|
||||
@font-face {
|
||||
font-family: 'Source Serif Pro';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/Source_Serif_Pro/SourceSerifPro-Regular.ttf') format('ttf');
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
cd `dirname $0`
|
||||
git pull
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
8
modules/alwaysdark.css
Normal file
8
modules/alwaysdark.css
Normal file
@@ -0,0 +1,8 @@
|
||||
@import url("https://styles.alv.cx/modules/soft_media.css");
|
||||
|
||||
:root {
|
||||
--fg: var(--colorscheme-light);
|
||||
--fg-lc: var(--colorscheme-light-darker);
|
||||
--bg: var(--colorscheme-dark);
|
||||
--bg-lc: var(--colorscheme-dark-lighter);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
.buttonlist {
|
||||
border-left: 1px solid #b3b3b3;
|
||||
border-left: 1px solid var(--fg-lc);
|
||||
padding-left: 0.5em;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
@@ -26,4 +26,5 @@
|
||||
.buttonlist li > a:hover * {
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
filter: brightness(0.75);
|
||||
}
|
||||
|
||||
@@ -1,13 +1 @@
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--fg: var(--light);
|
||||
--bg: var(--dark);
|
||||
}
|
||||
img, video {
|
||||
opacity: .75;
|
||||
transition: opacity .5s ease-in-out;
|
||||
}
|
||||
img:hover, video:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@import url("https://styles.alv.cx/modules/alwaysdark.css") screen and (prefers-color-scheme: dark);
|
||||
|
||||
5
modules/dotgrid.css
Normal file
5
modules/dotgrid.css
Normal file
@@ -0,0 +1,5 @@
|
||||
body {
|
||||
background-size: var(--dotgrid-size) var(--dotgrid-size);
|
||||
background-image: radial-gradient(circle, var(--fg-lc) var(--dotgrid-dot-size), rgba(0, 0, 0, 0) 1px);
|
||||
background-position: center;
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
@import url("https://styles.alv.cx/modules/colors/gruvbox.css");
|
||||
|
||||
:root {
|
||||
--rainbow-duration: 8s;
|
||||
}
|
||||
@@ -7,12 +5,11 @@
|
||||
.rainbow { animation: rainbow-animation var(--rainbow-duration) infinite alternate; }
|
||||
|
||||
@keyframes rainbow-animation {
|
||||
0% { color: var(--gruvbox-blue); }
|
||||
14.3% { color: var(--gruvbox-aqua); }
|
||||
28.6% { color: var(--gruvbox-green); }
|
||||
42.9% { color: var(--gruvbox-yellow); }
|
||||
57.1% { color: var(--gruvbox-orange); }
|
||||
71.4% { color: var(--gruvbox-red); }
|
||||
85.7% { color: var(--gruvbox-purple); }
|
||||
100% { color: var(--gruvbox-blue); }
|
||||
0% { color: var(--blue); }
|
||||
16.7% { color: var(--green); }
|
||||
33.3% { color: var(--yellow); }
|
||||
50.0% { color: var(--orange); }
|
||||
66.7% { color: var(--red); }
|
||||
83.3% { color: var(--purple); }
|
||||
100% { color: var(--blue); }
|
||||
}
|
||||
|
||||
5
modules/readmes/alwaysdark.txt
Normal file
5
modules/readmes/alwaysdark.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/alwaysdark.css");
|
||||
|
||||
puts the website always in dark mode, ignoring user preference.
|
||||
@@ -1,23 +1,23 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/darkmode.css");
|
||||
@import url("https://styles.alv.cx/modules/darkmode.css");
|
||||
|
||||
example:
|
||||
|
||||
<ul class="buttonlist">
|
||||
<li>
|
||||
<a href="link to whatever">
|
||||
<p>text</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="link to whatever2">
|
||||
<p>text2</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="link to whatever3">
|
||||
<p>text3</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="buttonlist">
|
||||
<li>
|
||||
<a href="link to whatever">
|
||||
<p>text</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="link to whatever2">
|
||||
<p>text2</p>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="link to whatever3">
|
||||
<p>text3</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/colors/<colorscheme>.css");
|
||||
|
||||
and use the variables created in the file
|
||||
@@ -1,3 +1,3 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/darkmode.css");
|
||||
@import url("https://styles.alv.cx/modules/darkmode.css");
|
||||
|
||||
10
modules/readmes/dotgrid.txt
Normal file
10
modules/readmes/dotgrid.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/dotgrid.css");
|
||||
|
||||
variables:
|
||||
|
||||
--dotgrid-size: 3em;
|
||||
--dotgrid-dot-size: 1px;
|
||||
|
||||
puts a background image on the `body` element.
|
||||
@@ -1,9 +1,11 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/rainbow.css");
|
||||
@import url("https://styles.alv.cx/modules/rainbow.css");
|
||||
|
||||
variables:
|
||||
|
||||
--rainbow-duration: 8s;
|
||||
|
||||
and add the class `rainbow` to any element you want.
|
||||
|
||||
it works by changing the `color` property of the element.
|
||||
|
||||
the duration is determined by the variable `--rainbow-duration`
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/darkmode.css");
|
||||
@import url("https://styles.alv.cx/modules/search.css");
|
||||
|
||||
example:
|
||||
|
||||
<div id="searchWrapper">
|
||||
<input id="search" placeholder="Search">
|
||||
</div>
|
||||
<p class="smallText" style="margin-top: 0; text-align: center">
|
||||
Press (<kbd>Shift</kbd>+)<kbd>Enter</kbd> to open first result (in new tab)
|
||||
</p>
|
||||
<div id="results"> </div>
|
||||
<div id="searchWrapper">
|
||||
<input id="search" placeholder="Search">
|
||||
</div>
|
||||
<p class="searchSmallText" style="margin-top: 0; text-align: center">
|
||||
Press (<kbd>Shift</kbd>+)<kbd>Enter</kbd> to open first result (in new tab)
|
||||
</p>
|
||||
<div id="results"> </div>
|
||||
|
||||
12
modules/readmes/soft_media.txt
Normal file
12
modules/readmes/soft_media.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
in the css
|
||||
|
||||
@import url("https://styles.alv.cx/modules/soft_media.css");
|
||||
|
||||
variables:
|
||||
|
||||
--soft-media-opacity: 0.75;
|
||||
--soft-media-transition-time: .5s;
|
||||
--soft-media-transition-timing-function: ease-in-out;
|
||||
|
||||
this module makes reduces the opacity of all images to give the webpage a softer look,
|
||||
even when in light mode (this is default behaviour in dark mode).
|
||||
@@ -20,3 +20,9 @@
|
||||
#searchResults {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
.searchSmallText {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
|
||||
.searchResult { margin: 1em; }
|
||||
|
||||
13
modules/soft_media.css
Normal file
13
modules/soft_media.css
Normal file
@@ -0,0 +1,13 @@
|
||||
:root {
|
||||
--soft-media-opacity: 0.75;
|
||||
--soft-media-transition-time: .5s;
|
||||
--soft-media-transition-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
img, video {
|
||||
opacity: var(--soft-media-opacity);
|
||||
transition: opacity var(--soft-media-transition-time) var(--soft-media-transition-timing-function);
|
||||
}
|
||||
img:hover, video:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
38
readme.txt
38
readme.txt
@@ -1,12 +1,42 @@
|
||||
styles.alv.cx
|
||||
=============
|
||||
|
||||
central styling repo and domain
|
||||
|
||||
|
||||
to style a site, put this in a css file somewhere:
|
||||
to style a site:
|
||||
|
||||
1. put this at the top of a css file somewhere:
|
||||
|
||||
@import url("https://styles.alv.cx/colors/<colorscheme>.css");
|
||||
@import url("https://styles.alv.cx/base.css");
|
||||
|
||||
and any of the optional modules you want.
|
||||
a list of actively hosted modules can be seen in this repo in the modules folder and at
|
||||
https://styles.alv.cx/modules/
|
||||
replacing <colorscheme> with one of the options available at
|
||||
`https://styles.alv.cx/colors`
|
||||
|
||||
2. add any of the optional modules you want.
|
||||
3. a list of actively hosted modules can be seen in this repo in the modules folder
|
||||
and at `https://styles.alv.cx/modules/`
|
||||
|
||||
variables and colors available
|
||||
------------------------------
|
||||
|
||||
there are some variables you may want to use to keep your site's styling
|
||||
consistent and you can view them in the `:root` section of `base.css` and any
|
||||
module you use.
|
||||
|
||||
the variables defined in `base.css` are:
|
||||
|
||||
--fg
|
||||
--bg
|
||||
|
||||
--light
|
||||
--dark
|
||||
|
||||
you should prefer to use `--fg` and `--bg` over `--light` and `--dark` as that
|
||||
will take of dark mode switching for you.
|
||||
|
||||
every colorscheme will have a standard set of variables, which can be viewed at
|
||||
`https://styles.alv.cx/colors.txt` .
|
||||
|
||||
some modules may have variables which can be adjusted also, such as `rainbow.css`.
|
||||
|
||||
Reference in New Issue
Block a user