mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
Refine color picker styles
This commit is contained in:
@@ -107,6 +107,7 @@ label {
|
||||
|
||||
.tap-highlight {
|
||||
@include tap-highlight();
|
||||
border-radius: $border-radius;
|
||||
}
|
||||
|
||||
.component {
|
||||
|
||||
@@ -11,8 +11,6 @@ $item-spacing-v: $base-height / 2;
|
||||
$item-spacing-h: 0.75rem;
|
||||
$small-component-width: $base-height * $golden;
|
||||
|
||||
|
||||
|
||||
// ---- Colors ------
|
||||
$color-orange: #ff4700;
|
||||
$color-orange-dark: #993d19;
|
||||
@@ -37,4 +35,5 @@ $color-gray-11: #f2f2f2;
|
||||
$button-padding: 0.6rem;
|
||||
$button-padding-ios: 0.5rem;
|
||||
|
||||
$box-shadow-small-components: $color-gray-1 0 0.1rem 0.1rem;
|
||||
$box-shadow-small-components: 0 0.1rem 0.1rem $color-gray-1;
|
||||
$box-shadow-large-components: 0 rem(3px) rem(15px) rgba(0,0,0,0.4);
|
||||
|
||||
@@ -20,17 +20,25 @@
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
position: fixed;
|
||||
padding: 1rem;
|
||||
background: rgba(0,0,0,0.7);
|
||||
padding: $item-spacing-v $item-spacing-h /2;
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
opacity: 0;
|
||||
transition: opacity 70ms ease-in 175ms;
|
||||
transition: opacity 100ms ease-in 175ms;
|
||||
pointer-events: none;
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.picker {
|
||||
padding: 1rem;
|
||||
background: $color-gray-11;
|
||||
padding: $item-spacing-v $item-spacing-h;
|
||||
background: $color-gray-4;
|
||||
box-shadow: $box-shadow-large-components;
|
||||
border-radius: $border-radius;
|
||||
width: 100%;
|
||||
max-width: 26rem;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
&.show {
|
||||
@@ -46,7 +54,6 @@
|
||||
height: 0;
|
||||
width: 100%;
|
||||
padding: 0 0 100% 0; // overridden with inline style
|
||||
margin: 0.6em 0 0;
|
||||
|
||||
.color-box-container {
|
||||
position: absolute;
|
||||
@@ -77,7 +84,7 @@
|
||||
}
|
||||
|
||||
&.selected {
|
||||
transform: scale(1.15);
|
||||
transform: scale(1.1);
|
||||
border-radius: $border-radius;
|
||||
box-shadow: #111 0 0 0.24rem;
|
||||
position: relative;
|
||||
|
||||
Reference in New Issue
Block a user