Template:Color/styles.css: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) m (Now it looks slightly better.) |
Dat Hack3r (talk | contribs) m (This will (probably) look better.) |
||
Line 18: | Line 18: | ||
.color-fill { | .color-fill { | ||
width: 1em; | width: calc(1em + 4px); | ||
border-radius: 0 4px 4px 0; | border-radius: 0 4px 4px 0; | ||
margin: 0; | margin: 0; | ||
} | } |
Revision as of 11:45, 17 December 2024
.color-box {
display: inline-flex;
border-radius: 4px;
border: 1px solid black;
margin: 0;
padding: 2px;
background: #eee;
}
.color-text {
color: black;
background-color: white;
margin: 0;
padding: 0 1px 0 1px;
border-radius: 4px 0 0 4px;
font-family: monospace;
}
.color-fill {
width: calc(1em + 4px);
border-radius: 0 4px 4px 0;
margin: 0;
}