+ The button is available in all the different colors defined by the $colors Sass map.
+
diff --git a/docs/_includes/elements/new-tag.html b/docs/_includes/elements/new-tag.html index e4c07b6f..78e027cb 100644 --- a/docs/_includes/elements/new-tag.html +++ b/docs/_includes/elements/new-tag.html @@ -3,8 +3,8 @@
\ No newline at end of file + diff --git a/docs/bulma-dark.sass b/docs/bulma-dark.sass new file mode 100644 index 00000000..b78a58d7 --- /dev/null +++ b/docs/bulma-dark.sass @@ -0,0 +1,41 @@ +@import ../sass/utilities/initial-variables.sass + +// General colors + +$scheme-main: $black +$scheme-main-bis: $black-bis +$scheme-main-ter: $black-ter +$scheme-invert: $white +$scheme-invert-bis: $white-bis +$scheme-invert-ter: $white-ter + +$background: $black-ter + +$border: $grey-darker +$border-hover: $grey-dark +$border-light: $grey-darker +$border-light-hover: $grey-dark + +// Text colors + +$text: $grey-light +$text-invert: $grey-darker +$text-light: $grey +$text-strong: $white + +// Link colors + +$link-hover: $white +$link-hover-border: $grey-dark + +$link-focus: $white +$link-focus-border: $blue + +$link-active: $white +$link-active-border: $grey-light + +.bd-navbar + background-color: $scheme-main-bis + + &.has-shadow + box-shadow: none diff --git a/docs/bulma-dark.scss b/docs/bulma-dark.scss deleted file mode 100644 index 92a6ec62..00000000 --- a/docs/bulma-dark.scss +++ /dev/null @@ -1,35 +0,0 @@ -@import "../sass/utilities/initial-variables.sass"; - -// General colors - -$scheme-main: $black; -$scheme-main-bis: $black-bis; -$scheme-main-ter: $black-ter; -$scheme-invert: $white; -$scheme-invert-bis: $white-bis; -$scheme-invert-ter: $white-ter; - -$background: $black-ter; - -$border: $grey-darker; -$border-hover: $grey-dark; -$border-light: $grey-darker; -$border-light-hover: $grey-dark; - -// Text colors - -$text: $grey-light; -$text-invert: $grey-darker; -$text-light: $grey; -$text-strong: $white; - -// Link colors - -$link-hover: $white; -$link-hover-border: $grey-dark; - -$link-focus: $white; -$link-focus-border: $blue; - -$link-active: $white; -$link-active-border: $grey-light; diff --git a/docs/bulma-docs.sass b/docs/bulma-docs.sass index 068be23c..68fc7254 100644 --- a/docs/bulma-docs.sass +++ b/docs/bulma-docs.sass @@ -24,7 +24,7 @@ $main-spacing: 3rem $intro-width: 1080px $sidebar-width: 10.5rem -// @import "./bulma-dark.scss" +// @import "./bulma-dark" @import "../bulma" %center diff --git a/docs/documentation/elements/button.html b/docs/documentation/elements/button.html index 3da44a84..9a7e5515 100644 --- a/docs/documentation/elements/button.html +++ b/docs/documentation/elements/button.html @@ -15,7 +15,7 @@ meta: --- {% capture button_example %} -Button + {% endcapture %} {% capture button_tags_example %} @@ -26,137 +26,156 @@ meta: {% endcapture %} {% capture button_colors_a_example %} -White -Light -Dark -Black -Text + + + + + {% endcapture %} {% capture button_colors_b_example %} -Primary -Link -Info -Success -Warning -Danger + + + +{% endcapture %} + +{% capture button_light_colors_b_example %} + + + {% endcapture %} {% capture button_sizes_example %} -Small -Default -Normal -Medium -Large + + + + + {% endcapture %} {% capture buttons_medium_sizes_example %} {% endcapture %} {% capture buttons_small_normal_sizes_example %} {% endcapture %} {% capture button_displays_example %} -Small -Normal -Medium -Large + + + + {% endcapture %} {% capture button_outlined_example %} -Outlined -Outlined -Outlined -Outlined -Outlined -Outlined + + + + + + {% endcapture %} {% capture button_inverted_example %} -Inverted -Inverted -Inverted -Inverted -Inverted + + + + + {% endcapture %} {% capture button_inverted_outlined_example %} -Invert Outlined -Invert Outlined -Invert Outlined -Invert Outlined -Invert Outlined + + + + + {% endcapture %} {% capture button_rounded_example %} -Rounded -Rounded -Rounded -Rounded -Rounded -Rounded + + + + + + {% endcapture %} {% capture button_normal_example %} -Normal -Normal -Normal -Normal -Normal -Normal -Normal + + + + + + + {% endcapture %} {% capture button_hover_example %} -Hover -Hover -Hover -Hover -Hover -Hover -Hover + + + + + + + {% endcapture %} {% capture button_focus_example %} -Focus -Focus -Focus -Focus -Focus -Focus -Focus + + + + + + + {% endcapture %} {% capture button_active_example %} -Active -Active -Active -Active -Active -Active -Active + + + + + + + {% endcapture %} {% capture button_loading_example %} -Loading -Loading -Loading -Loading -Loading -Loading -Loading + + + + + + + {% endcapture %} {% capture button_static_example %} @@ -164,159 +183,159 @@ meta: {% endcapture %} {% capture button_disabled_example %} -Disabled -Disabled -Disabled -Disabled -Disabled -Disabled -Disabled + + + + + + + {% endcapture %} {% capture button_fa_example %} {% endcapture %} {% capture button_only_icon_example %} {% endcapture %} {% capture button_group_example %} {% endcapture %} @@ -324,28 +343,28 @@ meta: {% capture button_addons_example %} {% endcapture %} @@ -353,133 +372,133 @@ meta: {% capture button_group_addons_example %} {% endcapture %} {% capture buttons_list %} {% endcapture %} {% capture buttons_multiple %} {% endcapture %} {% capture buttons_addons %} {% endcapture %} {% capture buttons_addons_centered %} {% endcapture %} {% capture buttons_addons_right %} {% endcapture %} {% capture buttons_addons_selected %} {% endcapture %} @@ -515,9 +534,25 @@ meta: {% include elements/anchor.html name="Colors" %} +
+ The button is available in all the different colors defined by the $colors Sass map.
+
+ Each color now comes in its light version. Simply append the modifier is-light to the color modifier to apply the light version of the button.
+
+ Bulma styles the different states of its buttons. Each state is available as a pseudo-class and a CSS class: +
+:hover and .is-hovered
+ :focus and .is-focused
+ :active and .is-active
+ + This allows you to obtain the style of a certain state without having to trigger it. +
+
+ You can very easily turn a button into its loading version by appending the .is-loading modifier. You don't even need to remove the inner text, which allows the button to maintain its original size between its default and loading states.
+