Simplified implementation of cover image

This commit is contained in:
Keichi Takahashi 2015-02-05 03:08:19 +09:00
parent 9acf1a71c5
commit 080202e6cc
2 changed files with 0 additions and 17 deletions

View File

@ -34,7 +34,6 @@
</head>
<body>
<header class="global-header">
<div class="header-img hidden-print"></div>
<section class="header-text">
<h1><a href="{{ .Site.BaseUrl }}">{{ .Site.Title }}</a></h1>
{{ with .Site.Params.subtitle }}

View File

@ -5,27 +5,11 @@ main {
/* Header */
.global-header {
position: relative;
height: 210px;
}
@media (max-width: 768px) {
.global-header {
height: 250px;
}
}
.header-img {
width: 100%;
height: 100%;
background-image: url(/images/bg.jpg);
background-size: cover;
}
.header-text {
position: absolute;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
color: rgba(255, 255, 255, 0.9);