Skip to content

Commit

Permalink
MAGETWO-35195: JS loader is displayed outside the content area in Bac…
Browse files Browse the repository at this point in the history
…kend

- Added main menu submenu group title style support
- Fixed Grunt Less compile tasks
  • Loading branch information
Bogdan Plieshka committed Mar 18, 2015
1 parent f8f7dab commit 64bae37
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = function (grunt) {
*/
backend: [
'less:backend',
'replace:example',
'replace:escapeCalc',
'less:override'
],
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,14 @@
.parent {
margin-bottom: 4.5rem;
// Section title
// ToDo UI: Should be not a link, strong instead and have a classname
> a {
> a, // ToDo UI: Should be deleted after template changes a -> strong.submenu-group-title
.submenu-group-title {
color: @submenu-section-label__color;
display: block;
font-size: 1.6rem;
font-weight: @font-weight__semibold;
margin-bottom: .7rem;
padding: 1.25rem @submenu__padding-horizontal;
pointer-events: none;
}
}
Expand Down
5 changes: 4 additions & 1 deletion app/design/adminhtml/Magento/backend/web/css/override.less
Original file line number Diff line number Diff line change
Expand Up @@ -2791,6 +2791,7 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
margin: 0 0 3rem;
}
.page-layout-admin-login {
align-items: center;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
Expand Down Expand Up @@ -3197,12 +3198,14 @@ fieldset[disabled] .admin__control-text + .ui-datepicker-trigger {
.admin__menu .submenu .parent {
margin-bottom: 4.5rem;
}
.admin__menu .submenu .parent > a {
.admin__menu .submenu .parent > a,
.admin__menu .submenu .parent .submenu-group-title {
color: #a79d95;
display: block;
font-size: 1.6rem;
font-weight: 600;
margin-bottom: .7rem;
padding: 1.25rem 1.5rem;
pointer-events: none;
}
.admin__menu .submenu .column {
Expand Down
2 changes: 1 addition & 1 deletion dev/tools/grunt/configs/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Replace task for backend migration
*/
module.exports = {
example: {
escapeCalc: {
src: ['<%= combo.autopath("backend","pub") %>/css/styles.css'], // source files array (supports minimatch)
dest: '<%= combo.autopath("backend","pub") %>/css/override.less', // destination directory or file
replacements: [{
Expand Down
2 changes: 0 additions & 2 deletions dev/tools/grunt/configs/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ module.exports = {
files: [
'css/styles-old',
'css/styles',
'css/pages',
'css/admin',
'css/styles-migration'
],
dsl: 'less'
Expand Down
11 changes: 10 additions & 1 deletion dev/tools/grunt/configs/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ var watchOptions = {
"setup": {
"files": "<%= path.less.setup %>/**/*.less",
"tasks": "less:setup"
},
"backendMigration": {
"files": [
"<%= combo.autopath(\"backend\",\"pub\") %>/css/styles.css"
],
"tasks": [
"replace:escapeCalc",
"less:override"
]
}
};

module.exports = _.extend(themeOptions, watchOptions);
module.exports = _.extend(themeOptions, watchOptions);

0 comments on commit 64bae37

Please sign in to comment.