mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-07 01:54:54 +02:00
changes for a better dark theme
This commit is contained in:
parent
0f3f7e6a6f
commit
66cf5ef0eb
@ -62,7 +62,7 @@ export default class AddLibrary extends Component {
|
||||
<h1>Add Library</h1>
|
||||
|
||||
<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" />
|
||||
</svg>
|
||||
<LibraryAutoSuggest
|
||||
|
@ -21,11 +21,7 @@ class JS13K extends Component {
|
||||
: 0;
|
||||
return (
|
||||
<div class="flex flex-v-center">
|
||||
<img
|
||||
src="http://js13kgames.com/img/js13kgames.png"
|
||||
alt="JS13K Games logo"
|
||||
height="24"
|
||||
/>{' '}
|
||||
<img src="js13kgames.png" alt="JS13K Games logo" height="24" />{' '}
|
||||
<div class="footer__js13k-days-left">
|
||||
{this.state.daysLeft} days to go
|
||||
</div>
|
||||
|
@ -304,7 +304,7 @@ export default class Settings extends Component {
|
||||
class="line"
|
||||
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
|
||||
type="number"
|
||||
value={this.props.prefs.infiniteLoopTimeout}
|
||||
|
104
src/style.css
104
src/style.css
@ -1,8 +1,10 @@
|
||||
:root {
|
||||
--color-text: #d4cde9;
|
||||
--color-bg: #252637;
|
||||
--color-sidebar: #3a2b63;
|
||||
--color-popup: #29233c;
|
||||
--code-font-size: 16px;
|
||||
--color-button: #0074d9;
|
||||
--color-button: #d3a447;
|
||||
--color-focus-outline: #d3a447;
|
||||
}
|
||||
|
||||
body {
|
||||
@ -15,19 +17,38 @@ body {
|
||||
font-size: 87.5%;
|
||||
/* speocifically for mobile when keyboard is open */
|
||||
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 {
|
||||
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 {
|
||||
text-decoration: none;
|
||||
color: #d61237;
|
||||
color: #f7ae2d;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.65;
|
||||
}
|
||||
@ -130,7 +151,7 @@ button {
|
||||
}
|
||||
|
||||
.support-link {
|
||||
color: #d61237;
|
||||
color: #f7ae2d;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 600px) {
|
||||
@ -157,7 +178,8 @@ button {
|
||||
hr {
|
||||
background: 0;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #dedede;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
label {
|
||||
@ -191,14 +213,6 @@ a>svg {
|
||||
fill: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
select,
|
||||
input[type='text'],
|
||||
input[type='number'],
|
||||
textarea {
|
||||
padding: 3px 5px;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.hidden-select {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
@ -212,6 +226,7 @@ textarea {
|
||||
display: inline-block;
|
||||
color: var(--color-button);
|
||||
font-size: inherit;
|
||||
background: transparent;
|
||||
border: 3px solid var(--color-button);
|
||||
border-radius: 5px;
|
||||
padding: 9px 15px;
|
||||
@ -223,7 +238,8 @@ textarea {
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
@ -242,9 +258,9 @@ textarea {
|
||||
box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
|
||||
[class*='btn']:focus {
|
||||
*:focus {
|
||||
outline-width: 4px;
|
||||
outline-color: #b76b29;
|
||||
outline-color: var(--color-button);
|
||||
outline-style: solid;
|
||||
outline-offset: 1px;
|
||||
}
|
||||
@ -587,7 +603,8 @@ body>#demo-frame {
|
||||
.btn--dark,
|
||||
.main-header__btn-wrap > button {
|
||||
box-sizing: content-box;
|
||||
font-size: 0.8em;
|
||||
text-transform: uppercase;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
line-height: 20px;
|
||||
height: 20px;
|
||||
@ -598,10 +615,13 @@ body>#demo-frame {
|
||||
margin-left: 10px;
|
||||
padding: 0px 8px;
|
||||
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);*/
|
||||
box-shadow: 0 -1px 0px 0 rgba(255, 255, 255, 0.15);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.btn--dark > svg {
|
||||
@ -717,19 +737,20 @@ body>#demo-frame {
|
||||
|
||||
.item-title-input {
|
||||
background: none;
|
||||
border: 0;
|
||||
border: 0 !important;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
flex: 1;
|
||||
padding: 3px 5px !important;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
padding: 10px 20px;
|
||||
border: 0;
|
||||
/* background: rgba(255, 255, 255, 0.1); */
|
||||
/* padding: 10px 20px; */
|
||||
/* border: 0; */
|
||||
width: 100%;
|
||||
font-size: 16px;
|
||||
color: white;
|
||||
border-radius: 4px;
|
||||
/* color: white; */
|
||||
/* border-radius: 4px; */
|
||||
}
|
||||
|
||||
.modal {
|
||||
@ -783,8 +804,8 @@ body>#demo-frame {
|
||||
}
|
||||
|
||||
.modal__content {
|
||||
background: #fdfdfd;
|
||||
color: #444;
|
||||
background: var(--color-popup);
|
||||
color: var(--color-text);
|
||||
position: relative;
|
||||
border-radius: 8px;
|
||||
opacity: 0;
|
||||
@ -865,7 +886,7 @@ body>#demo-frame {
|
||||
width: 450px;
|
||||
padding: 20px 30px;
|
||||
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-property: transform;
|
||||
will-change: transform;
|
||||
@ -1008,6 +1029,10 @@ body>#demo-frame {
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.saved-item-tile__img {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.saved-item-tile__btn {
|
||||
padding: 7px 10px;
|
||||
color: rgba(255, 255, 255, 0.3);
|
||||
@ -1025,7 +1050,7 @@ body>#demo-frame {
|
||||
.saved-item-tile__title {
|
||||
pointer-events: none;
|
||||
font-size: 1.4em;
|
||||
margin: 0 0 1em 0;
|
||||
margin: 0;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
@ -1084,10 +1109,10 @@ body>#demo-frame {
|
||||
}
|
||||
|
||||
.notification {
|
||||
border: 1px solid #f1f1f1;
|
||||
/* border: 1px solid #f1f1f1; */
|
||||
border-radius: 5px;
|
||||
padding: 20px;
|
||||
background: #f8f6f9;
|
||||
background: rgba(248, 246, 249, 0.05);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@ -1171,7 +1196,7 @@ body>#demo-frame {
|
||||
|
||||
.dropdown__menu > li.selected > a,
|
||||
.dropdown__menu > li > a:hover {
|
||||
background: var(--color-sidebar);
|
||||
background: var(--color-popup);
|
||||
color: white;
|
||||
}
|
||||
|
||||
@ -1254,11 +1279,9 @@ body>#demo-frame {
|
||||
}
|
||||
|
||||
.onboard-step {
|
||||
background: #f7f2f1;
|
||||
border: 1px solid #ecdede;
|
||||
margin: 15px;
|
||||
padding: 20px 30px;
|
||||
background-color: white;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 16px 22px rgba(0, 0, 0, 0.1);
|
||||
flex: 1;
|
||||
@ -1380,7 +1403,7 @@ body>#demo-frame {
|
||||
}
|
||||
|
||||
.kbd-shortcut__keys {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 3px;
|
||||
padding: 3px 8px;
|
||||
margin-right: 5px;
|
||||
@ -1463,7 +1486,8 @@ body:not(.is-app) .show-when-app {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
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 {
|
||||
@ -1472,12 +1496,12 @@ body:not(.is-app) .show-when-app {
|
||||
border: 1px #aaa solid;
|
||||
padding: 0 5px;
|
||||
border-style: dashed;
|
||||
color: #333;
|
||||
color: #f7f7f7;
|
||||
}
|
||||
|
||||
.help-text {
|
||||
font-size: 0.9em;
|
||||
color: #616465;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.social-login-btn:after,
|
||||
|
Loading…
x
Reference in New Issue
Block a user