Skip to content

Commit

Permalink
Enhance panelCSS && wysiwyg in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
parsimony committed Jul 1, 2014
1 parent bf7e4ec commit 7a2a479
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/admin/blocks/css/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -1144,10 +1144,10 @@ blockAdminCSS.prototype.getCSSSelectorForElement = function(node, media, proposa
for (var key in proposals) {
if (media.length > 0) {
ParsimonyAdmin.currentDocument.styleSheets[nbStylesheet].insertRule(media + " { " + proposals[key] + " { } }", nbRules);
linkedRules[this.getSpecificity(proposals[key]) + linkedRulesNb] = [CSSTHEMEPATH, proposals[key], "", nbStylesheet, 0, media, nbRules];
linkedRules[key + linkedRulesNb] = [CSSTHEMEPATH, proposals[key], "", nbStylesheet, 0, media, nbRules];
} else {
ParsimonyAdmin.currentDocument.styleSheets[nbStylesheet].insertRule(proposals[key] + "{}", nbRules);
linkedRules[this.getSpecificity(proposals[key]) + linkedRulesNb] = [CSSTHEMEPATH, proposals[key], "", nbStylesheet, nbRules, "", ""];
linkedRules[key + linkedRulesNb] = [CSSTHEMEPATH, proposals[key], "", nbStylesheet, nbRules, "", ""];
}
nbRules++;
linkedRulesNb++;
Expand Down
4 changes: 0 additions & 4 deletions modules/admin/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,6 @@ margin:0}
#checkmedia:checked + #labelmedia span{margin-left:25px;}
#checkmedia:checked + #labelmedia #btnmedia{background:#44C5EC;}

/* Fix wysiwyg */
#HTML5editorToolbar button{min-width: initial !important;}
.HTML5Editor ul{list-style: disc outside none;padding-left:40px;margin:12px 0 }

/* ################ Hacks tricks ################## */
[draggable] {-moz-user-select: none;-webkit-user-select: none;user-select: none;}

Expand Down
6 changes: 5 additions & 1 deletion modules/admin/css/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,8 @@ input[type="range"]::-webkit-slider-thumb {
.ui-icon-folder-open {background-position: -16px -96px;}
.ui-icon-trash {background-position: -176px -96px;}

:invalid{background: #fff no-repeat 98% center;box-shadow: 0 0 5px #ffeded;border-color: #ffeded}
:invalid{background: #fff no-repeat 98% center;box-shadow: 0 0 5px #ffeded;border-color: #ffeded}

/* Fix wysiwyg */
#HTML5editorToolbar button{min-width: initial !important;}
.HTML5Editor ul{list-style: disc outside none;padding-left:40px;margin:12px 0 }

0 comments on commit 7a2a479

Please sign in to comment.