Coder Social home page Coder Social logo

sass's Introduction

Learning SASS, SCSS

  • Sass partials
  • Sass Variables and css custom properties
  • Sass and BEM
  • Sass mixins
  • Sass map
  • Sass functions
  • Nesting and BEM
  • Helper/Utility classes
  • px to rem converter function
  • px to em converter function

notes

  • CSS variables are called custom properties
  • CSS custom properties can be put in html, :root, and body selectors for global use
  • you can manipulate css custom properties by javascript and you cannot do that with sass variables
  • BEM : B => block, E => element, and M => modifier
  • BEM helps to make class names unique, and if you change the name of the block you don't have to change the name of all the selectors related to it
  • rows and columns are also called tracks
  • use border:solid or padding:1px to kill margin collapse # refer to _grid.scss
  • Sass maps are built-in sass module
  • Sass maps similar to objects and dictionaries

BEM : block access modifier => a methodology use to name classes in a big project

  • BEM is a css naming convention
  • block: a standalone entity that's meaningful on its own
  • access: a part of a block that has no standalone meaning and is semantically tied to its block
  • modifier: a flag on a block or element that are used to change appearance or behavior
  • class="block block__element block--modifier element--modifier block__element--modifier"
    • block => block block
    • element => element block__element
    • modifier => modifier block--modifier element--modifier

the link of the great tutorial

click me

sass's People

Contributors

khalidmesbah avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.