This commit is contained in:
2020-08-07 08:41:28 +06:00
3 changed files with 11 additions and 7 deletions

View File

@ -60,6 +60,10 @@ select
text-align: center; text-align: center;
} }
input[type="text"], input[type="password"], textarea {
background-color : #454555;
}
/*Стили для таблицы которая исполняет роль окна*/ /*Стили для таблицы которая исполняет роль окна*/
.shadow { .shadow {
box-shadow: 0 0 10px rgba(255,255,255,0.7); box-shadow: 0 0 10px rgba(255,255,255,0.7);

View File

@ -56,7 +56,7 @@ class tcTab
this.par.tbs[i].con.style.display='none' this.par.tbs[i].con.style.display='none'
} }
this.div.style.background = g_rowColor2; this.div.style.background = g_rowColor2;
this.div.style.borderBottom = '1px solid #ffffff' this.div.style.borderBottom = '1px solid var(--back-color)'
//this.con.style.display='inline' //this.con.style.display='inline'
this.con.style.display='block'; this.con.style.display='block';
this.sel=true this.sel=true

View File

@ -5,13 +5,13 @@ function resizeDivTile(parent,minWidth)
{ {
if(typeof parent == 'string') parent=document.getElementById(parent); if(typeof parent == 'string') parent=document.getElementById(parent);
if(parent==null) return; if(parent==null) return;
var margin=2; //С права и слева по одному пикселю то получается два let margin=2; //С права и слева по одному пикселю то получается два
var dx=Math.floor(parent.offsetWidth/(minWidth+margin)); let dx=Math.floor(parent.offsetWidth/(minWidth+margin));
//console.log("parent.offsetWidth="+parent.offsetWidth+" minWidth="+minWidth+" margin="+margin+" dx="+dx); //console.log("parent.offsetWidth="+parent.offsetWidth+" minWidth="+minWidth+" margin="+margin+" dx="+dx);
var addW=0; let addW=0;
for(var i=0;i<minWidth+margin+2;i++) for(let i=0;i<minWidth+margin+2;i++)
{ {
if(dx>=parent.offsetWidth/(minWidth+margin+i)) if(dx>=parent.offsetWidth/(minWidth+margin+i))
{ {
@ -21,7 +21,7 @@ function resizeDivTile(parent,minWidth)
} }
} }
for(var i = 0; i < parent.children.length; i++) { for(let i = 0; i < parent.children.length; i++) {
//console.log(parent.children[i].tagName); //console.log(parent.children[i].tagName);
if(parent.children[i].tagName.toUpperCase()=='DIV') if(parent.children[i].tagName.toUpperCase()=='DIV')
{ {
@ -1196,7 +1196,7 @@ class TWin
str+='</table>'; str+='</table>';
*/ */
let imgB='g_b.gif'; let imgB='g_b.png';
let imgX='x_w.png'; let imgX='x_w.png';
if(g_textColor1=='#000000') { //Если тёмный стиль if(g_textColor1=='#000000') { //Если тёмный стиль
imgB = 'g_w.png'; imgB = 'g_w.png';