feat(skin): changed structure of skin folders and added additional skins
|
@ -8,6 +8,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
<div class="dropdown al-look">
|
<div class="dropdown al-look">
|
||||||
<a href class="dropdown-toggle ion-settings" data-toggle="dropdown"></a>
|
<a href class="dropdown-toggle ion-settings" data-toggle="dropdown"></a>
|
||||||
<div class="dropdown-menu dropdown-menu-right" look-and-feel-panel></div>
|
<div class="dropdown-menu dropdown-menu-right" tpl-skin-panel></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -1,25 +0,0 @@
|
||||||
/**
|
|
||||||
* @author v.lugovsky
|
|
||||||
* created on 18.11.2015
|
|
||||||
*/
|
|
||||||
(function() {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
blurAdminApp
|
|
||||||
.directive('lookAndFeelPanel', lookAndFeelPanel);
|
|
||||||
|
|
||||||
lookAndFeelPanel.$inject = ['lookAndFeelEnum', 'lookAndFeelOptions'];
|
|
||||||
function lookAndFeelPanel(lookAndFeelEnum, lookAndFeelOptions) {
|
|
||||||
return {
|
|
||||||
templateUrl: 'app/lookAndFeel/lookAndFeelPanel.html',
|
|
||||||
link: function(scope, el) {
|
|
||||||
scope.lookAndFeels = lookAndFeelEnum;
|
|
||||||
|
|
||||||
scope.setActiveSkin = function(option) {
|
|
||||||
lookAndFeelOptions.setActiveSkin(option);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
})();
|
|
|
@ -1,10 +0,0 @@
|
||||||
<div class="look-and-feel-panel">
|
|
||||||
<div class="look-and-feel-option" ng-repeat="option in lookAndFeels" ng-click="setActiveSkin(option)">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-xs-6">
|
|
||||||
<img class="skin-thumbnail" ng-src="{{ option.thumbnailUrl }}" />
|
|
||||||
</div>
|
|
||||||
<div class="col-xs-6 text-col" ng-bind="option.name"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
|
@ -46,7 +46,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
blurAdminApp
|
blurAdminApp
|
||||||
.constant('skinClassPrefix', SKIN_CLASS_PREFIX)
|
.constant('tplSkinClassPrefix', SKIN_CLASS_PREFIX)
|
||||||
.constant('lookAndFeelEnum', ADMIN_STYLES);
|
.constant('tplSkinEnum', ADMIN_STYLES);
|
||||||
|
|
||||||
})();
|
})();
|
|
@ -6,10 +6,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
blurAdminApp
|
blurAdminApp
|
||||||
.service('lookAndFeelOptions', lookAndFeelOptions);
|
.service('tplSkinManager', tplSkinManager);
|
||||||
|
|
||||||
lookAndFeelOptions.$inject = ['$document', 'skinClassPrefix'];
|
tplSkinManager.$inject = ['$document', 'tplSkinClassPrefix'];
|
||||||
function lookAndFeelOptions($document, skinClassPrefix) {
|
function tplSkinManager($document, tplSkinClassPrefix) {
|
||||||
|
|
||||||
var activeSkin = null;
|
var activeSkin = null;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
var body = $document[0].body;
|
var body = $document[0].body;
|
||||||
var $body = angular.element(body);
|
var $body = angular.element(body);
|
||||||
body.className.split(/\s+/).forEach(function(className) {
|
body.className.split(/\s+/).forEach(function(className) {
|
||||||
if (className.indexOf(skinClassPrefix) === 0) {
|
if (className.indexOf(tplSkinClassPrefix) === 0) {
|
||||||
$body.removeClass(className);
|
$body.removeClass(className);
|
||||||
}
|
}
|
||||||
});
|
});
|
|
@ -0,0 +1,25 @@
|
||||||
|
/**
|
||||||
|
* @author v.lugovsky
|
||||||
|
* created on 18.11.2015
|
||||||
|
*/
|
||||||
|
(function() {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
blurAdminApp
|
||||||
|
.directive('tplSkinPanel', tplSkinPanel);
|
||||||
|
|
||||||
|
tplSkinPanel.$inject = ['tplSkinEnum', 'tplSkinManager'];
|
||||||
|
function tplSkinPanel(tplSkinEnum, tplSkinManager) {
|
||||||
|
return {
|
||||||
|
templateUrl: 'app/tplSkin/tplSkinPanel.html',
|
||||||
|
link: function(scope) {
|
||||||
|
scope.skins = tplSkinEnum;
|
||||||
|
|
||||||
|
scope.setActiveSkin = function(option) {
|
||||||
|
tplSkinManager.setActiveSkin(option);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
})();
|
|
@ -0,0 +1,10 @@
|
||||||
|
<div class="tpl-skin-panel">
|
||||||
|
<div class="tpl-skin-option" ng-repeat="skin in skins" ng-click="setActiveSkin(skin)">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-6">
|
||||||
|
<img class="skin-thumbnail" ng-src="{{ skin.thumbnailUrl }}" />
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-6 text-col" ng-bind="skin.name"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
|
@ -1,11 +1,16 @@
|
||||||
.look-and-feel-panel {
|
.tpl-skin-panel {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
.look-and-feel-option {
|
.tpl-skin-option {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
line-height: 83px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: $primary;
|
background-color: $primary;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
+ .tpl-skin-option {
|
||||||
|
border-top: 1px solid #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.skin-thumbnail {
|
.skin-thumbnail {
|
|
@ -1,11 +1,11 @@
|
||||||
$font-family: 'Lato', sans-serif;
|
$font-family: 'Lato', sans-serif;
|
||||||
|
|
||||||
$primary: #41bee9;
|
$primary: #41bee9!default;
|
||||||
$info: #5bc0de;
|
$info: #5bc0de!default;
|
||||||
$success: #348779;
|
$success: #348779!default;
|
||||||
$warning: #bbcb50;
|
$warning: #bbcb50!default;
|
||||||
$danger: #9d498c;
|
$danger: #9d498c!default;
|
||||||
$default: #e9e9e9;
|
$default: #e9e9e9!default;
|
||||||
|
|
||||||
$primary-dark: #1694bf;
|
$primary-dark: #1694bf;
|
||||||
$success-dark: #1c4a42;
|
$success-dark: #1c4a42;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@import "variables.scss",
|
@import "variables.scss",
|
||||||
"mixins.scss",
|
"mixins.scss",
|
||||||
|
"skins/skins.scss",
|
||||||
"../../app/pages/typography/typography.scss",
|
"../../app/pages/typography/typography.scss",
|
||||||
"preloader.scss",
|
"preloader.scss",
|
||||||
"socicon.scss",
|
"socicon.scss",
|
||||||
|
@ -7,8 +8,7 @@
|
||||||
"table.scss",
|
"table.scss",
|
||||||
"layout.scss",
|
"layout.scss",
|
||||||
"icons.scss",
|
"icons.scss",
|
||||||
"skins/skins.scss",
|
"../../app/tplSkin/tplSkinPanel.scss",
|
||||||
"../../app/lookAndFeel/lookAndFeelPanel.scss",
|
|
||||||
"../../app/components/widgets/widgets.scss",
|
"../../app/components/widgets/widgets.scss",
|
||||||
"../../app/pages/buttons/buttonsPage.scss",
|
"../../app/pages/buttons/buttonsPage.scss",
|
||||||
"../../app/pages/icons/iconsPage.scss",
|
"../../app/pages/icons/iconsPage.scss",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
body.badmin-transparent {
|
body.badmin-transparent {
|
||||||
.panel, .panel:hover {
|
.panel, .panel:hover {
|
||||||
border-color: rgba(0, 0, 0, 0.5);
|
border-color: rgba(80, 80, 80, 0.5);
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
body.badmin-blue {
|
||||||
|
background-image: url(../img/blue-bg.jpg);
|
||||||
|
.page-top {
|
||||||
|
background-color: rgba(0,0,0,.5);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
body.badmin-transblue {
|
||||||
|
background-image: url(../img/transblue-bg.jpg);
|
||||||
|
|
||||||
|
.page-top {
|
||||||
|
background-color: rgba(0,0,0,.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel, .panel:hover {
|
||||||
|
border-color: rgba(80, 80, 80, 0.5);
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
body.badmin-grey {
|
||||||
|
background: #bdbdbd;
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
@import 'transparent';
|
@import '02_transparent';
|
||||||
@import 'blue';
|
@import '03_blue';
|
||||||
@import 'peachy';
|
@import '04_peachy';
|
||||||
@import 'material';
|
@import '05_material';
|
||||||
@import 'transblue';
|
@import '06_transblue';
|
||||||
@import 'grey';
|
@import '07_grey';
|
After Width: | Height: | Size: 126 KiB |
After Width: | Height: | Size: 92 KiB |