Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/blankoworld/hugo_theme_adam_eve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier DOSSMANN <git@dossmann.net>2020-07-22 23:14:57 +0300
committerOlivier DOSSMANN <git@dossmann.net>2020-07-22 23:14:57 +0300
commit6d39f5f2e2edfcc669ee25e0d01934a3978ecb54 (patch)
tree582b99aaba61c328d1f3186471366cee23b54cb4
parent573a82b61e00ad42d144a54980aef535ede59022 (diff)
Fix #7 - Add CSS for tables with color alternance
-rw-r--r--assets/css/main.css15
-rw-r--r--exampleSite/content/design/materials.md10
2 files changed, 25 insertions, 0 deletions
diff --git a/assets/css/main.css b/assets/css/main.css
index 79a7ade..607e9fc 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -50,6 +50,21 @@ pre {
border: thin solid #ccc;
}
+table {
+ margin: 15px auto;
+ width: 100%;
+}
+
+table th {
+ background: black;
+ color: white;
+ text-align: center;
+}
+
+table tr:nth-child(odd) {
+ background: #eeeeee;
+}
+
p img {
display: block;
margin: 10px auto;
diff --git a/exampleSite/content/design/materials.md b/exampleSite/content/design/materials.md
index 97422af..465a0c8 100644
--- a/exampleSite/content/design/materials.md
+++ b/exampleSite/content/design/materials.md
@@ -26,3 +26,13 @@ This drawing have been simplified to understand how it works. It may have differ
{{% /note %}}
![Aquarium example](/aquarium.png)
+
+
+| Number | Denomination |
+| ------: | :----------: |
+| 1 | Intake |
+| 2 | mechanical filtration |
+| 3 | chemical filtration |
+| 4 | biological filtration medium |
+| 5 | outflow to tank |
+