Skip to content

Commit a51938d

Browse files
committed
💄 improve first load
1 parent 42136e8 commit a51938d

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

‎public/index.html

+26-10
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
border-radius: 50%;
2626
}
2727
.loader {
28-
color: #292d3e;
28+
margin: 0 auto;
29+
color: #00d1b2;
2930
font-size: 11px;
3031
text-indent: -99999em;
31-
margin: 55px auto;
3232
position: relative;
3333
width: 10em;
3434
height: 10em;
@@ -45,7 +45,7 @@
4545
.loader:before {
4646
width: 5.2em;
4747
height: 10.2em;
48-
background: #ffffff;
48+
background: #292d3e;
4949
border-radius: 10.2em 0 0 10.2em;
5050
top: -0.1em;
5151
left: -0.1em;
@@ -57,7 +57,7 @@
5757
.loader:after {
5858
width: 5.2em;
5959
height: 10.2em;
60-
background: #ffffff;
60+
background: #292d3e;
6161
border-radius: 0 10.2em 10.2em 0;
6262
top: -0.1em;
6363
left: 4.9em;
@@ -86,21 +86,37 @@
8686
transform: rotate(360deg);
8787
}
8888
}
89-
.loader-title {
89+
.loader-title, .loader-title a {
9090
text-align: center;
9191
font-weight: normal;
9292
margin: 0;
93+
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
94+
text-decoration: none;
95+
}
96+
.loader-title{
97+
color: #fff;
9398
font-size: 2em;
94-
color: #4a4a4a;
9599
line-height: 1.5;
96-
font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
100+
margin-top: 1em;
97101
}
98-
.loader-title a {
99-
text-decoration: none;
102+
.loader-title a, .loader-title a:hover {
103+
color: #00d1b2;
104+
}
105+
.loader-title a:hover {
106+
text-decoration: underline;
107+
}
108+
body.starting {
109+
background-color: #292d3e;
110+
}
111+
body.starting #app {
112+
padding-top: 55px;
113+
}
114+
html {
115+
overflow-y: scroll;
100116
}
101117
</style>
102118
</head>
103-
<body>
119+
<body class="starting">
104120
<noscript>
105121
<strong>We're sorry but JsonLogic Playground doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
106122
</noscript>

‎src/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Vue.config.productionTip = process.env.NODE_MODULES !== 'production'
88
import(/* webpackChunkName: "codemirror" */ './codemirror')
99
.then(() => {
1010
new Vue({
11+
created () {
12+
document.body.classList.remove('starting')
13+
},
1114
render: h => h(App)
1215
}).$mount('#app')
1316
})

0 commit comments

Comments
 (0)