Skip to content

Commit

Permalink
3.2.9.2 pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
johnclause committed Mar 26, 2015
1 parent da181c9 commit 83b4a9b
Show file tree
Hide file tree
Showing 53 changed files with 13,193 additions and 9,092 deletions.
7 changes: 7 additions & 0 deletions admin/css/opHighlightMode/Border_Around.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* Border Around */
input.qtranxs-translatable, textarea.qtranxs-translatable, div.qtranxs-translatable {
outline: 2px solid #Color2 !important;
}
div.qtranxs-translatable div.mce-panel {
margin-top: 2px
}
4 changes: 4 additions & 0 deletions admin/css/opHighlightMode/Left_Border.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Left Border */
input.qtranxs-translatable, textarea.qtranxs-translatable, div.qtranxs-translatable {
box-shadow: -3px 0 #Color2 !important;
}
33 changes: 33 additions & 0 deletions admin/css/opLSBStyle/Simple_Buttons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* Language Switching Buttons as Simple Horizontal Block */

.qtranxs-lang-switch-wrap
{
//margin: 10px 0;
margin: 0;
}

.qtranxs-lang-switch
{
border: 1px solid #ccc;
background-image: linear-gradient(to top,#e5e5e5,#f4f4f4);
//margin-top: 2px;

This comment has been minimized.

Copy link
@mweimerskirch

mweimerskirch Mar 26, 2015

Contributor

This is not valid CSS, comments in CSS have to use the syntax /* */

This comment has been minimized.

Copy link
@johnclause

johnclause Mar 27, 2015

Author Member

OK, I changed it, thanks! But it seems to work anyway, and I did not see error messages anywhere. It is so difficult to maintain commenting out a bigger block then, since nested /**/ are not supported, or are they in css? I am thinking about using minimized CSS for production, then this would not be important.

//padding: 8px;
padding: 0 0 2px 4px;
margin: 0 4px 0 0;
cursor: default;
display: inline-block;
}

.qtranxs-lang-switch.active
{
border-color: #888;
background-image: none;
background-color: #bbb;
color: #555;
}

.qtranxs-lang-switch>*
{
vertical-align: middle;
margin-right: 4px;
}
52 changes: 52 additions & 0 deletions admin/css/opLSBStyle/Simple_Tabs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* Language Switching Buttons as Simple Tabs */

.qtranxs-lang-switch-wrap {
margin: 10px 0 10px;
position: relative;
}

.qtranxs-lang-switch-wrap:before{
position: absolute;
content: ' ';
bottom:0;
left:0;
right:0;
z-index: 1;
border-bottom: 1px solid #ccc;
}

.qtranxs-lang-switch-wrap li.qtranxs-lang-switch{
position: relative;
border-color: #ccc;
padding: 5px 5px;
cursor: pointer;
position: relative;
z-index: 2;
background: none;
margin-right: 2px;
line-height: 1.42857143;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
opacity: 0.8;
display: inline-block;
}

.qtranxs-lang-switch-wrap li.qtranxs-lang-switch:hover{
background: #e0e0e0;
opacity: 1;
}

.qtranxs-lang-switch-wrap li.qtranxs-lang-switch.active,
.qtranxs-lang-switch-wrap li.qtranxs-lang-switch.active:focus,
.qtranxs-lang-switch-wrap li.qtranxs-lang-switch.active:hover {
color: #555;
cursor: default;
background-color: #f1f1f1;
border: 1px solid #ccc;
border-bottom-color: transparent;
opacity: 1;
}

.qtranxs-lang-switch img {
margin-right: 4px;
}
34 changes: 34 additions & 0 deletions admin/css/opLSBStyle/Tabs_in_Block.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* Language Switching Buttons as Tabs in Black Block */

.qtranxs-lang-switch-wrap
{
//margin: 10px 0;
margin: 0;
}

.qtranxs-lang-switch
{
padding: 3px 8px 5px 8px;
margin: 6px 4px 0 4px;
display: inline-block;
}

.qtranxs-lang-switch
{
cursor: pointer;
}

.qtranxs-lang-switch>*
{
vertical-align: middle;
margin-right: 4px;
}

.qtranxs-lang-switch *
{
vertical-align: middle;
}

.qtranxs-lang-switch img {
margin-right: 4px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
}


/* Language Switching Buttons as horizontal block */
/* Language Switching Buttons as horizontal block
.qtranxs-lang-switch-wrap
{
Expand Down Expand Up @@ -119,6 +119,7 @@
vertical-align: middle;
margin-right: 4px;
}
*/

/* Language Switching Buttons as tabs *
Expand Down
13 changes: 9 additions & 4 deletions admin/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,8 @@ var qTranslateX=function(pg)
}
for(var i=0; i < anchors.length; ++i){
var anchor = anchors[i];
var langSwitchWrap=qtranxj_ce('ul', {className: 'qtranxs-lang-switch-wrap'});
var langSwitchWrap=qtranxj_ce('ul', {className: qTranslateConfig.lsb_style_wrap_class});
//var langSwitchWrap=qtranxj_ce('ul', {className: 'qtranxs-lang-switch-wrap wp-ui-primary'});
//var header=w.getElementsByTagName('h2')[0];
//header.parentNode.insertBefore(langSwitchWrap, header.nextElementSibling);
anchor.parentNode.insertBefore( langSwitchWrap, anchor );
Expand Down Expand Up @@ -915,15 +916,19 @@ function qtranxj_LanguageSwitch(langSwitchWrap)
{
var tabSwitches = qTranslateConfig.tabSwitches[qTranslateConfig.activeLanguage];
for(var i=0; i < tabSwitches.length; ++i){
tabSwitches[i].classList.remove('active');
tabSwitches[i].classList.remove(qTranslateConfig.lsb_style_active_class);
//tabSwitches[i].classList.remove('active');
//tabSwitches[i].classList.remove('wp-ui-highlight');
}
//tabSwitches[qTranslateConfig.activeLanguage].classList.remove('active');
}
qTranslateConfig.activeLanguage=tabSwitch.lang;
{
var tabSwitches = qTranslateConfig.tabSwitches[qTranslateConfig.activeLanguage];
for(var i=0; i < tabSwitches.length; ++i){
tabSwitches[i].classList.add('active');
tabSwitches[i].classList.add(qTranslateConfig.lsb_style_active_class);
//tabSwitches[i].classList.add('active');
//tabSwitches[i].classList.add('wp-ui-highlight');
}
//tabSwitch.classList.add('active');
}
Expand All @@ -943,7 +948,7 @@ function qtranxj_LanguageSwitch(langSwitchWrap)
qtranxj_ce('img', {src: flag_location+qTranslateConfig.flag[lang]}, tabSwitch);
qtranxj_ce('span', {innerHTML: langNames[lang]}, tabSwitch);
if ( qTranslateConfig.activeLanguage == lang )
tabSwitch.classList.add('active');
tabSwitch.classList.add(qTranslateConfig.lsb_style_active_class);
if(!qTranslateConfig.tabSwitches[lang]) qTranslateConfig.tabSwitches[lang] = [];
qTranslateConfig.tabSwitches[lang].push(tabSwitch);
//tabSwitches[lang]=tabSwitch;
Expand Down
2 changes: 1 addition & 1 deletion admin/js/common.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 83b4a9b

Please sign in to comment.