-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Babel 225 Styling - covers resource tabs page settings, template variables etc #47
Comments
below css fixes it: re: assets/components/babel/css - position fixed was the issue in Firefox anyway /**
} #babel-box div.selected a{ |
I am having the same problem and have currently 12 languages in total with the possibility of more being added in future. I have altered the CSS to prevent the overlap in a similar way to the above suggested CSS:
While this seems to work, the Babel Language selection toolbar causes a "double scrollbar" issue, especially on smaller screens where you cannot scroll through a long list of template variables unless you have a scrollwheel. It seems there is a "page scrollbar" for the full page, and a separate "frame scrollbar" for the main .x-panel-bwrap box area, and the scrollbars show over one another (Firefox/Chrome on Mac, but also seen on Chrome on Windows 7) My suggestion would be to move #babel-box into .x-panel-bwrap > .x-panel-body so that it scrolls with the rest of the page correctly. You can see the result of this in Chrome by dragging the live HTML element into this div, and the page now scrolls correctly. |
Got around the problem successfully using a miniature plugin to fire when the window has loaded which moved the babel-box into the correct place, and fixes the issues described above. System events: onDocFormRender, OnManagerPageAfterRender (I think that's the only ones you need) Plugin code: <?php
$modx->regClientStartupHTMLBlock('
<script>
window.onload = function() {
var babelBox = document.getElementById("babel-box"),
siblings = babelBox.parentNode.childNodes,
nextNode = null,
next = false;
for (var i in siblings) {
var sibling = siblings[i];
if (sibling.nodeType == Node.TEXT_NODE) {
continue;
}
if (next) {
nextNode = sibling;
break;
}
next = (sibling === babelBox);
}
if (nextNode !== null) {
var thisChild = nextNode.firstChild;
thisChild.insertBefore(babelBox,thisChild.firstChild);
}
};
</script>');
return; |
Issue #31: make babel buttons in manager position: fixed; change look accordingly.
Also worth noting that you'll probably want to alter the babel.css file in assets/components/babel/css folder as detailed in above posts. |
Hi Guys,
The babel languages in the resource section cover all the page setting tabs eg create/edit document, page settings, templa variables. I have 10 languages in and they span the width of the page blocking tabs. Can you recommend the fix. Using Modx Revo 213
Thanks
This the css
/**
*
_/
#babel-box{
background: rgba(224, 224, 224, 0.75);
margin:15px 0 0;
padding:10px;
-moz-border-radius: 3px;
border-radius: 3px;
/_display: inline-block; */ also tried it uncommented!
position: fixed;
top: 124px;
right: 20px;
z-index: 12;
}
#babel-box a{
display:block;
padding:5px 12px 4px 12px;
background:#779937;
color:white;
text-decoration:none;
-moz-border-radius: 3px;
border-radius: 3px;
text-shadow: 0 2px 1px #666;
}
babel-box div.selected a{
}
babel-box div.notset a{
}
babel-box a:hover{
}
babel-box div.notset a:hover{
}
babel-box div.babel-language {
}
babel-box div.babel-language-layer {
}
babel-box input.x-form-text {
}
babel-box input.x-btn {
}
babel-second-row {
}
babel-error{
}
babel-box hr {
}
babel-box strong {
}
The text was updated successfully, but these errors were encountered: