What is the difference between CSS and SCSS?

In addition to Idriss answer: CSS In CSS we write code as depicted bellow, in full length. body{ width: 800px; color: #ffffff; } body content{ width:750px; background:#ffffff; } SCSS In SCSS we can shorten this code using a @mixin so we don’t have to write color and width properties again and again. We can define … Read more

Making a Sass mixin with optional arguments

A DRY’r Way of Doing It And, generally, a neat trick to remove the quotes. @mixin box-shadow($top, $left, $blur, $color, $inset:””) { -webkit-box-shadow: $top $left $blur $color #{$inset}; -moz-box-shadow: $top $left $blur $color #{$inset}; box-shadow: $top $left $blur $color #{$inset}; } SASS Version 3+, you can use unquote(): @mixin box-shadow($top, $left, $blur, $color, $inset:””) { … Read more

Is it possible to import a whole directory in sass using @import?

If you are using Sass in a Rails project, the sass-rails gem, https://github.com/rails/sass-rails, features glob importing. @import “foo/*” // import all the files in the foo folder @import “bar/**/*” // import all the files in the bar tree To answer the concern in another answer “If you import a directory, how can you determine import … Read more

Sass – Converting Hex to RGBa for background opacity

The rgba() function can accept a single hex color as well decimal RGB values. For example, this would work just fine: @mixin background-opacity($color, $opacity: 0.3) { background: $color; /* The Fallback */ background: rgba($color, $opacity); } element { @include background-opacity(#333, 0.5); } If you ever need to break the hex color into RGB components, though, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)