- New! - 0.4.2 -
-- You can now append icons to select dropdowns as well. -
-diff --git a/docs/_includes/navbar.html b/docs/_includes/navbar.html index 11c6608a..2e6a55a9 100644 --- a/docs/_includes/navbar.html +++ b/docs/_includes/navbar.html @@ -42,6 +42,9 @@ Grid + + Form + Elements diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index 1b65a8e8..f5622b0d 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -2010,13 +2010,16 @@ input[type="submit"].button { .select { display: inline-block; - height: 2.25em; max-width: 100%; position: relative; vertical-align: top; } -.select:after { +.select:not(.is-multiple) { + height: 2.25em; +} + +.select:not(.is-multiple)::after { border: 1px solid #00d1b2; border-right: 0; border-top: 0; @@ -2059,7 +2062,6 @@ input[type="submit"].button { font-size: 1em; max-width: 100%; outline: none; - padding-right: 2.5em; } .select select:focus, .select select.is-focused, .select select:active, .select select.is-active { @@ -2105,6 +2107,10 @@ input[type="submit"].button { border-color: #b5b5b5; } +.select select:focus, .select select.is-focused, .select select:active, .select select.is-active { + border-color: #00d1b2; +} + .select select::-ms-expand { display: none; } @@ -2113,7 +2119,20 @@ input[type="submit"].button { border-color: whitesmoke; } -.select:hover:after { +.select select:not([multiple]) { + padding-right: 2.5em; +} + +.select select[multiple] { + height: unset; + padding: 0; +} + +.select select[multiple] option { + padding: 0.5em 1em; +} + +.select:hover::after { border-color: #363636; } @@ -2166,7 +2185,7 @@ input[type="submit"].button { font-size: 1.5rem; } -.select.is-disabled:after { +.select.is-disabled::after { border-color: #7a7a7a; } @@ -2178,7 +2197,7 @@ input[type="submit"].button { width: 100%; } -.select.is-loading:after { +.select.is-loading::after { animation: spinAround 500ms infinite linear; border: 2px solid #dbdbdb; border-radius: 290486px; @@ -2497,26 +2516,26 @@ input[type="submit"].button { } .control.has-icons-left .input:focus ~ .icon, -.control.has-icons-left .select select:focus ~ .icon, .control.has-icons-right .input:focus ~ .icon, -.control.has-icons-right .select select:focus ~ .icon { +.control.has-icons-left .select:focus ~ .icon, .control.has-icons-right .input:focus ~ .icon, +.control.has-icons-right .select:focus ~ .icon { color: #7a7a7a; } .control.has-icons-left .input.is-small ~ .icon, -.control.has-icons-left .select select.is-small ~ .icon, .control.has-icons-right .input.is-small ~ .icon, -.control.has-icons-right .select select.is-small ~ .icon { +.control.has-icons-left .select.is-small ~ .icon, .control.has-icons-right .input.is-small ~ .icon, +.control.has-icons-right .select.is-small ~ .icon { font-size: 0.75rem; } .control.has-icons-left .input.is-medium ~ .icon, -.control.has-icons-left .select select.is-medium ~ .icon, .control.has-icons-right .input.is-medium ~ .icon, -.control.has-icons-right .select select.is-medium ~ .icon { +.control.has-icons-left .select.is-medium ~ .icon, .control.has-icons-right .input.is-medium ~ .icon, +.control.has-icons-right .select.is-medium ~ .icon { font-size: 1.25rem; } .control.has-icons-left .input.is-large ~ .icon, -.control.has-icons-left .select select.is-large ~ .icon, .control.has-icons-right .input.is-large ~ .icon, -.control.has-icons-right .select select.is-large ~ .icon { +.control.has-icons-left .select.is-large ~ .icon, .control.has-icons-right .input.is-large ~ .icon, +.control.has-icons-right .select.is-large ~ .icon { font-size: 1.5rem; } @@ -2548,7 +2567,7 @@ input[type="submit"].button { right: 0; } -.control.is-loading:after { +.control.is-loading::after { animation: spinAround 500ms infinite linear; border: 2px solid #dbdbdb; border-radius: 290486px; diff --git a/docs/documentation/elements/form.html b/docs/documentation/elements/form.html index 1048d6d0..ca5f36ee 100644 --- a/docs/documentation/elements/form.html +++ b/docs/documentation/elements/form.html @@ -1029,16 +1029,15 @@ doc-subtab: form
- New! - 0.4.2 -
-- You can now append icons to select dropdowns as well. -
-+ New! + 0.4.2 +
++ You can now append icons to select dropdowns as well. +
++ New! + 0.4.4 +
+
+ You can style a multiple select dropdown, by using the is-multiple
modifier, and by using the multiple
HTML attribute.
+
You can append the modifier on a control:
+has-icons-left
+ You also need to add a modifier on the icon:
+icon is-left
since has-icons-left
is used
+ The size of the select will define the size of the icon container.
++ If the control contains an icon, Bulma will make sure the icon remains centered, no matter the size of the input or of the icon. +
+