-
Sign Up
-
-
- Already have an account?
- Log In
-
+
+
+
+ p5.js Web Editor | Signup
+
+
+
+
+
+
+
Sign Up
+
+
+ Already have an account?
+ Log In
+
+
);
diff --git a/client/styles/abstracts/_placeholders.scss b/client/styles/abstracts/_placeholders.scss
index dd71f9d2..b7af3212 100644
--- a/client/styles/abstracts/_placeholders.scss
+++ b/client/styles/abstracts/_placeholders.scss
@@ -102,27 +102,6 @@
}
}
-%forms-button {
- background-color: $form-button-background-color;
- color: $form-button-color;
- cursor: pointer;
- border: 2px solid $form-button-color;
- border-radius: 2px;
- padding: #{8 / $base-font-size}rem #{25 / $base-font-size}rem;
- line-height: 1;
- margin: #{39 / $base-font-size}rem 0 #{24 / $base-font-size}rem 0;
- &:enabled:hover {
- border-color: $form-button-background-hover-color;
- background-color: $form-button-background-hover-color;
- color: $form-button-hover-color;
- }
- &:enabled:active {
- border-color: $form-button-background-active-color;
- background-color: $form-button-background-active-color;
- color: $form-button-active-color;
- }
-}
-
%preferences-button {
@extend %toolbar-button;
@include themify() {
diff --git a/client/styles/abstracts/_variables.scss b/client/styles/abstracts/_variables.scss
index 50e43640..6f85f718 100644
--- a/client/styles/abstracts/_variables.scss
+++ b/client/styles/abstracts/_variables.scss
@@ -9,15 +9,22 @@ $orange: #ffa500;
$red: #ff0000;
$lightsteelblue: #B0C4DE;
$dodgerblue: #1E90FF;
-$primary-text-color: #333;
$icon-color: #8b8b8b;
$icon-hover-color: #333;
$p5-contrast-pink: #FFA9D9;
+// Grays
+$dark: #333;
+$middleGray: #7d7d7d;
+$middleLight: #a6a6a6;
+
+// Abstracts
+$primary-text-color: $dark;
+
$themes: (
light: (
logo-color: $p5js-pink,
- primary-text-color: #333,
+ primary-text-color: $primary-text-color,
dropzone-text-color: #333,
modal-button-color: #333,
heading-text-color: #333,
@@ -62,8 +69,22 @@ $themes: (
keyboard-shortcut-color: #757575,
nav-hover-color: $p5js-pink,
error-color: $p5js-pink,
+ table-row-stripe-color: #d6d6d6,
codefold-icon-open: url(../images/down-arrow.svg),
- codefold-icon-closed: url(../images/right-arrow.svg)
+ codefold-icon-closed: url(../images/right-arrow.svg),
+
+ form-title-color: rgba(51, 51, 51, 0.87),
+ form-secondary-title-color: $middleGray,
+ form-input-text-color: $dark,
+ form-input-placeholder-text-color: $middleLight,
+ form-border-color: #b5b5b5,
+ form-button-background-color: $white,
+ form-button-color: #f10046,
+ form-button-background-hover-color: $p5js-pink,
+ form-button-background-active-color: #f10046,
+ form-button-hover-color: $white,
+ form-button-active-color: $white,
+ form-navigation-options-color: #999999
),
dark: (
logo-color: $p5js-pink,
@@ -111,8 +132,20 @@ $themes: (
keyboard-shortcut-color: #B5B5B5,
nav-hover-color: $p5js-pink,
error-color: $p5js-pink,
+ table-row-stripe-color: #3f3f3f,
codefold-icon-open: url(../images/down-arrow-white.svg),
- codefold-icon-closed: url(../images/right-arrow-white.svg)
+ codefold-icon-closed: url(../images/right-arrow-white.svg),
+
+ form-title-color: $white,
+ form-secondary-title-color: #b5b5b5,
+ form-border-color: #b5b5b5,
+ form-button-background-color: $black,
+ form-button-color: #f10046,
+ form-button-background-hover-color: $p5js-pink,
+ form-button-background-active-color: #f10046,
+ form-button-hover-color: $white,
+ form-button-active-color: $white,
+ form-navigation-options-color: #999999
),
contrast: (
logo-color: $yellow,
@@ -159,8 +192,20 @@ $themes: (
keyboard-shortcut-color: #e1e1e1,
nav-hover-color: $yellow,
error-color: $p5-contrast-pink,
+ table-row-stripe-color: #3f3f3f,
codefold-icon-open: url(../images/down-arrow-white.svg),
- codefold-icon-closed: url(../images/right-arrow-white.svg)
+ codefold-icon-closed: url(../images/right-arrow-white.svg),
+
+ form-title-color: $white,
+ form-secondary-title-color: #b5b5b5,
+ form-border-color: #b5b5b5,
+ form-button-background-color: $black,
+ form-button-color: #f10046,
+ form-button-background-hover-color: $p5-contrast-pink,
+ form-button-background-active-color: #f10046,
+ form-button-hover-color: $white,
+ form-button-active-color: $white,
+ form-navigation-options-color: #999999
)
);
@@ -170,15 +215,5 @@ $console-error-color: #ff5f52;
$toast-background-color: #4A4A4A;
$toast-text-color: $white;
-$form-title-color: rgba(51, 51, 51, 0.87);
-$secondary-form-title-color: #b5b5b5;
-$form-button-background-color: $white;
-$form-button-color: #f10046;
-$form-button-background-hover-color: $p5js-pink;
-$form-button-background-active-color: #f10046;
-$form-button-hover-color: $white;
-$form-button-active-color: $white;
-$form-navigation-options-color: #999999;
-
$about-play-background-color: rgba(255, 255, 255, 0.7);
$about-button-border-color: rgba(151, 151, 151, 0.7);
diff --git a/client/styles/base/_base.scss b/client/styles/base/_base.scss
index 75ae3c76..2e839f24 100644
--- a/client/styles/base/_base.scss
+++ b/client/styles/base/_base.scss
@@ -42,12 +42,18 @@ input {
}
}
+button[type="submit"],
input[type="submit"] {
@include themify() {
@extend %button;
}
}
+button[type="submit"]:disabled,
+input[type="submit"]:disabled {
+ cursor: not-allowed;
+}
+
button {
@include themify() {
@extend %link;
diff --git a/client/styles/components/_about.scss b/client/styles/components/_about.scss
index ef7265ed..54929f04 100644
--- a/client/styles/components/_about.scss
+++ b/client/styles/components/_about.scss
@@ -46,7 +46,9 @@
padding-left: #{20 / $base-font-size}rem;
width: #{720 / $base-font-size}rem;
& a {
- color: $form-navigation-options-color;
+ @include themify() {
+ color: getThemifyVariable('form-navigation-options-color');
+ }
}
}
diff --git a/client/styles/components/_account.scss b/client/styles/components/_account.scss
index a03b140f..8a6cb4fc 100644
--- a/client/styles/components/_account.scss
+++ b/client/styles/components/_account.scss
@@ -1,8 +1,7 @@
.account__tabs {
- width: 500px;
padding-top: #{20 / $base-font-size}rem;
}
-.account__social__context {
+.account__social-text {
padding-bottom: #{15 / $base-font-size}rem;
}
diff --git a/client/styles/components/_api-key.scss b/client/styles/components/_api-key.scss
index 16d2bbfe..b3e6bfeb 100644
--- a/client/styles/components/_api-key.scss
+++ b/client/styles/components/_api-key.scss
@@ -50,7 +50,9 @@
}
tbody tr:nth-child(odd) {
- background-color: #f2f2f2;
+ @include themify() {
+ background: getThemifyVariable('table-row-stripe-color');
+ }
}
}
diff --git a/client/styles/components/_asset-list.scss b/client/styles/components/_asset-list.scss
index 76013deb..a8e76c74 100644
--- a/client/styles/components/_asset-list.scss
+++ b/client/styles/components/_asset-list.scss
@@ -35,7 +35,7 @@
&:nth-child(odd) {
@include themify() {
- background: getThemifyVariable('console-header-background-color');
+ background: getThemifyVariable('table-row-stripe-color');
}
}
diff --git a/client/styles/components/_form-container.scss b/client/styles/components/_form-container.scss
index 3514d4f6..a2e6726d 100644
--- a/client/styles/components/_form-container.scss
+++ b/client/styles/components/_form-container.scss
@@ -35,7 +35,9 @@
.form-container__title {
font-weight: normal;
- color: $form-title-color;
+ @include themify() {
+ color: getThemifyVariable('form-title-color')
+ }
}
.form-container__context {
@@ -49,9 +51,9 @@
}
.form-container__logo-button {
- @extend %none-themify-icon;
+ @include icon();
}
.form-container__exit-button {
- @extend %none-themify-icon-with-hover;
+ @include icon();
}
diff --git a/client/styles/components/_forms.scss b/client/styles/components/_forms.scss
index 94ba4501..50a584fa 100644
--- a/client/styles/components/_forms.scss
+++ b/client/styles/components/_forms.scss
@@ -5,7 +5,7 @@
font-size: #{9 / $base-font-size}rem;
text-align: left;
@include themify() {
- color: getThemifyVariable('error-color')
+ color: getThemifyVariable('error-color');
}
}
@@ -22,7 +22,9 @@
.form__navigation-options {
margin-top: #{16 / $base-font-size}rem;
font-size: #{12 / $base-font-size}rem;
- color: $form-navigation-options-color;
+ @include themify() {
+ color: getThemifyVariable('form-navigation-options-color');
+ }
}
.form__legend{
@@ -31,11 +33,13 @@
}
.form__label {
- color: $secondary-form-title-color;
font-size: #{12 / $base-font-size}rem;
margin-top: #{25 / $base-font-size}rem;
margin-bottom: #{7 / $base-font-size}rem;
display: block;
+ @include themify() {
+ color: getThemifyVariable('form-secondary-title-color');
+ }
}
.form__label--hidden {
@@ -43,10 +47,19 @@
}
.form__input {
- width: #{360 / $base-font-size}rem;
+ width: 100%;
+ min-width: #{360 / $base-font-size}rem;
height: #{40 / $base-font-size}rem;
- color: $icon-hover-color;
- border-color: $secondary-form-title-color;
+ font-size: #{16 / $base-font-size}rem;
+ @include themify() {
+ color: getThemifyVariable('form-input-text-color');
+ }
+}
+
+.form__input::placeholder {
+ @include themify() {
+ color: getThemifyVariable('form-input-placeholder-text-color');
+ }
}
.form__context {
@@ -55,13 +68,17 @@
}
.form__status {
- color: $form-navigation-options-color;
+ @include themify() {
+ color: getThemifyVariable('form-navigation-options-color');
+ }
}
-.form input[type="submit"] {
- @extend %forms-button;
+.form [type="submit"] {
+ @extend %button;
+ padding: #{8 / $base-font-size}rem #{25 / $base-font-size}rem;
+ margin: #{39 / $base-font-size}rem 0 #{24 / $base-font-size}rem 0;
}
-.form input[type="submit"]:disabled {
- cursor: not-allowed;
+.form--inline [type="submit"] {
+ margin: 0 0 0 #{24 / $base-font-size}rem;
}
diff --git a/client/styles/components/_modal.scss b/client/styles/components/_modal.scss
index 2d9393c8..b7b56f78 100644
--- a/client/styles/components/_modal.scss
+++ b/client/styles/components/_modal.scss
@@ -10,7 +10,7 @@
.modal-content {
@extend %modal;
min-height: #{150 / $base-font-size}rem;
- width: #{400 / $base-font-size}rem;
+ width: #{700 / $base-font-size}rem;
padding: #{20 / $base-font-size}rem;
.modal--reduced & {
//min-height: #{150 / $base-font-size}rem;
diff --git a/client/styles/components/_nav.scss b/client/styles/components/_nav.scss
index 707636bd..30496400 100644
--- a/client/styles/components/_nav.scss
+++ b/client/styles/components/_nav.scss
@@ -51,10 +51,6 @@
padding-right: #{15 / $base-font-size}rem;
}
-.nav__item-header {
- margin-right: #{5 / $base-font-size}rem;
-}
-
.nav__item:hover {
.nav__item-header {
@include themify() {
@@ -69,6 +65,16 @@
}
}
+.nav__item-header:hover {
+ @include themify() {
+ color: getThemifyVariable('nav-hover-color');
+ }
+}
+
+.nav__item-header-triangle {
+ margin-left: #{5 / $base-font-size}rem;
+}
+
.nav__dropdown {
@include themify() {
background-color: map-get($theme-map, 'modal-background-color');
diff --git a/client/styles/components/_new-password.scss b/client/styles/components/_new-password.scss
index 8f81d48b..fcd3a839 100644
--- a/client/styles/components/_new-password.scss
+++ b/client/styles/components/_new-password.scss
@@ -10,6 +10,8 @@
display: block;
margin-top: #{40 / $base-font-size}rem;
margin-bottom: #{80 / $base-font-size}rem;
- color: $form-navigation-options-color;
+ @include themify() {
+ color: getThemifyVariable('form-navigation-options-color');
+ }
}
-}
\ No newline at end of file
+}
diff --git a/client/styles/components/_preferences.scss b/client/styles/components/_preferences.scss
index 3f77e40a..26d213fd 100644
--- a/client/styles/components/_preferences.scss
+++ b/client/styles/components/_preferences.scss
@@ -60,15 +60,6 @@
text-align: left;
}
-.preference__subheadings {
- display: flex;
- flex-wrap: wrap;
- padding-bottom: #{0.1 / $base-font-size}rem;
- @include themify() {
- border-bottom: 1px solid getThemifyVariable('button-border-color');
- }
-}
-
.preference {
display: flex;
flex-wrap: wrap;
@@ -129,48 +120,6 @@
width: #{44 / $base-font-size}rem;
}
-.react-tabs__tab--selected {
- @include themify() {
- border-bottom: #{4 / $base-font-size}rem solid getThemifyVariable('button-background-hover-color');
- }
-}
-
-.react-tabs__tab--selected .preference__subheading {
- @include themify() {
- color: getThemifyVariable('primary-text-color');
- }
-}
-
-.react-tabs__tab {
- text-align: center;
- color: black;
- display: flex;
- align-items: center;
- border-bottom: #{4 / $base-font-size}rem solid transparent;
- & + & {
- margin-left: #{45 / $base-font-size}rem;
- }
-}
-
-.preference__subheading {
- @include themify() {
- color: getThemifyVariable('inactive-text-color');
- &:hover, &:focus{
- color: getThemifyVariable('primary-text-color');
- cursor: pointer;
- }
- &:focus {
- color: getThemifyVariable('primary-text-color');
- cursor: pointer;
- }
- }
- font-size: #{12 / $base-font-size}rem;
- height: #{20 / $base-font-size}rem;
- width: 100%;
- margin: 0;
- padding: 0 #{5 /$base-font-size}rem;
-}
-
.preference__vertical-list {
display: flex;
flex-direction: column;
diff --git a/client/styles/components/_reset-password.scss b/client/styles/components/_reset-password.scss
index f0bb7608..47109a3a 100644
--- a/client/styles/components/_reset-password.scss
+++ b/client/styles/components/_reset-password.scss
@@ -4,7 +4,9 @@
text-align: left;
font-size: #{12 / $base-font-size}rem;
margin-top: #{10 / $base-font-size}rem;
- color: $form-navigation-options-color;
+ @include themify() {
+ color: getThemifyVariable('form-navigation-options-color');
+ }
padding-right: #{30 / $base-font-size}rem;
padding-left: #{39 / $base-font-size}rem;
.reset-password--submitted & {
diff --git a/client/styles/components/_sketch-list.scss b/client/styles/components/_sketch-list.scss
index 496a2b1c..328b07b2 100644
--- a/client/styles/components/_sketch-list.scss
+++ b/client/styles/components/_sketch-list.scss
@@ -53,7 +53,7 @@
.sketches-table__row:nth-child(odd) {
@include themify() {
- background: getThemifyVariable('console-header-background-color');
+ background: getThemifyVariable('table-row-stripe-color');
}
}
diff --git a/client/styles/components/_tabs.scss b/client/styles/components/_tabs.scss
new file mode 100644
index 00000000..444b7186
--- /dev/null
+++ b/client/styles/components/_tabs.scss
@@ -0,0 +1,69 @@
+.tabs__titles {
+ display: flex;
+ flex-wrap: wrap;
+ padding-bottom: #{0.1 / $base-font-size}rem;
+ @include themify() {
+ border-bottom: 1px solid getThemifyVariable('button-border-color');
+ }
+}
+
+.tabs__title {
+ @include themify() {
+ color: getThemifyVariable('inactive-text-color');
+ &:hover, &:focus{
+ color: getThemifyVariable('primary-text-color');
+ cursor: pointer;
+ }
+ &:focus {
+ color: getThemifyVariable('primary-text-color');
+ cursor: pointer;
+ }
+ }
+ font-size: #{12 / $base-font-size}rem;
+ height: #{20 / $base-font-size}rem;
+ width: 100%;
+ margin: 0;
+ padding: 0 #{5 /$base-font-size}rem;
+}
+
+.react-tabs__tab--selected {
+ @include themify() {
+ border-bottom: #{4 / $base-font-size}rem solid getThemifyVariable('button-background-hover-color');
+ }
+}
+
+.react-tabs__tab--selected .tabs__title {
+ @include themify() {
+ color: getThemifyVariable('primary-text-color');
+ }
+}
+
+.react-tabs__tab {
+ text-align: center;
+ color: black;
+ display: flex;
+ align-items: center;
+ border-bottom: #{4 / $base-font-size}rem solid transparent;
+ & + & {
+ margin-left: #{45 / $base-font-size}rem;
+ }
+}
+
+.tabs__title {
+ @include themify() {
+ color: getThemifyVariable('inactive-text-color');
+ &:hover, &:focus{
+ color: getThemifyVariable('primary-text-color');
+ cursor: pointer;
+ }
+ &:focus {
+ color: getThemifyVariable('primary-text-color');
+ cursor: pointer;
+ }
+ }
+ font-size: #{12 / $base-font-size}rem;
+ height: #{20 / $base-font-size}rem;
+ width: 100%;
+ margin: 0;
+ padding: 0 #{5 /$base-font-size}rem;
+}
diff --git a/client/styles/layout/_user.scss b/client/styles/layout/_user.scss
new file mode 100644
index 00000000..5f07a771
--- /dev/null
+++ b/client/styles/layout/_user.scss
@@ -0,0 +1,10 @@
+.user {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ flex-wrap: wrap;
+ @include themify() {
+ color: getThemifyVariable('primary-text-color');
+ background-color: getThemifyVariable('background-color');
+ }
+}
diff --git a/client/styles/main.scss b/client/styles/main.scss
index cff7ff67..62b8d4cc 100644
--- a/client/styles/main.scss
+++ b/client/styles/main.scss
@@ -45,6 +45,8 @@
@import 'components/feedback';
@import 'components/loader';
@import 'components/uploader';
+@import 'components/tabs';
@import 'layout/ide';
@import 'layout/fullscreen';
+@import 'layout/user';