Skip to content

demos(*): fix inputs spilling over when screen width small #6155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.example-form {
width: 500px;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.example-form {
width: 500px;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.example-form {
width: 500px;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.example-form {
width: 500px;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down
5 changes: 3 additions & 2 deletions src/material-examples/input-errors/input-errors-example.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.example-form {
width: 500px;
max-width: 100%;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down
5 changes: 3 additions & 2 deletions src/material-examples/input-form/input-form-example.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.example-form {
width: 500px;
max-width: 100%;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down
5 changes: 3 additions & 2 deletions src/material-examples/input-hint/input-hint-example.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.example-form {
width: 500px;
max-width: 100%;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down
10 changes: 9 additions & 1 deletion src/material-examples/input-overview/input-overview-example.css
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/** No CSS for this example */
.example-form {
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
width: 100%;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<md-input-container>
<input mdInput placeholder="Favorite food" value="Sushi">
</md-input-container>
<form class="example-form">
<md-input-container class="example-full-width">
<input mdInput placeholder="Favorite food" value="Sushi">
</md-input-container>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {Component} from '@angular/core';
*/
@Component({
selector: 'input-overview-example',
styleUrls: ['input-overview-example.css'],
templateUrl: 'input-overview-example.html',
})
export class InputOverviewExample {}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.example-form {
width: 500px;
max-width: 100%;
min-width: 150px;
max-width: 500px;
width: 100%;
}

.example-full-width {
Expand Down