Skip to content

Commit

Permalink
Added responsive Youtube embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
radikahl authored and radikahl committed Jul 9, 2016
1 parent 85c221b commit e8f2c7a
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions css/main.css
Expand Up @@ -84,6 +84,21 @@ img {
max-width: 100%;
}

.video-wrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
overflow: hidden;
}
.video-wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.disqus-comments {
margin-top: 30px;
}
Expand Down Expand Up @@ -172,14 +187,14 @@ img {
width: 100px;
margin-top: -50px;
}

.navbar-custom .avatar-container .avatar-img-border {
width: 100%;
box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
-moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
}

.navbar-custom .avatar-container .avatar-img {
width: 100%;
}
Expand Down Expand Up @@ -217,7 +232,7 @@ img {
@media only screen and (min-width: 768px) {
.navbar-custom .nav .navlinks-container {
text-align: center;
}
}
.navbar-custom .nav .navlinks-container:hover {
background: #eee;
}
Expand Down Expand Up @@ -273,7 +288,7 @@ footer .theme-by {
font-size: 16px;
}
}

/* --- Post preview --- */

.post-preview {
Expand Down Expand Up @@ -418,11 +433,11 @@ footer .theme-by {
}
.intro-header.big-img {
margin-top: 91px; /* Full navbar is small navbar + 20px padding on each side when expanded */
}
}
.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
padding: 150px 0;
}
}
.intro-header .page-heading h1 {
font-size: 80px;
}
Expand Down Expand Up @@ -459,9 +474,9 @@ footer .theme-by {
}
.header-section.has-img .big-img {
margin-bottom: 0;
}
}
@media only screen and (max-width: 325px) {
}
}
@media only screen and (max-width: 325px) {
.intro-header.big-img {
height: 200px;
}
Expand Down

0 comments on commit e8f2c7a

Please sign in to comment.