0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-14 11:09:04 -05:00
penpot/resources/styles/partials/colorpicker.scss

151 lines
2.6 KiB
SCSS
Raw Normal View History

2016-03-01 20:39:13 +02:00
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
2016-04-02 22:43:37 +03:00
.color-picker {
display: flex;
2016-05-18 20:49:05 +03:00
flex-direction: column;
2016-05-18 20:49:05 +03:00
.picker-area {
display: flex;
/* Common stuff */
.picker-wrapper,
.slide-wrapper {
position: relative;
}
.picker-indicator,
.slide-indicator {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
}
.picker,
.slide {
cursor: crosshair;
}
2016-04-02 22:43:37 +03:00
}
2016-05-18 20:49:05 +03:00
.inputs-area {
display: flex;
justify-content: space-around;
2016-04-02 22:43:37 +03:00
}
2016-03-01 20:39:13 +02:00
2016-05-18 20:49:05 +03:00
/* Default skin */
2016-04-02 22:43:37 +03:00
2016-05-18 20:49:05 +03:00
&.theme-default {
padding: 4px;
border-radius: 2px;
width: 230px;
2016-04-02 22:43:37 +03:00
2016-05-18 20:49:05 +03:00
.picker {
width: 200px;
height: 200px;
}
2016-04-02 22:43:37 +03:00
2016-05-18 20:49:05 +03:00
.slide {
width: 20px;
height: 200px;
}
.slide-wrapper {
margin-left: 4px;
}
.picker-indicator {
width: 5px;
height: 5px;
border: 2px solid darkblue;
border-radius: 4px;
opacity: .5;
background-color: white;
}
.slide-indicator {
width: 28px;
height: 10px;
left: -4px;
opacity: .6;
border: 4px solid lightblue;
border-radius: 4px;
background-color: white;
}
.inputs-area {
width: 230px;
}
2016-04-02 22:43:37 +03:00
}
2016-05-18 20:49:05 +03:00
/* Small skin */
2016-04-02 22:43:37 +03:00
2016-05-18 20:49:05 +03:00
&.theme-small {
border-radius: 2px;
2016-04-02 22:43:37 +03:00
2016-05-18 20:49:05 +03:00
.picker {
width: 170px;
height: 170px;
}
2016-04-02 22:43:37 +03:00
2016-05-18 20:49:05 +03:00
.slide {
width: 20px;
height: 170px;
}
.slide-wrapper {
margin-left: 4px;
}
.picker-indicator {
width: 5px;
height: 5px;
border: 2px solid darkblue;
border-radius: 4px;
opacity: .5;
background-color: white;
}
.slide-indicator {
width: 28px;
height: 10px;
left: -4px;
opacity: .6;
border: 4px solid lightblue;
border-radius: 4px;
background-color: white;
}
2016-04-02 22:43:37 +03:00
}
}
2016-04-23 11:42:17 +02:00
/* NEW COLOR PICKER */
/* color th */
.color-data {
align-items: center;
display: flex;
position: relative;
.color-info {
border: 1px solid $soft-ui-border;
border-radius: $br-small;
margin: 3px 0 0 $x-small;
padding: 0 $x-small;
}
.type {
color: $soft-ui-text;
margin-right: $x-small;
}
.number {
color: $intense-ui-text;
}
}
2016-04-23 12:19:46 +02:00
.colorpicker-tooltip {
background: $color-white;
border-radius: $br-small;
display: flex;
flex-direction: column;
left: 0;
padding: $small;
position: absolute;
top: -20px;
z-index: 11;
}