Skip to content

Commit

Permalink
fix plus padding attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Aug 29, 2016
1 parent a9c0d84 commit 2bb65d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion ksp.moon
Expand Up @@ -159,7 +159,6 @@ class extends lapis.Application
raw discount craft.description, "nohtml" -- THIS IS SCARY! D:
img src: craft.picture
if Crafts.statuses.reviewed == craft.status
--NOTE width/height are hardcoded, this is baaaade style: "width: 620px; height: 348.75px; align: center;", --no idea if the align would even work
div class: "yt-embed", -> iframe src: "https://www.youtube.com/embed/#{craft.episode}", frameborder: 0, allowfullscreen: true
p ->
a class: "pure-button", href: craft.download_link, "Download" --TODO replace this with something to protect against XSS...
Expand Down
9 changes: 3 additions & 6 deletions static/css/site.css
Expand Up @@ -25,17 +25,14 @@ body {
border-bottom: none;
}

#container img/*, #container iframe*/ {
max-width: inherit;
min-width: inherit;
width: inherit;
#container img {
width: 100%;
}

.yt-embed {
position: relative;
/*padding-top: 25px; /* should not be needed */
padding-bottom: 56.25%; /*16:9 ratio*/
height: 0;
height: 25px;
}

.yt-embed iframe {
Expand Down

0 comments on commit 2bb65d9

Please sign in to comment.