diff options
author | W. Kosior <koszko@koszko.org> | 2024-05-18 01:00:12 +0200 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-05-18 01:00:22 +0200 |
commit | 2b55cf92033ed02cabd545540241585e05f1fbb0 (patch) | |
tree | 9da86016dea518287552b56aaf457da970d4220f /ctftilde/src/resources | |
download | AGH-ctf-course-2024-2b55cf92033ed02cabd545540241585e05f1fbb0.tar.gz AGH-ctf-course-2024-2b55cf92033ed02cabd545540241585e05f1fbb0.zip |
Initial commit.
Diffstat (limited to 'ctftilde/src/resources')
-rw-r--r-- | ctftilde/src/resources/Makefile.am | 34 | ||||
-rw-r--r-- | ctftilde/src/resources/ctftilde.css | 100 |
2 files changed, 134 insertions, 0 deletions
diff --git a/ctftilde/src/resources/Makefile.am b/ctftilde/src/resources/Makefile.am new file mode 100644 index 0000000..c173935 --- /dev/null +++ b/ctftilde/src/resources/Makefile.am @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: CC0-1.0 +# +# Copyright (C) 2023, 2024 Wojtek Kosior <koszko@koszko.org> + +RESOURCE_FILES = \ + $(PACKAGE).css +# $(PACKAGE).ico +# $(PACKAGE).svg.license +# $(PACKAGE).svg + +resourcedir = $(datarootdir)/$(PACKAGE) +nobase_dist_resource_DATA = $(RESOURCE_FILES) + +# EXTRA_DIST = \... + +MOSTLYCLEANFILES = $(GUILE_OBJECT_FILES) + +# CLEANFILES = $(PACKAGE).ico + +.scm.go: + $(top_builddir)/pre-inst-env $(GUILD) compile --output=$@ $< + +# # If ImageMagick isn't compiled with librsvg (and by default in Guix it isn't), +# # it fails to understand gradients in svg inputs. As a workaround let's do +# # svg->png conversion with Inkscape and then png->ico conversion with +# # ImageMagick's convert tool. +# .svg.png: +# $(INKSCAPE) "$<" --export-filename="$@" -w 256 -h 256 + +# .png.ico: +# $(CONVERT) "$<" -define icon:auto-resize=256,64,48,32,16 "$@" + +uninstall-hook: + rm -rf $(DESTDIR)/$(resourcedir) diff --git a/ctftilde/src/resources/ctftilde.css b/ctftilde/src/resources/ctftilde.css new file mode 100644 index 0000000..9ee148e --- /dev/null +++ b/ctftilde/src/resources/ctftilde.css @@ -0,0 +1,100 @@ +/* + * SPDX-License-Identifier: CC0-1.0 + * Copyright (C) 2024 W. Kosior <koszko@koszko.org> + */ + +html { + font-size: 16px; + line-height: 1.6; + color: #5D6166; + background-color: #D3DAE1; + --width: calc(100vw - 20px); + --height: calc(100vh - 20px); + width: var(--width); + height: var(--height); + border: #B3BAC1 solid 10px; + overflow-y: hidden; +} + +body { + padding: 10px; + margin: 0 auto; + max-width: calc(var(--width) - 20px); + max-height: calc(var(--height) - 20px); + overflow-y: scroll; +} + +main { + max-width: 700px; + padding: 1rem 2rem; +} + +form { + display: flex; + flex-direction: column; +} + +pre { + background-color: #eee; + margin: 0 -1rem; + padding: 1rem; + overflow-x: auto; +} + +a { + color: #AA2E00; +} + +a:visited { + color: #802200; +} + +h1 { + margin-top: 10px; + margin-bottom: 10px; +} + +label, aside, input { + margin-top: 4px; + margin-bottom: 4px; +} + +label { + font-weight: bold; + font-style: italic; +} + +input { + display: block; + border: none; + border-radius: 0; + border-left: 4px solid #5D6166; + padding: 4px; + margin-bottom: 8px; +} + +aside { + padding: 8px; +} + +aside.error{ + border-left: 4px solid red; + background-color: #eed2d2; +} + +button { + padding: 8px; + font-weight: bold; + color: white; + background-color: #5D6166; + border: none; +} + +button { + margin-top: 8px; + margin-bottom: 8px; +} + +button:active, button:hover { + background-color: #3d4146; +} |