Separate CSS and HTML in the index

This commit is contained in:
Ophir LOJKINE 2018-11-27 14:46:57 +01:00
parent a24fc79910
commit 3d92c8411d
3 changed files with 92 additions and 92 deletions

1
.openode Normal file
View file

@ -0,0 +1 @@
{"token":"96714c78efae7cc0be9a2c24be421dbf","site_name":"wbo","instance_type":"server"}

90
client-data/index.css Normal file
View file

@ -0,0 +1,90 @@
body {
background-color:#eee;
width:100%;
margin:0;
animation: colorchange 200s infinite;
animation-delay:20s;
}
header {
position:fixed;
left:0;
top:0;
text-shadow:1px 1px 2px #888;
width:100%;
}
h1, h2 {
display:inline-block;
}
h1 {
animation: colorchange 30s infinite;
animation-direction:alternate;
animation-delay:10s;
}
main {
margin:200px auto;
width:50%;
padding:50px;
font-size:2em;
position:relative;
text-align:justify;
animation: move 20s infinite;
animation-delay:40s;
animation-direction:alternate;
transition:.5s;
}
main:hover {
transform:scale(1.2);
transition:.5s;
}
header, main {
box-shadow: 2px 2px 10px #000;
background-color:#fff;
}
header:hover h2 {
animation:colorchange 100s infinite;
}
@keyframes vibration
{
0% {transform:scale(0.1);}
100% {transform:scale(1);}
}
@keyframes colorchange
{
0% {color:#000;}
30% {color:#c04;}
40% {color:#706;}
50% {color:#007;}
60% {color:#04b;}
70% {color:#0a4;}
80% {color:#1c0;}
80% {color:#b30;}
100% {color:#f00;}
}
@keyframes move {
0% {top:0;left:0;}
25% {top:0;left:-10;}
50% {top:-40px;left:-20px;}
70% {top:0px;left:60px;}
87% {top:50px;left:0px;}
90% {top:-60px;left:20px;}
94% {top:90px;left:-50px;}
95% {top:0px;left:50px;}
97% {top:-90px;left:-20px;}
100% {top:0;left:0;}
}
@media (max-width:600px) {
main {
width:90%;
margin: 100px auto;
}
}

View file

@ -5,98 +5,7 @@
<meta charset="utf-8" />
<title>WBO - Welcome</title>
<link rel="icon" type="image/png" href="favicon.ico" />
<style>
body {
background-color:#eee;
width:100%;
margin:0;
animation: colorchange 200s infinite;
animation-delay:20s;
}
header {
position:fixed;
left:0;
top:0;
text-shadow:1px 1px 2px #888;
width:100%;
}
h1, h2 {
display:inline-block;
}
h1 {
animation: colorchange 30s infinite;
animation-direction:alternate;
animation-delay:10s;
}
main {
margin:200px auto;
width:50%;
padding:50px;
font-size:2em;
position:relative;
text-align:justify;
animation: move 20s infinite;
animation-delay:40s;
animation-direction:alternate;
transition:.5s;
}
main:hover {
transform:scale(1.2);
transition:.5s;
}
header, main {
box-shadow: 2px 2px 10px #000;
background-color:#fff;
}
header:hover h2 {
animation:colorchange 100s infinite;
}
@keyframes vibration
{
0% {transform:scale(0.1);}
100% {transform:scale(1);}
}
@keyframes colorchange
{
0% {color:#000;}
30% {color:#c04;}
40% {color:#706;}
50% {color:#007;}
60% {color:#04b;}
70% {color:#0a4;}
80% {color:#1c0;}
80% {color:#b30;}
100% {color:#f00;}
}
@keyframes move {
0% {top:0;left:0;}
25% {top:0;left:-10;}
50% {top:-40px;left:-20px;}
70% {top:0px;left:60px;}
87% {top:50px;left:0px;}
90% {top:-60px;left:20px;}
94% {top:90px;left:-50px;}
95% {top:0px;left:50px;}
97% {top:-90px;left:-20px;}
100% {top:0;left:0;}
}
@media (max-width:600px) {
main {
width:90%;
margin: 100px auto;
}
}
</style>
<link rel="stylesheet" href="index.css" />
</head>
<body>