Modul:Portal/styles.css: Perbedaan antara revisi

Dari Wiki Javasatu
Loncat ke navigasi Loncat ke pencarian
(Created page with "→‎{{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%; height: 1.9em; →‎sets min height: font-style: italic; font-weight: bold; } .portalbox-image { display: table-cell; padding: 0.2em...")
Tidak ada ringkasan suntingan
Baris 2: Baris 2:
.portalbox {
.portalbox {
padding: 0; /* Timeless adds padding */
padding: 0; /* Timeless adds padding */
margin: 0.5em 0;
display: table;
box-sizing: border-box;
max-width: 175px;
list-style: none;
}
}


.portalborder {
.portalborder {
border: solid #aaa 1px;
border: solid #aaa 1px;
padding: 0.1em;
background: #f9f9f9;
}
}


.portalbox-entry {
.portalbox.tleft {
display: table-row;
margin: 0.5em 1em 0.5em 0
}
 
.portalbox.tright {
margin: 0.5em 0 0.5em 1em
}
 
.portalbox > ul {
display: table;
box-sizing: border-box;
max-width: 175px;
font-size: 85%;
font-size: 85%;
line-height: 110%;
line-height: 110%;
height: 1.9em; /* sets min height */
font-style: italic;
font-style: italic;
font-weight: bold;
font-weight: bold;
}
}


.portalbox-image {
.portalborder > ul {
padding: 0.1em;
background: #f9f9f9;
}
 
.portalbox > ul > li {
display: table-row;
}
.portalbox > ul > li > span:first-child {
display: table-cell;
display: table-cell;
padding: 0.2em;
padding: 0.2em;
Baris 31: Baris 41:
}
}


.portalbox-link {
.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;
}
@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
}
}
}

Revisi per 27 September 2023 08.01

/* {{pp-template}} */
.portalbox {
	padding: 0; /* Timeless adds padding */
}

.portalborder {
	border: solid #aaa 1px;
}

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

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

.portalbox > ul {
	display: table;
	box-sizing: border-box;
	max-width: 175px;
	font-size: 85%;
	line-height: 110%;
	font-style: italic;
	font-weight: bold;
}

.portalborder > ul {
	padding: 0.1em;	
	background: #f9f9f9;
}

.portalbox > ul > li {
	display: table-row;
}
.portalbox > ul > li > span:first-child {
	display: table-cell;
	padding: 0.2em;
	vertical-align: middle;
	text-align: center;
}

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