-
Haiku
September 26,2019Size Small
Ordered new jacket.
Swam in a medium. Huh?
Guess I’m a small man.
-
September 26,2019
On this day last year, I had finished reading my 22nd book of 2018. Today, I just finished my 31st.
I give full credit to IndieBookClub and Goodreads for my success. I love tracking my progress and creating a permanent record on my blog.
-
Reading
September 26,2019
Finished reading: Rebel Yell: The Violence, Passion, and Redemption of Stonewall Jackson by S.C. Gwynne 📚
-
September 26,2019
Hitting your reading goal is attainable if you can budget an hour per day to it.
-
September 26,2019
I am thoroughly convinced that standard clothing sizes have gotten bigger over the past decade.
-
Haiku
September 25,2019Book Proof
Have proof of new book,
All work, bound and printed. Nice!
Time to finish up.
-
September 25,2019
The paperback proof of my new book just arrived.
I always love the experience of seeing my work in print for the first time.
-
September 25,2019
My autumn magnet game is strong.
-
September 25,2019
Okay, Audio Sharing is really cool.
-
Bad week to be a CEO
September 25,2019WeWork’s Adam Neumann Steps Down as CEO
The company’s founder will remain nonexecutive chairman but cede majority control
Juul CEO to Exit and Philip Morris, Altria End Talks as Vaping Scrutiny Intensifies
The chief executive of e-cigarette startup Juul Labs Inc. abruptly stepped down on Wednesday, as U.S. efforts to combat underage vaping threaten to upend the trendy alternative to smoking.
Wenig has left the online marketplace citing conflicts with the company’s new board, which is overseeing a strategic review of the business.
-
Haiku
September 24,2019Backyard Rainbow
Afternoon storm rains,
Brought a low rainbow in yard.
Kids! What a cool sight!
-
September 24,2019
Real estate photographers are misleading.
- September 24,2019
-
ChetCast
Episode 113: School Day
September 24,2019We just finished our school day, but this podcast was interrupted by an impromptu nap.
-
September 24,2019
Feedbin now offers read later capabilities called Pages. The official app also has a built in share extension in iOS.
Absolutely killer.
-
September 24,2019
Big day.
-
Haiku
September 23,2019Trial and Breakthroughs
CSS galore,
Problems finally resolved.
Total perfection!
-
September 23,2019
Whenever I finish a big customization with my Micro.blog design, I like to write up a blog post and share it with the community.
That little act of sharing paid off today! I overwrote the customizations to my podcast feed, so I pulled up my written instructions and I’m back in business.
-
September 23,2019
Ummm, where did iCloud Tabs go in iOS 13/Safari 13?!
-
Changing Your Site Logo in Dark Mode: A Better Way
September 23,2019A few weeks ago, I wrote about a method that I used to swap out my site logo in dark mode. In that post, I wrote about you can use some custom CSS to display a different logo when a browser was in dark mode.
It wasn’t a very elegant method, but it got the job done. There was, however, a huge drawback. The Kiko theme sets the header logo/blog title as a link back to your site’s root. By replacing the logo in the way I shared in the post referenced above, the link broke. In essence, my blog showed the correct logo in dark mode, but visitors no longer had an easy way back to the home page.
I now have a better way of accomplishing the same objective.
As a reminder, I’m using a custom version of the Kiko theme.
Setting Up Your Site Logo
-
Upload both light and dark mode versions of your logo to your Micro.blog account. Copy the links and have them ready to go.
-
Go in to your custom theme in the Micro.blog Design dashboard. Open the
layouts/partials/header.htmltemplate. -
You’re now going to load your image URLs into the
<a>links<h1 class>area. Just copy and paste the URL for your light mode logo into the place of the URL link currently in the template. Then copy and paste that whole<a>link, and load your dark mode logo URL into the second link. Make sure that you update both alternate descriptions! -
That will put both images in your header, the light and dark versions. Within those links, you’ll need to define a custom class. Simply add
class="logo-dark"immediately after the logo URL and before the</a>tag in the first link. Addclass="logo-light"to the second link, again, immediately before the</a>tag. This is what will allow us to use CSS to get across the finish line. -
Save that template. If you refresh your blog, you should see your light mode logo stacked on top of your dark mode logo in the header.
Now we’re going to get them to show up when we want them to. Go into your Custom CSS on the Micro.blog dashboard Design tab.
We’re going to use the CSS
displayproperty to show and hide the correct logo version in the correct browser light/dark setting.First, let’s focus on the light mode of your website. We don’t want the dark mode logo to show up when the browser is in light mode. We’re going to hide it by adding this CSS:
.logo-dark {display: none;}Now, let’s configure your dark mode logo. In dark mode, we want the light mode logo to hide and the dark mode logo to show up.
Find the
@mediaquery in your CSS where you’ve done all of your other dark mode styling. Add the following CSS within the{}of the@mediaquery:.logo-light { display: none !important; } .logo-dark { display: inline !important; }There you have it! Your site logo will switch as expected between browser light and dark modes. Go ahead and test it out!
My thanks to Manton for giving Micro.blog users the flexibilty to edit and customize blogs from within Micro.blog!
-
-
Reading
September 23,2019
Currently reading: Rebel Yell: The Violence, Passion, and Redemption of Stonewall Jackson by S.C. Gwynne 📚
-
September 23,2019
Sometimes, the best solution is the simplest.
I had no idea that I could class specific links. That technique fixes all of my light mode/dark mode image link issues.
-
September 23,2019
I had an idea this morning while getting ready for the day. What if I used a custom div and the CSS display property to swap out images between light and dark mode?
BOOM! It works!!!
-
September 23,2019
Almost a week of unsweetened coffee. I was missing a real treat! ☕️
-
September 23,2019
I have two HomeKit garage door openers. Siri in iOS 13 CarPlay always helpfully offers me the wrong one.
