Jump to content

Template:Color/styles.css: Difference between revisions

-lime.owotwiki (talk | contribs)
Removed fixed height of box and width of fill: global font size setting boutta ruin your day lmfao
Dat Hack3r (talk | contribs)
m Background color of color-box is now determined in-template according to parameters
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
.color-box {
.color-box {
background: #eee;
border: 1px solid black;
border: 1px solid black;
border-radius: 4px;
border-radius: 4px;
display: inline-flex;
display: inline-flex;
height: 1em;
margin: 0;
margin: 0;
padding: 2px;
padding: 2px;
Line 9: Line 9:


.color-text {
.color-text {
align-items: center;
color: black;
color: black;
background-color: white;
background-color: white;
border-radius: 4px 0 0 4px;
border-radius: 4px 0 0 4px;
font-family: 'Courier New', monospace;
display: inline-flex;
font-family: monospace;
margin: 0;
margin: 0;
padding: 3px;
padding: 0 1px 0;
line-height: 1;
}
}


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