Last active
August 29, 2015 13:57
-
-
Save mypacecreator/9613923 to your computer and use it in GitHub Desktop.
自作WordPressテーマのお決まりCSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*------------------------------------------------------------------------------ | |
| WordPress required | |
| -------------------------------------------------------------------------------*/ | |
| /*------ entry ------*/ | |
| .hentry { | |
| margin-bottom: 20px; | |
| overflow: hidden; | |
| } | |
| .hentry .postdate { | |
| color: #666; | |
| font-size: x-small; | |
| text-align: right; | |
| margin-top: -1.5em; | |
| } | |
| .hentry.postinfo { | |
| color: #666; | |
| font-size: x-small; | |
| text-align: right; | |
| margin-top: 20px; | |
| clear: both; | |
| } | |
| .hentry table { | |
| border: 1px solid #999; | |
| margin-bottom: 20px; | |
| } | |
| .hentry table tr { | |
| } | |
| .hentry table th { | |
| padding: 10px; | |
| border: 1px solid #999; | |
| background-color: #DEEAFC; | |
| } | |
| .hentry table td { | |
| padding: 10px; | |
| border: 1px solid #999; | |
| } | |
| .hentry blockquote { | |
| background-color: #EEE; | |
| border: 1px solid #999; | |
| padding: 10px 15px 5px 15px; | |
| margin: 0 5px 10px 5px | |
| } | |
| .hentry li { | |
| line-height: 1.6; | |
| margin: 0 0 0.5em 3em; | |
| } | |
| .hentry ul li { | |
| list-style: disc; | |
| } | |
| .hentry p a { | |
| text-decoration: underline; | |
| } | |
| p.more { | |
| text-align: right; | |
| font-weight: bold; | |
| } | |
| a.more-link { | |
| text-align: right; | |
| font-weight: bold; | |
| margin: 10px 0; | |
| display: block; | |
| } | |
| /* 先頭に固定した投稿 */ | |
| .sticky { | |
| } | |
| /*----- 画像配置 -----*/ | |
| .alignnone { /* 指定なし */ | |
| /*padding: 4px; | |
| border: 1px solid #CCC; | |
| background-color: #FFF;*/ | |
| margin-bottom: 20px; | |
| } | |
| .alignright { /* 右寄せ */ | |
| /*padding: 4px; | |
| border: 1px solid #CCC; | |
| background-color: #FFF;*/ | |
| margin: 0 0 20px 20px; | |
| float: right; | |
| } | |
| .alignleft { /* 左寄せ */ | |
| /*padding: 4px; | |
| border: 1px solid #CCC; | |
| background-color: #FFF;*/ | |
| margin: 0 20px 20px 0; | |
| float: left; | |
| } | |
| .aligncenter { /* 中央配置 */ | |
| /*padding: 4px; | |
| border: 1px solid #CCC; | |
| background-color: #FFF;*/ | |
| margin: 0px auto 20px; | |
| display: block; | |
| } | |
| .wp-caption { /* 位置指定した画像の枠 */ | |
| text-align: center; | |
| } | |
| .wp-caption-text, | |
| .gallery-caption { /* 投稿内画像下のキャプション */ | |
| font-size: 0.8em; | |
| line-height: 1.4; | |
| color: #666; | |
| margin: 5px 0 0; | |
| } | |
| .attachment-post-thumbnail { /* アイキャッチ画像 */ | |
| /*padding: 4px; | |
| border: 1px solid #CCC; | |
| background-color: #FFF;*/ | |
| margin-bottom: 20px; | |
| } | |
| /*--- singleでの前後の投稿へのリンク ---*/ | |
| .pagelink { | |
| overflow: hidden; | |
| margin-bottom: 20px; | |
| } | |
| .pageprev { | |
| float: left; | |
| } | |
| .pagenext { | |
| float: right; | |
| } | |
| /*----- 自作mypacePageNavページャー -----*/ | |
| .pager { | |
| padding: 1em 0; | |
| margin: 0 auto 1em; | |
| text-align: center; | |
| font-weight: bold; | |
| overflow: hidden; | |
| clear: both; | |
| } | |
| .page-numbers { | |
| background-color: #FFF; | |
| padding: 5px 10px; | |
| border: solid 1px #666; | |
| border-radius: 5px; | |
| -moz-border-radius: 5px; | |
| -webkit-border-radius: 5px; | |
| } | |
| .pager .current, | |
| a.page-numbers:hover { | |
| color: #FFF; | |
| background-color: #06C; | |
| text-decoration: none; | |
| } | |
| .pager .next, | |
| .pager .prev { | |
| padding: 0 5px; | |
| } | |
| /*----- WP Sitemanagerのページャー -----*/ | |
| .page_navi { | |
| font-weight: bold; | |
| overflow: hidden; | |
| clear: both; | |
| margin: 20px 0; | |
| } | |
| .page_navi li { | |
| display: inline; | |
| list-style: none; | |
| } | |
| .page_navi li a { | |
| color: #444; | |
| background-color: #FFBFBA; | |
| display: inline-block; | |
| text-decoration: none; | |
| padding: 3px 7px; | |
| } | |
| .page_navi li.current span, | |
| .page_navi li a:hover { | |
| color: #FFF; | |
| background-color: #E83828; | |
| display: inline-block; | |
| text-decoration: none; | |
| padding: 3px 7px; | |
| } | |
| .page_navi li.page_nums span { | |
| color: #fff; | |
| background-color: #999; | |
| display: inline-block; | |
| padding: 3px 7px; | |
| } | |
| /*----- WP Sitemanagerのパンくず -----*/ | |
| ul.bread_crumb { | |
| margin-bottom: 10px; | |
| overflow: hidden; | |
| } | |
| ul.bread_crumb li { | |
| font-size: 0.9em; | |
| margin-left: 5px; | |
| float: left; | |
| } | |
| ul.bread_crumb li.top { | |
| } | |
| ul.bread_crumb li.sub:before { | |
| content:' > '; | |
| } | |
| * html ul.bread_crumb li.sub, | |
| *:first-child+html ul.bread_crumb li.sub { | |
| background: url("../img/path.png") no-repeat left center; | |
| padding-left: 10px; | |
| } | |
| /*------------------------------------------------------------------------------ | |
| Comment | |
| -------------------------------------------------------------------------------*/ | |
| #commentArea { | |
| background-color: #FFF; | |
| } | |
| .comment { | |
| background-color: #F2F2F2; | |
| padding: 1em; | |
| margin: 0 20px 20px 10px; | |
| } | |
| .commentmeta { | |
| font-size: 0.8em; | |
| } | |
| dl.commentform { | |
| margin: 0 0 1em 1em; | |
| } | |
| dl.commentform dt { | |
| font-weight: bold; | |
| } | |
| dl.commentform dd { | |
| margin-bottom: 1em; | |
| } | |
| .submitbtn { | |
| margin: 10px 0 10px 4em; | |
| } | |
| .commentform input[type="text"], | |
| .commentform textarea { | |
| border: 1px solid #CCC; | |
| padding: 5px; | |
| width: 90%; | |
| } | |
| .commentform input[type="text"]:focus, | |
| .commentform textarea:focus { | |
| background-color: #FFC; | |
| } | |
| .bypostauthor{} | |
| /*----- カレンダー(ウィジェット用) -----*/ | |
| #wp-calendar { | |
| width: 90%; | |
| margin-bottom: 20px; | |
| font-size: small; | |
| text-align: center; | |
| width: 90%; | |
| /*border: thin double #999;*/ | |
| } | |
| #wp-calendar a { | |
| color: #369; | |
| font-weight: bold; | |
| } | |
| #wp-calendar a:hover { | |
| color: #F90; | |
| border: none; | |
| } | |
| #wp-calendar td, #wp-calendar th { | |
| width: 13%; | |
| } | |
| #wp-calendar caption { | |
| padding: 6px 8px; | |
| font-weight: bold; | |
| color: #036; | |
| } | |
| #wp-calendar #prev { | |
| text-align: left; | |
| padding-top: 3px; | |
| padding-left: 3px | |
| } | |
| #wp-calendar #next { | |
| text-align: right; | |
| padding-top: 3px; | |
| padding-right: 3px | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment