From db28ea2d327bdbb9b0cb6439e60f4113f85b209e Mon Sep 17 00:00:00 2001 From: codecalm Date: Wed, 21 Feb 2018 22:05:08 +0100 Subject: [PATCH] list of buttons --- _config.yml | 46 ++++++++------------ _docs/buttons.md | 69 +++++++++++++++++++++++++----- assets/scss/dashboard/_button.scss | 5 ++- 3 files changed, 81 insertions(+), 39 deletions(-) diff --git a/_config.yml b/_config.yml index 30dbb72e4..c9afc4d44 100644 --- a/_config.yml +++ b/_config.yml @@ -124,61 +124,53 @@ theme-colors: danger: hex: '#f90049' name: Danger - light: - hex: '#f8f9fa' - name: Light - dark: - hex: '#343a40' - name: Dark - -button-types: - primary: 'Primary' - secondary: 'Secondary' - success: 'Success' - info: 'Info' - warning: 'Warning' - danger: 'Danger' +# light: +# hex: '#f8f9fa' +# name: Light +# dark: +# hex: '#343a40' +# name: Dark social-buttons: facebook: icon: fa fa-facebook - title: Facebook + name: Facebook twitter: icon: fa fa-twitter - title: Twitter + name: Twitter google: icon: fa fa-google - title: Google + name: Google youtube: icon: fa fa-youtube - title: Youtube + name: Youtube vimeo: icon: fa fa-vimeo - title: Vimeo + name: Vimeo dribbble: icon: fa fa-dribbble - title: Dribble + name: Dribble github: icon: fa fa-github - title: Github + name: Github instagram: icon: fa fa-instagram - title: Instagram + name: Instagram pinterest: icon: fa fa-pinterest - title: Pinterest + name: Pinterest vk: icon: fa fa-vk - title: VKontakte + name: VKontakte rss: icon: fa fa-rss - title: RSS + name: RSS flickr: icon: fa fa-flickr - title: Flickr + name: Flickr bitbucket: icon: fa fa-bitbucket - title: Bitbucket + name: Bitbucket google-maps-key: AIzaSyBEJy4UvF-JfcNciWlvlznyDlUckcspiD4 google-maps-url: https://maps.googleapis.com/maps/api/js?key=AIzaSyCOJwXN0eoyeFZ3cYtGzPLFw8zGhQ750Xk diff --git a/_docs/buttons.md b/_docs/buttons.md index 41bc6c376..0235fe8d6 100644 --- a/_docs/buttons.md +++ b/_docs/buttons.md @@ -23,8 +23,8 @@ The `.btn` classes are designed to be used with the ` + +{% endfor %} +{% endexample %} + +You can use only icons. + +{% example html wrapper=btn-list %} +{% for button in site.social-buttons %} + {% endfor %} {% endexample %} @@ -182,4 +190,43 @@ Add `.btn-loading` to use a loading state on a button. Since the loading spinner +{% endexample %} + + +### List of buttons + +You can now create a list of buttons with the `.btn-list` container. + +{% example html %} +
+ Save changes + Save and continue + Cancel +
+{% endexample %} + +If the list is very long, it will automatically wrap on multiple lines, while keeping all buttons evenly spaced. + +{% example html %} +
+ One + Two + Three + Four + Five + Six + Seven + Eight + Nine + Ten + Eleven + Twelve + Thirteen + Fourteen + Fifteen + Sixteen + Seventeen + Eighteen + Nineteen +
{% endexample %} \ No newline at end of file diff --git a/assets/scss/dashboard/_button.scss b/assets/scss/dashboard/_button.scss index 85d98b20d..d89a60fb7 100644 --- a/assets/scss/dashboard/_button.scss +++ b/assets/scss/dashboard/_button.scss @@ -75,8 +75,11 @@ >.btn, >.dropdown { - margin-right: .5rem; margin-bottom: .5rem; + + &:not(:last-child) { + margin-right: .5rem; + } } }