summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-03-04 10:11:18 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-03-04 10:11:18 +0100
commit73cc1f5e48719100c57126dc0956fea02d3d294e (patch)
tree5071d35a5de12cb6fc27a9d4f6c8ca2a51c8e2fe /static
parentd44b6587373640991d97404b5aca9df28d3eec21 (diff)
downloadwww-andreasbaumann-cc-73cc1f5e48719100c57126dc0956fea02d3d294e.tar.gz
www-andreasbaumann-cc-73cc1f5e48719100c57126dc0956fea02d3d294e.tar.bz2
fixed category tag cloud
Diffstat (limited to 'static')
-rw-r--r--static/css/localstyle.css24
1 files changed, 20 insertions, 4 deletions
diff --git a/static/css/localstyle.css b/static/css/localstyle.css
index e0c3b5a..0a3dcf7 100644
--- a/static/css/localstyle.css
+++ b/static/css/localstyle.css
@@ -1,3 +1,4 @@
+/* original images are way bigger, shring them */
img[alt=Email],
img[alt=Skype],
img[alt=Twitter],
@@ -5,8 +6,23 @@ img[alt=Github] {
width: 20px; height: 20px;
}
-#ranklist table,
-#ranklist th,
-#ranklist td {
- border: none;
+/* from https://24ways.org/2006/marking-up-a-tag-cloud */
+
+/* display the individual items next to each other, not one-per-line */
+.tag-cloud li {
+ display: inline;
+}
+
+/* hide the extra context from CSS-enabled browsers, but not screenreaders */
+.tag-cloud span {
+ position: absolute; left: -999px; width: 990px;
}
+
+/* size is purely presentational, based upon the class */
+.tag-cloud .not-popular { font-size: 1em; }
+.tag-cloud .not-very-popular { font-size: 1.3em; }
+.tag-cloud .somewhat-popular { font-size: 1.6em; }
+.tag-cloud .popular { font-size: 1.9em; }
+.tag-cloud .very-popular { font-size: 2.2em; }
+.tag-cloud .ultra-popular { font-size: 2.5em; }
+