Skip to content

Commit b157141

Browse files
committed
adjust layout styles
1 parent 9a3aa5a commit b157141

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

src/app/stylesheets/_custom.scss

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ $left-sidenav-width: 110px;
2727

2828

2929
// DASHBOARD
30-
.todolist-content {
31-
height: 350px;
32-
}
33-
3430
.messages {
3531
position: relative;
3632

@@ -73,10 +69,22 @@ body {
7369
margin-left: 10px;
7470
}
7571

72+
.page-content {
73+
background-color: rgb(237, 237, 237);
74+
}
75+
76+
.widget-content {
77+
height: 300px;
78+
}
79+
7680

7781
// PANEL-WIDGET
7882
.panel-widget {
79-
box-shadow: none;
83+
background-color: white;
84+
85+
&-toolbar {
86+
box-shadow: none;
87+
}
8088
}
8189

8290
.options {

src/app/views/main.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1>AMD</h1>
4141
</md-button>
4242
</md-toolbar>
4343

44-
<md-content flex class="md-padding">
44+
<md-content flex class="md-padding page-content">
4545
<div ui-view></div>
4646
</md-content>
4747
</div>

src/app/views/partials/checkboxes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<md-content class="todolist-content md-padding" ng-controller="TodoController as vm">
1+
<md-content class="widget-content md-padding" ng-controller="TodoController as vm">
22
<h3>{{vm.remaining()}} of {{vm.todos.length}} remaining</h3>
33

44
<md-checkbox ng-repeat="todo in vm.todos" ng-model="todo.done">

src/app/views/partials/progress.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</md-radio-group>
77
</md-content>
88

9-
<md-content class="md-padding">
9+
<md-content class="widget-content md-padding">
1010
<div layout-margin ng-repeat="data in vm.progressData">
1111
<div layout="row">
1212
<span>{{data.title}}</span>

src/components/directives/panelWidget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ angular.module('app')
88
transclude: true,
99
scope: { title: '@', template: '@', options: '@' },
1010
template: '' +
11-
'<section layout-margin class="md-whiteframe-z1">' +
12-
' <md-toolbar md-theme="custom" class="md-hue-1 panel-widget">' +
11+
'<section layout-margin class="md-whiteframe-z1 panel-widget">' +
12+
' <md-toolbar md-theme="custom" class="md-hue-1 panel-widget-toolbar">' +
1313
' <div class="md-toolbar-tools">' +
1414
' <h3>{{title}}</h3>' +
1515
' <span flex></span>' +

0 commit comments

Comments
 (0)