@@ -52,13 +52,13 @@ $select-max-visible-options: 5 !default;
52
52
}
53
53
54
54
md-input-container > md-select {
55
- margin : 0 ;
56
55
order : 2 ;
56
+ margin-top : -7px ; // Align with md-input-container
57
57
}
58
58
59
59
md-select {
60
60
display : flex ;
61
- margin : 2.5 * $baseline-grid 0 3 * $baseline-grid + 2 0 ;
61
+ margin : 0 ;
62
62
& [disabled ] ._md-select-value {
63
63
background-position : 0 bottom ;
64
64
// This background-size is coordinated with a linear-gradient set in select-theme.scss
@@ -80,14 +80,14 @@ md-select {
80
80
& .ng-invalid.ng-dirty {
81
81
._md-select-value {
82
82
border-bottom : 2px solid ;
83
- padding-bottom : 0 ;
83
+ padding-bottom : 5 px ;
84
84
}
85
85
}
86
86
& :focus {
87
87
._md-select-value {
88
88
border-bottom-width : 2px ;
89
89
border-bottom-style : solid ;
90
- padding-bottom : 0 ;
90
+ padding-bottom : 5 px ;
91
91
}
92
92
}
93
93
}
@@ -97,14 +97,16 @@ md-select {
97
97
._md-select-value {
98
98
display : flex ;
99
99
align-items : center ;
100
- padding : 2 px 2 px 1 px ;
100
+ padding : 4 px 0 6 px 0 ;
101
101
border-bottom-width : 1px ;
102
102
border-bottom-style : solid ;
103
103
background-color : rgba (0 ,0 ,0 ,0 );
104
104
position : relative ;
105
105
box-sizing : content-box ;
106
- min-width : 8 * $baseline-grid ;
106
+ min-width : 11 * $baseline-grid ;
107
107
min-height : 26px ;
108
+ margin-bottom : auto ;
109
+ -ms-flex-item-align : start ; // workaround for margin-bottom: auto
108
110
flex-grow : 1 ;
109
111
110
112
@@ -134,17 +136,17 @@ md-select {
134
136
display : block ;
135
137
content : ' \25BC ' ;
136
138
position : relative ;
137
- top : 2px ;
139
+ right : -7px ;
140
+ top : 1px ;
138
141
speak : none ;
139
- transform : scaleY (0.6 ) scaleX ( 1 );
142
+ transform : scaleY (0.5 );
140
143
}
141
144
142
145
& ._md-select-placeholder {
143
146
display : flex ;
144
147
order : 1 ;
145
148
pointer-events : none ;
146
149
-webkit-font-smoothing : antialiased ;
147
- padding-left : 2px ;
148
150
z-index : 1 ;
149
151
}
150
152
}
@@ -248,3 +250,20 @@ md-select-menu[multiple] {
248
250
}
249
251
}
250
252
}
253
+
254
+ .layout-row ,
255
+ .layout-xs-row , .layout-gt-xs-row ,
256
+ .layout-sm-row , .layout-gt-sm-row ,
257
+ .layout-md-row , .layout-gt-md-row ,
258
+ .layout-lg-row , .layout-gt-lg-row ,
259
+ .layout-xl-row {
260
+ & > md-select :not (:last-child ), {
261
+ @include rtl (margin-left , 0 , $select-container-padding );
262
+ @include rtl (margin-right , $select-container-padding , 0 );
263
+ }
264
+
265
+ .md-inline-form & > md-select {
266
+ margin-top : 13px ;
267
+ margin-bottom : auto ;
268
+ }
269
+ }
0 commit comments