Template:Color/styles.css: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Removed fixed height of box and width of fill: global font size setting boutta ruin your day lmfao)
(Undo revision 8066 by -lime.owotwiki (talk) It was fine as it was; now it's too big.)
Tag: Manual revert
Line 4: Line 4:
border-radius: 4px;
border-radius: 4px;
display: inline-flex;
display: inline-flex;
height: 1em;
margin: 0;
margin: 0;
padding: 2px;
padding: 2px;
Line 12: Line 13:
background-color: white;
background-color: white;
border-radius: 4px 0 0 4px;
border-radius: 4px 0 0 4px;
font-family: 'Courier New', monospace;
font-family: monospace;
margin: 0;
margin: 0;
padding: 3px;
padding: 0 1px 0 1px;
line-height: 1;
}
}


Line 21: Line 21:
border-radius: 0 4px 4px 0;
border-radius: 0 4px 4px 0;
margin: 0;
margin: 0;
width: calc(1em + 5px);
width: 1em;
}
}

Revision as of 10:52, 20 December 2024

.color-box {
	background: #eee;
	border: 1px solid black;
	border-radius: 4px;
	display: inline-flex;
	height: 1em;
	margin: 0;
	padding: 2px;
}

.color-text {
	color: black;
	background-color: white;
	border-radius: 4px 0 0 4px;
	font-family: monospace;
	margin: 0;
	padding: 0 1px 0 1px;
}

.color-fill {
	border-radius: 0 4px 4px 0;
	margin: 0;
	width: 1em;
}