Module:Portal/styles.css: Difference between revisions
From The Goon Show Depository
m (1 revision imported) |
en>Hike395 (change HTML to use <ul> and <li> to show semantics of portal list) |
||
Line 2: | Line 2: | ||
.portalbox { | .portalbox { | ||
padding: 0; /* Timeless adds padding */ | padding: 0; /* Timeless adds padding */ | ||
margin: 0.5em 0; | |||
display: table; | display: table; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
max-width: 175px; | max-width: 175px; | ||
list-style: none; | |||
} | } | ||
Revision as of 18:13, 27 December 2022
/* {{pp-template}} */
.portalbox {
padding: 0; /* Timeless adds padding */
margin: 0.5em 0;
display: table;
box-sizing: border-box;
max-width: 175px;
list-style: none;
}
.portalborder {
border: solid #aaa 1px;
padding: 0.1em;
background: #f9f9f9;
}
.portalbox-entry {
display: table-row;
font-size: 85%;
line-height: 110%;
font-style: italic;
font-weight: bold;
}
.portalbox-image {
display: table-cell;
padding: 0.2em;
vertical-align: middle;
text-align: center;
}
.portalbox-link {
display: table-cell;
padding: 0.2em 0.2em 0.2em 0.3em;
vertical-align: middle;
}
@media (min-width: 720px) {
.portalleft {
clear: left;
float: left;
margin: 0.5em 1em 0.5em 0
}
.portalright {
clear: right;
float: right;
margin: 0.5em 0 0.5em 1em
}
}