From 6fe6a7783e8c811b031182a9d7d61853f3504f7c Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Sat, 4 Apr 2020 23:01:53 +0200 Subject: [PATCH] Add image css --- .../blog/2020-03-23-custom-redox-keyboard-assembly.md | 2 +- src/routes/blog/[slug].svelte | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/_posts/blog/2020-03-23-custom-redox-keyboard-assembly.md b/_posts/blog/2020-03-23-custom-redox-keyboard-assembly.md index 4511fed..0d771bb 100644 --- a/_posts/blog/2020-03-23-custom-redox-keyboard-assembly.md +++ b/_posts/blog/2020-03-23-custom-redox-keyboard-assembly.md @@ -153,7 +153,7 @@ But to sum up what I did it was pretty simple: 2. Set the number of RGB diodes in `/keyboards/redox/keymaps/default/config.h` 3. Made my own keyboard layout over: https://config.qmk.fm/#/redox/rev1/LAYOUT 4. Burn it `make redox/rev1:default:avrdude` - - Of course I've strugled a little bit with this part. I've ended up with running this command as I wasn't able to set some stuff described here: https://docs.qmk.fm/#/faq_build?id=can39t-program-on-linux + - Of course I've strugled a little bit with this part. I've ended up with running this command with `sudo` as I wasn't able to set some stuff described here: https://docs.qmk.fm/#/faq_build?id=can39t-program-on-linux In case you want to check out my configuration you can download it here and upload it in the configurator. I've added some multimedia keys in a third layout and much more. diff --git a/src/routes/blog/[slug].svelte b/src/routes/blog/[slug].svelte index a0bf8cb..7fc7b25 100644 --- a/src/routes/blog/[slug].svelte +++ b/src/routes/blog/[slug].svelte @@ -47,6 +47,17 @@ .content :global(li) { margin: 0 0 0.5em 0; } + + .content :global(img) { + max-width: 100%; + border-radius: 5px; + box-shadow: 0px 0px 8px 1px #2d3935; + } + + .content :global(img:only-child) { + display: block; + margin: 0 auto; + }