add the inventory.css to the docs.org

This commit is contained in:
Andreas Zweili 2017-12-27 17:21:08 +01:00
parent f142d2192a
commit 90c628e8f8
2 changed files with 37 additions and 0 deletions

View File

@ -562,6 +562,42 @@ urlpatterns = [
Templates define the look of the application and where things get
positioned on the page.
** inventory.css
The inventory.css file get's loaded in the base.html file. It provides
some generel theming over the application.
*** Tables
Display a border around tables.
#+BEGIN_SRC css :tangle ../inventory/static/css/inventory.css
table, th, td {
border: 1px solid black;
}
#+END_SRC
Align table headers on the left side.
#+BEGIN_SRC css :tangle ../inventory/static/css/inventory.css
th {
text-align: left;
}
#+END_SRC
*** Body
Add a margin of a few pixels around the body.
#+BEGIN_SRC css :tangle ../inventory/static/css/inventory.css
body {
margin-top: 10px;
margin-bottom: 10px;
margin-right: 10px;
margin-left: 20px;
}
#+END_SRC
** base.html
The base.html file is the basis for all other html files and gets

View File

@ -1,6 +1,7 @@
table, th, td {
border: 1px solid black;
}
th {
text-align: left;
}