Media Queries via include-media
How do I make an media queries via include-media?
What is a media queries via include-media? How do you make a media queries via include-media? This script and codes were developed by Kendrick Arnett on 11 August 2022, Thursday.
Media Queries via include-media - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Media Queries via include-media</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='css/zoyoro.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container"> <h1>Media Queries via <span class="monospace">include-media</span></h1> <p>Quick example of the <a href="http://www.include-media.com"><span class="monospace">include-media</span></a> Sass library with custom breakpoints. Resize the viewport to see it in action. (<span class="monospace">include-media</span> is referenced via <a href="http://codepen.io/kendrick/pen/ZOYoRO">this pen</a>.)</p>
</div>
</body>
</html>
Media Queries via include-media - Script Codes CSS Codes
$breakpoints: ( xs: 0rem, sm: 34rem, md: 48rem, lg: 62rem, xl: 75rem
);
@import url(https://fonts.googleapis.com/css?family=Roboto:400,400italic,500italic,500,300italic,300);
html { font-family: 'Roboto'; height: 100%; width: 100%; background-color: #403d58; color: #fafafa; display: flex; flex-direction: column; justify-content: center; font-weight: 300; transition: all 500ms ease; &:after { display: block; text-align: center; width: 100%; top: 50%; transform: translateY(-50%); text-transform: uppercase; content: 'xs'; color: #fff; position: absolute; font-size: 65vw; opacity: 0.1; z-index: -1; } @include media('>=sm') { background-color: #66d7d1; transition: all 500ms ease; &:after { content: 'sm'; } } @include media('>=md') { background-color: #dbd56e; transition: all 500ms ease; &:after { content: 'md'; } } @include media('>=lg') { background-color: #fc7753; transition: all 500ms ease; &:after { content: 'lg'; } } @include media('>=xl') { color: #404040; background-color: #f2efea; transition: all 500ms ease; &:after { content: 'xl'; color: #404040; } }
}
.container { width: 66%; margin: 0 auto;
}
a, a:hover, a:active { color: #2c97de;
}
a:visited { color: #9c56b8;
}
@import url(https://fonts.googleapis.com/css?family=Roboto+Mono);
.monospace { font-family: 'Roboto Mono', 'Monaco', 'Consolas', monospace
}
Developer | Kendrick Arnett |
Username | kendrick |
Uploaded | August 11, 2022 |
Rating | 3 |
Size | 7,667 Kb |
Views | 32,384 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Flexbox Resume Challenge | 10,625 Kb |
Postfix Badge Button | 2,345 Kb |
SVG Button | 2,210 Kb |
A11y Product Tile | 4,484 Kb |
SVG Social Icons | 4,587 Kb |
Preliminary Tags | 2,632 Kb |
Flexbox Grid | 9,167 Kb |
Grid With 2-Up Skyscrapers | 3,307 Kb |
Variation Button Styles | 2,756 Kb |
Colors | 6,261 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
To Do List with Delete | Mattlbrody | 2,068 Kb |
Adding and Removing Element | Accimeesterlin | 2,119 Kb |
Scoreboard.js basic usage | Tbleckert | 1,733 Kb |
Twitch Live Channels | Inkblotty | 4,956 Kb |
Website Concept | Sagoza | 3,104 Kb |
LAMP PURE CSS with Animation | Dam62500 | 2,911 Kb |
A Pen by Kenny Mark | Kennymark | 5,574 Kb |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Price | Catcode | 2,623 Kb |
Flexbox Grid - equal height | DaveOrDead | 2,855 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!