Skip to content

Commit

Permalink
add a top level class namespacing for each page
Browse files Browse the repository at this point in the history
  • Loading branch information
shanzi committed May 22, 2015
1 parent 20a9ba2 commit 855568d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 36 deletions.
24 changes: 13 additions & 11 deletions www/md_base/src/app/home/home.less
@@ -1,17 +1,19 @@
.project-info {
.home {
.project-info {

margin: 20px 5px;
padding-bottom: 20px;
margin: 20px 5px;
padding-bottom: 20px;

border-bottom: 1px solid #ccc;
border-bottom: 1px solid #ccc;

h1 {
font-weight: normal;
margin: 0;
font-size: 26px;
h1 {
font-weight: normal;
margin: 0;
font-size: 26px;
}
}
}

.dashboard panel {
float: left;
.dashboard panel {
float: left;
}
}
2 changes: 1 addition & 1 deletion www/md_base/src/app/index.jade
Expand Up @@ -21,7 +21,7 @@ html(ng-app="app", ng-controller="appController as app")
md-icon(md-svg-icon="navicon")
b Buildbot
span.title(ng-bind="app.title")
md-content.md-padding(flex, ui-view)
md-content.md-padding(flex, ui-view, ng-class="app.title")
h1 Hello buildbot!

script(src="scripts.js?_#{(new Date()).getTime()}")
Expand Down
50 changes: 26 additions & 24 deletions www/md_base/src/app/settings/settings.less
@@ -1,29 +1,31 @@
.setting-item label {
margin: 15px 0;
height: 30px;
line-height: 30px;
padding-right: 10px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.settings {
.setting-item label {
margin: 15px 0;
height: 30px;
line-height: 30px;
padding-right: 10px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

.setting-control.integer input {
margin: 15px;
width: 40px;
height: 30px;
text-align: center;
}
.setting-control.integer input {
margin: 15px;
width: 40px;
height: 30px;
text-align: center;
}

.setting-control.integer md-slider {
margin-top: 5px;
}
.setting-control.integer md-slider {
margin-top: 5px;
}

.setting-control.text input {
margin: 15px 15px;
margin-left: 0;
}
.setting-control.text input {
margin: 15px 15px;
margin-left: 0;
}

.setting-control.choices md-select {
margin: 10px 15px;
.setting-control.choices md-select {
margin: 10px 15px;
}
}

0 comments on commit 855568d

Please sign in to comment.