1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-27 00:30:09 +02:00

changes for a better dark theme

This commit is contained in:
Kushagra Gour
2018-07-09 23:23:08 +05:30
parent 0f3f7e6a6f
commit 66cf5ef0eb
4 changed files with 89 additions and 69 deletions

View File

@@ -62,7 +62,7 @@ export default class AddLibrary extends Component {
<h1>Add Library</h1> <h1>Add Library</h1>
<div class="flex"> <div class="flex">
<svg style="width: 30px; height: 30px;fill:#999"> <svg style="width: 30px; height: 30px;fill:rgb(255,255,255,0.2)">
<use xlinkHref="#search" /> <use xlinkHref="#search" />
</svg> </svg>
<LibraryAutoSuggest <LibraryAutoSuggest

View File

@@ -21,11 +21,7 @@ class JS13K extends Component {
: 0; : 0;
return ( return (
<div class="flex flex-v-center"> <div class="flex flex-v-center">
<img <img src="js13kgames.png" alt="JS13K Games logo" height="24" />{' '}
src="http://js13kgames.com/img/js13kgames.png"
alt="JS13K Games logo"
height="24"
/>{' '}
<div class="footer__js13k-days-left"> <div class="footer__js13k-days-left">
{this.state.daysLeft} days to go {this.state.daysLeft} days to go
</div> </div>

View File

@@ -304,7 +304,7 @@ export default class Settings extends Component {
class="line" class="line"
title="This timeout is used to indentify a possible infinite loop and prevent it." title="This timeout is used to indentify a possible infinite loop and prevent it."
> >
Maximum time allowed in a loop iteration Maximum time allowed in a loop iteration{' '}
<input <input
type="number" type="number"
value={this.props.prefs.infiniteLoopTimeout} value={this.props.prefs.infiniteLoopTimeout}

View File

@@ -1,8 +1,10 @@
:root { :root {
--color-text: #d4cde9;
--color-bg: #252637; --color-bg: #252637;
--color-sidebar: #3a2b63; --color-popup: #29233c;
--code-font-size: 16px; --code-font-size: 16px;
--color-button: #0074d9; --color-button: #d3a447;
--color-focus-outline: #d3a447;
} }
body { body {
@@ -15,19 +17,38 @@ body {
font-size: 87.5%; font-size: 87.5%;
/* speocifically for mobile when keyboard is open */ /* speocifically for mobile when keyboard is open */
position: relative; position: relative;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol'; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial,
sans-serif, 'Segoe UI Emoji', 'Segoe UI Symbol';
} }
h1 { h1 {
margin-top: 0; margin-top: 0;
} }
select,
input,
textarea {
font-size: inherit;
color: var(--color-text);
background: rgba(0, 0, 0, 0.24);
border: 1px solid rgba(255, 255, 255, 0.09);
border-bottom-color: rgba(255, 255, 255, 0.17);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
border-radius: 3px;
padding: 10px;
box-sizing: border-box;
}
a { a {
text-decoration: none; text-decoration: none;
color: #d61237; color: #f7ae2d;
cursor: pointer; cursor: pointer;
} }
a:hover {
text-decoration: underline;
}
p { p {
line-height: 1.65; line-height: 1.65;
} }
@@ -130,7 +151,7 @@ button {
} }
.support-link { .support-link {
color: #d61237; color: #f7ae2d;
} }
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
@@ -157,7 +178,8 @@ button {
hr { hr {
background: 0; background: 0;
border: 0; border: 0;
border-bottom: 1px solid #dedede; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
margin: 20px 0;
} }
label { label {
@@ -187,18 +209,10 @@ label {
margin-left: 8px; margin-left: 8px;
} }
a>svg { a > svg {
fill: rgba(255, 255, 255, 0.2); fill: rgba(255, 255, 255, 0.2);
} }
select,
input[type='text'],
input[type='number'],
textarea {
padding: 3px 5px;
font-size: inherit;
}
.hidden-select { .hidden-select {
opacity: 0; opacity: 0;
position: absolute; position: absolute;
@@ -212,6 +226,7 @@ textarea {
display: inline-block; display: inline-block;
color: var(--color-button); color: var(--color-button);
font-size: inherit; font-size: inherit;
background: transparent;
border: 3px solid var(--color-button); border: 3px solid var(--color-button);
border-radius: 5px; border-radius: 5px;
padding: 9px 15px; padding: 9px 15px;
@@ -223,7 +238,8 @@ textarea {
} }
.btn--primary { .btn--primary {
background: var(--color-button) linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0px, transparent); background: var(--color-button)
linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0px, transparent);
color: white; color: white;
} }
@@ -242,14 +258,14 @@ textarea {
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
} }
[class*='btn']:focus { *:focus {
outline-width: 4px; outline-width: 4px;
outline-color: #b76b29; outline-color: var(--color-button);
outline-style: solid; outline-style: solid;
outline-offset: 1px; outline-offset: 1px;
} }
.btn-icon>svg { .btn-icon > svg {
width: 20px; width: 20px;
height: 20px; height: 20px;
fill: currentColor; fill: currentColor;
@@ -257,7 +273,7 @@ textarea {
margin-right: 8px; margin-right: 8px;
} }
.btn--big>svg { .btn--big > svg {
width: 25px; width: 25px;
height: 25px; height: 25px;
margin-right: 12px; margin-right: 12px;
@@ -267,7 +283,7 @@ textarea {
display: none; display: none;
} }
.is-loading>svg { .is-loading > svg {
display: none; display: none;
} }
@@ -363,7 +379,7 @@ body:not(.light-version).overlay-visible .main-container {
display: none; display: none;
} }
.layout-4 .code-side+.gutter { .layout-4 .code-side + .gutter {
display: none; display: none;
} }
@@ -450,7 +466,7 @@ body:not(.light-version).overlay-visible .main-container {
} }
.code-wrap__header-btn, .code-wrap__header-btn,
.code-wrap__header-btn>svg { .code-wrap__header-btn > svg {
width: 18px; width: 18px;
height: 18px; height: 18px;
} }
@@ -556,7 +572,7 @@ li.CodeMirror-hint-active {
/* When demo frame is in detached window */ /* When demo frame is in detached window */
body>#demo-frame { body > #demo-frame {
height: 100%; height: 100%;
/* Because console is no more here */ /* Because console is no more here */
} }
@@ -585,9 +601,10 @@ body>#demo-frame {
} }
.btn--dark, .btn--dark,
.main-header__btn-wrap>button { .main-header__btn-wrap > button {
box-sizing: content-box; box-sizing: content-box;
font-size: 0.8em; text-transform: uppercase;
font-size: 12px;
font-weight: bold; font-weight: bold;
line-height: 20px; line-height: 20px;
height: 20px; height: 20px;
@@ -598,18 +615,21 @@ body>#demo-frame {
margin-left: 10px; margin-left: 10px;
padding: 0px 8px; padding: 0px 8px;
border: 1px solid rgba(0, 0, 0, 0.9); border: 1px solid rgba(0, 0, 0, 0.9);
background: linear-gradient( 180deg, rgba(0, 0, 0, 0.5) 0, rgba(255, 255, 255, 0.1) 100%); background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.5) 0,
rgba(255, 255, 255, 0.1) 100%
);
/*text-shadow: 0px 1px 1px rgba(0,0,0,1);*/ /*text-shadow: 0px 1px 1px rgba(0,0,0,1);*/
box-shadow: 0 -1px 0px 0 rgba(255, 255, 255, 0.15); box-shadow: 0 -1px 0px 0 rgba(255, 255, 255, 0.15);
text-transform: uppercase;
} }
.btn--dark>svg { .btn--dark > svg {
fill: #9297b3; fill: #9297b3;
margin-right: 4px; margin-right: 4px;
} }
.main-header__btn-wrap>.is-marked>svg { .main-header__btn-wrap > .is-marked > svg {
fill: crimson; fill: crimson;
} }
@@ -617,7 +637,7 @@ body>#demo-frame {
border-color: rgba(146, 151, 179, 0.5); border-color: rgba(146, 151, 179, 0.5);
} }
.main-header__btn-wrap>.is-loading { .main-header__btn-wrap > .is-loading {
pointer-events: none; pointer-events: none;
opacity: 0.4; opacity: 0.4;
} }
@@ -682,8 +702,8 @@ body>#demo-frame {
top: 2px; top: 2px;
} }
.footer a>svg, .footer a > svg,
.footer button>svg { .footer button > svg {
transition: 0.3s ease; transition: 0.3s ease;
fill: rgba(255, 255, 255, 0.2); fill: rgba(255, 255, 255, 0.2);
} }
@@ -717,19 +737,20 @@ body>#demo-frame {
.item-title-input { .item-title-input {
background: none; background: none;
border: 0; border: 0 !important;
color: rgba(255, 255, 255, 0.6); color: rgba(255, 255, 255, 0.6);
flex: 1; flex: 1;
padding: 3px 5px !important;
} }
.search-input { .search-input {
background: rgba(255, 255, 255, 0.1); /* background: rgba(255, 255, 255, 0.1); */
padding: 10px 20px; /* padding: 10px 20px; */
border: 0; /* border: 0; */
width: 100%; width: 100%;
font-size: 16px; font-size: 16px;
color: white; /* color: white; */
border-radius: 4px; /* border-radius: 4px; */
} }
.modal { .modal {
@@ -772,7 +793,7 @@ body>#demo-frame {
padding: 0.2rem 0.5rem; padding: 0.2rem 0.5rem;
} }
.modal__close-btn>svg { .modal__close-btn > svg {
fill: black; fill: black;
width: 30px; width: 30px;
height: 30px; height: 30px;
@@ -783,8 +804,8 @@ body>#demo-frame {
} }
.modal__content { .modal__content {
background: #fdfdfd; background: var(--color-popup);
color: #444; color: var(--color-text);
position: relative; position: relative;
border-radius: 8px; border-radius: 8px;
opacity: 0; opacity: 0;
@@ -865,7 +886,7 @@ body>#demo-frame {
width: 450px; width: 450px;
padding: 20px 30px; padding: 20px 30px;
z-index: 6; z-index: 6;
background-color: var(--color-sidebar); background-color: var(--color-popup);
transition: 0.3s cubic-bezier(1, 0.13, 0.21, 0.87); transition: 0.3s cubic-bezier(1, 0.13, 0.21, 0.87);
transition-property: transform; transition-property: transform;
will-change: transform; will-change: transform;
@@ -878,8 +899,8 @@ body>#demo-frame {
} }
.overlay-visible .modal-overlay, .overlay-visible .modal-overlay,
.is-modal-visible~.modal-overlay, .is-modal-visible ~ .modal-overlay,
.saved-items-pane.is-open~.modal-overlay { .saved-items-pane.is-open ~ .modal-overlay {
opacity: 1; opacity: 1;
visibility: visible; visibility: visible;
} }
@@ -972,7 +993,7 @@ body>#demo-frame {
animation-delay: 0.75s; animation-delay: 0.75s;
} }
.saved-item-tile:nth-child(n+12) { .saved-item-tile:nth-child(n + 12) {
animation-delay: 0.8s; animation-delay: 0.8s;
} }
@@ -1008,6 +1029,10 @@ body>#demo-frame {
pointer-events: auto; pointer-events: auto;
} }
.saved-item-tile__img {
margin-right: 10px;
}
.saved-item-tile__btn { .saved-item-tile__btn {
padding: 7px 10px; padding: 7px 10px;
color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.3);
@@ -1025,7 +1050,7 @@ body>#demo-frame {
.saved-item-tile__title { .saved-item-tile__title {
pointer-events: none; pointer-events: none;
font-size: 1.4em; font-size: 1.4em;
margin: 0 0 1em 0; margin: 0;
opacity: 0.8; opacity: 0.8;
} }
@@ -1084,10 +1109,10 @@ body>#demo-frame {
} }
.notification { .notification {
border: 1px solid #f1f1f1; /* border: 1px solid #f1f1f1; */
border-radius: 5px; border-radius: 5px;
padding: 20px; padding: 20px;
background: #f8f6f9; background: rgba(248, 246, 249, 0.05);
position: relative; position: relative;
} }
@@ -1162,24 +1187,24 @@ body>#demo-frame {
background: white; background: white;
} }
.dropdown__menu>li>a { .dropdown__menu > li > a {
display: block; display: block;
padding: 6px 15px; padding: 6px 15px;
color: #333; color: #333;
cursor: pointer; cursor: pointer;
} }
.dropdown__menu>li.selected>a, .dropdown__menu > li.selected > a,
.dropdown__menu>li>a:hover { .dropdown__menu > li > a:hover {
background: var(--color-sidebar); background: var(--color-popup);
color: white; color: white;
} }
.dropdown__menu>li:not(:last-child) { .dropdown__menu > li:not(:last-child) {
border-bottom: 1px solid rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(0, 0, 0, 0.05);
} }
.open>.dropdown__menu, .open > .dropdown__menu,
.dropdown__menu.is-open { .dropdown__menu.is-open {
opacity: 1; opacity: 1;
visibility: visible; visibility: visible;
@@ -1254,11 +1279,9 @@ body>#demo-frame {
} }
.onboard-step { .onboard-step {
background: #f7f2f1;
border: 1px solid #ecdede;
margin: 15px; margin: 15px;
padding: 20px 30px; padding: 20px 30px;
background-color: white; background-color: rgba(255, 255, 255, 0.1);
border-radius: 10px; border-radius: 10px;
box-shadow: 0 16px 22px rgba(0, 0, 0, 0.1); box-shadow: 0 16px 22px rgba(0, 0, 0, 0.1);
flex: 1; flex: 1;
@@ -1380,7 +1403,7 @@ body>#demo-frame {
} }
.kbd-shortcut__keys { .kbd-shortcut__keys {
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.3);
border-radius: 3px; border-radius: 3px;
padding: 3px 8px; padding: 3px 8px;
margin-right: 5px; margin-right: 5px;
@@ -1463,7 +1486,8 @@ body:not(.is-app) .show-when-app {
width: 80px; width: 80px;
height: 80px; height: 80px;
border-radius: 50%; border-radius: 50%;
background: white url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:32px;height:32px" viewBox="0 0 24 24"><path fill="limegreen" d="M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z" /></svg>'); background: white
url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width:32px;height:32px" viewBox="0 0 24 24"><path fill="limegreen" d="M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z" /></svg>');
} }
.bookmarklet { .bookmarklet {
@@ -1472,12 +1496,12 @@ body:not(.is-app) .show-when-app {
border: 1px #aaa solid; border: 1px #aaa solid;
padding: 0 5px; padding: 0 5px;
border-style: dashed; border-style: dashed;
color: #333; color: #f7f7f7;
} }
.help-text { .help-text {
font-size: 0.9em; font-size: 0.9em;
color: #616465; color: rgba(255, 255, 255, 0.5);
} }
.social-login-btn:after, .social-login-btn:after,