Mobile.css: Difference between revisions
From Necroxia Origin
mNo edit summary |
mNo edit summary |
||
Line 47: | Line 47: | ||
.equips-table tr:hover {background-color: #f5f5f5;} | .equips-table tr:hover {background-color: #f5f5f5;} | ||
@media screen and (max-width: 600px) { | |||
table { | |||
width:100%; | |||
} | |||
thead { | |||
display: none; | |||
} | |||
tr:nth-of-type(2n) { | |||
background-color: inherit; | |||
} | |||
tr td:first-child { | |||
background: #f0f0f0; | |||
font-weight:bold; | |||
font-size:1.3em; | |||
} | |||
tbody td { | |||
display: block; | |||
text-align:center; | |||
} | |||
tbody td:before { | |||
content: attr(data-th); | |||
display: block; | |||
text-align:center; | |||
} | |||
} |
Revision as of 09:20, 7 August 2019
/* CSS placed here will affect users of the mobile site */ /* CSS placed here will be applied to all skins */ .droppedby-wrapper { border: 0.1em solid #a8a8a8; border-radius: 1em; padding: 0.5em; overflow: auto } .droppedby-wrapper>ul { list-style: none; margin: 0; overflow-x: hidden; overflow-y: auto; max-height: 5.5em } .droppedby-wrapper li { float: left; min-width: 14.0em; margin: 0 } .property { font-weight:bold; text-align:right; width: 9.5em; } .equips-table { border-collapse: collapse; width: 100%; } .equips-table th, .equips-table td { padding: 3px; border-bottom: 1px solid #ddd; text-align: center; } th, td { padding: 3px; border-bottom: 1px solid #ddd; } .equips-table td:nth-child(2) {text-align: left;} .equips-table tr:hover {background-color: #f5f5f5;} @media screen and (max-width: 600px) { table { width:100%; } thead { display: none; } tr:nth-of-type(2n) { background-color: inherit; } tr td:first-child { background: #f0f0f0; font-weight:bold; font-size:1.3em; } tbody td { display: block; text-align:center; } tbody td:before { content: attr(data-th); display: block; text-align:center; } }