1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-03 03:47:37 +02:00

prettier style.css

This commit is contained in:
Kushagra Gour
2018-01-13 12:29:53 +05:30
parent dc2bff1454
commit 9c6824de2b

View File

@@ -1,6 +1,6 @@
:root { :root {
--color-bg: #252637; --color-bg: #252637;
--color-sidebar: #3A2B63; --color-sidebar: #3a2b63;
--code-font-size: 16px; --code-font-size: 16px;
} }
body { body {
@@ -11,30 +11,69 @@ body {
color: rgba(255, 255, 255, 0.9); color: rgba(255, 255, 255, 0.9);
min-height: 100vh; min-height: 100vh;
font-size: 87.5%; font-size: 87.5%;
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;
} }
a { text-decoration: none; color: crimson; cursor: pointer; } a {
text-decoration: none;
color: crimson;
cursor: pointer;
}
.hide { display: none!important; } .hide {
.flex { display: flex; } display: none !important;
.flex-grow { flex-grow: 1; } }
.flex-v-center { align-items: center; } .flex {
.fr { float: right; } display: flex;
.relative { position: relative; } }
.tac { text-align: center; } .flex-grow {
.tar { text-align: right; } flex-grow: 1;
.va-m { vertical-align: middle; } }
.full-width { width: 100%; } .flex-v-center {
.opacity--30 { opacity: 0.3; } align-items: center;
.opacity--70 { opacity: 0.7; } }
.pointer-none { pointer-events: none; } .fr {
.ml-1 { margin-left: 1rem; } float: right;
.ml-2 { margin-left: 2rem; } }
.mb-1 { margin-bottom: 1rem; } .relative {
.mb-2 { margin-bottom: 2rem; } position: relative;
}
.tac {
text-align: center;
}
.tar {
text-align: right;
}
.va-m {
vertical-align: middle;
}
.full-width {
width: 100%;
}
.opacity--30 {
opacity: 0.3;
}
.opacity--70 {
opacity: 0.7;
}
.pointer-none {
pointer-events: none;
}
.ml-1 {
margin-left: 1rem;
}
.ml-2 {
margin-left: 2rem;
}
.mb-1 {
margin-bottom: 1rem;
}
.mb-2 {
margin-bottom: 2rem;
}
hr { hr {
background: 0; background: 0;
border: 0; border: 0;
@@ -43,7 +82,7 @@ hr {
label { label {
cursor: pointer; cursor: pointer;
} }
[class*="hint--"]:after { [class*='hint--']:after {
text-transform: none; text-transform: none;
font-weight: normal; font-weight: normal;
letter-spacing: 0.5px; letter-spacing: 0.5px;
@@ -63,9 +102,12 @@ 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 { select,
input[type='text'],
input[type='number'],
textarea {
padding: 3px 5px; padding: 3px 5px;
font-size: inherit; font-size: inherit;
} }
@@ -123,18 +165,24 @@ select, input[type="text"], input[type="number"], textarea {
color: #eee333; color: #eee333;
} }
/* used to show keyboard specific content when something is keyboard focused */ /* used to show keyboard specific content when something is keyboard focused */
.show-when-selected { display: none; } .show-when-selected {
.selected .show-when-selected { display: inline-block; } display: none;
}
.selected .show-when-selected {
display: inline-block;
}
.main-container { .main-container {
position: absolute; position: absolute;
left: 0; right: 0; left: 0;
top: 0; bottom: 0; right: 0;
top: 0;
bottom: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
will-change: -webkit-filter; will-change: -webkit-filter;
transition: 0.10s ease 0.2s; transition: 0.1s ease 0.2s;
} }
body:not(.light-version).overlay-visible .main-container { body:not(.light-version).overlay-visible .main-container {
transition-duration: 0.5s; transition-duration: 0.5s;
@@ -192,7 +240,7 @@ body:not(.light-version).overlay-visible .main-container {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: var(--color-bg); background: var(--color-bg);
transition: height 0.30s ease, width 0.30s ease; transition: height 0.3s ease, width 0.3s ease;
will-change: height; will-change: height;
} }
.layout-2 .code-wrap.is-minimized { .layout-2 .code-wrap.is-minimized {
@@ -218,7 +266,7 @@ body:not(.light-version).overlay-visible .main-container {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 5px 10px; padding: 5px 10px;
background: rgba(0,0,0,0.20); background: rgba(0, 0, 0, 0.2);
color: #888; color: #888;
border-bottom: 1px solid rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(0, 0, 0, 0.3);
font-weight: bold; font-weight: bold;
@@ -252,7 +300,6 @@ body:not(.light-version).overlay-visible .main-container {
height: 18px; height: 18px;
} }
.code-wrap__collapse-btn:before { .code-wrap__collapse-btn:before {
/* maximize icon */ /* maximize icon */
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="width:18px;height:18px" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.2)" d="M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z" /></svg>'); content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="width:18px;height:18px" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.2)" d="M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z" /></svg>');
} }
@@ -261,8 +308,14 @@ body:not(.light-version).overlay-visible .main-container {
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="width:18px;height:18px" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.2)" d="M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z" /></svg>'); content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" style="width:18px;height:18px" viewBox="0 0 24 24"><path fill="rgba(255,255,255,0.2)" d="M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z" /></svg>');
} }
@keyframes pop-in { @keyframes pop-in {
from { transform: scale(0.9); opacity: 0; } from {
to { transform: scale(1); opacity: 1; } transform: scale(0.9);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
} }
/* Codemirror */ /* Codemirror */
@@ -287,7 +340,8 @@ body:not(.light-version).overlay-visible .main-container {
.cm-s-monokai .CodeMirror-guttermarker-subtle { .cm-s-monokai .CodeMirror-guttermarker-subtle {
opacity: 0.4; opacity: 0.4;
} }
.cm-s-monokai .CodeMirror-activeline-background, .cm-s-monokai .CodeMirror-activeline-gutter { .cm-s-monokai .CodeMirror-activeline-background,
.cm-s-monokai .CodeMirror-activeline-gutter {
background: rgba(0, 0, 0, 0.1) !important; background: rgba(0, 0, 0, 0.1) !important;
} }
.CodeMirror-guttermarker-subtle { .CodeMirror-guttermarker-subtle {
@@ -344,18 +398,22 @@ body > #demo-frame {
line-height: 20px; line-height: 20px;
height: 20px; height: 20px;
letter-spacing: 0.6px; letter-spacing: 0.6px;
color: #9297B3; color: #9297b3;
border-radius: 3px; border-radius: 3px;
margin-left: 10px; margin-left: 10px;
padding: 0px 8px; padding: 0px 8px;
border: 1px solid rgba(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; text-transform: uppercase;
} }
.main-header__btn-wrap > a > svg { .main-header__btn-wrap > a > svg {
fill: #9297B3; fill: #9297b3;
margin-right: 4px; margin-right: 4px;
} }
.main-header__btn-wrap > a.is-marked > svg { .main-header__btn-wrap > a.is-marked > svg {
@@ -408,10 +466,10 @@ body > #demo-frame {
} }
.footer a > svg { .footer a > svg {
transition: 0.3s ease; transition: 0.3s ease;
fill: rgba(255, 255, 255, 0.2) fill: rgba(255, 255, 255, 0.2);
} }
.footer a:hover svg { .footer a:hover svg {
fill: rgba(255, 255, 255, 0.45) fill: rgba(255, 255, 255, 0.45);
} }
.mode-btn svg { .mode-btn svg {
width: 24px; width: 24px;
@@ -475,7 +533,8 @@ body > #demo-frame {
} }
.modal__close-btn > svg { .modal__close-btn > svg {
fill: black; fill: black;
width:30px; height:30px; width: 30px;
height: 30px;
} }
.modal__close-btn:hover { .modal__close-btn:hover {
opacity: 0.7; opacity: 0.7;
@@ -584,19 +643,45 @@ body > #demo-frame {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
animation: slide-left 0.35s ease forwards; animation: slide-left 0.35s ease forwards;
} }
.saved-item-tile:nth-child(1) { animation-delay: 0.2s; } .saved-item-tile:nth-child(1) {
.saved-item-tile:nth-child(2) { animation-delay: 0.25s; } animation-delay: 0.2s;
.saved-item-tile:nth-child(3) { animation-delay: 0.3s; } }
.saved-item-tile:nth-child(4) { animation-delay: 0.35s; } .saved-item-tile:nth-child(2) {
.saved-item-tile:nth-child(5) { animation-delay: 0.4s; } animation-delay: 0.25s;
.saved-item-tile:nth-child(6) { animation-delay: 0.45s; } }
.saved-item-tile:nth-child(7) { animation-delay: 0.5s; } .saved-item-tile:nth-child(3) {
.saved-item-tile:nth-child(8) { animation-delay: 0.55s; } animation-delay: 0.3s;
.saved-item-tile:nth-child(9) { animation-delay: 0.6s; } }
.saved-item-tile:nth-child(10) { animation-delay: 0.65s; } .saved-item-tile:nth-child(4) {
.saved-item-tile:nth-child(11) { animation-delay: 0.7s; } animation-delay: 0.35s;
.saved-item-tile:nth-child(12) { animation-delay: 0.75s; } }
.saved-item-tile:nth-child(n+12) { animation-delay: 0.8s; } .saved-item-tile:nth-child(5) {
animation-delay: 0.4s;
}
.saved-item-tile:nth-child(6) {
animation-delay: 0.45s;
}
.saved-item-tile:nth-child(7) {
animation-delay: 0.5s;
}
.saved-item-tile:nth-child(8) {
animation-delay: 0.55s;
}
.saved-item-tile:nth-child(9) {
animation-delay: 0.6s;
}
.saved-item-tile:nth-child(10) {
animation-delay: 0.65s;
}
.saved-item-tile:nth-child(11) {
animation-delay: 0.7s;
}
.saved-item-tile:nth-child(12) {
animation-delay: 0.75s;
}
.saved-item-tile:nth-child(n + 12) {
animation-delay: 0.8s;
}
@keyframes slide-left { @keyframes slide-left {
from { from {
opacity: 0; opacity: 0;
@@ -655,16 +740,21 @@ body > #demo-frame {
position: relative; position: relative;
} }
@keyframes shake { @keyframes shake {
2%, 22% { 2%,
22% {
transform: translate3d(-1px, 0, 0); transform: translate3d(-1px, 0, 0);
} }
5%,20% { 5%,
20% {
transform: translate3d(2px, 0, 0); transform: translate3d(2px, 0, 0);
} }
7%, 12%, 17% { 7%,
12%,
17% {
transform: translate3d(-4px, 0, 0); transform: translate3d(-4px, 0, 0);
} }
10%, 15% { 10%,
15% {
transform: translate3d(4px, 0, 0); transform: translate3d(4px, 0, 0);
} }
} }
@@ -1001,10 +1091,10 @@ body > #demo-frame {
display: none; display: none;
} }
.social-login-btn--github { .social-login-btn--github {
background: #656B6F; background: #656b6f;
} }
.social-login-btn--facebook { .social-login-btn--facebook {
background: #4E62C0; background: #4e62c0;
} }
.social-login-btn--google { .social-login-btn--google {
background: white; background: white;
@@ -1021,17 +1111,41 @@ body:not(.is-app) .show-when-app {
/* Codemirror themes basic bg styles. This is here so that there is no big FOUC /* Codemirror themes basic bg styles. This is here so that there is no big FOUC
while the theme CSS file is loading */ while the theme CSS file is loading */
.cm-s-paraiso-dark.CodeMirror { background: #2f1e2e; color: #b9b6b0; } .cm-s-paraiso-dark.CodeMirror {
.cm-s-paraiso-dark .CodeMirror-gutters { background: #2f1e2e; border-right: 0px; } background: #2f1e2e;
.cm-s-paraiso-dark .CodeMirror-activeline-background { background: #4D344A; } color: #b9b6b0;
}
.cm-s-paraiso-dark .CodeMirror-gutters {
background: #2f1e2e;
border-right: 0px;
}
.cm-s-paraiso-dark .CodeMirror-activeline-background {
background: #4d344a;
}
.cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; } .cm-s-monokai.CodeMirror {
.cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; } background: #272822;
.cm-s-monokai .CodeMirror-activeline-background { background: #373831; } color: #f8f8f2;
}
.cm-s-monokai .CodeMirror-gutters {
background: #272822;
border-right: 0px;
}
.cm-s-monokai .CodeMirror-activeline-background {
background: #373831;
}
.cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; } .cm-s-3024-day.CodeMirror {
.cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; } background: #f7f7f7;
.cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; } color: #3a3432;
}
.cm-s-3024-day .CodeMirror-gutters {
background: #f7f7f7;
border-right: 0px;
}
.cm-s-3024-day .CodeMirror-activeline-background {
background: #e8f2ff;
}
.cm-s-material.CodeMirror { .cm-s-material.CodeMirror {
background-color: #263238; background-color: #263238;
@@ -1041,21 +1155,39 @@ while the theme CSS file is loading */
background: #263238; background: #263238;
color: rgb(83, 127, 126); color: rgb(83, 127, 126);
} }
.cm-s-material .CodeMirror-activeline-background { background: rgba(0, 0, 0, 0); } .cm-s-material .CodeMirror-activeline-background {
background: rgba(0, 0, 0, 0);
}
.cm-s-dracula.CodeMirror, .cm-s-dracula .CodeMirror-gutters { .cm-s-dracula.CodeMirror,
.cm-s-dracula .CodeMirror-gutters {
background-color: #282a36 !important; background-color: #282a36 !important;
color: #f8f8f2 !important; color: #f8f8f2 !important;
} }
.cm-s-dracula .CodeMirror-activeline-background { background: rgba(255,255,255,0.1); } .cm-s-dracula .CodeMirror-activeline-background {
background: rgba(255, 255, 255, 0.1);
}
.cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; } .cm-s-blackboard.CodeMirror {
.cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; } background: #0c1021;
.cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; } color: #f8f8f8;
}
.cm-s-blackboard .CodeMirror-gutters {
background: #0c1021;
border-right: 0;
}
.cm-s-blackboard .CodeMirror-activeline-background {
background: #3c3636;
}
.cm-s-midnight.CodeMirror { .cm-s-midnight.CodeMirror {
background: #0F192A; background: #0f192a;
color: #D1EDFF; color: #d1edff;
}
.cm-s-midnight .CodeMirror-gutters {
background: #0f192a;
border-right: 1px solid;
}
.cm-s-midnight .CodeMirror-activeline-background {
background: #253540;
} }
.cm-s-midnight .CodeMirror-gutters { background: #0F192A; border-right: 1px solid; }
.cm-s-midnight .CodeMirror-activeline-background { background: #253540; }