start to integrate themes to placeholders
This commit is contained in:
parent
103ebd2014
commit
19df6d6ee4
12 changed files with 155 additions and 118 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="17px" height="17px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="16px" height="16px" viewBox="0 0 17 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Generator: Sketch 3.7.2 (28276) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>play</title>
|
||||
<!-- <desc>Created with Sketch.</desc> -->
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -1,4 +1,5 @@
|
|||
%toolbar-button {
|
||||
@include themify() {
|
||||
display: inline-block;
|
||||
height: #{44 / $base-font-size}rem;
|
||||
width: #{44 / $base-font-size}rem;
|
||||
|
@ -8,41 +9,44 @@
|
|||
cursor: pointer;
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: $light-button-background-color;
|
||||
color: $light-button-color;
|
||||
background-color: getThemifyVariable('toolbar-button-background-color');
|
||||
color: getThemifyVariable('toolbar-button-color');
|
||||
& g {
|
||||
fill: $light-toolbar-button-color;
|
||||
fill: getThemifyVariable('toolbar-button-color');
|
||||
}
|
||||
&:hover {
|
||||
background-color: $light-button-background-hover-color;
|
||||
color: $light-button-hover-color;
|
||||
background-color: getThemifyVariable('button-background-hover-color');
|
||||
color: getThemifyVariable('button-hover-color');
|
||||
|
||||
& g {
|
||||
fill: $light-button-hover-color;
|
||||
fill: getThemifyVariable('button-hover-color');
|
||||
}
|
||||
}
|
||||
&--selected {
|
||||
background-color: $light-button-background-hover-color;
|
||||
background-color: getThemifyVariable('button-background-hover-color');
|
||||
& g {
|
||||
fill: $light-button-hover-color;
|
||||
fill: getThemifyVariable('button-hover-color');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
%icon {
|
||||
@include themify() {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
color: $light-icon-color;
|
||||
color: getThemifyVariable('icon-color');
|
||||
& g {
|
||||
fill: $light-icon-color;
|
||||
fill: getThemifyVariable('icon-color');
|
||||
}
|
||||
&:hover {
|
||||
color: $light-icon-hover-color;
|
||||
color: getThemifyVariable('icon-hover-color');
|
||||
& g {
|
||||
opacity: 1;
|
||||
fill: $light-icon-hover-color;
|
||||
fill: getThemifyVariable('icon-hover-color');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -68,19 +72,21 @@
|
|||
|
||||
%preferences-button {
|
||||
@extend %toolbar-button;
|
||||
color: $light-primary-text-color;
|
||||
background-color: $light-modal-button-background-color;
|
||||
@include themify() {
|
||||
color: getThemifyVariable('primary-text-color');
|
||||
background-color: getThemifyVariable('modal-button-background-color');
|
||||
padding: 0;
|
||||
margin-bottom: #{28 / $base-font-size}rem;
|
||||
line-height: #{50 / $base-font-size}rem;
|
||||
& g {
|
||||
fill: $light-primary-text-color;
|
||||
fill: getThemifyVariable('primary-text-color');
|
||||
}
|
||||
&:hover {
|
||||
background-color: $light-button-background-hover-color;
|
||||
color: $light-button-hover-color;
|
||||
background-color: getThemifyVariable('button-background-hover-color');
|
||||
color: getThemifyVariable('button-hover-color');
|
||||
& g {
|
||||
fill: $light-button-hover-color;
|
||||
fill: getThemifyVariable('button-hover-color');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ $themes: (
|
|||
button-color: $black,
|
||||
button-border-color: #979797,
|
||||
toolbar-button-color: $p5js-pink,
|
||||
toolbar-button-background-color: #f4f4f4,
|
||||
button-background-hover-color: $p5js-pink,
|
||||
button-background-active-color: #f10046,
|
||||
button-hover-color: $white,
|
||||
|
@ -38,6 +39,7 @@ $themes: (
|
|||
button-color: $black,
|
||||
button-border-color: #979797,
|
||||
toolbar-button-color: $p5js-pink,
|
||||
toolbar-button-background-color: #424242,
|
||||
button-background-hover-color: $p5js-pink,
|
||||
button-background-active-color: #f10046,
|
||||
button-hover-color: $white,
|
||||
|
|
|
@ -12,8 +12,10 @@
|
|||
}
|
||||
|
||||
.about__exit-button {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
}
|
||||
}
|
||||
|
||||
.about__copy {
|
||||
padding: #{20 / $base-font-size}rem;
|
||||
|
|
|
@ -51,16 +51,20 @@
|
|||
}
|
||||
|
||||
.preview-console__collapse {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
.preview-console--collapsed & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.preview-console__expand {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
display: none;
|
||||
.preview-console--collapsed & {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,12 +62,14 @@
|
|||
}
|
||||
|
||||
.editor__options-button {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
position: absolute;
|
||||
top: #{5 / $base-font-size}rem;
|
||||
right: #{5 / $base-font-size}rem;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.editor__options {
|
||||
display: none;
|
||||
|
|
|
@ -21,8 +21,10 @@
|
|||
}
|
||||
|
||||
.modal__exit-button {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
}
|
||||
}
|
||||
|
||||
.modal__header {
|
||||
display: flex;
|
||||
|
@ -88,8 +90,10 @@
|
|||
}
|
||||
|
||||
.keyboard-shortcuts__close {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
}
|
||||
}
|
||||
|
||||
.keyboard-shortcut-item {
|
||||
display: flex;
|
||||
|
|
|
@ -13,9 +13,11 @@
|
|||
}
|
||||
|
||||
.preferences__exit-button {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
padding-top: #{5 / $base-font-size}rem;
|
||||
}
|
||||
}
|
||||
|
||||
.preference__plus-button {
|
||||
@extend %preferences-button;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
}
|
||||
|
||||
.sidebar__add {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
cursor: pointer;
|
||||
// height: #{26 / $base-font-size}rem;
|
||||
|
@ -27,6 +28,7 @@
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__file-list {
|
||||
border-top: 1px solid $ide-border-color;
|
||||
|
@ -91,6 +93,7 @@
|
|||
}
|
||||
|
||||
.sidebar__file-item-show-options {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
@ -99,6 +102,7 @@
|
|||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__file-item-options {
|
||||
@extend %modal;
|
||||
|
@ -128,6 +132,7 @@
|
|||
}
|
||||
|
||||
.sidebar__contract {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
margin-left: #{10 / $base-font-size}rem;
|
||||
height: #{14 / $base-font-size}rem;
|
||||
|
@ -138,8 +143,10 @@
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__expand {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
height: #{14 / $base-font-size}rem;
|
||||
& svg {
|
||||
|
@ -150,6 +157,7 @@
|
|||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__icons {
|
||||
display: flex;
|
||||
|
|
|
@ -30,5 +30,7 @@
|
|||
}
|
||||
|
||||
.sketch-list__exit-button {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
}
|
||||
}
|
|
@ -10,9 +10,12 @@
|
|||
}
|
||||
|
||||
.toast__close {
|
||||
@include themify() {
|
||||
@extend %icon;
|
||||
color: $toast-text-color;
|
||||
& g {
|
||||
fill: $toast-text-color;
|
||||
}
|
||||
margin-left: #{10 / $base-font-size}rem;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
.toolbar__play-button {
|
||||
@include themify() {
|
||||
@extend %toolbar-button;
|
||||
margin-right: #{15 / $base-font-size}rem;
|
||||
&--selected {
|
||||
|
@ -8,19 +9,23 @@
|
|||
padding-left: #{2 / $base-font-size}rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar__play-sketch-button {
|
||||
@extend %hidden-element;
|
||||
}
|
||||
|
||||
.toolbar__stop-button {
|
||||
@include themify() {
|
||||
@extend %toolbar-button;
|
||||
&--selected {
|
||||
@extend %toolbar-button--selected;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar__preferences-button {
|
||||
@include themify() {
|
||||
@extend %toolbar-button;
|
||||
line-height: #{50 / $base-font-size}rem;
|
||||
margin-left: auto;
|
||||
|
@ -28,9 +33,6 @@
|
|||
@extend %toolbar-button--selected;
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar__shortcut-button {
|
||||
|
||||
}
|
||||
|
||||
.toolbar__logo {
|
||||
|
|
Loading…
Reference in a new issue