tweeks
This commit is contained in:
parent
22038c9264
commit
16d71b7e4c
@ -1,37 +1,13 @@
|
|||||||
html {
|
:root { color: white; font-family:sans-serif }
|
||||||
height: 100vh;
|
|
||||||
width: 100vw;
|
|
||||||
background: linear-gradient(45deg, gold 2%, purple);
|
|
||||||
overflow: hidden;
|
|
||||||
margin: 0px;
|
|
||||||
animation: gradient 35s linear infinite;
|
|
||||||
background-size: 180% 180%;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
display: flex;
|
|
||||||
color: white;
|
|
||||||
margin: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
body { margin: 0px; }
|
||||||
|
|
||||||
.artical {
|
.artical {
|
||||||
width: min(calc(100vw - 4em), 55em);
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 2em;
|
|
||||||
height: 25em;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition-duration: 1.5s;
|
transition-duration: 1.5s;
|
||||||
}
|
width:25%;
|
||||||
|
display: block;
|
||||||
.artical:hover {
|
|
||||||
width: calc(100% - 8em);
|
|
||||||
height: calc(100vh - 6em);
|
|
||||||
overflow: scroll;
|
|
||||||
}
|
|
||||||
|
|
||||||
.artical h1 {
|
|
||||||
margin: auto auto 0px auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.artical hr {
|
.artical hr {
|
||||||
@ -41,18 +17,29 @@ body {
|
|||||||
height: 0.3em;
|
height: 0.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.artical embed{
|
||||||
|
position: sticky;
|
||||||
|
height:100%;
|
||||||
|
width:100%;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.artical:hover .preview {
|
.artical:hover .preview {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: none;
|
display: none;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.artical:hover .content {
|
.artical:hover .content {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.glass {
|
.glass {
|
||||||
background: rgba(128, 128, 128, 0.35);
|
background: rgba(128, 128, 128, 0.35);
|
||||||
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
||||||
@ -60,6 +47,16 @@ body {
|
|||||||
padding: 1em 2em;
|
padding: 1em 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sunset {
|
||||||
|
background: linear-gradient(45deg, gold 2%, purple);
|
||||||
|
margin: 0px;
|
||||||
|
animation: gradient 35s linear infinite;
|
||||||
|
background-size: 180% 180%;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
position: fixed;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes gradient {
|
@keyframes gradient {
|
||||||
0% {
|
0% {
|
||||||
|
|||||||
26
index.html
26
index.html
@ -5,16 +5,32 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<link rel="stylesheet" href="css/shared.css">
|
<link rel="stylesheet" href="css/shared.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/comic-mono@0.0.1/index.css">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="A simple blog">
|
<meta name="description" content="A simple blog">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="glass artical">
|
<div class="sunset"></div>
|
||||||
<h1>Test title #1</h1>
|
<div class=slide>
|
||||||
<hr>
|
<span class="glass artical">
|
||||||
<p class="preview">test text</p>
|
<h1>Test title #1</h1>
|
||||||
<p class="content">test content</p>
|
<hr>
|
||||||
|
<embed class="preview" type="text/html" src="snippet.html"></embed>
|
||||||
|
<embed class="content" type="text/html" src="snippet.html"></embed>
|
||||||
|
</span>
|
||||||
|
<span class="glass artical">
|
||||||
|
<h1>Test title #2</h1>
|
||||||
|
<hr>
|
||||||
|
<embed class="preview" type="text/html" src="snippet.html"></embed>
|
||||||
|
<embed class="content" type="text/html" src="snippet.html"></embed>
|
||||||
|
</span>
|
||||||
|
<span class="glass artical">
|
||||||
|
<h1>Test title #2</h1>
|
||||||
|
<hr>
|
||||||
|
<embed class="preview" type="text/html" src="snippet.html"></embed>
|
||||||
|
<embed class="content" type="text/html" src="snippet.html"></embed>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
68
snippet.html
Normal file
68
snippet.html
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
<link rel="stylesheet" href="css/shared.css">
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
<p>hello mario</p>
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user