Search
 
SCRIPT & CODE EXAMPLE
 

CSS

scss media query

/* Using SCSS variables to store breakpoints */
$breakpoint-tablet: 768px;
@media (min-width: $breakpoint-tablet) {
  
}
Comment

media queries in scss

$size__site_content_width: 1024px;

/* Media Queries */ Not necessarily correct, edit these at will 
$media_queries : (
    'mobile'    : "only screen and (max-width: 667px)",
    'tablet'    : "only screen and (min-width: 668px) and (max-width: $size__site_content_width)",
    'desktop'   : "only screen and (min-width: ($size__site_content_width + 1))",
    'retina2'   : "only screen and (-webkit-min-device-pixel-ratio: 2) and (min-resolution: 192dpi)",
    'retina3'   : "only screen and (-webkit-min-device-pixel-ratio: 3) and (min-resolution: 288dpi)",
    'landscape' : "screen and (orientation:landscape) ",    
    'portrait'  : "screen and (orientation:portrait) "
);

@mixin for_breakpoint($breakpoints) {
    $conditions : ();
    @each $breakpoint in $breakpoints {
        // If the key exists in the map
        $conditions: append(
            $conditions,
            #{inspect(map-get($media_queries, $breakpoint))},
            comma
        );
    }

    @media #{$conditions} {
        @content;
    }

}
Comment

PREVIOUS NEXT
Code Example
Css :: css footer always at bottom but visible 
Css :: css max width substruction 
Css :: negative border radius 
Css :: css multiline comment 
Css :: dot in image css 
Css :: are the iphone dimensions widht then height 
Css :: css ovel 
Css :: pixel to inches 
Css :: como hacer que me queden los nombres dentro de un formulario css 
Css :: text vs font properties in css 
Css :: contrast color using css 
Css :: set custom cursor 
Css :: #00af8f rgba gradient 
Css :: ssh into docker container ddev 
Css :: CSS The object-fit Property 
Css :: font size inline 
Css :: division in css 
Css :: css hex to rgb 
Css :: transform in css 
Css :: css fonts 
Css :: flex css 
Css :: background image animation css codepen 
Css :: three dots animation 
Css :: button style css 
Css :: how to use the display property 
Css :: css code for margin 
Css :: css pseudo elements 
Css :: css add margin to a particular div in print screen 
Css :: how to remove underline from link 
Css :: como tirar o x do search input 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =