adit-coco-garg / sandbox Goto Github PK
View Code? Open in Web Editor NEWA portfolio? A sketchbook? A website? We may never know, all we know it's Adit's website of crazy cool experiments.๐ฅฝ๐พ
Home Page: https://aditgarg.me/
A portfolio? A sketchbook? A website? We may never know, all we know it's Adit's website of crazy cool experiments.๐ฅฝ๐พ
Home Page: https://aditgarg.me/
THIS IS A COPY OF THE ISSUE: sass-mq/sass-mq#124
I tested out the mq library and for some reason it seems to be producing incorrect mqs.
It was unable to calculate breakpoints in ems for smaller sized screens. I tested this on a iphone x and also on virtual devices in google dev tools.
style.scss
@include mq($from: desktop) {
body{
background-color:$background1;
font-family:$fontFam;
}
When the scss was compiled, it resulted in the following scss:
style.css
@media (min-width: 61.25em) {
body {
background-color: orange;
font-family: "Open Sans", sans-serif;
}
}
I was trying to display orange as the background for screen sizes greater and equal to the desktop size.
Below is a link to a screenshot illustrating the effect.
https://user-images.githubusercontent.com/23007265/62267171-e494f100-b3f0-11e9-8b5d-999546457dbf.png
RESOLUTION
@ kaelig:
Thank you! Have you tried adding a viewport meta to the head of your document?
<meta name="viewport" content="width=device-width, initial-scale=1" />
Also, please don't edit breakpoints in the library itself (the documentation explains how to override the mq-breakpoints map the right way).
Closing this, feel free to reopen if this still doesn't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.