Skip to content

Instantly share code, notes, and snippets.

@hitsujixgit
Created June 19, 2014 03:53
Show Gist options
  • Save hitsujixgit/0f31ac16f6350062ae3e to your computer and use it in GitHub Desktop.
Save hitsujixgit/0f31ac16f6350062ae3e to your computer and use it in GitHub Desktop.
HTMLからWPテーマを作成する - index.phpをカスタマイズする#1
/*
Theme Name: Sample 2.1
Theme URL: http://wordpress.hitsuji.me
Description: Wordpress sample theme for training.
Author: Tae Matsumoto
Version: 2.1
*/
/* 以下はすべて元のスタイルシートをコピーする */
/*---------------------------------------------------------*/
/* General */
/*---------------------------------------------------------*/
body {
font-family: 'Lucida Grande','Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
font-size: 14px;
color: black;
padding: 0;
margin: 0;
background-color: #f5f5f5;
}
a {
color: #555555;
text-decoration: none;
}
a img {
border: none;
}
a:hover {
color: #aaaaaa;
}
p {
font-size: 1.0em;
line-height: 1.6em;
}
div#container {
margin: 0 auto;
width: 900px;
padding: 0;
}
header {
display: block;
}
div#main {
background-color: #fff;
margin-top: 10px;
border: solid 1px #ccc;
border-radius: 3px;
overflow: hidden;
}
div#content {
width: 670px;
float: left;
padding: 0;
margin: 8px 0;
}
aside#sidebar {
width: 200px;
float: right;
padding: 0;
margin: 8px 0;
}
/*---------------------------------------------------------*/
/* Header */
/*---------------------------------------------------------*/
h1#site-title {
font-size: 2.0em;
margin: 15px 0 5px 0;
color:#2ea7e0;
}
h1#site-title a {
color: #2ea7e0;
}
h2#site-description {
font-size: 1.2em;
font-weight: bold;
color: #555555;
margin: 0 0 10px 0;
}
ul#main-nav {
margin: 0;
padding: 0;
height: 35px;
background-color: #777;
border-radius: 3px;
overflow: hidden;
}
ul#main-nav li {
list-style-type: none;
float: left;
}
ul#main-nav li a {
font-size: 1.1em;
display: block;
width: 150px;
line-height: 35px;
color: #fff;
text-align: center;
margin: 0;
border-right: groove 1px #aaa;
}
ul#main-nav li a:hover {
background-color: #555;
color: #fff;
}
/*---------------------------------------------------------*/
/* Article's Header */
/*---------------------------------------------------------*/
h1.post-title {
background-repeat: no-repeat;
background-position: left center;
border-left: solid 10px #99c348;
font-size: 1.6em;
padding: 10px 0 10px 20px;
margin: 8px 0 0 0;
color: #555;
border-top: solid 1px #ccc;
border-bottom: solid 1px #ccc;
}
h1.post-title a {
color: #555;
}
h1.post-title a:hover {
color: #99c348;
}
p.post-meta {
color: #555;
font-size: 1.0em;
padding: 5px 0 5px 20px;
margin: 0 0 3px 0;
border-left: solid 10px #aaa;
border-bottom: solid 1px #ccc;
}
/*---------------------------------------------------------*/
/* Article post */
/*---------------------------------------------------------*/
article.post {
padding: 10px 0 16px 10px;
}
/*---------------------------------------------------------*/
/* Sidebar */
/*---------------------------------------------------------*/
aside#sidebar h4 {
border-left: solid 10px #99c348;
font-size: 1.2em;
padding: 10px 0 10px 20px;
margin: 8px 0;
color: #555;
border-top: solid 1px #ccc;
border-bottom: solid 1px #ccc;
}
/*---------------------------------------------------------*/
/* footer */
/*---------------------------------------------------------*/
footer {
font-size: 0.9em;
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment