• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Archives for SASS

SASS

Breakpoints in Dart SASS

_breakpoints.scss

@use 'sass:map';

$breakpoints: (
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
);

@mixin media-breakpoint-up($breakpoint) {
$size: map.get($breakpoints, $breakpoint); // Frissített szintaxis
@if $size {
@media (min-width: #{$size}) {
@content;
}
} @else {
@error "Nincs ilyen breakpont definiálva: #{$breakpoint}.";
}
}

Usage

.container {
width: 100%;

@include media-breakpoint-up(md) {
width: 80%;
}

@include media-breakpoint-up(lg) {
width: 60%;
}
}

Filed Under: CSS Tagged With: SASS

Visual Studio Code with Live Server and Live SASS Compiler on Localhost

Filed Under: Other Tagged With: SASS

Live Sass Compiler settings.json

"liveSassCompile.settings.formats":[
     {
         "format": "compressed",
         "savePath": "/assets/css"
     }
 ]

Filed Under: CSS Tagged With: SASS

Darken and lighten color with SASS

//Variables
 $base: #3acec2;
 $base-dark: darken($base, 25%);
 $base-light: lighten($base, 25%);
 $complement: complement($base);
 $complement-light: lighten($complement, 10%);

Filed Under: CSS Tagged With: SASS

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved