-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
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
Customizing embed aspect ratios #28106
Comments
hello @ysds you can not add single value in list variable plz use multiple list values |
Yeah, I understand the usage of the Sass list. This is not a question but a issue report about the documents or SCSS. |
It's just not easy to define a list with one list as value in sass. I would go for
This would be a breaking change What do you think about that, @ysds? |
I prefer to use sass map for v5, because it can create semantic class names and can use a number containing a decimal separator. e.g.: $embed-responsive-aspect-ratios: (
"square": 1 1,
"golden": 1.618 1,
"silver": 2.414 1,
) |
Hi @martinbean, this is related to your comment on #25894. It's not easy to define a sass list with one item. The most straightforward method is But I think we'll also need to add a notice about this in our docs for |
Wow. That is some clunky syntax but thanks for pointing me in the right direction, @MartijnCuppens. |
The way to customize the embed aspect ratios is some confusing.
(1) The following SCSS occurs compile ERROR:
Error message:
Demo: https://www.sassmeister.com/gist/d8f4ece6f886602fc110c594a33357f5
(2) The following SCSS is OK:
(3) The following SCSS is OK:
SASS seems to recognize
$list: (2 1)
as a list included the two values instead of one set of two values.Demo: https://codepen.io/anon/pen/GzgrwL?editors=1111 - See console view
The text was updated successfully, but these errors were encountered: