From 2c19c2fd31d9c5c355f1bbbd06b4d775dbcaa8cc Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Wed, 18 Sep 2024 01:58:35 +0200 Subject: [PATCH] redo html hierarchy and add basic css --- static/style.css | 72 ++++++++++++++++++++++++++++++++++ templates/active_torrents.html | 2 - templates/index.html | 12 +++--- templates/search.html | 6 +++ templates/torrents.html | 6 +-- 5 files changed, 86 insertions(+), 12 deletions(-) create mode 100644 static/style.css create mode 100644 templates/search.html diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..5bab704 --- /dev/null +++ b/static/style.css @@ -0,0 +1,72 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + font-family: monospace, monospace; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + +menu { + display: flex; + list-style: none; + width: 100%; + background-color: #333333; + color: #eeeeee; +} +menu li { + padding: 1em; + margin: 0; + border: 0.1em solid #9f9f9f; +} +menu li:hover { + background-color: #9f9f9f; + cursor: pointer; +} + +#content { + display: flex; + align-items: center; + justify-content: center; +} diff --git a/templates/active_torrents.html b/templates/active_torrents.html index 7e124ac..f064947 100644 --- a/templates/active_torrents.html +++ b/templates/active_torrents.html @@ -1,5 +1,3 @@ -{% extends 'index.html' %} - {% block content %}