Merge pull request #42 from algolia/no-important
chore(css): ensure the menu is wide enough, but no !important here
This commit is contained in:
commit
ca98a9d9ad
2 changed files with 9 additions and 3 deletions
|
|
@ -9,5 +9,7 @@ $color-left-column-bg: #F1F3F5;
|
|||
$color-left-column: #555;
|
||||
|
||||
$breakpoint-medium: 568px;
|
||||
$breakpoint-large: 768px;;
|
||||
$breakpoint-large: 768px;
|
||||
|
||||
$dropdown-min-width-medium: 400px;
|
||||
$dropdown-min-width-large: 600px;
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@
|
|||
margin: 6px 0 0;
|
||||
padding: 4px;
|
||||
text-align: left;
|
||||
left: -20px !important; // Hardcoded
|
||||
right: -320px !important; // Hardcoded
|
||||
}
|
||||
|
||||
// Each suggestion
|
||||
|
|
@ -111,6 +109,9 @@
|
|||
// BREAKPOINT 1:
|
||||
// Screen is big enough to display the text snippets
|
||||
@media (min-width: $breakpoint-medium) {
|
||||
.aa-dropdown-menu {
|
||||
min-width: $dropdown-min-width-medium;
|
||||
}
|
||||
.algolia-docsearch-suggestion--text {
|
||||
display: block;
|
||||
font-size: .9em;
|
||||
|
|
@ -121,6 +122,9 @@
|
|||
// BREAKPOINT 2:
|
||||
// Screen is big enough to display results in two columns
|
||||
@media (min-width: $breakpoint-large) {
|
||||
.aa-dropdown-menu {
|
||||
min-width: $dropdown-min-width-large;
|
||||
}
|
||||
.algolia-docsearch-suggestion {
|
||||
display: table;
|
||||
width: 100%;
|
||||
|
|
|
|||
Loading…
Reference in a new issue