Jump to content

Template:Color/styles.css: Difference between revisions

Dat Hack3r (talk | contribs)
I guess flex is still necessary.
Dat Hack3r (talk | contribs)
Trying to center the text.
 
(12 intermediate revisions by 3 users not shown)
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 9: Line 10:


.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;
display: inline-flex;
font-family: monospace;
font-family: monospace;
margin: 0;
margin: 0;
padding: 0 1px 0 1px;
padding: 0 1px 0;
}
}


Line 20: Line 23:
border-radius: 0 4px 4px 0;
border-radius: 0 4px 4px 0;
margin: 0;
margin: 0;
min-width: calc(1em + 4px);
width: 1em;
}
}