MediaWiki:Gadget-TwoColumnTable.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
.responsive-table {
display: table;
width: 100%;
border-collapse: collapse;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
background-color: #ffffff;
color: #000000;
direction: rtl;
}
.table-row {
display: table-row;
background-color: #ffffff;
text-align: justify;
}
.table-row:nth-child(even) {
background-color: #f0f8ff;
}
.table-cell {
padding: 16px;
border: 1px solid #ddd;
display: table-cell;
vertical-align: middle;
transition: background-color 0.3s ease;
width: 50%;
}
.table-cell:hover {
background-color: rgba(0, 123, 255, 0.1);
}
.right-cell {
font-family: 'AdobeArabic-Regular', sans-serif;
font-size: 20px!important;
color: #203A8E;
text-align: right;
direction: rtl;
}
.left-cell {
font-family: 'iransansxlight', sans-serif;
font-size: 14px;
color: #119E9E;
direction: ltr;
text-align: left;
}
.night-mode .responsive-table {
background-color: #121212;
color: #ffffff;
}
.night-mode .table-row:nth-child(even) {
background-color: #1e1e1e;
}
.font-smaller .right-cell, .font-smaller .left-cell {
font-size: 14px;
}
.font-larger .right-cell, .font-larger .left-cell {
font-size: 14px;
}
@media (max-width: 768px) {
.table-row {
display: block;
margin-bottom: 8px;
background-color: #ffffff;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.table-cell {
display: block;
width: 100%;
box-sizing: border-box;
padding: 12px;
border: none;
margin-bottom: 8px;
}
.table-cell:last-child {
margin-bottom: 0;
}
}