1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-26 16:20: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 {
@@ -191,14 +213,6 @@ 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,9 +258,9 @@ 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;
} }
@@ -587,7 +603,8 @@ 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,10 +615,13 @@ 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 {
@@ -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 {
@@ -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;
@@ -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;
} }
@@ -1171,7 +1196,7 @@ body>#demo-frame {
.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;
} }
@@ -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,