commit a3345d2ace0e1a2b5df715602c85b751663afec8
parent e1790cc21c9d5e8d8ebbb92ee86c67a8e7e704c1
Author: oscarbenedito <oscar@obenedito.org>
Date:   Mon, 27 Jan 2020 16:42:01 +0100

Color changes to dark theme and reading time bug

Diffstat:
Massets/css/composer.scss | 8++++----
Massets/css/landing.css | 8++++----
Massets/css/style.scss | 36++++++++++++++++++------------------
Mcontent/blog/2019-12-24-new-world-of-software.md | 6++----
Mlayouts/partials/read-time.html | 2+-
5 files changed, 29 insertions(+), 31 deletions(-)

diff --git a/assets/css/composer.scss b/assets/css/composer.scss @@ -1,12 +1,12 @@ @mixin lightcolors { --text-color: #000; --bg-color: #fff; ---nav-color: #767676; +--nav-color: hsl(0, 0%, 46%); } @mixin darkcolors { ---text-color: #eee; ---bg-color: #222; ---nav-color: #8f8f8f; +--text-color: hsl(0, 0%, 93%); +--bg-color: hsl(0, 0%, 13%); +--nav-color: hsl(0, 0%, 56%); } :root { --font-family: serif; diff --git a/assets/css/landing.css b/assets/css/landing.css @@ -1,6 +1,6 @@ html { - background-color: #F0F0F0; - color: #777777; + background-color: hsl(0, 0%, 94%); + color: hsl(0, 0%, 47%); font-family: sans-serif; } h1 { @@ -29,11 +29,11 @@ a.icon { text-align: center; } .icon { - fill: #777777; + fill: hsl(0, 0%, 47%); width: 30px; } .icon:hover { - fill: #AAAAAA; + fill: hsl(0, 0%, 67%); } .big-icon { width:100px; diff --git a/assets/css/style.scss b/assets/css/style.scss @@ -41,11 +41,11 @@ permission notice: /* Variables -------------------------------------------------- */ @mixin lightcolors { - --text-color: rgba(0, 0, 0, 0.88); - --text-strong: rgba(0, 0, 0, 0.90);//rgb(0, 76, 0); - --secondary-text-color: rgba(0, 0, 0, 0.56); - --tertiary: rgba(0, 0, 0, 0.06); - --button-color: rgba(0, 0, 0, 0.26); + --text-color: hsl(0, 0%, 12%); + --text-strong: hsl(0, 0%, 10%); + --secondary-text-color: hsl(0, 0%, 44%); + --tertiary: hsl(0, 0%, 94%); + --button-color: hsl(0, 0%, 74%); --card-background-color: #fff; --primary-color: #7ec27b; @@ -54,25 +54,25 @@ permission notice: --links: #4b8c44; --background: #fff; --hljs-bg: #1c1d21; - --code-bg: #f5f5f5; - --border: #ddd; + --code-bg: hsl(0, 0%, 96%); + --border: hsl(0, 0%, 88%); } @mixin darkcolors { - --text-color: #a0a0a0; - --text-strong: hsl(0, 0%, 60%); - --secondary-text-color: #808080; - --tertiary: #1c1c1c; - --button-color: #808080; - --card-background-color: #1c1c1c; + --text-color: hsl(0, 0%, 80%); + --text-strong: hsl(0, 0%, 80%); + --secondary-text-color: hsl(0, 0%, 55%); + --tertiary: hsl(0, 0%, 15%); + --button-color: hsl(0, 0%, 70%); + --card-background-color: hsl(0, 0%, 15%); --primary-color: #233951; - --primary-invert-color: #e0e0e0; + --primary-invert-color: hsl(0, 0%, 80%); --primary-color-darken: #1b2c3f; - --links: rgb(55, 90, 127); - --background: #101010; + --links: hsl(210, 40%, 50%); + --background: hsl(0, 0%, 11%); --hljs-bg: #1c1d21; - --code-bg: #1c1c1c; - --border: #333; + --code-bg: hsl(0, 0%, 11%); + --border: hsl(0, 0%, 20%); } :root { --gap: 24px; diff --git a/content/blog/2019-12-24-new-world-of-software.md b/content/blog/2019-12-24-new-world-of-software.md @@ -5,7 +5,7 @@ tags: ["FOSS", "Software"] --- As I have said before, I was a big user of big tech companies' services. I also used macOS (and Windows before that) and proprietary software for mostly everything. I didn't really know what free[^fsw] software was and, if I was running any, it was by coincidence. -[^fsw]: Here (and throughout the post) I am talking about [free as in freedom software](https://www.gnu.org/philosophy/free-sw.html). +[^fsw]: Here (and throughout the post) I am talking about [free as in freedom](https://www.gnu.org/philosophy/free-sw.html) software. At college, I discovered the world of GNU/Linux. I had an old computer that was very slow and someone promised that GNU/Linux would make it significantly faster, so I installed Debian next to macOS. This way, every time I turned on my computer I would be able to choose which operating system I wanted to use, and if something happened to my GNU partition, I could still use the computer as before. Even with Debian installed, the computer eventually started to become too slow for my needs and I bought a new computer where I also installed Debian next to the default OS. As for the old computer, I eventually erased both partitions and installed Manjaro with XFCE instead, I don't use it much anymore because of its limitations. @@ -19,8 +19,6 @@ Don't get me wrong, there are advantages to proprietary software. It can sometim There is a whole world of efficient and useful software that I had never *really* explored and I now see why so many people use it. I no longer look for free/libre *alternatives* to a proprietary program, but it is the only kind of software that I look for. Dealing with closed source and proprietary software is now my plan B, when everything else fails. -*** - -### Final note +## Final note Firstly, in this post I claim certain qualities of both free and proprietary software. It is always spoken from my experience and perspective, your experience may be different. They are also qualities that I commonly find, instead of a claim that all software on a given category has them. Secondly, I deliberately left aside the ethical component of free software, as it wasn't what I wanted to talk about, however, you might be interested in reading more about it. diff --git a/layouts/partials/read-time.html b/layouts/partials/read-time.html @@ -1,2 +1,2 @@ {{ $readTime := math.Round (div (countwords .Content) 140.0) }} -{{ if eq $readTime 1 }}1 minute{{ else }}{{ $readTime }} minutes{{ end }} +{{ if eq $readTime 1.0 }}1 minute{{ else }}{{ $readTime }} minutes{{ end }}