Skip to content

This repository contains my self learning sass files & folders. Feel free to come here.

Notifications You must be signed in to change notification settings

kesaralive/learn.sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Dev Environment Setup

  • Visual Studio Code
  • Live Sass Compiler
  • Live Server

Note: The Watch now button is enabled when you're saving sass files.

SCSS Syntax

@mixin button-base()
    @include typography(button)

    display: inline-flex
    position: relative
    height: $button-height
    border: none
    vertical-align: middle

    &:hover
        cursor: pointer

Variables

SCSS

$base-color: #c6538c;
$border-dark: rgba($base-color, 0.88);

.alert {
border: 1px solid $border-dark;
}

CSS

.alert {
border: 1px solid rgba(198, 83, 140, 0.88);
}

Functions

SCSS

// Font weight class
$font-weights:("regular":400,
    "medium":500,
    "bold":700,
);

// Font weight function
@function weight($weight-name) {
    @return map-get($font-weights, $weight-name);
}

// Uses
p {
    font-weight:weight(medium);
}

CSS

p {
    font-weight: 500;
}

About

This repository contains my self learning sass files & folders. Feel free to come here.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages