EDIT: come non detto! Non c'erano conflitti coi nomi avevo solo rinominato per sbaglio anche altre parti di codice con TABLE, ROW ecc ma dove non erano nomi di classi ma proprietà!
Ciao a tutti,
ho un dubbio amletico...
Se nel mio sito volessi 2 tipi di layout diversi (per 2 tabelle) come posso fare?
Mi spiego meglio...
Ho notato che alcune classi (tipo TABLE o ROW) non possono avere nomi personalizzati...ergo le 2 tabelle mi vanno in conflitto...
Almeno credo sia per quello (di CSS so davvero pochissimo).
Questo è lo script che sto usando per la tabella:
codice:
.contenitore-tabella{ width:100%;
min-height:100vh;
background:#c4d3f6;
display:-webkit-box;
display:-webkit-flex;
display:-moz-box;
display:-ms-flexbox;
display:flex;
align-items:center;
justify-content:center;
flex-wrap:wrap;
padding:33px 30px
}
.wrap-table{
width:960px;
border-radius:10px;
overflow:hidden
}
.table{
width:100%;
display:table;
margin:0
}
@media screen and (max-width:768px){
.table{display:block}
}
.row{
display:table-row;
background:#fff
}
.row.header{
color:#fff;
background:#6c7ae0
}
@media screen and (max-width:768px){
.row{
display:block
}
.row.header{
padding:0;
height:0
}
.row.header .cell{
display:none
}
.row .cell:before{
font-family:Poppins-Bold;
font-size:12px;
color:gray;
line-height:1.2;
text-transform:uppercase;
font-weight:unset!important;
margin-bottom:13px;
content:attr(data-title);
min-width:98px;
display:block}
}
.cell{
display:table-cell
}
@media screen and (max-width:768px){
.cell{
display:block
}
}
.row .cell{
font-family:Calibri;
font-size:15px;
color:#666;
line-height:1.2;
font-weight:unset!important;
padding-top:20px;
padding-bottom:20px;
border-bottom:1px solid #f2f2f2
}
.row.header .cell{
font-family:Calibri;
font-size:18px;
color:#fff;
line-height:1.2;
font-weight:unset!important;
padding-top:19px;
padding-bottom:19px
}
.row .cell:nth-child(1){
width:360px;
padding-left:40px
}
.row .cell:nth-child(2){
width:160px
}
.row .cell:nth-child(3){
width:250px
}
.row .cell:nth-child(4){
width:190px
}
.table,.row{width:100%!important}.row:hover{
background-color:#ececff;
cursor:pointer
}
@media(max-width:768px){
.row{
border-bottom:1px solid #f2f2f2;
padding-bottom:18px;
padding-top:30px;
padding-right:15px;
margin:0
}
.row .cell{
border:none;
padding-left:30px;
padding-top:16px;
padding-bottom:16px
}
.row .cell:nth-child(1){
padding-left:30px
}
.row .cell{
font-family:Calibri;
font-size:18px;
font-size:18px;
color:#555;
line-height:1.2;
font-weight:unset!important
}
.table,.row,.cell{
width:100%!important
}
}