Permalink
Browse files

Added responsive Youtube embeds

  • Loading branch information...
radikahl radikahl
radikahl authored and radikahl committed Jul 9, 2016
1 parent 85c221b commit e8f2c7aef1c3a2ef726e738ab2895ddb6d56a24d
Showing with 24 additions and 9 deletions.
  1. +24 −9 css/main.css
View
@@ -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;
}
@@ -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%;
}
@@ -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;
}
@@ -273,7 +288,7 @@ footer .theme-by {
font-size: 16px;
}
}
/* --- Post preview --- */
.post-preview {
@@ -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;
}
@@ -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;
}

0 comments on commit e8f2c7a

Please sign in to comment.