diff --git a/docs/material-design/menus.md b/docs/material-design/menus.md index a5d8f5da..4cd0eebb 100644 --- a/docs/material-design/menus.md +++ b/docs/material-design/menus.md @@ -13,58 +13,63 @@ Bootstrap users know these as [dropdowns]({{ site.baseurl }}/components/dropdown ## Styles +### Icon with buttons {% example html %} - +{% endexample %} - +### Icon with links +{% example html %} +{% endexample %} - +### Small fab +{% example html %} +{% endexample %} - +### Default fab +{% example html %} - +{% endexample %} + +### Default button +{% example html %} {% endexample %} -### Top left side -{% example html %} - -{% endexample %} - -### Top right side -{% example html %} - -{% endexample %} - - ## Widths diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index da0586f3..15e8817c 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -1,17 +1,17 @@ // Menus https://www.google.com/design/spec/components/menus.html#menus-specs // Dropdown buttons (mobile and desktop) https://www.google.com/design/spec/components/buttons.html#buttons-dropdown-buttons -%menu-bottom-left { - top: 100%; - left: 0; - transform-origin: 0 0; -} - -%menu-bottom-right { - right: 0; - left: auto; - transform-origin: 100% 0; -} +//%menu-bottom-left { +// top: 100%; +// left: 0; +// transform-origin: 0 0; +//} +// +//%menu-bottom-right { +// right: 0; +// left: auto; +// transform-origin: 100% 0; +//} .dropdown-menu { display: block; // utilize transition transform instead of flipping display @@ -34,27 +34,27 @@ // FIXME: bootstrap alignment issue - https://github.com/twbs/bootstrap/issues/18852 // FIXME: once the bug is fixed, want to default origin of menu open to the right of standard buttons - &.dropdown-menu-left { - @extend %menu-bottom-left; - } - - &.dropdown-menu-right { - @extend %menu-bottom-right; - } - - &.dropdown-menu-top-left { - top: auto; - bottom: 0; // needs to be overridden with the toggle-button height, see bmd-btn-icon above - transform-origin: 0 100%; - } - - &.dropdown-menu-top-right { - top: auto; - right: 0; - bottom: 0; // needs to be overridden with the toggle-button height, see bmd-btn-icon above - left: auto; - transform-origin: 100% 100%; - } + //&.dropdown-menu-left { + // @extend %menu-bottom-left; + //} + // + //&.dropdown-menu-right { + // @extend %menu-bottom-right; + //} + // + //&.dropdown-menu-top-left { + // top: auto; + // bottom: 0; // needs to be overridden with the toggle-button height, see bmd-btn-icon above + // transform-origin: 0 100%; + //} + // + //&.dropdown-menu-top-right { + // top: auto; + // right: 0; + // bottom: 0; // needs to be overridden with the toggle-button height, see bmd-btn-icon above + // left: auto; + // transform-origin: 100% 100%; + //} // https://www.google.com/design/spec/components/menus.html#menus-specs .dropdown-item {