Skip to content

Commit 0bcb304

Browse files
committed
added version 1.2.0 + small changes on moving tab
1 parent 9059e0d commit 0bcb304

File tree

12 files changed

+31
-11
lines changed

12 files changed

+31
-11
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ V1.1.0 - small fix
152152
V1.1.1 - 21 March (V1.1.0 from Material Dashboard HTML)
153153
- added "@types/core-js": "0.9.35" in package
154154

155+
V1.2.0 - 04 Apr (V1.1.0 from Material Dashboard HTML)
156+
- added Upgrade to PRO page
157+
- update package
158+
- made sidebar dynamic
159+
155160

156161
## Useful Links
157162

app/sidebar/sidebar.component.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/sidebar/sidebar.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/sidebar/sidebar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare var $:any;
1111
export class SidebarComponent implements OnInit {
1212
public menuItems: any[];
1313
ngOnInit() {
14-
$.getScript('../../assets/js/material-dashboard-angular.js');
14+
$.getScript('../../assets/js/sidebar-moving-tab.js');
1515
this.menuItems = ROUTES.filter(menuItem => menuItem);
1616
}
1717
}

assets/css/demo.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ my-app .main-panel .main-content .card{
5050
width: 100%;
5151
bottom: 10px;
5252
}
53+
@media (max-width: 991px) {
54+
.sidebar .nav > li.active-pro{
55+
position: relative;
56+
width: 100%;
57+
bottom: 10px;
58+
}
59+
}
5360

5461
.tim-row{
5562
margin-bottom: 20px;

assets/css/material-dashboard.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
33
=========================================================
4-
* Material Dashboard Angular 2 - V1.1.1
4+
* Material Dashboard Angular 2 - V1.2.0
55
=========================================================
66
77
* Product Page: https://www.creative-tim.com/product/material-dashboard-angular2
@@ -3491,7 +3491,7 @@ fieldset[disabled] .form-group.is-focused .togglebutton label {
34913491
z-index: 1029;
34923492
}
34933493

3494-
@media (max-width: 1199px) {
3494+
@media (max-width: 991px) {
34953495
.nav-container {
34963496
position: relative;
34973497
}

assets/js/material-dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
33
=========================================================
4-
* Material Dashboard Angular 2 - V1.1.1
4+
* Material Dashboard Angular 2 - V1.2.0
55
=========================================================
66
77
* Product Page: https://www.creative-tim.com/product/material-dashboard-angular2

assets/js/material-dashboard-angular.js renamed to assets/js/sidebar-moving-tab.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
33
=========================================================
4-
* Material Dashboard Angular - V1.1.0.0
4+
* Material Dashboard Angular - V1.2.0
55
=========================================================
66
77
* Product Page: https://www.creative-tim.com/product/material-dashboard-angular2
@@ -14,7 +14,7 @@
1414
1515
*/
1616

17-
17+
1818
$(document).ready(function(){
1919
$moving_tab = $('<div class="moving-tab"/>');
2020
$('.sidebar .nav-container').append($moving_tab);
@@ -39,7 +39,11 @@ $(document).ready(function(){
3939

4040
}
4141
});
42+
$(window).resize(function(){
43+
$this = $('.sidebar .nav').find('li.active a');
44+
animationSidebar($this,true);
4245

46+
});
4347
$('.sidebar .nav > li > a').click(function(){
4448
$this = $(this);
4549
animationSidebar($this, true);

assets/sass/material-dashboard.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
33
=========================================================
4-
* Material Dashboard Angular 2 - V1.1.1
4+
* Material Dashboard Angular 2 - V1.2.0
55
=========================================================
66
77
* Product Page: https://www.creative-tim.com/product/material-dashboard-angular2

assets/sass/md/_navbars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
padding-top: 10px;
328328
z-index: 1029;
329329
}
330-
@media (max-width: $screen-md-max) {
330+
@media (max-width: 991px) {
331331
.nav-container{
332332
position: relative;
333333
}

0 commit comments

Comments
 (0)