<?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: Hrishikesh Mahalle</title>
    <description>The latest articles on DEV Community by Hrishikesh Mahalle (@hrishikeshmahalle).</description>
    <link>https://dev.to/hrishikeshmahalle</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%2F674749%2Fcf0dc640-6ec1-452e-8cb6-e6422f259bec.jpeg</url>
      <title>DEV Community: Hrishikesh Mahalle</title>
      <link>https://dev.to/hrishikeshmahalle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hrishikeshmahalle"/>
    <language>en</language>
    <item>
      <title>Mobile Responsive React Page in 30 sec's using SCSS</title>
      <dc:creator>Hrishikesh Mahalle</dc:creator>
      <pubDate>Tue, 17 Aug 2021 06:18:49 +0000</pubDate>
      <link>https://dev.to/hrishikeshmahalle/mobile-responsive-react-page-in-30-sec-s-using-scss-3lp</link>
      <guid>https://dev.to/hrishikeshmahalle/mobile-responsive-react-page-in-30-sec-s-using-scss-3lp</guid>
      <description>&lt;p&gt;Mobile responsiveness is one of that annoying jobs which developers needs to do but still procrastinates. Also this is same reason why UI/UX libraries gets boost amongst beginners. Now although it a good thing, but at the same time it not worth it since we gain nothing!&lt;/p&gt;

&lt;p&gt;Hence the trick which I'm gonna share can be used in react projects via declaring a global variable of styles using SCSS and then applying them over all Styles&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1- Global SCSS:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LBV9hqFU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1xega7bve8ja2waf44w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LBV9hqFU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a1xega7bve8ja2waf44w.png" alt="Global variable initilizaition"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Code:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$width:768px;

@mixin mobile {
    @media(max-width: #{$width}){
        @content
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As we can see that the &lt;strong&gt;global.scss&lt;/strong&gt; is initialized with width as a variable. This width denotes the size after which our Mobile elements shall come into use(or start working). &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2 - Implement and use:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gRqVL-YM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wg7o3orl1g7awl24k8df.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gRqVL-YM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wg7o3orl1g7awl24k8df.png" alt="implementing Global variable"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Code:
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@import "../../global.scss";

.intro{
    background-color: blue;
    display: flex;

    @include mobile{
        flex-direction: column;
        align-items: center;
        overflow: hidden;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now here once we implement the global variable in local styles, we can directly use &lt;code&gt;@include mobile&lt;/code&gt; from the Global variable and write our adjustments for the section.&lt;/p&gt;

&lt;p&gt;And with this we have implemented a better Mobile Responsive Code within No time spend.&lt;/p&gt;

&lt;p&gt;Thank You for reading. Peace!&lt;/p&gt;

</description>
      <category>react</category>
      <category>css</category>
      <category>webdev</category>
      <category>design</category>
    </item>
    <item>
      <title>SCSS v/s CSS! Who takes the Final Jab?</title>
      <dc:creator>Hrishikesh Mahalle</dc:creator>
      <pubDate>Mon, 16 Aug 2021 20:21:17 +0000</pubDate>
      <link>https://dev.to/hrishikeshmahalle/scss-v-s-css-who-takes-the-final-jab-3dan</link>
      <guid>https://dev.to/hrishikeshmahalle/scss-v-s-css-who-takes-the-final-jab-3dan</guid>
      <description>&lt;p&gt;What appeals more fascinating, a wall with just coat plaster or a wall with shades of Paint, and the same goes for the design of House, Buildings, Mobiles and what not. And when it comes to designing a webpage the CSS(Cascading Style Sheets) is the backbone for every Color bit. CSS helps in styling and arranging the HTML code.&lt;/p&gt;

&lt;p&gt;But we always have a chance to work with the 'Better alternative' namely SCSS which is subset of CSS. Now although SCSS provides more like a programming feature but has its limitations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OFN4uk5A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k0adz8ujb1mfyfee68vp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OFN4uk5A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k0adz8ujb1mfyfee68vp.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From the Above image we can clearly see that, the repetitiveness is far reduced a lot better, and that's just a single example of many.&lt;br&gt;
Now although SCSS if more like a programing but SCSS variables are determined at the pre-processing stage when SCSS is converted to CSS. Therefore, the se of variables and code re-use is better in performance with SCSS.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should we opt for CSS from SCSS?
&lt;/h3&gt;

&lt;p&gt;Understanding how the SCSS is to implemented, it gets more and more habituated to use SCSS over CSS since it's efficient to write.&lt;/p&gt;

&lt;p&gt;Also with the boom of web application, stylesheets tend to become complex and larger. Thus some handy feature of SCSS like the&lt;br&gt;
CSS isn’t capable of handling flow control rules. SCSS provides &lt;code&gt;@if, @else, @each, $for, and @while&lt;/code&gt; flow control rules out of the box. &lt;br&gt;
SCSS supports the standard set of numeric operators for numbers wherein CSS you have to use &lt;code&gt;calc()&lt;/code&gt; function for numeric operations. SCSS numeric operations will automatically convert between compatible units.&lt;br&gt;
Thus we can understand that the SCSS is quite useful and shall help to work quit easier while compared to CSS. Hence although CSS is improving, but still has a long way up, before it even reaches the SCSS. &lt;/p&gt;

&lt;p&gt;I hope you enjoyed the article. Thanks for reading!&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>css</category>
      <category>html</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
