mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
added themes
This commit is contained in:
23
files/default-dark.css
Normal file
23
files/default-dark.css
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
.navbar {
|
||||||
|
color: #e8e6e3;
|
||||||
|
background-color: #262a2b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar li a {
|
||||||
|
color: #e8e6e3;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Change the link color on hover */
|
||||||
|
.navbar li a:hover {
|
||||||
|
background-color: #0d0e0e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.license {
|
||||||
|
color: #e8e6e3;
|
||||||
|
background-color: #313537;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: #e8e6e3;
|
||||||
|
background-color: #181a1b;
|
||||||
|
}
|
||||||
22
files/default.css
Normal file
22
files/default.css
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
.navbar {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar li a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Change the link color on hover */
|
||||||
|
.navbar li a:hover {
|
||||||
|
background-color: #111;
|
||||||
|
}
|
||||||
|
|
||||||
|
.license {
|
||||||
|
color: #000;
|
||||||
|
background-color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
@@ -7,6 +7,7 @@ body {
|
|||||||
margin-top: 32px;
|
margin-top: 32px;
|
||||||
margin-bottom: 56px;
|
margin-bottom: 56px;
|
||||||
font-family: Arial;
|
font-family: Arial;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.folders {
|
.folders {
|
||||||
@@ -129,7 +130,6 @@ figure {
|
|||||||
.caption {
|
.caption {
|
||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-style: italic;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
@@ -139,7 +139,6 @@ figure {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: lightgrey;
|
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,7 +150,6 @@ figure {
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: #333;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar li {
|
.navbar li {
|
||||||
@@ -160,7 +158,6 @@ figure {
|
|||||||
|
|
||||||
.navbar li a {
|
.navbar li a {
|
||||||
display: block;
|
display: block;
|
||||||
color: white;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 14px 16px;
|
padding: 14px 16px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@@ -168,13 +165,7 @@ figure {
|
|||||||
|
|
||||||
.navbar li span {
|
.navbar li span {
|
||||||
display: block;
|
display: block;
|
||||||
color: white;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 14px 16px;
|
padding: 14px 16px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Change the link color to #111 (black) on hover */
|
|
||||||
.navbar li a:hover {
|
|
||||||
background-color: #111;
|
|
||||||
}
|
|
||||||
30
files/monokai-vibrant.css
Normal file
30
files/monokai-vibrant.css
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
.navbar {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #f6f6f6;
|
||||||
|
background-color: #191b20;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar li a {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #f6f6f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Change the link color on hover */
|
||||||
|
.navbar li a:hover {
|
||||||
|
background-color: #2c313a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.license {
|
||||||
|
color: #f6f6f6;
|
||||||
|
background-color: #2c313a;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: #f6f6f6;
|
||||||
|
background-color: #16171d
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #ffd945;
|
||||||
|
}
|
||||||
@@ -20,6 +20,7 @@ _ROOTTITLE = "Pictures"
|
|||||||
_STATICFILES = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
_STATICFILES = os.path.join(os.path.abspath(os.path.dirname(__file__)), "files")
|
||||||
_FAVICON = ".static/favicon.ico"
|
_FAVICON = ".static/favicon.ico"
|
||||||
_STYLE = ".static/global.css"
|
_STYLE = ".static/global.css"
|
||||||
|
_THEME = ".static/default.css"
|
||||||
_AUTHOR = "Author"
|
_AUTHOR = "Author"
|
||||||
# fmt: off
|
# fmt: off
|
||||||
rawext = [".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr", ".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos", ".mrw", ".nef", ".nrw", ".obm", ".orf", ".pef", ".ptx", ".pxn", ".r3d", ".raf", ".raw", ".rwl", ".rw2", ".rwz", ".sr2", ".srf", ".srw", ".tif", ".tiff", ".x3f"]
|
rawext = [".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr", ".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos", ".mrw", ".nef", ".nrw", ".obm", ".orf", ".pef", ".ptx", ".pxn", ".r3d", ".raf", ".raw", ".rwl", ".rw2", ".rwz", ".sr2", ".srf", ".srw", ".tif", ".tiff", ".x3f"]
|
||||||
@@ -122,7 +123,7 @@ def listfolder(folder: str, title: str):
|
|||||||
title=title,
|
title=title,
|
||||||
favicon=f"{args.webroot}{_FAVICON}",
|
favicon=f"{args.webroot}{_FAVICON}",
|
||||||
stylesheet=f"{args.webroot}{_STYLE}",
|
stylesheet=f"{args.webroot}{_STYLE}",
|
||||||
theme=None,
|
theme=f"{args.webroot}{urllib.parse.quote(args.theme)}",
|
||||||
root=args.webroot,
|
root=args.webroot,
|
||||||
parent=parent,
|
parent=parent,
|
||||||
header=header,
|
header=header,
|
||||||
@@ -179,6 +180,7 @@ def main():
|
|||||||
parser.add_argument("-l", "--license", help="License", default=None, required=False, choices=["cc-zero", "cc-by", "cc-by-sa", "cc-by-nd", "cc-by-nc", "cc-by-nc-sa", "cc-by-nc-nd"], dest="license")
|
parser.add_argument("-l", "--license", help="License", default=None, required=False, choices=["cc-zero", "cc-by", "cc-by-sa", "cc-by-nd", "cc-by-nc", "cc-by-nc-sa", "cc-by-nc-nd"], dest="license")
|
||||||
parser.add_argument("-a", "--author", help="Author", default=_AUTHOR, required=False, type=str, dest="author")
|
parser.add_argument("-a", "--author", help="Author", default=_AUTHOR, required=False, type=str, dest="author")
|
||||||
parser.add_argument("-t", "--title", help="Title", default=_ROOTTITLE, required=False, type=str, dest="title")
|
parser.add_argument("-t", "--title", help="Title", default=_ROOTTITLE, required=False, type=str, dest="title")
|
||||||
|
parser.add_argument("--theme", help="Relative link to CSS theme file", default=_THEME, required=False, type=str, dest="theme")
|
||||||
parser.add_argument("--fancyfolders", help="Use fancy folders instead of default apache ones", action="store_true", default=False, required=False, dest="fancyfolders")
|
parser.add_argument("--fancyfolders", help="Use fancy folders instead of default apache ones", action="store_true", default=False, required=False, dest="fancyfolders")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
# fmt: on
|
# fmt: on
|
||||||
|
|||||||
Reference in New Issue
Block a user