From 499e8023aaf4fdac903599389bdd211ee9e1603c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 26 Jan 2025 15:52:36 +0100 Subject: [PATCH] css/style --- rtfd/public/html/index.html | 2 +- rtfd/public/html/index.rst | 26 ++++++++++++++++++- rtfd/public/html/style/debug.css | 5 ++++ .../public/html/{index.css => style/main.css} | 16 ++++-------- rtfd/public/html/style/reset.css | 7 +++++ 5 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 rtfd/public/html/style/debug.css rename rtfd/public/html/{index.css => style/main.css} (87%) create mode 100644 rtfd/public/html/style/reset.css diff --git a/rtfd/public/html/index.html b/rtfd/public/html/index.html index b935693..ce65a42 100644 --- a/rtfd/public/html/index.html +++ b/rtfd/public/html/index.html @@ -2,7 +2,7 @@ - + Title. diff --git a/rtfd/public/html/index.rst b/rtfd/public/html/index.rst index b97c28f..d2559de 100644 --- a/rtfd/public/html/index.rst +++ b/rtfd/public/html/index.rst @@ -2,8 +2,32 @@ html **** +HTML +==== + +Index +----- + .. literalinclude:: index.html :language: html -.. literalinclude:: index.css +CSS +=== + +Debug +----- + +.. literalinclude:: style/debug.css + :language: css + +Reset +----- + +.. literalinclude:: style/reset.css + :language: css + +Main +---- + +.. literalinclude:: style/main.css :language: css diff --git a/rtfd/public/html/style/debug.css b/rtfd/public/html/style/debug.css new file mode 100644 index 0000000..4e7fcf7 --- /dev/null +++ b/rtfd/public/html/style/debug.css @@ -0,0 +1,5 @@ +* { +border-color: magenta; +border-style: solid; +border-width: 1px; +} diff --git a/rtfd/public/html/index.css b/rtfd/public/html/style/main.css similarity index 87% rename from rtfd/public/html/index.css rename to rtfd/public/html/style/main.css index 726ddb0..fe7868b 100644 --- a/rtfd/public/html/index.css +++ b/rtfd/public/html/style/main.css @@ -6,23 +6,17 @@ inline-size ← width margin-block ← vspace */ -* { -/* -margin: 2px; -padding: 2px; -*/ -border-color: magenta; -border-style: solid; -border-width: 1px; -box-sizing: border-box; -} +/**/ +@import "debug.css"; +/**/ +@import "reset.css"; html { } body { background-color: #111; -background-image: url("images/logo.svg"); +background-image: url("../images/logo.svg"); background-position: center; background-size: cover; color: #777; diff --git a/rtfd/public/html/style/reset.css b/rtfd/public/html/style/reset.css new file mode 100644 index 0000000..f3c1dc4 --- /dev/null +++ b/rtfd/public/html/style/reset.css @@ -0,0 +1,7 @@ +* { +box-sizing: border-box; +/* +margin: 2px; +padding: 2px; +/**/ +}