mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
removed _colors.scss dependency
This commit is contained in:
parent
dd7d7decdb
commit
71204da8f8
@ -1,184 +0,0 @@
|
|||||||
$base-color: #332f35;
|
|
||||||
$shop: #b63831;
|
|
||||||
$red: #e3474a;
|
|
||||||
$orange: #df7c25;
|
|
||||||
$green: #70a630;
|
|
||||||
|
|
||||||
$palettes: (
|
|
||||||
base: (
|
|
||||||
background: (
|
|
||||||
default: $base-color,
|
|
||||||
hover: lighten($base-color, 5%),
|
|
||||||
lighthover: lighten($base-color, 4%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 20%),
|
|
||||||
text: lighten($base-color, 50%),
|
|
||||||
bold: lighten($base-color, 60%),
|
|
||||||
weak: lighten($base-color, 30%),
|
|
||||||
link: lighten($base-color, 100%),
|
|
||||||
h1: lighten($base-color, 100%),
|
|
||||||
h2: lighten($base-color, 70%),
|
|
||||||
h3: lighten($base-color, 60%),
|
|
||||||
surveyQuestion: lighten($base-color, 60%),
|
|
||||||
hover: lighten($base-color, 40%),
|
|
||||||
separator: lighten($base-color, 5%),
|
|
||||||
disabled: lighten($base-color, 10%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
user-menu: (
|
|
||||||
background: (
|
|
||||||
default: darken($base-color, 3%),
|
|
||||||
hover: darken($base-color, 1.5%),
|
|
||||||
highlight: lighten($base-color, 3%),
|
|
||||||
highlight-hover: lighten($base-color, 5%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 50%),
|
|
||||||
symbol: lighten($base-color, 8%),
|
|
||||||
text: lighten($base-color, 50%),
|
|
||||||
hover: lighten($base-color, 100%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
menu: (
|
|
||||||
background: (
|
|
||||||
default: lighten($base-color, 5%),
|
|
||||||
hover: lighten($base-color, 15%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 50%),
|
|
||||||
hover: lighten($base-color, 100%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
button: (
|
|
||||||
background: (
|
|
||||||
default: lighten($base-color, 10%),
|
|
||||||
hover: lighten($base-color, 15%),
|
|
||||||
weak: lighten($base-color, 5%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 50%),
|
|
||||||
dropdown: lighten($base-color, 50%),
|
|
||||||
text: lighten($base-color, 60%),
|
|
||||||
symbol: lighten($base-color, 50%),
|
|
||||||
indent: lighten($base-color, 5%),
|
|
||||||
weak: lighten($base-color, 25%),
|
|
||||||
hover: lighten($base-color, 75%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
selectedTool: (
|
|
||||||
background: (
|
|
||||||
default: lighten($base-color, 10%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 50%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
subbutton: (
|
|
||||||
background: (
|
|
||||||
hover: lighten($base-color, 15%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 30%),
|
|
||||||
hover: lighten($base-color, 50%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
indent: (
|
|
||||||
background: (
|
|
||||||
default: darken($base-color, 4%),
|
|
||||||
separator: darken($base-color, 8%),
|
|
||||||
hover: lighten($base-color, 5%),
|
|
||||||
outline: lighten($base-color, 10%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: #fff,
|
|
||||||
text: lighten($base-color, 40%),
|
|
||||||
symbol: lighten($base-color, 5%),
|
|
||||||
symbol-hover: lighten($base-color, 20%),
|
|
||||||
weak: lighten($base-color, 20%),
|
|
||||||
form: lighten($base-color, 50%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
indent-dark: (
|
|
||||||
background: (
|
|
||||||
default: darken($base-color, 6%),
|
|
||||||
separator: darken($base-color, 11%),
|
|
||||||
button: lighten($base-color, 2.5%),
|
|
||||||
button-hover: lighten($base-color, 5%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 30%),
|
|
||||||
link: lighten($base-color, 40%),
|
|
||||||
hover: lighten($base-color, 50%),
|
|
||||||
button: lighten($base-color, 50%),
|
|
||||||
button-hover: lighten($base-color, 70%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
indent-darker: (
|
|
||||||
background: (
|
|
||||||
default: darken($base-color, 8%),
|
|
||||||
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 15%),
|
|
||||||
)
|
|
||||||
),
|
|
||||||
footer: (
|
|
||||||
background: (
|
|
||||||
default: darken($base-color, 9%),
|
|
||||||
hover: darken($base-color, 2%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 20%),
|
|
||||||
hover: lighten($base-color, 35%),
|
|
||||||
symbol: lighten($base-color, 7.5%),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
warning-banner: (
|
|
||||||
background: (
|
|
||||||
default: lighten($base-color, 10%),
|
|
||||||
button: lighten($base-color, 20%),
|
|
||||||
button-hover: lighten($base-color, 25%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 50%),
|
|
||||||
button: lighten($base-color, 40%),
|
|
||||||
button-hover: lighten($base-color, 45%),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
image-label: (
|
|
||||||
background: (
|
|
||||||
default: lighten($base-color, 15%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($base-color, 80%),
|
|
||||||
),
|
|
||||||
triangle: (
|
|
||||||
default: lighten($base-color, 6%),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
shop: (
|
|
||||||
background: (
|
|
||||||
default: $shop,
|
|
||||||
hover: lighten($shop, 5%),
|
|
||||||
),
|
|
||||||
foreground: (
|
|
||||||
default: lighten($shop, 65%),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
@function color($element: 'base', $location: 'background', $hover: 'default') {
|
|
||||||
@return map-get(map-get(map-get($palettes, $element), $location), $hover);
|
|
||||||
}
|
|
||||||
|
|
||||||
$twitter: #00b6f1;
|
|
||||||
$patreon: #F96854;
|
|
||||||
$facebook: #3b5998;
|
|
||||||
$reddit: #ff5700;
|
|
||||||
$youtube: #b31217;
|
|
||||||
$pintrest: #cb2027;
|
|
||||||
$tumblr: #2c4762;
|
|
||||||
$deviantart: #4a5d4e;
|
|
||||||
$instagram: #c2368a;
|
|
||||||
$pixeljoint: #73d731;
|
|
@ -1,7 +1,25 @@
|
|||||||
@import 'colors';
|
|
||||||
@import 'zindex';
|
@import 'zindex';
|
||||||
|
|
||||||
|
$basecolor: #332f35; //color(base)
|
||||||
|
$basetext: lighten($basecolor, 50%); //color(menu, foreground), color(base, foreground, text)
|
||||||
|
$basetextweak: lighten($basecolor, 30%); //color(menu, foreground), color(base, foreground, text)
|
||||||
|
$baselink: lighten($basecolor, 100%); //color(menu, foreground), color(base, foreground, text)
|
||||||
|
$baseicon: lighten($basecolor, 25%); //color(base, foreground)
|
||||||
|
$basehover: lighten($basecolor, 6%); //color(base, background, hover), color(button), color(menu), color(menu, background, hover)
|
||||||
|
$basehovertext: lighten($basecolor, 60%); //color(base, foreground, bold), color(menu, foreground, hover), color(button, foreground)
|
||||||
|
$basehovericon: lighten($basecolor, 40%); //color(base, foreground, hover)
|
||||||
|
$basehovericonhover: lighten($basecolor, 60%); //color(base, foreground, hover)
|
||||||
|
$baseselected: lighten($basecolor, 15%); //color(selectedTool, background), color(button, background, hover)
|
||||||
|
$baseselectedtext: lighten($basecolor, 80%); //color(base, foreground, bold)
|
||||||
|
$baseselectedicon: lighten($basecolor, 50%); //color(subbutton, foreground), color(selectedTool, foreground)
|
||||||
|
$baseselectediconhover: lighten($basecolor, 70%); //color(subbutton, foreground, hover)
|
||||||
|
$baseselectedhover: lighten($basecolor, 25%); //color(subbutton, background, hover)
|
||||||
|
$indent: darken($basecolor, 5%); //color(indent)
|
||||||
|
$indenttext: lighten($basecolor, 50%); //color(indent, foreground)
|
||||||
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: color(indent-dark);
|
background: darken($basecolor, 6%);
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -32,19 +50,18 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
margin-right: 200px;
|
margin-right: 200px;
|
||||||
/*border:1px solid color(menu, foreground);*/
|
/*border:1px solid $basetext;*/
|
||||||
|
|
||||||
list-style: none;
|
list-style: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1200;
|
z-index: 1200;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
|
|
||||||
background-color: color(base);
|
background-color: $basecolor;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|
||||||
li button {
|
li button {
|
||||||
color: color(menu, foreground);
|
color: $basetext;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background: none;
|
background: none;
|
||||||
@ -54,19 +71,27 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
li button:hover {
|
li button:hover {
|
||||||
background-color:color(menu, background);
|
background-color: $basehover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview-canvas {
|
.preview-canvas {
|
||||||
image-rendering:optimizeSpeed; /* Legal fallback */
|
image-rendering: optimizeSpeed;
|
||||||
image-rendering:-moz-crisp-edges; /* Firefox */
|
/* Legal fallback */
|
||||||
image-rendering:-o-crisp-edges; /* Opera */
|
image-rendering: -moz-crisp-edges;
|
||||||
image-rendering:-webkit-optimize-contrast; /* Safari */
|
/* Firefox */
|
||||||
image-rendering:optimize-contrast; /* CSS3 Proposed */
|
image-rendering: -o-crisp-edges;
|
||||||
image-rendering:crisp-edges; /* CSS4 Proposed */
|
/* Opera */
|
||||||
image-rendering:pixelated; /* CSS4 Proposed */
|
image-rendering: -webkit-optimize-contrast;
|
||||||
-ms-interpolation-mode:nearest-neighbor; /* IE8+ */
|
/* Safari */
|
||||||
|
image-rendering: optimize-contrast;
|
||||||
|
/* CSS3 Proposed */
|
||||||
|
image-rendering: crisp-edges;
|
||||||
|
/* CSS4 Proposed */
|
||||||
|
image-rendering: pixelated;
|
||||||
|
/* CSS4 Proposed */
|
||||||
|
-ms-interpolation-mode: nearest-neighbor;
|
||||||
|
/* IE8+ */
|
||||||
}
|
}
|
||||||
|
|
||||||
#layers-menu {
|
#layers-menu {
|
||||||
@ -94,19 +119,16 @@ body {
|
|||||||
right:0;
|
right:0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: color(base);
|
background-color: $basecolor;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1120;
|
z-index: 1120;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
overflow-y:scroll;
|
overflow-y:scroll;
|
||||||
overflow-x:hidden;
|
overflow-x:hidden; // TODO: make the scroll bar a bit fancier
|
||||||
|
|
||||||
// TODO: make the scroll bar a bit fancier
|
|
||||||
|
|
||||||
#add-layer-button {
|
#add-layer-button {
|
||||||
path {
|
path {
|
||||||
fill:color(menu, foreground);
|
fill: $baseicon;
|
||||||
}
|
}
|
||||||
svg {
|
svg {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -118,44 +140,48 @@ body {
|
|||||||
align-items:center;
|
align-items:center;
|
||||||
margin-top:2px;
|
margin-top:2px;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
color: color(menu, foreground);
|
color: $basetext;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 17px;
|
padding: 17px;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: color(menu);
|
|
||||||
|
|
||||||
transition: color 0.2s, background-color 0.2s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#add-layer-button:hover {
|
#add-layer-button:hover {
|
||||||
color: color(base, foreground, bold);
|
color: $basehovertext;
|
||||||
background-color: color(base, foreground, default);
|
background-color: $basehover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.selected-layer {
|
.selected-layer {
|
||||||
ul.layer-buttons li{
|
ul.layer-buttons li.layer-button {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
button svg path {
|
||||||
|
fill: $baseselectedicon;
|
||||||
}
|
}
|
||||||
|
|
||||||
color: color(base, foreground, bold);
|
&:hover button svg path {
|
||||||
background-color: color(base, foreground, default);
|
fill: $baseselectediconhover;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
color: $baseselectedtext;
|
||||||
|
background-color: $baseselected !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layerdragover {
|
.layerdragover {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
border-top: 3px solid color(base, foreground, bold);
|
border-top: 3px solid $basehovertext;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layers-menu-entry {
|
.layers-menu-entry {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
color: color(base, foreground, text);
|
color: $basetext;
|
||||||
background-color: color(menu, background);
|
background-color: lighten($basecolor, 4%);
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -173,12 +199,11 @@ body {
|
|||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground);
|
fill: $basehovericon;
|
||||||
}
|
}
|
||||||
li:hover {
|
li:hover {
|
||||||
background: color(base, background, hover);
|
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground, hover);
|
fill: $basehovericonhover;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -188,13 +213,11 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.lock-layer-button, .hide-layer-button {
|
.lock-layer-button,
|
||||||
color: color(menu, foreground);
|
.hide-layer-button {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: color(menu);
|
|
||||||
transition: color 0.2s, background-color 0.2s;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
@ -216,18 +239,15 @@ body {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
transition: color 0.1s, background-color 0.1s;
|
|
||||||
-moz-transition: color 0.1s, background-color 0.1s;
|
|
||||||
-webkit-transition: color 0.1s, background-color 0.1s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.layers-menu-entry:hover, .selected-layer {
|
.layers-menu-entry:hover {
|
||||||
ul.layer-buttons li {
|
ul.layer-buttons li {
|
||||||
visibility: visible !important;
|
visibility: visible !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
color: color(base, foreground, bold);
|
color: $basehovertext;
|
||||||
background-color: color(base, foreground, default);
|
background-color: $basehover;
|
||||||
}
|
}
|
||||||
|
|
||||||
//don't let svg handle click events, just send to parents
|
//don't let svg handle click events, just send to parents
|
||||||
@ -245,21 +265,29 @@ svg {
|
|||||||
|
|
||||||
.weak {
|
.weak {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
color: color(base,foreground,weak);
|
color: $basetextweak;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawingCanvas {
|
.drawingCanvas {
|
||||||
cursor: url('/pixel-art-where-to-start/pencil-tool-cursor.png');
|
cursor: url('/pixel-art-where-to-start/pencil-tool-cursor.png');
|
||||||
|
|
||||||
border: solid 1px #fff;
|
border: solid 1px #fff;
|
||||||
image-rendering:optimizeSpeed; /* Legal fallback */
|
image-rendering: optimizeSpeed;
|
||||||
image-rendering:-moz-crisp-edges; /* Firefox */
|
/* Legal fallback */
|
||||||
image-rendering:-o-crisp-edges; /* Opera */
|
image-rendering: -moz-crisp-edges;
|
||||||
image-rendering:-webkit-optimize-contrast; /* Safari */
|
/* Firefox */
|
||||||
image-rendering:optimize-contrast; /* CSS3 Proposed */
|
image-rendering: -o-crisp-edges;
|
||||||
image-rendering:crisp-edges; /* CSS4 Proposed */
|
/* Opera */
|
||||||
image-rendering:pixelated; /* CSS4 Proposed */
|
image-rendering: -webkit-optimize-contrast;
|
||||||
-ms-interpolation-mode:nearest-neighbor; /* IE8+ */
|
/* Safari */
|
||||||
|
image-rendering: optimize-contrast;
|
||||||
|
/* CSS3 Proposed */
|
||||||
|
image-rendering: crisp-edges;
|
||||||
|
/* CSS4 Proposed */
|
||||||
|
image-rendering: pixelated;
|
||||||
|
/* CSS4 Proposed */
|
||||||
|
-ms-interpolation-mode: nearest-neighbor;
|
||||||
|
/* IE8+ */
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 400px;
|
height: 400px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -343,7 +371,7 @@ svg {
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background-color: color(base);
|
background-color: $basecolor;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1110;
|
z-index: 1110;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
@ -351,8 +379,9 @@ svg {
|
|||||||
float: left;
|
float: left;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
li button, li a {
|
li button,
|
||||||
color: color(menu, foreground);
|
li a {
|
||||||
|
color: $basetext;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 17px;
|
padding: 17px;
|
||||||
background: none;
|
background: none;
|
||||||
@ -360,9 +389,9 @@ svg {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
li.selected {
|
li.selected {
|
||||||
background-color: color(menu);
|
background-color: $basehover;
|
||||||
&>button {
|
&>button {
|
||||||
color: color(menu, foreground, hover);
|
color: $basehovertext;
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
display: block;
|
display: block;
|
||||||
@ -375,19 +404,20 @@ svg {
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: color(menu);
|
background-color: $basehover;
|
||||||
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.5);
|
box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.5);
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
li {
|
li {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
button, a {
|
button,
|
||||||
|
a {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding: 8px 32px 8px 16px;
|
padding: 8px 32px 8px 16px;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: color(menu, background, hover);
|
background-color: $baseselected;
|
||||||
color: color(menu, foreground, hover);
|
color: $baseselectedtext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
@ -406,7 +436,7 @@ svg {
|
|||||||
/*app title*/
|
/*app title*/
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
color: #6f6873;
|
color: lighten($basecolor, 20%);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 17px 10px 0;
|
padding: 17px 10px 0;
|
||||||
@ -425,7 +455,7 @@ svg {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: color(base);
|
background-color: $basecolor;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 1120;
|
z-index: 1120;
|
||||||
@ -498,7 +528,7 @@ svg {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
background: color(base);
|
background: $basecolor;
|
||||||
padding: 6px 10px 3px 6px;
|
padding: 6px 10px 3px 6px;
|
||||||
border-radius: 4px 0 0 4px;
|
border-radius: 4px 0 0 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -506,15 +536,14 @@ svg {
|
|||||||
z-index: -1;
|
z-index: -1;
|
||||||
box-shadow: 0px 15px 15px 0px rgba(0, 0, 0, 0.2);
|
box-shadow: 0px 15px 15px 0px rgba(0, 0, 0, 0.2);
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground);
|
fill: $baseicon;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background: color(base, background, hover);
|
background: $basehover;
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground, hover);
|
fill: $basehovericon;
|
||||||
}
|
}
|
||||||
}
|
} //class added when jscolor is opened
|
||||||
//class added when jscolor is opened
|
|
||||||
&.hidden {
|
&.hidden {
|
||||||
left: 0px !important;
|
left: 0px !important;
|
||||||
}
|
}
|
||||||
@ -545,7 +574,7 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#add-color-button {
|
#add-color-button {
|
||||||
background: color(base);
|
background: $basecolor;
|
||||||
|
|
||||||
path {
|
path {
|
||||||
fill: #6f6873;
|
fill: #6f6873;
|
||||||
@ -563,11 +592,11 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#tools-menu li button path {
|
#tools-menu li button path {
|
||||||
fill: color(base, foreground);
|
fill: $baseicon;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tools-menu li:hover button:first-child path {
|
#tools-menu li:hover button:first-child path {
|
||||||
fill: color(base, foreground, hover);
|
fill: $basehovericon;
|
||||||
}
|
}
|
||||||
|
|
||||||
#colors-menu li {
|
#colors-menu li {
|
||||||
@ -575,8 +604,7 @@ svg {
|
|||||||
border: none;
|
border: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
cursor: url('/pixel-editor/eyedropper.png'), auto;
|
cursor: url('/pixel-editor/eyedropper.png'), auto;
|
||||||
}
|
} //white outline
|
||||||
//white outline
|
|
||||||
&.selected button::before {
|
&.selected button::before {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
@ -589,8 +617,7 @@ svg {
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 0.15);
|
box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 0.15);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
} //inner outline
|
||||||
//inner outline
|
|
||||||
&.selected button::after {
|
&.selected button::after {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
@ -609,11 +636,11 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#tools-menu li.selected {
|
#tools-menu li.selected {
|
||||||
background: color(selectedTool, background) !important;
|
background: $baseselected !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tools-menu li.selected button:first-child path {
|
#tools-menu li.selected button:first-child path {
|
||||||
fill: color(selectedTool, foreground);
|
fill: $baseselectedicon;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tools-menu li.selected.expanded {
|
#tools-menu li.selected.expanded {
|
||||||
@ -624,7 +651,7 @@ svg {
|
|||||||
#main-menu li button:hover,
|
#main-menu li button:hover,
|
||||||
#add-color-button:hover,
|
#add-color-button:hover,
|
||||||
#main-menu li.open {
|
#main-menu li.open {
|
||||||
background: color(base, background, hover);
|
background: $basehover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tools-menu-sub-button {
|
.tools-menu-sub-button {
|
||||||
@ -641,12 +668,12 @@ svg {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
||||||
path {
|
path {
|
||||||
fill: color(subbutton, foreground) !important;
|
fill: $baseselectedicon !important;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background: color(subbutton, background, hover) !important;
|
background: $baseselectedhover !important;
|
||||||
path {
|
path {
|
||||||
fill: color(subbutton, foreground, hover) !important;
|
fill: $baseselectediconhover !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -683,10 +710,10 @@ svg {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: rgba(35, 32, 36, 0.75);
|
background-color: rgba(35, 32, 36, 0.75);
|
||||||
display: none;
|
display: none;
|
||||||
color: color(base, foreground, text);
|
color: $basetext;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
&>div {
|
&>div {
|
||||||
background: color(base);
|
background: $basecolor;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
|
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
|
||||||
width: 400px;
|
width: 400px;
|
||||||
@ -699,22 +726,22 @@ svg {
|
|||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0 0 10px;
|
margin: 0 0 10px;
|
||||||
color: color(base, foreground, h1);
|
color: lighten($basecolor, 100%);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
h2 {
|
h2 {
|
||||||
margin: 25px 0 10px;
|
margin: 25px 0 10px;
|
||||||
color: color(base, foreground, h2);
|
color: lighten($basecolor, 70%);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: color(base, foreground, link);
|
color: $baselink;
|
||||||
border-bottom: dotted 1px transparent;
|
border-bottom: dotted 1px transparent;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
&:hover {
|
&:hover {
|
||||||
border-bottom: dotted 1px color(base, foreground, text);
|
border-bottom: dotted 1px $basetext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -726,41 +753,41 @@ svg {
|
|||||||
top: 0;
|
top: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
color: color(base, foreground);
|
color: $baseicon;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 0 3px 0 0;
|
border-radius: 0 3px 0 0;
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground);
|
fill: $baseicon;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
background: color(base, background, hover);
|
background: $basehover;
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground, hover);
|
fill: $basehovericon;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button.default {
|
button.default {
|
||||||
float: right;
|
float: right;
|
||||||
background: color(button);
|
background: $basehover;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: color(button, foreground);
|
color: $basehovertext;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 20px 0 0 10px;
|
margin: 20px 0 0 10px;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: color(button, background, hover);
|
background: $baseselected;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
background: color(indent);
|
background: $indent;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: color(indent, foreground);
|
color: $indenttext;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
@ -768,17 +795,18 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-button {
|
.dropdown-button {
|
||||||
background: color(button) url('/pixel-editor/dropdown-arrow.png') right center no-repeat;
|
background: $basehover url('/pixel-editor/dropdown-arrow.png') right center no-repeat;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: color(button, foreground);
|
color: $basehovertext;
|
||||||
padding: 5px 20px 5px 5px;
|
padding: 5px 20px 5px 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: color(button, background, hover) url('/pixel-editor/dropdown-arrow-hover.png') right center no-repeat;
|
background: $baseselected url('/pixel-editor/dropdown-arrow-hover.png') right center no-repeat;
|
||||||
|
color: $baseselectedtext;
|
||||||
}
|
}
|
||||||
&.selected {
|
&.selected {
|
||||||
border-radius: 4px 4px 0 0;
|
border-radius: 4px 4px 0 0;
|
||||||
@ -786,9 +814,9 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
background: color(button);
|
background: $basehover;
|
||||||
border: none;
|
border: none;
|
||||||
color: color(button, foreground);
|
color: $basehovertext;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: -1px 0 0 0;
|
margin: -1px 0 0 0;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
@ -802,24 +830,24 @@ svg {
|
|||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
background: color(button);
|
background: $basehover;
|
||||||
border: none;
|
border: none;
|
||||||
color: color(button, foreground);
|
color: $basehovertext;
|
||||||
padding: 5px 20px 5px 5px;
|
padding: 5px 20px 5px 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: color(button, background, hover);
|
background: $baseselected;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.keyboard-key {
|
.keyboard-key {
|
||||||
background: lighten($base-color, 20%);
|
background: lighten($basecolor, 20%);
|
||||||
box-shadow: 0 3px 0 2px lighten($base-color, 12%);
|
box-shadow: 0 3px 0 2px lighten($basecolor, 12%);
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
margin: 6px;
|
margin: 6px;
|
||||||
@ -854,7 +882,7 @@ svg {
|
|||||||
.dimentions-x {
|
.dimentions-x {
|
||||||
margin: -2px 7px;
|
margin: -2px 7px;
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground)
|
fill: $baseicon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -864,14 +892,14 @@ svg {
|
|||||||
left: -4px;
|
left: -4px;
|
||||||
right: -4px;
|
right: -4px;
|
||||||
bottom: -7px;
|
bottom: -7px;
|
||||||
color: color(base, foreground, text);
|
color: $basetext;
|
||||||
span {
|
span {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
input {
|
input {
|
||||||
width: 64px;
|
width: 64px;
|
||||||
background: color(indent);
|
background: $indent;
|
||||||
color: color(indent, foreground);
|
color: $indenttext;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: none;
|
border: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -888,15 +916,15 @@ svg {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
float: right;
|
float: right;
|
||||||
path {
|
path {
|
||||||
fill: color(base, foreground);
|
fill: $baseicon;
|
||||||
}
|
}
|
||||||
&:hover path {
|
&:hover path {
|
||||||
fill: color(base, foreground, hover);
|
fill: $basehovericon;
|
||||||
}
|
}
|
||||||
&.disabled {
|
&.disabled {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
& path {
|
& path {
|
||||||
fill: color(base, foreground, disabled) !important;
|
fill: lighten($basecolor, 10%) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -907,7 +935,7 @@ svg {
|
|||||||
|
|
||||||
#cookies-disabled-warning {
|
#cookies-disabled-warning {
|
||||||
display: none;
|
display: none;
|
||||||
color: color(base, foreground, weak);
|
color: $basetextweak;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -929,7 +957,7 @@ svg {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: rgba(35, 32, 36, 0.92);
|
background-color: rgba(35, 32, 36, 0.92);
|
||||||
color: color(base, foreground, text);
|
color: $basetext;
|
||||||
div {
|
div {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -937,7 +965,7 @@ svg {
|
|||||||
|
|
||||||
div {
|
div {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
background-color: color(base);
|
background-color: $basecolor;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
@ -950,24 +978,24 @@ svg {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: color(base, foreground, link);
|
color: $baselink;
|
||||||
border-bottom: dotted 1px transparent;
|
border-bottom: dotted 1px transparent;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
&:hover {
|
&:hover {
|
||||||
border-bottom: dotted 1px color(base, foreground, text);
|
border-bottom: dotted 1px $basetext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
button {
|
button {
|
||||||
background: color(button);
|
background: $basehover;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: color(button, foreground);
|
color: $basehovertext;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: block;
|
display: block;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: color(button, background, hover);
|
background: $baseselected;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user