From 3f4365ecf60e6ddc4374eae48c44290b554bbb32 Mon Sep 17 00:00:00 2001 From: zPlus Date: Tue, 4 Jul 2023 10:50:49 +0200 Subject: [PATCH] Add CSS file. Freepost used to use Stylus files, which were converted to CSS files. This step has been removed in favor of plain CSS. During the switch the CSS file got left out, so it's now being added. --- .gitignore | 1 - freepost/static/css/freepost.css | 825 +++++++++++++++++++++++++++++++ 2 files changed, 825 insertions(+), 1 deletion(-) create mode 100644 freepost/static/css/freepost.css diff --git a/.gitignore b/.gitignore index a3430b34..355b7d0c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,5 @@ __pycache__/ venv/ *.pyc -/freepost/static/css/ /database.sqlite /settings.production.yaml diff --git a/freepost/static/css/freepost.css b/freepost/static/css/freepost.css new file mode 100644 index 00000000..d5b641b5 --- /dev/null +++ b/freepost/static/css/freepost.css @@ -0,0 +1,825 @@ +* { + margin: 0; + padding: 0; + font-family: sans-serif; + + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +a, a:hover, a:visited { + background: transparent; + color: #337ab7; + text-decoration: none; +} + +blockquote { + background-color: #f8f8f8; + border-left: 5px solid #e9e9e9; + font-size: .85em; + margin: 1em 0; + padding: .5em 1em; +} + +blockquote cite { + color: #999; + display: block; + font-size: .8em; + margin-top: 1em; +} + +blockquote cite:before { + content: "\2014 \2009"; +} + +h3 { + font-size: 1.5em; + font-weight: normal; + margin: 1em 0 .5em 0; +} + +p { + margin: 0 0 10px 0; +} + +.bg-green { + background-color: #d9ffca; + border-radius: 4px; + padding: .5em 1em; +} + +.bg-red { + background-color: #f2dede; + border-radius: 4px; + padding: .5em 1em; +} + +.bg-blue { + background-color: #337ab7; + border-radius: 4px; + padding: .5em 1em; +} + +.bg-light-blue { + background-color: #d9edf7; + border-radius: 4px; + padding: .5em 1em; +} + +/* Some styles for buttons */ +.button { + border: 0px; + border-radius: 4px; + cursor: pointer; + display: inline-block; + padding: .5em 1em; + text-align: center; +} + +@media only screen and (max-width: 800px) { + .button { + font-size: 1.2rem; + padding: .5em 1em; + width: 100%; + } +} + +.button_transparent, /* Green */ +.button_transparent:hover, +.button_transparent:visited { + background-color: transparent; + border: 0; + color: black; +} + +.button_ok, /* Green */ +.button_ok:hover, +.button_ok:visited { + background-color: #4caf50; + color: #fff; +} + +.button_info, /* Blue */ +.button_info:hover, +.button_info:visited { + background-color: #008cba; + color: #fff; +} + +.button_alert, /* Red */ +.button_alert:hover, +.button_alert:visited { + background-color: #f44336; + color: #fff; +} + +.button_default, /* Gray */ +.button_default:hover, +.button_default:visited { + background-color: #e7e7e7; + color: #000; +} + +.button_default1, /* Black */ +.button_default1:hover, +.button_default1:visited { + background-color: #555; + color: #fff; +} + +img { + /* Prevent images from taking up too much space in comments */ + max-width: 100%; +} + +label { + cursor: pointer; + font-weight: normal; +} + +/* Add light blue shadow to form controls */ +.form-control:focus { + border-color: #66afe9; + outline: 0; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6); +} + +.form-control { + display: block; + padding: .5em 1em; + line-height: 1.42857143; + color: #555; + border: 1px solid #ccc; + border-radius: 4px; + width: 100%; + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + box-shadow: inset 0 1px 1px rgba(0,0,0,.075); + -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s; +} + +.form-control-inline { + display: inline; + width: auto; +} + +textarea.form-control { + height: 8rem; +} + +.pagination {} + + .pagination > form { + display: inline-block; + } + + .pagination > .page_number { + font-size: .7rem; + font-weight: bold; + margin: 0 1rem; + } + +/* When users vote, this