<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/">
    <channel>
        <title>SysAdmin Journal · CSS</title>
        <link>https://sysadmin-journal.com/tag/css</link>
        <description>Posts tagged with CSS</description>
        <language>en</language>
        <lastBuildDate>Sun, 12 Sep 2021 16:36:40 +0000</lastBuildDate>
        <atom:link href="https://sysadmin-journal.com/tag/css/rss" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        <item>
            <title>feature_image_caption not showing in Ghost theme 😤</title>
            <link>https://sysadmin-journal.com/feature_image_caption-not-showing-in-ghost-theme</link>
            <guid isPermaLink="true">https://sysadmin-journal.com/feature_image_caption-not-showing-in-ghost-theme</guid>
            <pubDate>Sun, 12 Sep 2021 16:36:40 +0000</pubDate>
            <dc:creator>Ish Sookun</dc:creator>
            <category>CSS</category>
            <description>TL;DR — If you are developing a Ghost theme and you have certain handlebars not working properly, make sure to check the Ghost engine value in the package.json file.</description>
            <media:content url="https://sysadmin-journal.com/content/images/2021/09/ghost-logo.png" medium="image" />
            <content:encoded><![CDATA[<p>I started creating a Ghost theme for my blog last Friday. Everything went on smoothly with all bits and pieces falling perfectly in place, except for one handlebar not behaving as it should.</p><p>Last month the <a href="https://ghost.org/changelog/feature-image-captions/">Ghost developers announced a new feature</a>, the possibility of adding a caption to the post feature image. Previously, I would add photo credit for the feature image inside the blog content. With the new feature it'll be an easier job and certainly good SEO since the <code>alt</code> tag for the image also is available.</p><p>That being said I was hyped to use this feature whenever I would update my blog theme. So, when creating this <a href="https://github.com/ishwon/ghost-nice">new theme</a> for my blog, certainly I would think of including the <code>feature_image_caption</code> handlebar helper.</p><pre><code>&lt;figcaption&gt;
  {{ feature_image_caption }}
&lt;/figcaption&gt;</code></pre><p>Like I said, everything worked smoothly except for the above code and I would not understand why. I Googled, read the forum posts but nothing pointed to the right direction.</p><p>Then, I noticed that I in my <code>package.json</code> file I had <code>v3</code> instead of <code>&gt;=4.0.0</code> as the Ghost engine value. I used files from a previous Ghost theme which I wrote and I forgot to change this value. A <a href="https://github.com/ishwon/ghost-nice/commit/dc20e8e32d70fdc2e5b81f6a74054ca4dc7ea3bb">quick fix</a> and the <code>feature_image_caption</code> appeared as expected.</p><p>Damn! This is the reason why it is a good practice to start Ghost theme development with the Casper theme as base template.</p>]]></content:encoded>
        </item>
        <item>
            <title>RGB and RGBA in CSS</title>
            <link>https://sysadmin-journal.com/rgb-and-rgba-in-css</link>
            <guid isPermaLink="true">https://sysadmin-journal.com/rgb-and-rgba-in-css</guid>
            <pubDate>Tue, 29 Dec 2020 15:42:05 +0000</pubDate>
            <dc:creator>Ish Sookun</dc:creator>
            <category>CSS</category>
            <description>I learned about RGB and RGBA while reading how to define colors in Cascading Style Sheets.</description>
            <media:content url="https://sysadmin-journal.com/content/images/2020/12/color-palette.jpg" medium="image" />
            <content:encoded><![CDATA[<!--kg-card-begin: html--><p>RGB is one notation through which colors may be set using a style sheet for a webpage. The <code>rgb()</code> function takes three numerical values separated by a comma and each representing the colors <span style="color:red;">Red</span>, <span style="color:blue;">Blue</span> and <span style="color:green;">Green</span> in the respective order.</p><!--kg-card-end: html--><p>The values can be between 0 and 255, inclusive.</p><pre><code>rgb(46,139,87)</code></pre><!--kg-card-begin: html--><p>The above example represents a shade of <strong><span style="color:rgb(46,139,87);">Green</span></strong>. <!--kg-card-end: html--><p>Using the <code>rgba()</code> function, one may control the alpha channel to adjust the transparency. The function requires a fourth numerical value which can be a decimal value between 0 and 1; the latter being complete opaque and 0 meaning full transparency.</p><p>Applying a 50% transparency to the above example would give us:</p><pre><code>rgba(46,139,87,0.5)</code></pre><!--kg-card-begin: html--><p>Notice, how the <strong><span style="color:rgba(46,139,87,0.5);">Green</span></strong> further changes its shade. <!--kg-card-end: html--><hr><p>Read more about <a href="https://www.w3.org/TR/css-color-3/#rgb-color">Colors &amp; CSS</a> at <a href="https://www.w3.org/TR/css-color-3/#rgb-color">w3.org</a>.<br>Image credit: <a href="https://www.freepik.com/photos/education">Education photo</a> created by <a href="https://www.freepik.com/photos/education">user18526052</a></p>]]></content:encoded>
        </item>
    </channel>
</rss>
