Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Unique list/styles.css: Difference between revisions

Template page
One-page unique list with every item box, made from the item pages
One-page unique list with every item box, made from the item pages
 
(3 intermediate revisions by the same user not shown)
Line 18: Line 18:


/* one tiered unique: its six tiers in one row, scrolling sideways when the screen is narrower */
/* one tiered unique: its six tiers in one row, scrolling sideways when the screen is narrower */
/* one tiered unique: the picture cell on the left over both rows, its six tiers in 3 x 2 */
.unique-tiers {
.unique-tiers {
display: grid;
display: grid;
grid-template-columns: 116px repeat( 6, minmax( 140px, 1fr ) );
grid-template-columns: 130px repeat( 3, minmax( 0, 1fr ) );
gap: 6px;
gap: 6px;
margin: 0 0 14px;
margin: 0 0 16px;
overflow-x: auto;
padding-bottom: 4px;
}
}


.unique-tiers .d2-item.d2-item-inline {
.unique-tiers .d2-item.d2-item-inline {
padding: 9px 8px;
padding: 10px 12px;
font-size: 0.82em;
font-size: 0.9em;
}
 
.unique-tiers .unique-tiers-head {
grid-row: span 2;
}
}


Line 50: Line 53:
word-break: normal;
word-break: normal;
hyphens: manual;
hyphens: manual;
}
/* [[Sacred uniques]], [[Other uniques]]: the boxes of a type three to a row, as wide as the tiered rows */
.unique-grid {
display: grid;
grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
gap: 6px;
margin: 0 0 16px;
}
.unique-grid .d2-item.d2-item-inline {
padding: 12px 12px;
font-size: 0.9em;
}
}


Line 59: Line 75:


/* [[Gems and runes]] (gems_runes.py): five grades per gem, the socket kinds under each grade, rune boxes */
/* [[Gems and runes]] (gems_runes.py): five grades per gem, the socket kinds under each grade, rune boxes */
/* a gem: its picture cell and five grades fill 3 x 2 */
.unique-tiers.gem-grades {
.unique-tiers.gem-grades {
grid-template-columns: 116px repeat( 5, minmax( 150px, 1fr ) );
grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}
 
.unique-tiers.gem-grades .unique-tiers-head {
grid-row: auto;
}
}


Line 75: Line 96:
color: #9a9a9a;
color: #9a9a9a;
font-size: 0.88em;
font-size: 0.88em;
}
/* cube_pictures.py / orb_boxes.py: small pictures on recipe lines, shrine and orb boxes */
.cube-pic img {
vertical-align: middle;
margin: -3px 0 -2px;
}
.d2-item.d2-item-inline.shrine-box,
.d2-item.d2-item-inline.orb-box {
flex: 0 1 240px;
}
.d2-item.d2-item-inline.shrine-small {
flex: 0 1 150px;
padding: 8px 6px;
font-size: 0.85em;
}
.shrine-row {
margin: 0.6em 0 1em;
}
}


Line 82: Line 124:


@media ( max-width: 719px ) {
@media ( max-width: 719px ) {
.unique-grid {
grid-template-columns: minmax( 0, 1fr );
}
/* on a phone: two columns, the picture cell across the top */
.unique-tiers,
.unique-tiers.gem-grades {
.unique-tiers.gem-grades {
grid-template-columns: 124px repeat( 5, 180px );
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}
}


/* on a phone the picture cell stays put while the tiers scroll past it */
.unique-tiers .unique-tiers-head {
.unique-tiers .unique-tiers-head {
position: sticky;
grid-row: auto;
left: 0;
grid-column: 1 / -1;
z-index: 1;
font-size: 0.82em;
}
}
}


@media ( max-width: 719px ) {
.unique-tiers .d2-item.d2-item-inline {
.unique-tiers {
padding: 8px 6px;
grid-template-columns: 124px repeat( 6, 190px );
font-size: 0.84em;
}
}
}
}

Latest revision as of 17:24, 13 November 2026

/* one-page unique lists ([[Tiered uniques]], [[Sacred uniques]], [[Other uniques]]); made by
   /root/wiki-tools/unique_lists.py */
.unique-list-jump {
	margin: 0.6em 0 1.4em;
	line-height: 2;
}

.unique-list-jump b {
	display: inline-block;
	min-width: 5.5em;
}

.unique-list-count {
	margin: -0.3em 0 0.6em;
	color: var( --color-subtle );
	font-size: 0.9em;
}

/* one tiered unique: its six tiers in one row, scrolling sideways when the screen is narrower */
/* one tiered unique: the picture cell on the left over both rows, its six tiers in 3 x 2 */
.unique-tiers {
	display: grid;
	grid-template-columns: 130px repeat( 3, minmax( 0, 1fr ) );
	gap: 6px;
	margin: 0 0 16px;
}

.unique-tiers .d2-item.d2-item-inline {
	padding: 10px 12px;
	font-size: 0.9em;
}

.unique-tiers .unique-tiers-head {
	grid-row: span 2;
}

/* the row's first cell: the picture, name and base once, then the six tiers to its right */
.unique-tiers .unique-tiers-head {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px 6px;
	font-size: 0.9em;
}

.unique-tiers .unique-tiers-head .d2-item-image img {
	max-width: 100%;
	height: auto;
}

.unique-tiers .unique-tiers-head .d2-item-name {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}

/* [[Sacred uniques]], [[Other uniques]]: the boxes of a type three to a row, as wide as the tiered rows */
.unique-grid {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 6px;
	margin: 0 0 16px;
}

.unique-grid .d2-item.d2-item-inline {
	padding: 12px 12px;
	font-size: 0.9em;
}

/* "Tier N" over each tier's stats */
.unique-tiers .unique-tier-title {
	font-size: 1.05em;
	margin-bottom: 2px;
}

/* [[Gems and runes]] (gems_runes.py): five grades per gem, the socket kinds under each grade, rune boxes */
/* a gem: its picture cell and five grades fill 3 x 2 */
.unique-tiers.gem-grades {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.unique-tiers.gem-grades .unique-tiers-head {
	grid-row: auto;
}

.gem-box .gem-icon img {
	max-height: 40px;
	width: auto;
}

.gem-slot {
	margin-top: 6px;
}

.gem-slot-label {
	color: #9a9a9a;
	font-size: 0.88em;
}

/* cube_pictures.py / orb_boxes.py: small pictures on recipe lines, shrine and orb boxes */
.cube-pic img {
	vertical-align: middle;
	margin: -3px 0 -2px;
}

.d2-item.d2-item-inline.shrine-box,
.d2-item.d2-item-inline.orb-box {
	flex: 0 1 240px;
}

.d2-item.d2-item-inline.shrine-small {
	flex: 0 1 150px;
	padding: 8px 6px;
	font-size: 0.85em;
}

.shrine-row {
	margin: 0.6em 0 1em;
}

.d2-item.d2-item-inline.rune-box {
	flex: 0 1 200px;
}

@media ( max-width: 719px ) {
	.unique-grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	/* on a phone: two columns, the picture cell across the top */
	.unique-tiers,
	.unique-tiers.gem-grades {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.unique-tiers .unique-tiers-head {
		grid-row: auto;
		grid-column: 1 / -1;
	}

	.unique-tiers .d2-item.d2-item-inline {
		padding: 8px 6px;
		font-size: 0.84em;
	}
}

.unique-list .d2-item-name a,
.unique-list .d2-item-name a:visited {
	color: inherit;
	text-decoration: none;
}

.unique-list .d2-item-name a:hover {
	text-decoration: underline;
}