<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Stanislav Vranic</title>
    <description>The latest articles on DEV Community by Stanislav Vranic (@crowscript).</description>
    <link>https://dev.to/crowscript</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F409230%2F04e3f870-5dae-4f26-89ec-f5091650effd.jpeg</url>
      <title>DEV Community: Stanislav Vranic</title>
      <link>https://dev.to/crowscript</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/crowscript"/>
    <language>en</language>
    <item>
      <title>Document ready Vanilla JS</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Wed, 23 Dec 2020 12:20:31 +0000</pubDate>
      <link>https://dev.to/crowscript/document-ready-vanilla-js-2p3n</link>
      <guid>https://dev.to/crowscript/document-ready-vanilla-js-2p3n</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.addEventListener("DOMContentLoaded", function() {

});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var ready = (callback) =&amp;gt; {
  if (document.readyState != "loading") callback();
  else document.addEventListener("DOMContentLoaded", callback);
}

ready(() =&amp;gt; { 
  /* Custom JS */ 
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Image HTML as BG image with Caption</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Wed, 09 Sep 2020 11:44:47 +0000</pubDate>
      <link>https://dev.to/crowscript/image-html-as-bg-image-with-caption-187m</link>
      <guid>https://dev.to/crowscript/image-html-as-bg-image-with-caption-187m</guid>
      <description>&lt;p&gt;&lt;a href="https://codepen.io/crowscript/pen/mdPXZOR"&gt;Codepen image HTML as bg of Caption&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Used grid: &lt;a href="https://github.com/paulbarre/simple-flex-grid"&gt;simple-flex-grid&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Youtube video iframe responsive</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Wed, 09 Sep 2020 00:58:48 +0000</pubDate>
      <link>https://dev.to/crowscript/youtube-video-iframe-responsive-nfl</link>
      <guid>https://dev.to/crowscript/youtube-video-iframe-responsive-nfl</guid>
      <description>&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
  max-width: 1920px;
  margin: 0 auto;

  iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 1080px;
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Flex Vertical middle position</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Wed, 09 Sep 2020 00:28:58 +0000</pubDate>
      <link>https://dev.to/crowscript/flex-vertical-middle-position-1f9p</link>
      <guid>https://dev.to/crowscript/flex-vertical-middle-position-1f9p</guid>
      <description>&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;display: flex;
justify-content: center;
height: 100%;
flex-direction: column;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Lazy videos and images - lazysizes</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Tue, 08 Sep 2020 10:46:07 +0000</pubDate>
      <link>https://dev.to/crowscript/lazy-videos-and-images-lazysizes-fmd</link>
      <guid>https://dev.to/crowscript/lazy-videos-and-images-lazysizes-fmd</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/aFarkas/lazysizes"&gt;lazysizes github&lt;/a&gt;&lt;br&gt;
&lt;code&gt;npm install lazysizes --save&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;iframe frameborder="0"
    class="lazyload"
    allowfullscreen=""
    data-src="//www.youtube.com/embed/ZfV-aYdU4uE"&amp;gt;
&amp;lt;/iframe&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
    </item>
    <item>
      <title>CSS Media Queries BreakPoints</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Thu, 03 Sep 2020 16:23:07 +0000</pubDate>
      <link>https://dev.to/crowscript/css-media-queries-breakpoints-oc8</link>
      <guid>https://dev.to/crowscript/css-media-queries-breakpoints-oc8</guid>
      <description>&lt;p&gt;@media only screen and (max-width: 991px) {...}&lt;/p&gt;

&lt;p&gt;@media only screen and (max-width: 767px) {...}&lt;/p&gt;

&lt;p&gt;@media only screen and (min-width: 768px) {...}&lt;/p&gt;

&lt;p&gt;@media only screen and (min-width: 992px) {...}&lt;/p&gt;

&lt;p&gt;/* Medium devices (landscape tablets, 768px and up) */&lt;br&gt;
@media only screen and (min-width: 768px) {...}&lt;/p&gt;

&lt;p&gt;/* Large devices (laptops/desktops, 992px and up) */&lt;br&gt;
@media only screen and (min-width: 992px) {...}&lt;/p&gt;

&lt;p&gt;/* Extra large devices (large laptops and desktops, 1200px and up) */&lt;br&gt;
@media only screen and (min-width: 1200px) {...}&lt;/p&gt;

&lt;p&gt;@media only screen and (orientation: landscape) {&lt;br&gt;
  body {&lt;br&gt;
    background-color: lightblue;&lt;br&gt;
  }&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;@media only screen and (max-width: 767px) and (orientation: portrait) {...}&lt;br&gt;
@media only screen and (min-width: 320px) and (max-width: 479px){ ... }&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Anchor arrow right</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Wed, 19 Aug 2020 11:33:24 +0000</pubDate>
      <link>https://dev.to/crowscript/anchor-arrow-right-4bka</link>
      <guid>https://dev.to/crowscript/anchor-arrow-right-4bka</guid>
      <description>&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a {
            position: relative;

            &amp;amp;:after {
              content: "";
              border: solid @mid-blue;
              border-width: 0 2px 2px 0;
              width: 11px;
              height: 11px;
              position: absolute;
              left: auto;
              right: -20px;
              top: 50%;
              transform: rotate(-45deg) translateX(0%) translateY(-60%);
            }
          }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
    </item>
    <item>
      <title>&lt;li&gt; dots</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Wed, 19 Aug 2020 11:20:09 +0000</pubDate>
      <link>https://dev.to/crowscript/li-dots-33f2</link>
      <guid>https://dev.to/crowscript/li-dots-33f2</guid>
      <description>&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ul {
    list-style: none;
    padding-left: 35px;

    li {
      position: relative;

      &amp;amp;:before {
        content: "";
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        height: 10px;
        width: 10px;
        margin-left: -35px;
        background-color: @primary-color;
        border-radius: 50%;
      }
    }
  }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Installing the Pro version of Font Awesome</title>
      <dc:creator>Stanislav Vranic</dc:creator>
      <pubDate>Mon, 15 Jun 2020 07:29:53 +0000</pubDate>
      <link>https://dev.to/crowscript/installing-the-pro-version-of-font-awesome-5552</link>
      <guid>https://dev.to/crowscript/installing-the-pro-version-of-font-awesome-5552</guid>
      <description>&lt;ol&gt;
&lt;li&gt; Create a  &lt;code&gt;.npmrc&lt;/code&gt;  file in the root of your project (or where you have your package.json file)  &lt;code&gt;@fortawesome:registry=https://npm.fontawesome.com/ //npm.fontawesome.com/:_authToken=TOKEN&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt; After that configuration, you can install the latest Pro version of Font Awesome via npm or yarn:  &lt;a href="https://fontawesome.com/how-to-use/on-the-web/setup/using-package-managers"&gt;using-package-managers&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt; Implement in app.scss  &lt;code&gt;// font awesome 5 pro @import "node_modules/@fortawesome/fontawesome-pro/scss/fontawesome.scss"; @import "node_modules/@fortawesome/fontawesome-pro/scss/solid.scss"; @import "node_modules/@fortawesome/fontawesome-pro/scss/light.scss"; // and so on - brand etc&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt; Copy webfonts to your directory fonts from  &lt;code&gt;node_modules\@fortawesome\fontawesome-pro\webfonts&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt; In variables.scss  &lt;code&gt;// font awesome path $fa-font-path: "../fonts/fontawesome-pro/webfonts"; $font-family-font-awesome: 'Font Awesome 5 Pro';&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt; CSS style - To choose solid, or light depends on font-weight  &lt;code&gt;content: "\f128"; font-weight: 900; // this is solid&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>fontawesomepro</category>
    </item>
  </channel>
</rss>
