{"id":11553,"date":"2022-02-03T10:00:00","date_gmt":"2022-02-03T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=11553"},"modified":"2022-02-02T18:24:07","modified_gmt":"2022-02-02T09:24:07","slug":"benefits-of-scss","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/11553","title":{"rendered":"Benefits of SCSS"},"content":{"rendered":"\n<p>SCSS (Sassy CSS) is the superset, it&#8217;s the more advanced version of CSS. We can add additional functionalities to CSS such as variables, nesting , loops, indentations  and more by using SCSS. All these additional functionalities can make writing CSS much easier and faster as compared to writing the traditional CSS.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Nesting<\/strong><\/p>\n\n\n\n<p>Nesting has many benefits:<\/p>\n\n\n\n<div class=\"wp-container-6a3cb1177c5bc wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><li>Nesting prevents the need to write the same selector over and over. SASS allows us to use a nested syntax,        which is code contained within another piece of code that performs a wider function. In SASS, nesting allows a cleaner way of targeting elements. In other words,\u00a0we can nest  HTML elements by using\u00a0<a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Selectors\">CSS selectors<\/a>.<\/li><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p> <li>Nesting is a more natural syntax and is easier and faster to read and understand.<\/li><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p> <li>Nested styles are more<\/li>   <\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-container-6a3cb1177cb96 wp-block-group\"><div class=\"wp-block-group__inner-container\">\n<p><strong>Loops<\/strong><\/p>\n\n\n\n<p>We can set up loops when SCSS is used. <\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p><strong> Variables<\/strong><\/p>\n\n\n\n<p>&nbsp;SCSS offers variables in order to declare re-used properties in one place. Using traditional CSS, we would need to repeat the same code over and over, but with SASS we can store these values as variables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"457\" height=\"307\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/02\/variables.png\" alt=\"\" class=\"wp-image-11555\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Mathematical functions<\/strong><\/p>\n\n\n\n<p>In SASS, we can also use mathematical operations like +, -, *, \/, or %. This allows us to influence size specifications, for example.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Indentations<\/strong><\/p>\n\n\n\n<p>The original SASS works with indentations and line breaks to structure the code. We don\u2019t need parentheses to display nesting or semicolons to mark line ends.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>By Tsuki<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11553\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/11553\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Benefits of SCSS\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11553\" data-text=\"Benefits of SCSS\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11553\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/11553\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>SCSS (Sassy CSS) is the superset, it&#8217;s the more advanced version of CSS. We can add additional functiona [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11553"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=11553"}],"version-history":[{"count":11,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11553\/revisions"}],"predecessor-version":[{"id":11575,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/11553\/revisions\/11575"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=11553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=11553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=11553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}