Skip to content

Commit

Permalink
Fix layout isses where deploy form container shrinks
Browse files Browse the repository at this point in the history
Now the container does not shrink.

This also fixes layout on mobile. Now the deploy form works there.

Fixes kubernetes#439
  • Loading branch information
bryk committed Mar 1, 2016
1 parent 38269ac commit 647a5a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/app/frontend/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ $regular-font-weight: 400;
$bold-font-weight: 500;

$layout-breakpoint-lg: 1280px;
$layout-breakpoint-sm: 960px;
$layout-breakpoint-xs: 600px;
$whiteframe-shadow-1dp: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 2px 1px -1px rgba(0, 0, 0, .12);
$baseline-grid: 8px;
Expand Down
2 changes: 1 addition & 1 deletion src/app/frontend/deploy/deploy.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
-->

<div layout="column" layout-padding layout-align="center center" flex="auto" >
<div layout="column" layout-padding layout-padding-gt-md layout-align="center center" flex="auto">
<md-whiteframe class="kd-deploy-whiteframe md-whiteframe-5dp" flex="auto">
<h3 class="md-headline kd-deploy-form-title">Deploy a Containerized App</h3>

Expand Down
5 changes: 1 addition & 4 deletions src/app/frontend/deploy/deploy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
.kd-deploy-whiteframe {
background: $content-background;
margin: $baseline-grid;
// TODO(bryk): Find a better, application wide constant for the min width.
max-width: 960px;
min-width: 600px;
width: 50%;
width: $layout-breakpoint-sm;
}

.kd-deploy-form-title {
Expand Down

0 comments on commit 647a5a5

Please sign in to comment.