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

github.com/knadh/hugo-ink.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlija Eftimov <ieftimov@pm.me>2020-04-11 21:01:41 +0300
committerIlija Eftimov <ieftimov@pm.me>2020-04-11 21:01:41 +0300
commit87cab76c96a4f9dd253880b1299002d0316763d5 (patch)
tree8915a7a676dfc4dfe50d45eac04fe09830bf1368
parentde7cc93638f7769d04aee1d2d0c5ead46456f483 (diff)
Add table styles
-rw-r--r--static/css/dark.css4
-rw-r--r--static/css/main.css43
2 files changed, 47 insertions, 0 deletions
diff --git a/static/css/dark.css b/static/css/dark.css
index a48f9a9..6312c4b 100644
--- a/static/css/dark.css
+++ b/static/css/dark.css
@@ -32,6 +32,10 @@ a,a:hover {
text-decoration: none;
}
+table tbody tr:nth-of-type(even) {
+ background-color: rgba(255, 255, 255, 0.15);
+}
+
.site-description a,
.site-description a:hover {
color: #ddd;
diff --git a/static/css/main.css b/static/css/main.css
index fc0dd36..d78da1c 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -79,6 +79,41 @@ fieldset {
padding: 0;
}
+table {
+ -ms-overflow-style: -ms-autohiding-scrollbar;
+ -webkit-overflow-scrolling: touch;
+ background-color: transparent;
+ margin-bottom: 1rem;
+ overflow-x: auto;
+ width: 100%;
+}
+
+table th,
+table td {
+ border-bottom: 1px solid #dee2e6;
+ padding: 0.75rem;
+ vertical-align: top;
+}
+
+table thead th {
+ border-bottom: 2px solid #dee2e6;
+ vertical-align: bottom;
+}
+
+table tbody + tbody {
+ border-top: 2px solid #dee2e6;
+}
+
+table tbody tr:nth-of-type(even) {
+ background-color: rgba(0, 0, 0, 0.15);
+}
+
+table th {
+ background-color: #212529;
+ border-color: #32383e;
+ color: #fff;
+}
+
textarea {
resize: vertical;
}
@@ -423,4 +458,12 @@ ul {
margin: 0 10px 0 0;
font-size: 14px;
}
+
+ table {
+ -ms-overflow-style: -ms-autohiding-scrollbar;
+ -webkit-overflow-scrolling: touch;
+ display: block;
+ overflow-x: auto;
+ width: 100%;
+ }
}