You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

108 lines
1.8 KiB

.color-palette {
margin: 45px 0;
&-pick {
text-align: center;
font-size: 20px;
margin-bottom: 8px;
}
&-picker {
margin: 12px 0 24px;
&-value {
font-size: 13px;
font-family: Consolas;
}
}
}
.main-color {
display: flex;
&-item {
cursor: pointer;
flex: 1;
height: 80px;
border-radius: 4px;
float: left;
margin-right: 4px;
transition: all .2s;
position: relative;
text-align: center;
padding-top: 28px;
font-family: Consolas;
font-size: 12px;
&:last-child {
margin-right: 0;
}
&:hover {
margin-top: -10px;
height: 90px;
}
}
&-item &-value {
font-size: 12px;
position: absolute;
bottom: -4px;
transform: scale(0.85);
left: 0;
width: 100%;
text-align: center;
opacity: 0;
transition: all .2s ease .1s;
}
}
.color-title {
margin: 0 0 24px;
font-weight: 500;
color: #5c6b77;
font-size: 26px;
text-transform: capitalize;
text-align: center;
}
.color-description {
font-size: 12px;
font-weight: lighter;
color: #777;
display: block;
}
.main-color:hover {
.main-color-item {
padding-top: 4px;
}
.main-color-value {
opacity: 0.7;
bottom: 3px;
}
}
.make-palatte(@color, @index: 1) when (@index <= 10) {
.palatte-@{color}-@{index} {
@background: "@{color}-@{index}";
background: @@background;
}
.make-palatte(@color, (@index + 1)); // next iteration
}
@grey-1: #fbfbfb;
@grey-2: #f7f7f7;
@grey-3: #f5f5f5;
@grey-4: #e9e9e9;
@grey-5: #d9d9d9;
@grey-6: #bfbfbf;
@grey-7: #919191;
@grey-8: #5a5a5a;
@grey-9: #404040;
@grey-10: #222;
.main-color {
.make-palatte(blue);
.make-palatte(purple);
.make-palatte(cyan);
.make-palatte(green);
.make-palatte(pink);
.make-palatte(red);
.make-palatte(orange);
.make-palatte(yellow);
.make-palatte(grey);
}