how to use media query scss

Solutions on MaxInterview for how to use media query scss by the best coders in the world

showing results for - "how to use media query scss"
Francisco
06 Mar 2017
1$media-desktop: "only screen and (max-width : 1024px)";
2$media-tablet: "only screen and (max-width : 768px)";
3$media-mobile: "only screen and (max-width : 600px)";
4$media-mobile-sm: "only screen and (max-width : 480px)";
5
6
7@media #{$media-desktop} {
8  background: red;
9}
10
11@media #{$media-tablet} {
12  background: red;
13}
14
15@media #{$media-mobile} {
16  background: red;
17}
18
19@media #{$media-mobile-sm} {
20  background: red;
21}
22
María Alejandra
28 Sep 2018
1@mixin breakpoint($size) {
2    @if $size == mobile {
3      @media (max-width: 599px) { @content; }
4    } @else if $size == tablet-portrait-up {
5      @media (min-width: 600px) { @content; }
6    } @else if $size == tablet-landscape-up {
7      @media (min-width: 768px) { @content; }
8    } @else if $size == laptop-desktop {
9      @media (min-width: 992px) { @content; }
10    } @else if $size == extra-large-devices {
11      @media (min-width: 1200px) { @content; }
12    }
13}
14
15.header{
16    height: 10vh;
17    display: flex;
18    justify-content: space-between;
19    border-bottom: 2px solid black;
20}
Alfonso
15 Oct 2020
1@mixin breakpoint($size) {
2    @if $size == mobile {
3      @media (max-width: 599px) { @content; }
4    } @else if $size == tablet-portrait-up {
5      @media (min-width: 600px) { @content; }
6    } @else if $size == tablet-landscape-up {
7      @media (min-width: 900px) { @content; }
8    } @else if $size == desktop-up {
9      @media (min-width: 1200px) { @content; }
10    } @else if $size == big-desktop-up {
11      @media (min-width: 1800px) { @content; }
12    }
13}
14/* used in this .scss file*/
15.logo{
16    &__link{
17       &__img{
18        @include breakpoint(mobile) {
19            width:30%; 
20          }
21          width:20%;
22          height:auto; 
23       } 
24    }
25}
Amandine
08 Jan 2021
1
2  @media #{$small-and-down} {
3    // styles for small screens and down
4  }
5  @media #{$medium-and-up} {
6    // styles for medium screens and larger
7  }
8  @media #{$medium-and-down} {
9    // styles for medium screens and down
10  }
11  @media #{$large-and-up} {
12    // styles for large screens and up
13  }
14  @media #{$extra-large-and-up} {
15    // styles for extra large screens and up
16  }
17            
queries leading to this page
sass scss media queries tutorialsass media query formattingscss custom media queryscss media querieshow to use media queries in scssscss easy media querymedia query sass variablescss media queries as mixinghow to use css media query in sassscss media andhow use media queries with sasssass media query in a classmedia query sassmedia queries scsssetttings media queries in sasshow to use create media query in sassadd media screen in scsschange display elements media query in scsscss media queries sassscss media querishow to use media query scssscss responsive media queriesscss variables media querymedia screen sassmedia query scss examplemedia scss attributesmedia query css scssmedia query with scsswriting media queries in scsssass variables media querymedia uery in scss 40media screen sassscss media query scss media queries inside media quier in sass 40media query scssmedia query scss mixinmedia query within sass classscss media quieriesmedia in scssconfigure media query in sassshow to define media query in sassscss 28css mediaqueryexpected 29scss import media queryhow to add media queries in sasshow can we use media queries in sass nestingsass 40media syntax 40media queries in sassmedia query screen sasssyntax for media query in sassmedia queries with sasswhere do you put your media queries in scss media query in scss filehow to write media queries in scssscss media query in rnagemedia calculate sasssass responsive media querieshow to apply media query in scsshow to use media queries sasssass function media queryadd media queries to scss filemedia query scssass media screensass mediaqueriesimport media query sassscss nested media querymixins scss media querysass media query inside functionmedia query mixins scsssass use mediahow to start media query in scssusing media qurires in scssmedia query in scss filehow to use scss media queriessass media quueryuse media queries in sass functionsmedia queries and scssdeclaring media queries sasssass media query examplescss media quiresadd media queries in scssmedia quiry in scssadding media queries in scssmeadia query in sassmedia queries using sassmedia quesry scssmedia queryes scssmedia queryins scssscss media query with 3e media screen scssmedia query and sassscss variable media query 40medias in sasssass change variable media querymedia query for sasssass define variable media queryjss media querieswhere to include 40media queries scssmediaquery sassscss mediamediaqueries in sassmedia quieries in sasssass media queriesmedia query in scsshow to use media query in sasswrite media query in sasssass for media queriessetup media query sassmedia query in sass 2bw3schoolsfunction media queries scsshow to media queries from different files in sasshow to use media querie in scss 40media screen scsshow to write media query on scsshow to write media query in sassmedia quries sassscss media query variablewriting media queries sasssass 40mediasass media query mixinhow do declare media in scsssass media query for all documenyt 5dmedia query sass mixinmedia queries and sassmedia wuery scsssass media query and classhow to create media query in scssnesting media queries sassscss media queries best practicesmedia query with sass variablesscss media wuerieswhere to place media queries in sassmedia qyeries scssmedia query in sassmedia query scssmedia in sasshow to use media in scssmedia qureys sasswhere to put media queries in sassmedia query syntax in sasssass media query syntaxmedia query css sassscss media queries elad shechtersass custom media queryhow to write media query in scssmedia queires scsssass functions and media queryscss with media queryhow to use media query in scsssass media queries mixinssass media query var 1how to use media queries with mixins in sass for html scss media queries mixinsass css 40mediahow to declare media in scssscss mixin media query 40 media scssusing 40 40media scsssass documentation media queryuse media in scsssass media queryscss 40media queryscss include media queries media query syntax in scssmedia query com sassmedia queries scsssetting up media queries in sasssass 2b media queries 40media sasswrite media queries in scss 40media using sasssass css media queriesscss where do i put media aqueiriesscss media query examplecss media scsssass use sass var in sass media querymedia query on scsshow to write media query in scss filescss create custom media queriesdefine media query in sassscss meida queryscss how to make media query 40media in sasssass function media queriessass media quieriesthe best way to use media queries for sass 40media query in scssusing media in scssvariable scss with media query 40content media queries scssscss media queariesusing media queries in sasshow to include media query in scss as variablewrite media query in sass not scsssass 40media querymedia queries in scss vs cssmedia query scsssusing media queries in scsscss media sassmedia queries in sass mixinshow to add media query in scssscss for media queriesmedia query sasmedia queries in scss best way to do themmedia queries sassmedia queries with sass mixinsmediaqueries sassscss embedded media querieshow to media query in scssmedia queries in sassinclude media scssscss media query codehow to do media queries in scsscss variable for scss media querymedia query inside scssincluding media queries in sassmedia sassresponsive media in sasssass best way to create media queriessass syntax media queriesscss and media queryhow to fix media query sasshow to define media query in scssmedia scssto target an element in media query scssmedia query sasssass and media queriesscss adding media queriesmedia query in scss functionhow to set meda query in scssscss variable 3d media query 22sass 22 40media querysscss rule for media querysass media query functionsass variables with media querymedia query print sassmedia query with sassmedia in query sasssass mediascss setting media queriesapply same style to class and media query sasssass file media queryresponsive media sassmedia query scss functionsass and media quriesmedia query of a component is scsscan i write media queries in scsshow to use media queries scssbest way to write media queries sassmedia queries medidas sasinclude media query scssmedia query for scssadd scss media querieimbriced media queries scssscsss media queriesmedia queries in scssscss media query w3schoolsmaking media query scsshow to use media queries with scssapplying media query in scssdocument media query sassmedia quiries in scssmedai query in scssshow to do media queries in sassuse media query in scsshow to use media query scss