We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I pinned the network graph to the bottom of the page as the screen grows larger, but can we do this with an elegant sass formula in main.scss
/* the delta in height is 4vh for every 1000px, can this be put into a Sass formula? */ @media (min-height: 800px){ .height-dynamic { height: 28vh; } } @media (min-height: 900px){ .height-dynamic { height: 34vh; } } @media (min-height: 1000px){ .height-dynamic { height: 38vh; } } @media (min-height: 1100px){ .height-dynamic { height: 42vh; } } @media (min-height: 1200px){ .height-dynamic { height: 46vh; } } @media (min-height: 1300px){ .height-dynamic { height: 48vh; } }
I imagine the outcome would be using just one function like this since we know the delta has to increase by 4 every 1000px:
@media(min-height: $min-height){ .height-dynamic { height: calc(.....); } }
The text was updated successfully, but these errors were encountered:
I mainly just want to know how to do it, and marginally save some space
manual version is implemented correctly but doesn't scale infinitely
Sorry, something went wrong.
1blockologist
No branches or pull requests
I pinned the network graph to the bottom of the page as the screen grows larger, but can we do this with an elegant sass formula in main.scss
/* the delta in height is 4vh for every 1000px, can this be put into a Sass formula? */
@media (min-height: 800px){
.height-dynamic {
height: 28vh;
}
}
@media (min-height: 900px){
.height-dynamic {
height: 34vh;
}
}
@media (min-height: 1000px){
.height-dynamic {
height: 38vh;
}
}
@media (min-height: 1100px){
.height-dynamic {
height: 42vh;
}
}
@media (min-height: 1200px){
.height-dynamic {
height: 46vh;
}
}
@media (min-height: 1300px){
.height-dynamic {
height: 48vh;
}
}
I imagine the outcome would be using just one function like this since we know the delta has to increase by 4 every 1000px:
@media(min-height: $min-height){
.height-dynamic {
height: calc(.....);
}
}
The text was updated successfully, but these errors were encountered: