瀏覽代碼

sidebar chacked button

tags/1.0.0
Robin Thoni 9 年之前
父節點
當前提交
1b27c19993
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4
    0
      app/less/app.less
  2. 1
    1
      app/views/sidebar.html

+ 4
- 0
app/less/app.less 查看文件

31
   line-height: 30px;
31
   line-height: 30px;
32
 }
32
 }
33
 
33
 
34
+.md-group-button-checked {
35
+  background-color: rgba(0, 0, 0, 0.12);
36
+}
37
+
34
 .md-sidebar {
38
 .md-sidebar {
35
   height: 100%;
39
   height: 100%;
36
   min-height: 150px;
40
   min-height: 150px;

+ 1
- 1
app/views/sidebar.html 查看文件

19
             </li>
19
             </li>
20
             <li ng-repeat="group in getCurrentGroups()" class="col-xs-12">
20
             <li ng-repeat="group in getCurrentGroups()" class="col-xs-12">
21
                 <md-button class="md-primary md-hue-1 md-group-button col-xs-12"
21
                 <md-button class="md-primary md-hue-1 md-group-button col-xs-12"
22
-                           ng-class="{'md-focused': DataShareBusiness.getCurrentGroup().Id == group.Id}"
22
+                           ng-class="{'md-group-button-checked': DataShareBusiness.getCurrentGroup().Id == group.Id}"
23
                            ng-href="{{DataShareBusiness.getGroupUrl(group)}}">
23
                            ng-href="{{DataShareBusiness.getGroupUrl(group)}}">
24
                     {{ group.Name }}
24
                     {{ group.Name }}
25
                 </md-button>
25
                 </md-button>

Loading…
取消
儲存