Skip to content
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

Avoid the use of important in multi-column dropdown menues #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivanhercaz
Copy link
Contributor

@kghbln, after read some posts in StackOverflow I have two theories:

  1. Maybe something in the cascade-hierarchy is overlapping the media query, but this is strange because the priority is always the last specification, as we have in the code: first the default and then the media query.
  2. Maybe is necessary to use another rule to specify the min-width.

I made the change based on the second theory. Could you use this code to check if it works fine without !important? Note that you have to remove the left and right from .dropdown-content, to be just in media queries.

For the user manual, if tomorrow I have a bit of time to dedicate to it, I will make it.

@kghbln
Copy link
Member

kghbln commented Mar 13, 2018

@ivanhercaz Thanks for your pulls! I am currently sick so I will not be able to deal with them immediately. Hope to do this on Saturday.

@ivanhercaz
Copy link
Contributor Author

ivanhercaz commented Mar 13, 2018

You're welcome, Karsten! I hope you recover soon, but please, make a backup of you, because we need you!

What you need is to stay some time in the Canary Islands, there is many cold in Germany ☔ ❄️

Enviado desde mi Redmi 4X usando FastHub-Libre

@media only screen and (min-width: 480px) {
.dropdown-content {
left: auto;
right: 0;
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivanhercaz Here we have conflicting code for the same media definition. I do not think this will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants