commit 1391e5b5
Add license notice and .editorconfig
Changed files
| A | .editorconfig |
| M | static_content/css/oastat.css before |
| M | templates/index.tpl before |
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..da8a695
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,7 @@
+root = true
+
+[*]
+indent_style = tab
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
\ No newline at end of file
diff --git a/static_content/css/oastat.css b/static_content/css/oastat.css
index d50a9bd..613628f 100644
--- a/static_content/css/oastat.css
+++ b/static_content/css/oastat.css
@@ -1,13 +1,47 @@
+/*
+ The CSS. It is under the MIT license because it is CSS.
+
+ Copyright (c) 2019 Poul Sander
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+*/
+
body {
- background: lightblue;
+ background: #36413e;
+ font-family: 'Verdana', sans-serif;
}
+.main-section {
+ max-width: 1400;
+ background: #beb2c8;
+ border-radius: 5px;
+ padding: 5px;
+}
/* Table section start */
table {
border-collapse: collapse;
- max-width: 950px;
- margin: 10px;
+ margin-bottom: 10px;
+ margin-left:auto;
+ margin-right:auto;
}
table, th, td {
@@ -15,10 +49,15 @@ table, th, td {
text-align: center;
}
-tr:nth-child(odd) {background: #CCCCff}
-tr:nth-child(even) {background: #eeeeff}
+th {
+ padding-left: 10px;
+ padding-right: 10px;
+}
+
+tr:nth-child(odd) {background: #8d8d92}
+tr:nth-child(even) {background: #edebd7}
/*table section end*/
.update {
font-size: 80%;
-}
\ No newline at end of file
+}
diff --git a/templates/index.tpl b/templates/index.tpl
index a12e472..53a66dd 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -10,6 +10,7 @@
</head>
<body>
+ <div class="main-section">
<h1>OpenArena Stats</h1>
<table>
@@ -113,6 +114,7 @@
</table>
<p class="update">Last updated on {{GENERATION_DATE}}</p>
+ </div>
</body>
</html>