aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
authorBonfaceKilz2020-12-23 16:08:44 +0300
committerBonfaceKilz2020-12-23 16:08:44 +0300
commit6e060269c8eef4bde87291770c3fa26726c4a1a1 (patch)
tree4f2aac19ab2e93564663e7ce7d36fb3f5cc95a7f /bh20simplewebuploader/static
parent5f32f09afd4238465dbd4d9c9ea8c093826ad318 (diff)
downloadbh20-seq-resource-6e060269c8eef4bde87291770c3fa26726c4a1a1.tar.gz
bh20-seq-resource-6e060269c8eef4bde87291770c3fa26726c4a1a1.tar.lz
bh20-seq-resource-6e060269c8eef4bde87291770c3fa26726c4a1a1.zip
Add tabbed content for commits, tweets and pubmed content
* bh20simplewebuploader/templates/home.html: Add tab panes for commits, tweets and pubmed content. Use dummy place holder content for commits and tweets. * bh20simplewebuploader/static/main.css: Add basic styling for tabbed content.
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.css43
1 files changed, 40 insertions, 3 deletions
diff --git a/bh20simplewebuploader/static/main.css b/bh20simplewebuploader/static/main.css
index b7ba1af..b6c900c 100644
--- a/bh20simplewebuploader/static/main.css
+++ b/bh20simplewebuploader/static/main.css
@@ -510,7 +510,7 @@ div.status {
justify-content: space-evenly;
}
-#twitter-feed {
+#feed {
background-color: #f5f8fa;
max-height: 440px;
max-width: 500px;
@@ -521,11 +521,11 @@ div.status {
}
-#twitter-feed ul {
+#feed ul {
list-style-type: none;
}
-#twitter-feed ul li {
+#feed ul li {
border-bottom: 2px solid white;
padding-bottom: 20px;
}
@@ -552,3 +552,40 @@ padding-right:10px;
{
max-width: 80%;
}
+
+/** Tabbed feed **/
+input[name="feed-tabs"] {
+ display: none;
+}
+
+input[name="feed-tabs"] + label {
+ display: inline-block;
+}
+
+input[name="feed-tabs"] ~ .tab {
+ display: none;
+}
+
+#tab-pubmed-articles:checked ~ .tab.content-pubmed-articles,
+#tab-tweets:checked ~ .tab.content-tweets,
+#tab-commits:checked ~ .tab.content-commits {
+ display: block;
+}
+
+input[name="feed-tabs"] + label {
+ border: 1px solid #999;
+ background: #EEE;
+ padding: 4px 12px;
+ border-radius: 4px 4px 0 0;
+ position: relative;
+ top: 1px;
+}
+
+input[name="feed-tabs"]:checked + label {
+ background: #FFF;
+ border-bottom: 1px solid transparent;
+}
+input[name="feed-tabs"] ~ .tab { /* grey line between tab and contents */
+ border-top: 1px solid #999;
+ padding: 12px;
+}