Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Move inline style to static css file (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksellen authored Nov 24, 2018
1 parent ecc07ed commit 53b1e1a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
18 changes: 1 addition & 17 deletions src/base/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,7 @@
<title>(karrot loading...)</title>
<link rel="shortcut icon" href="statics/carrot_logo.ico">
<link rel="icon" type="image/png" href="statics/carrot_logo.png" sizes="32x32">
<style>
.root-splash {
position: fixed;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 50%;
}
.root-splash-first {
animation: root-splash-fadein-first 1s;
opacity: 0.3;
}
@keyframes root-splash-fadein-first {
from { opacity: 0; }
to { opacity: 0.3; }
}
</style>
<link rel="stylesheet" type="text/css" href="statics/splash.css">
</head>
<body style="overscroll-behavior: none">
<div id="q-app">
Expand Down
15 changes: 15 additions & 0 deletions src/statics/splash.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.root-splash {
position: fixed;
top: 55%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 50%;
}
.root-splash-first {
animation: root-splash-fadein-first 1s;
opacity: 0.3;
}
@keyframes root-splash-fadein-first {
from { opacity: 0; }
to { opacity: 0.3; }
}

0 comments on commit 53b1e1a

Please sign in to comment.