Skip to content

Commit

Permalink
Cleaning up some CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
jachin committed Mar 26, 2024
1 parent 3ff8e98 commit 43a4083
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 24 deletions.
14 changes: 7 additions & 7 deletions dist/much-select-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ class MuchSelect extends HTMLElement {
}
#value-casing.output-style-custom-html.multi .value {
border: 2px solid var(--black);
border: 2px solid black;
border-radius:40px;
padding:3px 10px;
flex-grow: 0;
Expand Down Expand Up @@ -1768,8 +1768,8 @@ class MuchSelect extends HTMLElement {
max-height: 300px;
overflow-y: auto;
cursor: default;
background-color: var(--white);
border: 1px solid var(--black);
background-color: white;
border: 1px solid black;
}
#dropdown.showing {
Expand All @@ -1788,8 +1788,8 @@ class MuchSelect extends HTMLElement {
}
.option.highlighted {
background-color: var(--black);
color: var(--white);
background-color: black;
color: white;
}
.option.disabled {
Expand Down Expand Up @@ -1826,7 +1826,7 @@ class MuchSelect extends HTMLElement {
100% { transform: rotate(360deg); }
}
#wrapper .error-message ul li{
color:var(--red);
color: red;
list-style:none;
padding:0px;
}
Expand All @@ -1838,7 +1838,7 @@ class MuchSelect extends HTMLElement {
padding-left: 5px;
margin-left:6px;
padding-bottom:3px;
border-left: 1px dotted var(--border-left);
border-left: 1px dotted black;
}
#search-keyboard-events #search-keyboard-events-log {
width:100px;
Expand Down
12 changes: 11 additions & 1 deletion dist/much-select-elm-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -20543,7 +20543,17 @@ var $author$project$MuchSelect$customHtmlDropdown = F4(
'showing ' + ($elm$core$String$fromInt(
$author$project$DropdownOptions$length(optionsForTheDropdown)) + (' of ' + ($elm$core$String$fromInt(
$author$project$OptionList$length(options)) + ' options'))))
])) : $elm$html$Html$text('');
])) : (($author$project$SelectionMode$showDropdownFooter(selectionMode) && (!$author$project$DropdownOptions$length(optionsForTheDropdown))) ? A2(
$elm$html$Html$div,
_List_fromArray(
[
$elm$html$Html$Attributes$id('dropdown-footer'),
A2($elm$html$Html$Attributes$attribute, 'part', 'dropdown-footer')
]),
_List_fromArray(
[
$elm$html$Html$text('options to select')
])) : $elm$html$Html$text(''));
return $author$project$SelectionMode$isDisabled(selectionMode) ? $elm$html$Html$text('') : A2(
$elm$html$Html$div,
_List_fromArray(
Expand Down
12 changes: 11 additions & 1 deletion dist/much-select-elm.js
Original file line number Diff line number Diff line change
Expand Up @@ -15278,7 +15278,17 @@ var $author$project$MuchSelect$customHtmlDropdown = F4(
'showing ' + ($elm$core$String$fromInt(
$author$project$DropdownOptions$length(optionsForTheDropdown)) + (' of ' + ($elm$core$String$fromInt(
$author$project$OptionList$length(options)) + ' options'))))
])) : $elm$html$Html$text('');
])) : (($author$project$SelectionMode$showDropdownFooter(selectionMode) && (!$author$project$DropdownOptions$length(optionsForTheDropdown))) ? A2(
$elm$html$Html$div,
_List_fromArray(
[
$elm$html$Html$Attributes$id('dropdown-footer'),
A2($elm$html$Html$Attributes$attribute, 'part', 'dropdown-footer')
]),
_List_fromArray(
[
$elm$html$Html$text('options to select')
])) : $elm$html$Html$text(''));
return $author$project$SelectionMode$isDisabled(selectionMode) ? $elm$html$Html$text('') : A2(
$elm$html$Html$div,
_List_fromArray(
Expand Down
14 changes: 7 additions & 7 deletions dist/much-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ class MuchSelect extends HTMLElement {
}
#value-casing.output-style-custom-html.multi .value {
border: 2px solid var(--black);
border: 2px solid black;
border-radius:40px;
padding:3px 10px;
flex-grow: 0;
Expand Down Expand Up @@ -1768,8 +1768,8 @@ class MuchSelect extends HTMLElement {
max-height: 300px;
overflow-y: auto;
cursor: default;
background-color: var(--white);
border: 1px solid var(--black);
background-color: white;
border: 1px solid black;
}
#dropdown.showing {
Expand All @@ -1788,8 +1788,8 @@ class MuchSelect extends HTMLElement {
}
.option.highlighted {
background-color: var(--black);
color: var(--white);
background-color: black;
color: white;
}
.option.disabled {
Expand Down Expand Up @@ -1826,7 +1826,7 @@ class MuchSelect extends HTMLElement {
100% { transform: rotate(360deg); }
}
#wrapper .error-message ul li{
color:var(--red);
color: red;
list-style:none;
padding:0px;
}
Expand All @@ -1838,7 +1838,7 @@ class MuchSelect extends HTMLElement {
padding-left: 5px;
margin-left:6px;
padding-bottom:3px;
border-left: 1px dotted var(--border-left);
border-left: 1px dotted black;
}
#search-keyboard-events #search-keyboard-events-log {
width:100px;
Expand Down
2 changes: 1 addition & 1 deletion examples/show-dropdown-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h3>Show the dropdown footer</h3>
<p>
If the <code>show-dropdown-footer</code> attribute is present the <code>much-select</code> will render a footer
in the dropdown with additional infomration.
in the dropdown with additional information.
</p>
<p>
The default behavior is to hide the footer.
Expand Down
9 changes: 9 additions & 0 deletions src/MuchSelect.elm
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,15 @@ customHtmlDropdown selectionMode options searchString (ValueCasing valueCasingWi
)
]

else if showDropdownFooter selectionMode && DropdownOptions.length optionsForTheDropdown == 0 then
div
[ id "dropdown-footer"
, Html.Attributes.attribute "part" "dropdown-footer"
]
[ text
"options to select"
]

else
text ""
in
Expand Down
14 changes: 7 additions & 7 deletions src/much-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ class MuchSelect extends HTMLElement {
}
#value-casing.output-style-custom-html.multi .value {
border: 2px solid var(--black);
border: 2px solid black;
border-radius:40px;
padding:3px 10px;
flex-grow: 0;
Expand Down Expand Up @@ -1768,8 +1768,8 @@ class MuchSelect extends HTMLElement {
max-height: 300px;
overflow-y: auto;
cursor: default;
background-color: var(--white);
border: 1px solid var(--black);
background-color: white;
border: 1px solid black;
}
#dropdown.showing {
Expand All @@ -1788,8 +1788,8 @@ class MuchSelect extends HTMLElement {
}
.option.highlighted {
background-color: var(--black);
color: var(--white);
background-color: black;
color: white;
}
.option.disabled {
Expand Down Expand Up @@ -1826,7 +1826,7 @@ class MuchSelect extends HTMLElement {
100% { transform: rotate(360deg); }
}
#wrapper .error-message ul li{
color:var(--red);
color: red;
list-style:none;
padding:0px;
}
Expand All @@ -1838,7 +1838,7 @@ class MuchSelect extends HTMLElement {
padding-left: 5px;
margin-left:6px;
padding-bottom:3px;
border-left: 1px dotted var(--border-left);
border-left: 1px dotted black;
}
#search-keyboard-events #search-keyboard-events-log {
width:100px;
Expand Down

0 comments on commit 43a4083

Please sign in to comment.