Media Queries via include-media

Size
7,667 Kb
Views
32,384

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 Previews

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
}
Media Queries via include-media - Script Codes
Media Queries via include-media - Script Codes
Home Page Home
Developer Kendrick Arnett
Username kendrick
Uploaded August 11, 2022
Rating 3
Size 7,667 Kb
Views 32,384
Do you need developer help for Media Queries via include-media?

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!

Kendrick Arnett (kendrick) Script Codes
Create amazing captions with AI!

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!