From f6f51d976956f080d7302b01e3c7e978f691ff5d Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Mon, 14 Oct 2024 09:19:08 -0500
Subject: Improve layout and styling of sidebar content
---
uploader/static/css/styles.css | 8 +++++
.../macro-display-pheno-dataset-card.html | 24 ++++++++-----
.../populations/macro-display-population-card.html | 42 ++++++++++++++--------
.../species/macro-display-species-card.html | 18 ++++++----
4 files changed, 64 insertions(+), 28 deletions(-)
diff --git a/uploader/static/css/styles.css b/uploader/static/css/styles.css
index 5161169..f482c1b 100644
--- a/uploader/static/css/styles.css
+++ b/uploader/static/css/styles.css
@@ -151,3 +151,11 @@ form {
form .form-control {
background-color: #EAEAFF;
}
+
+.sidebar-content .card .card-title {
+ font-size: 1.5em;
+}
+
+.sidebar-content .card-text table tbody td:nth-child(1) {
+ font-weight: bolder;
+}
diff --git a/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html b/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
index 1121443..11b108b 100644
--- a/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
+++ b/uploader/templates/phenotypes/macro-display-pheno-dataset-card.html
@@ -7,16 +7,24 @@
Phenotypes' Dataset
-
- - Name
- - {{dataset.Name}}
+
+
+
+ Name |
+ {{dataset.Name}} |
+
- - Full Name
- - {{dataset.FullName}}
+
+ Full Name |
+ {{dataset.FullName}} |
+
- - Short Name
- - {{dataset.ShortName}}
-
+
+ Short Name |
+ {{dataset.ShortName}} |
+
+
+
diff --git a/uploader/templates/populations/macro-display-population-card.html b/uploader/templates/populations/macro-display-population-card.html
index 33272e2..79f7925 100644
--- a/uploader/templates/populations/macro-display-population-card.html
+++ b/uploader/templates/populations/macro-display-population-card.html
@@ -7,25 +7,39 @@
Population
-
- - Name
- - {{population.Name}}
+
+
+
+ Name |
+ {{population.Name}} |
+
- - Full Name
- - {{population.FullName}}
+
+ Full Name |
+ {{population.FullName}} |
+
- - Code
- - {{population.InbredSetCode}}
+
+ Code |
+ {{population.InbredSetCode}} |
+
- - Genetic Type
- - {{population.GeneticType}}
+
+ Genetic Type |
+ {{population.GeneticType}} |
+
- - Family
- - {{population.Family}}
+
+ Family |
+ {{population.Family}} |
+
- - Description
- - {{(population.Description or "")[0:500]}}…
-
+
+ Description |
+ {{(population.Description or "")[0:500]}}… |
+
+
+
diff --git a/uploader/templates/species/macro-display-species-card.html b/uploader/templates/species/macro-display-species-card.html
index 857c0f0..166c7b9 100644
--- a/uploader/templates/species/macro-display-species-card.html
+++ b/uploader/templates/species/macro-display-species-card.html
@@ -3,13 +3,19 @@
Species
-
- - Common Name
- - {{species.SpeciesName}}
+
+
+
+ Common Name |
+ {{species.SpeciesName}} |
+
- - Scientific Name
- - {{species.FullName}}
-
+
+ Scientific Name |
+ {{species.FullName}} |
+
+
+
--
cgit v1.2.3