diff --git a/docs/src/pages/components/Select.vue b/docs/src/pages/components/Select.vue index efcc040..b60e10a 100644 --- a/docs/src/pages/components/Select.vue +++ b/docs/src/pages/components/Select.vue @@ -6,47 +6,49 @@ - Fight Club - Godfather II - Godfather III - Godfather - Godfellas - Pulp Fiction - Scarface + Fight Club + Godfather + Godfather II + Godfather III + Godfellas + Pulp Fiction + Scarface - Australia - Brazil - Japan - United States + Australia + Brazil + Japan + United States - Arial - Calibri - Cambria - Comic Sans - Consolas - Courier - Droid Sans - Georgia - Helvetica - Impact - Roboto - Segoe UI - Times New Roman - Ubuntu - Verdana + Arial + Calibri + Cambria + Comic Sans + Consolas + Courier + Droid Sans + Georgia + Helvetica + Impact + Roboto + Segoe UI + Times New Roman + Ubuntu + Verdana + + Set Pulp Fiction @@ -55,22 +57,51 @@ Fruits - Apples - Bananas - Peaches - Oranges + Apples + Bananas + Peaches + Oranges Vegetables - Carrots - Cucumbers + Carrots + Cucumbers Baked Goods - Apple Pie - Chocolate Cake + Apple Pie + Chocolate Cake + + +
+ + + + Managers + Jim Halpert + Dwight Schrute + Michael Scott + + Employees + Pam Beesly + Angela Martin + Kelly Kapoor + Ryan Howard + Kevin Malone + Creed Bratton + Oscar Nunez + Toby Flenderson + Stanley Hudson + Meredith Palmer + Phyllis Lapin-Vance + + +
+ + {{ users }} +
@@ -168,13 +199,17 @@ diff --git a/src/components/mdButton/mdButton.scss b/src/components/mdButton/mdButton.scss index df8745e..9cc6848 100644 --- a/src/components/mdButton/mdButton.scss +++ b/src/components/mdButton/mdButton.scss @@ -32,6 +32,7 @@ $button-icon-size: 40px; font-style: inherit; font-variant: inherit; font-weight: 500; + letter-spacing: inherit; line-height: $button-height; text-align: center; text-transform: uppercase; diff --git a/src/components/mdButton/mdButton.vue b/src/components/mdButton/mdButton.vue index c4f1e66..df9de2a 100644 --- a/src/components/mdButton/mdButton.vue +++ b/src/components/mdButton/mdButton.vue @@ -14,7 +14,7 @@ let options = { staticClass: 'md-button', attrs: { - type: hasLink || 'button', + type: this.type || 'button', disabled: isDisabled }, on: { diff --git a/src/components/mdCheckbox/mdCheckbox.vue b/src/components/mdCheckbox/mdCheckbox.vue index da17876..a9ec0fe 100644 --- a/src/components/mdCheckbox/mdCheckbox.vue +++ b/src/components/mdCheckbox/mdCheckbox.vue @@ -1,6 +1,6 @@ diff --git a/src/components/mdSelect/mdOption.vue b/src/components/mdSelect/mdOption.vue index 0e9b925..88f91bb 100644 --- a/src/components/mdSelect/mdOption.vue +++ b/src/components/mdSelect/mdOption.vue @@ -1,73 +1,73 @@ diff --git a/src/components/mdSelect/mdSelect.scss b/src/components/mdSelect/mdSelect.scss index a806996..c713fd6 100644 --- a/src/components/mdSelect/mdSelect.scss +++ b/src/components/mdSelect/mdSelect.scss @@ -46,6 +46,13 @@ left: -999em; } + .md-menu { + width: 100%; + height: 100%; + display: block; + position: relative; + } + .md-select-value { width: 100%; height: 100%; @@ -65,7 +72,6 @@ min-width: 156px; max-width: 100%; min-height: 48px; - max-height: 256px; display: flex; flex-flow: column; justify-content: stretch; @@ -113,30 +119,42 @@ } } -.md-option { - height: 48px; - min-height: 48px; - padding: 0 4px 0 16px; - display: flex; - flex-flow: column; - justify-content: center; - overflow: hidden; - cursor: pointer; - position: relative; - transform: translate3D(0, 0, 0); - transition: $swift-ease-out; - font-size: 16px; - line-height: 1.2em; - text-overflow: ellipsis; - white-space: nowrap; +.md-select-content { + width: auto; + max-height: 256px; - &.md-highlighted { - background-color: rgba(#000, .12); + &.md-direction-bottom-right { + margin-top: -15px; + margin-left: -16px; } - span { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + &.md-direction-bottom-left { + margin-top: -15px; + margin-left: 16px; + } + + &.md-direction-top-right { + margin-top: 15px; + margin-left: -16px; + } + + &.md-direction-top-left { + margin-top: 15px; + margin-left: 16px; + } + + .md-menu-item .md-list-item-holder { + overflow: visible; + justify-content: flex-start; + } + + &.md-multiple { + .md-checkbox { + margin: 0; + } + + .md-checkbox-label { + padding-left: 16px; + } } } diff --git a/src/components/mdSelect/mdSelect.vue b/src/components/mdSelect/mdSelect.vue index df20bea..a19e6bd 100644 --- a/src/components/mdSelect/mdSelect.vue +++ b/src/components/mdSelect/mdSelect.vue @@ -1,26 +1,12 @@