From 5ff6a15f1b493b7b44909acd7cab6dfb06d648f5 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 27 Jan 2020 15:21:22 +0530 Subject: fix mobile styles --- docs/index.html | 36 ++++++++++++++++++------------------ docs/style.css | 11 ++++++++++- generate.sh | 5 ++--- 3 files changed, 30 insertions(+), 22 deletions(-) diff --git a/docs/index.html b/docs/index.html index b82d8b7..f26aa21 100644 --- a/docs/index.html +++ b/docs/index.html @@ -25,7 +25,7 @@ - +
31/12/19
@@ -33,7 +33,7 @@ Color Conundrum - + 1.3 @@ -42,7 +42,7 @@ - +
23/11/19
@@ -50,7 +50,7 @@ Static Sites With Bash - + 1.5 @@ -59,7 +59,7 @@ - +
07/11/19
@@ -67,7 +67,7 @@ My Setup - + 1.0 @@ -76,7 +76,7 @@ - +
12/10/19
@@ -84,7 +84,7 @@ WPA Woes - + 1.1 @@ -93,7 +93,7 @@ - +
07/08/19
@@ -101,7 +101,7 @@ Bye Bye BDFs - + 1.0 @@ -110,7 +110,7 @@ - +
02/08/19
@@ -118,7 +118,7 @@ Onivim Sucks - + 1.3 @@ -127,7 +127,7 @@ - +
31/07/19
@@ -135,7 +135,7 @@ Bash Harder With Vim - + 1.6 @@ -144,7 +144,7 @@ - +
30/07/19
@@ -152,7 +152,7 @@ Hold Position! - + 1.0 @@ -161,7 +161,7 @@ - +
29/07/19
@@ -169,7 +169,7 @@ Get Better At Yanking And Putting In Vim - + 0.9 diff --git a/docs/style.css b/docs/style.css index c7347a0..fd7e37f 100644 --- a/docs/style.css +++ b/docs/style.css @@ -39,8 +39,17 @@ table { border-collapse: collapse; } +.table-post { + width: 70%; +} + +.table-stats { + width: 30%; + text-align: right; +} + td { - padding: 0.7rem 0; + padding: 0.5rem 0; } /* mobile devices */ diff --git a/generate.sh b/generate.sh index 6bca952..103f2f9 100755 --- a/generate.sh +++ b/generate.sh @@ -24,7 +24,7 @@ link_wrapper() { # 4 - read time echo -ne " - +
$3
@@ -32,7 +32,7 @@ link_wrapper() { $2 - + $4 @@ -95,7 +95,6 @@ for f in $posts; do post_title=$(title_wrapper "$id") post_date=$(date -r "$file" "+%d/%m/%y") post_link=$(link_wrapper "${id%.*}" "$post_title" "$post_date" "$r_time" "$height") - echo -ne "$post_link" >> docs/index.html id="${id%.*}" -- cgit v1.2.3