From db8b64d063b9f2ea9f2caf18c030c5170bcc4748 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 27 Jan 2020 18:01:44 +0530 Subject: responsive styles --- docs/index.html | 20 +++++++----- docs/posts/WPA_woes/index.html | 2 +- docs/posts/bash_harder_with_vim/index.html | 2 +- docs/posts/bye_bye_BDFs/index.html | 2 +- docs/posts/color_conundrum/index.html | 2 +- .../index.html | 2 +- docs/posts/hold_position!/index.html | 2 +- docs/posts/my_setup/index.html | 2 +- docs/posts/onivim_sucks/index.html | 2 +- docs/posts/static_sites_with_bash/index.html | 2 +- docs/style.css | 38 ++++++++++++++++++---- generate.sh | 4 ++- 12 files changed, 55 insertions(+), 25 deletions(-) diff --git a/docs/index.html b/docs/index.html index f26aa21..0b3e979 100644 --- a/docs/index.html +++ b/docs/index.html @@ -20,6 +20,7 @@
+
@@ -27,7 +28,7 @@
- 31/12/19 + 31/12 — 2019
Color Conundrum @@ -44,7 +45,7 @@
- 23/11/19 + 23/11 — 2019
Static Sites With Bash @@ -61,7 +62,7 @@
- 07/11/19 + 07/11 — 2019
My Setup @@ -78,7 +79,7 @@
- 12/10/19 + 12/10 — 2019
WPA Woes @@ -95,7 +96,7 @@
- 07/08/19 + 07/08 — 2019
Bye Bye BDFs @@ -112,7 +113,7 @@
- 02/08/19 + 02/08 — 2019
Onivim Sucks @@ -129,7 +130,7 @@
- 31/07/19 + 31/07 — 2019
Bash Harder With Vim @@ -146,7 +147,7 @@
- 30/07/19 + 30/07 — 2019
Hold Position! @@ -163,7 +164,7 @@
- 29/07/19 + 29/07 — 2019
Get Better At Yanking And Putting In Vim @@ -189,6 +190,7 @@ + diff --git a/docs/posts/WPA_woes/index.html b/docs/posts/WPA_woes/index.html index e6bd108..a2adb2e 100644 --- a/docs/posts/WPA_woes/index.html +++ b/docs/posts/WPA_woes/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 12/10/19 + 12/10 — 2019
18.37 diff --git a/docs/posts/bash_harder_with_vim/index.html b/docs/posts/bash_harder_with_vim/index.html index 3543f15..336bd04 100644 --- a/docs/posts/bash_harder_with_vim/index.html +++ b/docs/posts/bash_harder_with_vim/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 31/07/19 + 31/07 — 2019
24.37 diff --git a/docs/posts/bye_bye_BDFs/index.html b/docs/posts/bye_bye_BDFs/index.html index 61b2aec..9031d8a 100644 --- a/docs/posts/bye_bye_BDFs/index.html +++ b/docs/posts/bye_bye_BDFs/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 07/08/19 + 07/08 — 2019
9.99 diff --git a/docs/posts/color_conundrum/index.html b/docs/posts/color_conundrum/index.html index 7b842b6..1751e6a 100644 --- a/docs/posts/color_conundrum/index.html +++ b/docs/posts/color_conundrum/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 31/12/19 + 31/12 — 2019
14.39 diff --git a/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html index d645f25..455a52e 100644 --- a/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html +++ b/docs/posts/get_better_at_yanking_and_putting_in_vim/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 29/07/19 + 29/07 — 2019
10.78 diff --git a/docs/posts/hold_position!/index.html b/docs/posts/hold_position!/index.html index 20ec125..d5478f6 100644 --- a/docs/posts/hold_position!/index.html +++ b/docs/posts/hold_position!/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 30/07/19 + 30/07 — 2019
9.18 diff --git a/docs/posts/my_setup/index.html b/docs/posts/my_setup/index.html index 2fd9f16..b0baabc 100644 --- a/docs/posts/my_setup/index.html +++ b/docs/posts/my_setup/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 07/11/19 + 07/11 — 2019
10.39 diff --git a/docs/posts/onivim_sucks/index.html b/docs/posts/onivim_sucks/index.html index 2d61cc4..123f17c 100644 --- a/docs/posts/onivim_sucks/index.html +++ b/docs/posts/onivim_sucks/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 02/08/19 + 02/08 — 2019
11.18 diff --git a/docs/posts/static_sites_with_bash/index.html b/docs/posts/static_sites_with_bash/index.html index f374a2b..e03bf5f 100644 --- a/docs/posts/static_sites_with_bash/index.html +++ b/docs/posts/static_sites_with_bash/index.html @@ -16,7 +16,7 @@ ⟵ Back
- 23/11/19 + 23/11 — 2019
21.17 diff --git a/docs/style.css b/docs/style.css index fd7e37f..bdda208 100644 --- a/docs/style.css +++ b/docs/style.css @@ -30,10 +30,6 @@ html { font-size: 20px; } -.posts { - width: 40%; -} - table { width: 100%; border-collapse: collapse; @@ -52,8 +48,11 @@ td { padding: 0.5rem 0; } -/* mobile devices */ -@media only screen and (max-width: 70em) { +.posts { + width: 100%; +} + +@media only screen and (min-width: 600px) { .posts { width: 100%; } @@ -62,6 +61,33 @@ td { } } +@media only screen and (min-width: 768px) { + .posts { + width: 80%; + } + html { + font-size: 18px; + } +} + +@media only screen and (min-width: 992px) { + .posts { + width: 70%; + } + html { + font-size: 20px; + } +} + +@media only screen and (min-width: 1200px) { + .posts { + width: 50%; + } + html { + font-size: 20px; + } +} + .posts { text-align: left; display: inline-block; diff --git a/generate.sh b/generate.sh index 103f2f9..2ba3fc9 100755 --- a/generate.sh +++ b/generate.sh @@ -70,6 +70,7 @@ echo " # begin posts echo "
+
" >> docs/index.html @@ -93,7 +94,7 @@ for f in $posts; do height="$(height $lines)" post_title=$(title_wrapper "$id") - post_date=$(date -r "$file" "+%d/%m/%y") + 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 @@ -123,6 +124,7 @@ echo " + " >> docs/index.html -- cgit v1.2.3