Revert "Use wrapper class instead of id"

feature/cover-image
Hang Jiang 8 years ago committed by GitHub
parent 0bb01bc762
commit 72b335765d

@ -2,7 +2,7 @@
<body> <body>
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
<section class="wrapper home"> <section id="wrapper" class="home">
<article class="post"> <article class="post">
<header> <header>
<h1>{{ with .Site.Params.title404 }}{{ . }}{{ else }}404 - Page not found{{ end }}</h1> <h1>{{ with .Site.Params.title404 }}{{ . }}{{ else }}404 - Page not found{{ end }}</h1>

@ -3,7 +3,7 @@
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
{{ partial "profile.html" . }} {{ partial "profile.html" . }}
<section class="wrapper home"> <section id="wrapper" class="home">
{{ range .Data.Pages.GroupByDate "2006" }} {{ range .Data.Pages.GroupByDate "2006" }}
<div class="archive"> <div class="archive">
<h3>{{ .Key }}</h3> <h3>{{ .Key }}</h3>

@ -2,7 +2,7 @@
<body> <body>
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
<section class="wrapper"> <section id="wrapper">
<article class="post"> <article class="post">
<header> <header>
<h1> <h1>

@ -3,7 +3,7 @@
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
{{ partial "profile.html" . }} {{ partial "profile.html" . }}
<section class="wrapper home"> <section id="wrapper" class="home">
{{ .Content }} {{ .Content }}
{{ if .Site.Params.enableDisqus }} {{ if .Site.Params.enableDisqus }}

@ -4,7 +4,7 @@
{{ partial "profile.html" . }} {{ partial "profile.html" . }}
<section class="wrapper home"> <section id="wrapper" class="home">
{{ partial "post-list.html" . }} {{ partial "post-list.html" . }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

@ -1,4 +1,5 @@
<section class="wrapper profile"> <div class="profile">
<section id="wrapper">
<header id="header"> <header id="header">
<a href='{{ .Site.BaseURL }}about'> <a href='{{ .Site.BaseURL }}about'>
<img id="avatar" class="2x" src="{{ .Site.BaseURL }}images/avatar.png"/> <img id="avatar" class="2x" src="{{ .Site.BaseURL }}images/avatar.png"/>
@ -7,3 +8,4 @@
<h2>{{ .Site.Params.bio | markdownify }}</h2> <h2>{{ .Site.Params.bio | markdownify }}</h2>
</header> </header>
</section> </section>
</div>

@ -3,7 +3,7 @@
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
{{ partial "profile.html" . }} {{ partial "profile.html" . }}
<section class="wrapper tags"> <section id="wrapper" class="tags">
<div class="page-tags" id="tags"> <div class="page-tags" id="tags">
{{ range $name, $taxonomy := .Site.Taxonomies.tags }} {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<span class="tags"> <span class="tags">

@ -134,7 +134,7 @@ h2 {
color: #bbb; color: #bbb;
} }
.wrapper.profile { .profile #wrapper {
padding: 100px 40px 0px; padding: 100px 40px 0px;
max-width: 600px; max-width: 600px;
margin: 0 auto; margin: 0 auto;
@ -200,13 +200,13 @@ nav.main-nav a.cta {
margin-left: 12px; margin-left: 12px;
} }
.wrapper { #wrapper {
max-width: 600px; max-width: 600px;
margin: 0 auto; margin: 0 auto;
padding: 60px 40px 100px 40px; padding: 60px 40px 100px 40px;
} }
.wrapper.home { #wrapper.home {
max-width: 600px; max-width: 600px;
margin: 0 auto; margin: 0 auto;
padding: 0px 40px 20px 40px; padding: 0px 40px 20px 40px;
@ -747,7 +747,7 @@ h2.month {
/* Media Queries */ /* Media Queries */
@media screen and (max-width: 540px) { @media screen and (max-width: 540px) {
.wrapper { #wrapper {
padding: 20px 20px 20px 20px; padding: 20px 20px 20px 20px;
} }
#header { #header {
@ -871,7 +871,7 @@ code {
* tags page * tags page
*/ */
.wrapper.tags { #wrapper.tags {
padding: 0px 40px 20px 40px; padding: 0px 40px 20px 40px;
} }
.page-tags { .page-tags {

Loading…
Cancel
Save