0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-26 14:41:36 -05:00

💄 Fix errors in theme

This commit is contained in:
mathieu.brunot 2019-02-19 15:56:22 +01:00
parent 60e228ec14
commit 957688b47d
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
15 changed files with 41 additions and 34 deletions

View file

@ -209,7 +209,7 @@ h4 {
} }
hr { hr {
border-top: solid 1px $color-gray-light; border-top: solid 1px $soft-ui-border;
border-right: 0; border-right: 0;
border-left: 0; border-left: 0;
border-bottom: 0; border-bottom: 0;

View file

@ -18,7 +18,7 @@ $intense-main-ui-color: darken($main-ui-color, 25%);
// Background colors // Background colors
$primary-ui-bg: #2C2C2C; $primary-ui-bg: #2C2C2C;
$secondary-ui-bg: #3d3f40; $secondary-ui-bg: #3d3f40;
$dark-ui-bg: #232323; $dark-ui-bg: #181818;
// Border color // Border color
$intense-ui-border: #a9adaf; $intense-ui-border: #a9adaf;
@ -38,3 +38,6 @@ $soft-ui-text: #4e4f50;
// Canvas colors // Canvas colors
$canvas-bg: #3d3f40; $canvas-bg: #3d3f40;
$scrollbar-bg: #878c8e; $scrollbar-bg: #878c8e;
// Input colors
$input-bg: $color-dark-bg;

View file

@ -41,3 +41,6 @@ $soft-ui-text: mix($ui-flavour, $color-white, $mix-percentage-light);
// Canvas colors // Canvas colors
$canvas-bg: mix($ui-flavour, $color-white, $mix-percentage-lighter); $canvas-bg: mix($ui-flavour, $color-white, $mix-percentage-lighter);
$scrollbar-bg: mix($ui-flavour, $color-white, $mix-percentage-light); $scrollbar-bg: mix($ui-flavour, $color-white, $mix-percentage-light);
// Input colors
$input-bg: $color-light-bg;

View file

@ -366,9 +366,9 @@ ul.slider-dots {
input, input,
select { select {
background-color: $color-white; background-color: $input-bg;
box-sizing: border-box; box-sizing: border-box;
color: $color-gray; color: $intense-ui-text;
font-family: "sourcesanspro", sans-serif; font-family: "sourcesanspro", sans-serif;
font-size: $fs16; font-size: $fs16;
margin-bottom: $medium; margin-bottom: $medium;
@ -402,7 +402,8 @@ input[type="checkbox"]:focus {
.input-text { .input-text {
border: none; border: none;
border-bottom: 1px solid $color-gray-lighter; border-bottom: 1px solid $soft-ui-border;
background-color: $input-bg;
box-shadow: none; box-shadow: none;
outline: none; outline: none;
padding: $small $big $small $small; padding: $small $big $small $small;
@ -413,7 +414,7 @@ input[type="checkbox"]:focus {
} }
&:focus { &:focus {
border-color: $color-gray; border-color: $intense-ui-border;
box-shadow: none; box-shadow: none;
@include placeholder { @include placeholder {
@ -489,7 +490,7 @@ input.element-name {
height: 20px; height: 20px;
margin-right: 10px; margin-right: 10px;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray-lighter; border: 1px solid $soft-ui-border;
box-shadow: inset 0 0 0 0 $main-ui-color ; box-shadow: inset 0 0 0 0 $main-ui-color ;
box-sizing: border-box; box-sizing: border-box;
} }
@ -904,7 +905,7 @@ input[type=range]:focus::-ms-fill-upper {
&::after { &::after {
align-items: center; align-items: center;
background-color: rgba(255,255,255,.7); background-color: $input-bg;
box-sizing: border-box; box-sizing: border-box;
border-radius: 0; border-radius: 0;
color: $intense-ui-text; color: $intense-ui-text;

View file

@ -6,7 +6,7 @@
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com> // Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
.activity-bar { .activity-bar {
background-color: $color-white; background-color: $primary-ui-bg;
bottom: 0; bottom: 0;
height: 100%; height: 100%;
position: fixed; position: fixed;

View file

@ -8,8 +8,8 @@
.color-palette { .color-palette {
@include animation(0,.5s,fadeInUp); @include animation(0,.5s,fadeInUp);
align-items: center; align-items: center;
background-color: $color-white; background-color: $primary-ui-bg;
border-top: 1px solid $color-gray-lighter; border-top: 1px solid $soft-ui-border;
bottom: 0; bottom: 0;
display: flex; display: flex;
left: 0; left: 0;

View file

@ -174,7 +174,7 @@
} }
.colorpicker-tooltip { .colorpicker-tooltip {
background: $color-white; background: $primary-ui-bg;
border-radius: $br-small; border-radius: $br-small;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -32,7 +32,7 @@
.input-select { .input-select {
background-color: transparent; background-color: transparent;
border-color: $color-gray; border-color: $soft-ui-border;
font-size: $fs14; font-size: $fs14;
margin-bottom: 0; margin-bottom: 0;
margin-left: $medium; margin-left: $medium;
@ -47,7 +47,7 @@
margin-left: $small; margin-left: $small;
.input-text { .input-text {
background: rgba(255,255,255,.4); background: $input-bg;
border: 0; border: 0;
color: $intense-ui-text; color: $intense-ui-text;
padding: 4px 8px; padding: 4px 8px;
@ -57,7 +57,7 @@
.clear-search { .clear-search {
align-items: center; align-items: center;
background: rgba(255,255,255,.4); background: $input-bg;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
height: 28px; height: 28px;

View file

@ -25,13 +25,13 @@
width: 100%; width: 100%;
.edit { .edit {
padding: 5px 10px; padding: 5px 10px;
background: $color-white; background: $primary-ui-bg;
border: none; border: none;
height: 100%; height: 100%;
} }
.close { .close {
padding: 5px 10px; padding: 5px 10px;
background: $color-white; background: $primary-ui-bg;
cursor: pointer; cursor: pointer;
svg { svg {
transform: rotate(45deg); transform: rotate(45deg);
@ -169,8 +169,8 @@
// PROJECTS, ELEMENTS & ICONS GRID // PROJECTS, ELEMENTS & ICONS GRID
&.project-th { &.project-th {
background-color: $color-white; background-color: $primary-ui-bg;
border-bottom: 2px solid lighten($color-gray-light, 12%); border-bottom: 2px solid lighten($soft-ui-border, 12%);
&:hover { &:hover {
border-color: $main-ui-color; border-color: $main-ui-color;
@ -252,7 +252,7 @@
// IMAGES SECTION // IMAGES SECTION
&.images-th { &.images-th {
background-color: $color-white; background-color: $primary-ui-bg;
border-bottom: 2px solid lighten($color-gray-light, 12%); border-bottom: 2px solid lighten($color-gray-light, 12%);
&:hover { &:hover {
@ -332,7 +332,7 @@
.multiselect-bar { .multiselect-bar {
@include animation(0,.5s,fadeInUp); @include animation(0,.5s,fadeInUp);
align-items: center; align-items: center;
background-color: $color-white; background-color: $primary-ui-bg;
display: flex; display: flex;
left: 0; left: 0;
justify-content: center; justify-content: center;
@ -387,7 +387,7 @@
position: relative; position: relative;
.move-list { .move-list {
background-color: $color-white; background-color: $dark-ui-bg;
border-radius: $br-small; border-radius: $br-small;
bottom: 30px; bottom: 30px;
display: flex; display: flex;

View file

@ -6,7 +6,7 @@
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com> // Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
.library-bar { .library-bar {
background-color: $color-white; background-color: $primary-ui-bg;
bottom: 0; bottom: 0;
height: 100%; height: 100%;
left: 0; left: 0;
@ -21,14 +21,14 @@
.library-tabs { .library-tabs {
align-items: center; align-items: center;
background-color: $color-gray-lighter; background-color: $secondary-ui-bg;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
margin: 0; margin: 0;
padding-top: 12px; padding-top: 12px;
li { li {
background-color: darken($color-gray-lighter, 10%); background-color: darken($secondary-ui-bg, 10%);
border-top-left-radius: 3px; border-top-left-radius: 3px;
border-top-right-radius: 3px; border-top-right-radius: 3px;
color: $color-gray; color: $color-gray;
@ -44,7 +44,7 @@
} }
&.current { &.current {
background-color: $color-white; background-color: $primary-ui-bg;
color: $main-ui-color; color: $main-ui-color;
} }
@ -60,7 +60,7 @@
padding-bottom: 20px; padding-bottom: 20px;
li { li {
border-bottom: 1px solid $color-gray-lighter; border-bottom: 1px solid $secondary-ui-bg;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -83,7 +83,7 @@
} }
.close { .close {
background: $color-white; background: $primary-ui-bg;
cursor: pointer; cursor: pointer;
padding: 5px 10px; padding: 5px 10px;

View file

@ -23,7 +23,7 @@
.lightbox-body { .lightbox-body {
align-items: center; align-items: center;
background-color: $color-white; background-color: $secondary-ui-bg;
border-radius: $br-medium; border-radius: $br-medium;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -76,7 +76,7 @@
} }
.dropdown { .dropdown {
background-color: $color-white; background-color: $secondary-ui-bg;
border-radius: $br-small; border-radius: $br-small;
border: 1px solid $soft-ui-border; border: 1px solid $soft-ui-border;
min-width: 150px; min-width: 150px;

View file

@ -36,7 +36,7 @@
} }
&:hover { &:hover {
background-color: $color-white; background-color: $dark-ui-bg;
border-color: $soft-ui-border; border-color: $soft-ui-border;
} }

View file

@ -28,7 +28,7 @@
} }
&:hover { &:hover {
background-color: $color-white; background-color: $primary-ui-bg;
} }
&.selected { &.selected {

View file

@ -190,9 +190,9 @@
.remove-zoom { .remove-zoom {
align-items: center; align-items: center;
border-radius: 50%; border-radius: 50%;
border: 1px solid $medium-ui-border; border: 1px solid $intense-ui-border;
cursor: pointer; cursor: pointer;
color: $medium-ui-border; color: $intense-ui-border;
display: none; display: none;
flex-shrink: 0; flex-shrink: 0;
font-size: $fs20; font-size: $fs20;