Jump to content

Template:Color/styles.css: Difference between revisions

Dat Hack3r (talk | contribs)
Created CSS.
 
Dat Hack3r (talk | contribs)
m Background color of color-box is now determined in-template according to parameters
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
.color-box {
.color-box {
    display: inline-flex;
border: 1px solid black;
    border-radius: 4px;
border-radius: 4px;
    border: 1px solid black;
display: inline-flex;
    margin: 0;
height: 1em;
    padding: 2px;
margin: 0;
    background: #eee;
padding: 2px;
}
}


.color-box > span {
.color-text {
    margin: 0;
align-items: center;
color: black;
background-color: white;
border-radius: 4px 0 0 4px;
display: inline-flex;
font-family: monospace;
margin: 0;
padding: 0 1px 0;
}
}


.color-box > .color-text {
.color-fill {
    color: black;
border-radius: 0 4px 4px 0;
    background-color: white;
margin: 0;
    border-radius: 4px 0 0 4px;
width: 1em;
    font-family: monospace;
}
 
.color-box > .color-fill {
    width: 1.75em;
    border-radius: 0 4px 4px 0;
}
}