Compare commits
1 commit
88b16bc158
...
912c2d746e
| Author | SHA1 | Date | |
|---|---|---|---|
| 912c2d746e |
2 changed files with 15 additions and 10 deletions
|
|
@ -143,12 +143,10 @@ export class Display {
|
||||||
const img = '/img/gretchen.jpg'
|
const img = '/img/gretchen.jpg'
|
||||||
const text = '<p>Text</p><p>More text text text</p>'
|
const text = '<p>Text</p><p>More text text text</p>'
|
||||||
fullview.innerHTML = `
|
fullview.innerHTML = `
|
||||||
<header>
|
|
||||||
<img src=${img} />
|
<img src=${img} />
|
||||||
<h1>${name}</h1>
|
<h1>${name}</h1>
|
||||||
<p class=desc>${desc}</p>
|
<p class=desc>${desc}</p>
|
||||||
</header>
|
<div class=fulltext>Text text</div>
|
||||||
<div class=fulltext>${text}</div>
|
|
||||||
`
|
`
|
||||||
wrapper.appendChild(fullview)
|
wrapper.appendChild(fullview)
|
||||||
target.appendChild(wrapper)
|
target.appendChild(wrapper)
|
||||||
|
|
|
||||||
21
style.css
21
style.css
|
|
@ -75,6 +75,15 @@ body {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
.fullview > img {
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
min-width: 40em;
|
||||||
|
min-height: 30em;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
.fullview > div {
|
.fullview > div {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
|
|
@ -84,13 +93,11 @@ body {
|
||||||
min-height: 30em;
|
min-height: 30em;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
background-color: #006680;
|
background-color: #006680;
|
||||||
padding: 1em;
|
padding: 1.5em;
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
border: 5px solid #1a1c1c;
|
border: 5px solid #1a1c1c;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
}
|
||||||
.fullview > div img {
|
.fullview > div img {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
@ -102,14 +109,14 @@ body {
|
||||||
|
|
||||||
h1, .desc {
|
h1, .desc {
|
||||||
font-family: "Fell Sc";
|
font-family: "Fell Sc";
|
||||||
margin-left: 0.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fulltext {
|
.fulltext {
|
||||||
flex-grow: 1;
|
clear: both;
|
||||||
background-color: #99d7e9;
|
background-color: #99d7e9;
|
||||||
border-radius: 20px;
|
border-radius: 80px;
|
||||||
border: 3px solid #1a1c1c;
|
border: 3px solid #1a1c1c;
|
||||||
color: #1a1c1c;
|
color: #1a1c1c;
|
||||||
padding: 0 0.5em;
|
margin-left: -10px;
|
||||||
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue