feat: Color Theme page UI + color picker + toggle

This commit is contained in:
NGPixel
2017-06-24 22:45:23 -04:00
committed by Nicolas Giard
parent a1b6dfb308
commit 00da4e3e05
9 changed files with 161 additions and 11 deletions

View File

@@ -0,0 +1,32 @@
.colorpicker {
display: flex;
align-items: center;
height: 60px;
&-choice {
width: 50px;
height: 50px;
border: 1px solid #FFF;
transition: all .2s ease;
cursor: pointer;
&.is-active, &:hover {
border-width: 5px;
width: 60px;
height: 60px;
}
@each $color, $colorvalue in $material-colors {
&.is-#{$color} {
background-color: mc($color, '500');
border-color: mc($color,'500');
&.is-active, &:hover {
border-color: mc($color,'300');
}
}
}
}
}

View File

@@ -0,0 +1,53 @@
.toggle {
display: inline-flex;
align-items: center;
height: 24px;
cursor: pointer;
margin: 5px 5px 5px 0;
& + & {
margin-left: 15px;
}
&-container {
display: inline-flex;
align-items: center;
height: 24px;
width: 50px;
background-color: mc('grey', '300');
border-radius: 12px;
padding: 2px;
transition: background-color .5s ease;
}
&-pin {
display: flex;
background-color: #FFF;
border-radius:10px;
height: 20px;
width: 20px;
transition: all .5s ease;
}
&-text {
padding-left: 10px;
color: mc('grey', '700');
font-size: 12px;
}
&:hover {
.toggle-container {
background-color: mc('grey', '400');
}
}
&.is-active {
.toggle-container {
background-color: mc('indigo', '500');
}
.toggle-pin {
margin-left: 28px;
}
}
}