1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-02 19:37:29 +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 {
--color-bg: #252637;
--color-sidebar: #3A2B63;
--color-sidebar: #3a2b63;
--code-font-size: 16px;
}
body {
@@ -11,30 +11,69 @@ body {
color: rgba(255, 255, 255, 0.9);
min-height: 100vh;
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 {
margin-top: 0;
}
a { text-decoration: none; color: crimson; cursor: pointer; }
a {
text-decoration: none;
color: crimson;
cursor: pointer;
}
.hide { display: none!important; }
.flex { display: flex; }
.flex-grow { flex-grow: 1; }
.flex-v-center { align-items: center; }
.fr { float: right; }
.relative { 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; }
.hide {
display: none !important;
}
.flex {
display: flex;
}
.flex-grow {
flex-grow: 1;
}
.flex-v-center {
align-items: center;
}
.fr {
float: right;
}
.relative {
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 {
background: 0;
border: 0;
@@ -43,7 +82,7 @@ hr {
label {
cursor: pointer;
}
[class*="hint--"]:after {
[class*='hint--']:after {
text-transform: none;
font-weight: normal;
letter-spacing: 0.5px;
@@ -63,9 +102,12 @@ label {
margin-left: 8px;
}
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;
font-size: inherit;
}
@@ -123,18 +165,24 @@ select, input[type="text"], input[type="number"], textarea {
color: #eee333;
}
/* used to show keyboard specific content when something is keyboard focused */
.show-when-selected { display: none; }
.selected .show-when-selected { display: inline-block; }
.show-when-selected {
display: none;
}
.selected .show-when-selected {
display: inline-block;
}
.main-container {
position: absolute;
left: 0; right: 0;
top: 0; bottom: 0;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
overflow: hidden;
will-change: -webkit-filter;
transition: 0.10s ease 0.2s;
transition: 0.1s ease 0.2s;
}
body:not(.light-version).overlay-visible .main-container {
transition-duration: 0.5s;
@@ -192,7 +240,7 @@ body:not(.light-version).overlay-visible .main-container {
overflow: hidden;
position: relative;
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;
}
.layout-2 .code-wrap.is-minimized {
@@ -218,7 +266,7 @@ body:not(.light-version).overlay-visible .main-container {
justify-content: space-between;
align-items: center;
padding: 5px 10px;
background: rgba(0,0,0,0.20);
background: rgba(0, 0, 0, 0.2);
color: #888;
border-bottom: 1px solid rgba(0, 0, 0, 0.3);
font-weight: bold;
@@ -252,7 +300,6 @@ body:not(.light-version).overlay-visible .main-container {
height: 18px;
}
.code-wrap__collapse-btn:before {
/* 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>');
}
@@ -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>');
}
@keyframes pop-in {
from { transform: scale(0.9); opacity: 0; }
to { transform: scale(1); opacity: 1; }
from {
transform: scale(0.9);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
/* Codemirror */
@@ -287,7 +340,8 @@ body:not(.light-version).overlay-visible .main-container {
.cm-s-monokai .CodeMirror-guttermarker-subtle {
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;
}
.CodeMirror-guttermarker-subtle {
@@ -344,18 +398,22 @@ body > #demo-frame {
line-height: 20px;
height: 20px;
letter-spacing: 0.6px;
color: #9297B3;
color: #9297b3;
border-radius: 3px;
margin-left: 10px;
padding: 0px 8px;
border: 1px solid rgba(0,0,0,.9);
background: linear-gradient(180deg, rgba(0,0,0,0.5) 0, rgba(255,255,255,0.1) 100%);
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%
);
/*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;
}
.main-header__btn-wrap > a > svg {
fill: #9297B3;
fill: #9297b3;
margin-right: 4px;
}
.main-header__btn-wrap > a.is-marked > svg {
@@ -408,10 +466,10 @@ body > #demo-frame {
}
.footer a > svg {
transition: 0.3s ease;
fill: rgba(255, 255, 255, 0.2)
fill: rgba(255, 255, 255, 0.2);
}
.footer a:hover svg {
fill: rgba(255, 255, 255, 0.45)
fill: rgba(255, 255, 255, 0.45);
}
.mode-btn svg {
width: 24px;
@@ -475,7 +533,8 @@ body > #demo-frame {
}
.modal__close-btn > svg {
fill: black;
width:30px; height:30px;
width: 30px;
height: 30px;
}
.modal__close-btn:hover {
opacity: 0.7;
@@ -584,19 +643,45 @@ body > #demo-frame {
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
animation: slide-left 0.35s ease forwards;
}
.saved-item-tile:nth-child(1) { animation-delay: 0.2s; }
.saved-item-tile:nth-child(2) { animation-delay: 0.25s; }
.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(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; }
.saved-item-tile:nth-child(1) {
animation-delay: 0.2s;
}
.saved-item-tile:nth-child(2) {
animation-delay: 0.25s;
}
.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(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 {
from {
opacity: 0;
@@ -655,16 +740,21 @@ body > #demo-frame {
position: relative;
}
@keyframes shake {
2%, 22% {
2%,
22% {
transform: translate3d(-1px, 0, 0);
}
5%,20% {
5%,
20% {
transform: translate3d(2px, 0, 0);
}
7%, 12%, 17% {
7%,
12%,
17% {
transform: translate3d(-4px, 0, 0);
}
10%, 15% {
10%,
15% {
transform: translate3d(4px, 0, 0);
}
}
@@ -1001,10 +1091,10 @@ body > #demo-frame {
display: none;
}
.social-login-btn--github {
background: #656B6F;
background: #656b6f;
}
.social-login-btn--facebook {
background: #4E62C0;
background: #4e62c0;
}
.social-login-btn--google {
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
while the theme CSS file is loading */
.cm-s-paraiso-dark.CodeMirror { background: #2f1e2e; color: #b9b6b0; }
.cm-s-paraiso-dark .CodeMirror-gutters { background: #2f1e2e; border-right: 0px; }
.cm-s-paraiso-dark .CodeMirror-activeline-background { background: #4D344A; }
.cm-s-paraiso-dark.CodeMirror {
background: #2f1e2e;
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-gutters { background: #272822; border-right: 0px; }
.cm-s-monokai .CodeMirror-activeline-background { background: #373831; }
.cm-s-monokai.CodeMirror {
background: #272822;
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-gutters { background: #f7f7f7; border-right: 0px; }
.cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; }
.cm-s-3024-day.CodeMirror {
background: #f7f7f7;
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 {
background-color: #263238;
@@ -1041,21 +1155,39 @@ while the theme CSS file is loading */
background: #263238;
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;
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-gutters { background: #0C1021; border-right: 0; }
.cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; }
.cm-s-blackboard.CodeMirror {
background: #0c1021;
color: #f8f8f8;
}
.cm-s-blackboard .CodeMirror-gutters {
background: #0c1021;
border-right: 0;
}
.cm-s-blackboard .CodeMirror-activeline-background {
background: #3c3636;
}
.cm-s-midnight.CodeMirror {
background: #0F192A;
color: #D1EDFF;
background: #0f192a;
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; }