Module:Portal/styles.css: Difference between revisions

rename class to portalbox so that it will work on mobile
m (1 revision imported)
(rename class to portalbox so that it will work on mobile)
Line 1: Line 1:
/* {{pp-template}} */
/* {{pp-template}} */
.portal {
.portalbox {
    float: right;
border: solid #aaa 1px;
border: solid #aaa 1px;
padding: 0; /* Timeless adds padding */
padding: 0; /* Timeless adds padding */
}
}


.portal.tleft {
.portalbox.tleft {
margin: 0.5em 1em 0.5em 0
margin: 0.5em 1em 0.5em 0
}
}


.portal.tright {
.portalbox.tright {
margin: 0.5em 0 0.5em 1em
margin: 0.5em 0 0.5em 1em
}
}


.portal > ul {
.portalbox > ul {
display: table;
display: table;
box-sizing: border-box;
box-sizing: border-box;
Line 25: Line 26:
}
}


.portal > ul > li {
.portalbox > ul > li {
display: table-row;
display: table-row;
}
}
.portal > ul > li > span:first-child {
.portalbox > ul > li > span:first-child {
display: table-cell;
display: table-cell;
padding: 0.2em;
padding: 0.2em;
Line 35: Line 36:
}
}


.portal > ul > li > span:last-child {
.portalbox > ul > li > span:last-child {
display: table-cell;
display: table-cell;
padding: 0.2em 0.2em 0.2em 0.3em;
padding: 0.2em 0.2em 0.2em 0.3em;
vertical-align: middle;
vertical-align: middle;
}
}
Anonymous user