
サイトの良いデザインが思いつかなかった時、CSSデザイン例などを紹介しているブログから、気に入ったものをコピーして使用するということは、結構あると思います。
僕のようなデザイン経験の乏しい者にとって、コピペで手軽に使わせてもらえるのはとても参考になるし、ありがたいです。ただ当然、いろいろなところからCSSをコピーして使っていると、紹介しているサイトごとに、CSS記法が違っていたりします。
例えばこんな感じ。
- インデントでタブを使うかスペースを使うか
- インデントのスペース幅が2個とか4個とか
- CSSのプロパティーと値の間にスペースを入れるかどうかとか
(入れない例:margin:0;) - 一行で書ける量なら一行で書いてあるとか
- 複数のセレクターは改行するかどうかとか
- 括弧の囲い方とか
こういうのは、気にならない人は気にならないと思いますが、自分のCSS記法がキチッと定まっている人には、ちょっと気になるかもしれません。
そんな時は、「ProCSSor(現在サービス中止)」というCSS整形ツールが便利です。
photo by Mónica del Corral
目次
ProCSSorとは

「ProCSSor(現在サービス中止)」は、無料で使えるCSS整形ツールです。
これを使うことで、CSSの書式を統一することができ、見づらいコードも美しくなり、余分なコードも省いて最適化してくれます。
このツールの特徴は、余分なコードを省くからといって、CSSの実行に必要な部分だけ残すというわけではなく、作成者が見やすく編集しやすい形に整形してくれるところです。たまに、読みやすいようにするために入れておいたコメントが、すべて省かれてしまう整形ツールなどもありますが、このツールはそんなこともありません。
ProCSSorの使い方
ProCSSorの使い方はいたって簡単です。
入力欄にCSSを貼り付けて「PROCSS NOW」ボタンを押すだけです。
コピペの他に、ファイルやURLからでも、整形することができます。
デフォルトだと整形後は、こんな感じで表示されます。

自分のCSS記法に合わせたい場合は、オプションで指定します。
オプションではこのようなことを設定できます。
- Neat
- Properties of a rule:プロパティの改行ルール
- Brace Style:括弧の記入スタイル
- Indent Properties:インデントのスペース幅
- Pretty
- Selectors of a Rule:セレクタの改行ルール
- Sort Properties:プロパティーのソート(使用できないっぽい)
- Blank Line Between Rules:ルール(CSS設定)間に改行を入れる
- Improve Comments:コメントをオサレな感じに(逆に変になることもあります)
- Awesome
- Columnize:カラム(左寄せ、右寄せなど)
- Indent:インデント(タブを使用したインデントを使用したいときなど)
これらの設定を行うことで、自分のCSS記法にあった結果を出力することができます。
CSS変換後は、ダウンロードしたり、コピーしたりできるようになります。

試しに、今使用しているWordpressテーマのstyle.cssに書かれているスタイルシートを僕の好きな記法で変換してみました。
インデント幅は統一され、プロパティーと値の間にはスペースが1つ入り、統一された記法になりました。とても見やすいです。
↓クリックすると表示されます。
@charset "UTF-8";
/*
Theme Name: Simplicity
Description: Simplicityの意味は、単純、簡単、簡素、質素です。飾り気のないカスタマイズの土台となれるようなテーマを目指して作りました。
Theme URI: http://wp-simplicity.com/
Author: yhira
Author URI: https://nelog.jp/
Version: 1.0.2 20140817
License: GNU General Public License
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: white, right-sidebar, two-columns
*/
/************************************
** 基本設定(General Setting)
************************************/
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: 'Lucida Grande','Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
font-size: 1em;
}
img {
border-width: 0px
}
.article {
font-size: 16px;
line-height: 27px;
}
/*記事中の画像を要素内に収める*/
.article img {
max-width: 100%;
height: auto !important;
}
/************************************
** 見出し(H1-6)
************************************/
h1,
h2,
h3,
h4,
h5,
h6 {
/*font-weight: normal;*/
line-height: 130%;
color: #333;
}
.article h1,
.article h2,
.article h3,
.article h4,
.article h5,
.article h6 {
position: relative;
margin-top: 35px;
margin-bottom: 20px;
}
.article h1 {
margin-top: 30px;
margin-bottom: 20px;
font-size: 30px;
line-height: 35px;
}
h2#archive-title {
padding-bottom: 20px;
font-size: 26px;
}
.article h2 {
border-left: 1px solid #000;
margin: 40px -29px 20px;
padding: 25px 30px;
font-size: 26px;
}
.article h3,
#comment-area h3,
#related-entries h3 {
font-size: 23px;
border-bottom: 5px solid #e7e7e7;
padding: 10px 0;
}
.article h4,
.article h5,
.article h6 {
font-size: 20px;
padding: 8px 0;
}
.article h4 {
border-bottom: 5px dashed #eee
}
/************************************
** アンカー
************************************/
a {
color: #2098A8
}
a:hover {
color: #C03
}
#new-entries a,
#popular-entries a,
.wpp-list a,
.entry-read a,
.related-entry-read a {
color: #111
}
#new-entries a,
#popular-entries a,
.wpp-list a {
text-decoration: none
}
#new-entries a:hover,
#popular-entries a:hover,
.wpp-list a:hover,
.entry-read a:hover,
.entry .post-meta a:hover,
.related-entry-read a:hover,
.entry a:hover,
.related-entry-title a:hover,
.navigation a:hover,
#footer-widget a:hover {
color: #c03
}
#new-entries a:hover,
#popular-entries a:hover,
.wpp-list a:hover:hover {
text-decoration: underline
}
/************************************
** 引用(blockquote)
************************************/
blockquote {
background: none repeat scroll 0 0 rgba(245, 245, 245, 0.8);
border: 1px solid #FFFFFF;
margin: 0.8em 0;
padding: 20px 55px;
position: relative;
}
blockquote:before {
color: #C8C8C8;
content: "“";
font-family: serif;
font-size: 600%;
left: 0;
line-height: 1em;
position: absolute;
top: 0;
}
blockquote:after {
bottom: 0;
color: #C8C8C8;
content: "”";
font-family: serif;
font-size: 600%;
line-height: 0;
position: absolute;
right: 0;
bottom: -16px;
}
/* Internet Explorer11のみに適用したい設定 */
@media screen and (min-width:0\0) {
*::-ms-backdrop,
blockquote:before {
left: -55px
}
*::-ms-backdrop,
blockquote:after {
right: -55px
}
}
/************************************
** リスト(List)
************************************/
ul,
ol {
}
ul ul {
margin-left: 1em
}
dl {
margin: 30px 0
}
dt {
font-weight: bold
}
dd {
margin-bottom: 5px
}
/************************************
** テーブル(Table)
************************************/
.article table {
border-collapse: collapse
}
.article th {
border: solid 1px #ccc;
background-color: #eee;
}
.article td {
border: solid 1px #ccc;
background-color: #fff;
}
.article th,
.article td {
padding: 5px 8px
}
.article ol,
.article ul,
.article dl {
line-height: 150%
}
.article > ol,
.article > ul,
.article > dl {
margin: 30px 0
}
.article > ol ol,
.article > ul ul,
.article > dl dl {
margin: 0
}
/************************************
** その他(Other)
************************************/
pre {
background-color: #eee;
border: 1px solid #ccc;
padding: 7px;
}
hr {
color: #ddd;
margin: 30px 0;
width: 98%;
border: 1px solid #ddd;
}
.sankou {
}
.bold {
font-weight: bold
}
.red {
color: #E50202
}
.bold-red {
font-weight: bold;
color: #E50202;
}
.category-description {
margin-bottom: 30px;
background-color: #f7f7f7;
padding: 5px 20px;
border-radius: 3px;
border: 1px solid #ddd;
}
/************************************
** レイアウト(Layout)
************************************/
#container {
margin: 0;
padding: 0;
margin: 0 auto;
}
#header-in,
#navi-in,
#body-in,
#footer-in {
width: 1070px;
margin: 0 auto;
}
#header {
margin-bottom: 0px
}
#header .alignleft,
#header .alignright {
margin-bottom: 0px;
width: auto;
}
#header .alignleft {
margin-left: 30px;
max-width: 790px;
}
#header .alignright {
width: 210px;
text-align: right;
margin-right: 30px;
}
#body {
margin-top: 15px
}
#main {
float: left;
width: 680px;
padding: 20px 29px;
border: 1px solid #ddd;
background-color: #fff;
border-radius: 4px;
}
#sidebar {
float: right;
width: 300px;
}
#main,
#sidebar {
margin-bottom: 59px
}
.clear {
clear: both
}
/************************************
** ヘッダー(header)
************************************/
*:first-child+html #header > div {
/* IE7 */
clear: both;
zoom: 1;
}
#h-top {
min-height: 100px;
overflow: hidden;
background-repeat: no-repeat;
background-position: top left;
}
#site-title {
margin-top: 16px;
margin-bottom: 10px;
}
#site-title a {
display: block;
text-decoration: none;
color: #222;
font-size: 30px;
line-height: 100%;
}
#site-description {
margin-top: 0;
color: #777;
margin: 0;
padding: 10 0;
line-height: 140%;
font-size: 15px;
margin-right: 20px;
font-weight: normal;
}
#header-image {
margin-bottom: 40px
}
/************************************
** メニュー(menu)
************************************/
#navi ul {
position: relative;
clear: both;
margin-bottom: 0;
border: 1px solid #ddd;
background-color: #F7F7F7;
border-radius: 3px;
margin: 0;
padding: 0;
width: 100%;
}
#navi ul > li {
float: left;
list-style: none;
position: relative;
}
#navi ul li a {
font-size: 14px;
display: block;
padding: .3em .7em;
color: #111;
text-decoration: none;
z-index: 0;
}
#navi ul li a:hover {
background-color: #ddd
}
#navi ul.sub-menu,
#navi ul.children {
position: absolute;
left: -1px;
display: none;
margin-left: 0;
width: auto;
width: 150px;
border: 1px solid #ddd;
background: #F7F7F7;
list-style: none;
padding-left: 0;
z-index: 99;
}
#navi .sub-menu li,
#navi .children li {
position: relative;
border: none;
float: none;
position: relative;
}
#navi ul.sub-menu ul,
#navi ul.children ul {
top: -1px;
left: 150px;
position: relative;
}
#navi ul li:hover > ul {
display: block
}
/* Clearfix) */
#container:after,
#navi ul:after,
.clearfix:after {
display: block;
visibility: hidden;
clear: both;
height: 0;
content: " ";
font-size: 0;
}
/* clearfix for ie7 */
#container,
#navi ul,
.clearfix {
/*display: inline-block;_NO__DOTCOMMA__AFTER__*/
}
#container,
#navi ul,
.clearfix {
display: block
}
/************************************
** サーチフォーム(Search Form)
************************************/
#searchform {
position: relative;
margin-top: 25px;
}
#s {
padding: 6px 20% 6px 5%;
width: 75%;
border-radius: 25px;
}
#searchsubmit {
position: absolute;
top: 0;
right: 0px;
width: 30px;
height: 26px;
border: none;
background: url(images/search.png) no-repeat 50% 50%;
z-index: 0;
}
/************************************
** メインカラム(#main、記事、固定ページなど)
************************************/
#main .post,
#main .page {
margin-bottom: 59px
}
.sticky {
/* 先頭固定ポストのスタイル */:
}
.post-meta {
margin-bottom: 1.7em;
text-align: right;
background-color: #F7F7F7;
color: #555;
font-size: 16px;
}
.post-meta .post-date,
.post-meta .post-update,
.post-meta .category,
.post-meta .edit,
.footer-post-meta .post-tag,
.footer-post-meta .post-author,
.footer-post-meta .edit {
padding-right: 0.7em
}
.comment-num {
white-space: nowrap
}
.footer-post-meta {
text-align: right;
color: #555;
font-size: 16px;
}
.more-link {
float: right
}
/************************************
** index.phpのリスト
************************************/
.entry {
clear: both;
margin-bottom: 30px;
margin-right: 10px;
}
.entry-thumb {
float: left;
margin-right: 10px;
}
.entry-thumb img {
margin-bottom: 30px;
border: 0;
}
.entry-content {
margin-left: 160px
}
.entry .post-meta {
text-align: left;
margin: 7px auto;
}
.entry .post-meta a {
color: #000
}
.entry h2 {
margin-bottom: 5px
}
.entry h2 a {
color: #333;
font-size: 24px;
text-decoration: none;
font-weight: bold;
}
.entry-title {
}
.entry-snippet {
margin: 0 0 5px 0;
line-height: 150%;
color: #555;
}
.entry-read {
margin: 0
}
/************************************
** WordPress Misc
************************************/
.aligncenter {
display: block;
margin-right: auto;
margin-left: auto;
}
.alignleft {
float: left
}
.alignright {
float: right
}
.wp-caption {
margin: 10px;
padding-top: 4px;
border: 1px solid #ddd;
border-radius: 3px;
background-color: #f3f3f3;
text-align: center;
}
.wp-caption-text,
.gallery-caption {
font-size: 80%
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption-dd {
margin: 0;
padding: 0 4px 5px;
font-size: 11px;
line-height: 17px;
}
img.alignright {
display: inline-block;
margin: 0 0 1em 1.5em;
}
img.alignleft {
display: inline-block;
margin: 0 1.5em 1em 0;
}
/************************************
** index.php Main
************************************/
.content-box {
float: right;
margin-top: -0.25em;
width: 420px;
}
.content-box .more-link {
margin: 0
}
.thumbnail-box {
float: left;
width: 160px;
}
.thumbnail-box img {
width: 160px;
height: 160px;
}
/************************************
** パンくずリスト(Breadcrumb)
************************************/
#breadcrumb {
margin-bottom: 20px;
color: #777;
font-size: 13px;
}
div#breadcrumb div {
display: inline
}
#breadcrumb span.sp {
margin: 0 10px
}
#breadcrumb a {
text-decoration: none;
color: #777;
}
/*以下のパンくずスタイルは、いずれ削除*/
#breadcrumb ul {
margin: 0;
padding: 0;
list-style: none;
}
#breadcrumb ul li {
display: inline
}
#breadcrumb ul li span.sp {
margin: 0 10px
}
#breadcrumb ul li a {
text-decoration: none;
color: #777;
}
/************************************
** SNSシェアボタン
************************************/
ul.snsb {
padding: 10px 0;
margin-bottom: 0;
}
.snsb li {
float: left;
list-style-type: none;
margin-right: 5px;
padding-right: 5px;
}
ul.snsbs li {
margin-right: 5px
}
.snsbs li a:hover {
opacity: 0.7
}
.snsbs li img {
border-radius: 10px
}
/* 購読者数つきFeedlyボタン */
#feedly-followers {
display: block
}
#feedly-followers a {
display: block
}
#feedly-followers img {
width: 72px;
height: 22px !important;
border: none;
}
/* 購読者数の表示部分 */
#feedly-count {
margin: 0 auto 6px auto;
width: 62px;
height: 31px;
background-color: #FFF;
position: relative;
border: 1px solid #669966;
border-radius: 4px;
padding: 0 4px;
font-family: Arial;
font-size: 16px;
line-height: 31px;
text-align: center;
display: block;
background: white;
}
/* 購読者数吹き出し部分 */
.fdly-count:after,
.fdly-count:before {
border: solid transparent;
content: ' ';
right: 43%;
position: absolute;
}
.fdly-count:before {
border-width: 5px;
border-top-color: #B0C1D8;
top: 32px;
}
.fdly-count:after {
border-width: 5px;
border-top-color: #FFF;
top: 30px;
}
#header-in #h-l {
-webkit-box-shadow: none;
box-shadow: none;
}
/************************************
** SNSページフォロー
************************************/
.sns-follow-msg {
margin: 8px 0 0 0;
font-size: medium;
}
.sns-share-msg {
margin-bottom: -20px;
font-size: medium;
}
#header .sns-follow-msg {
display: none
}
ul.snsp {
list-style: none;
padding-left: 0;
margin: 10px 0 15px;
}
ul.snsp li {
display: inline
}
ul.snsp li a {
color: #666;
font-size: 19px;
line-height: 170%;
}
/*アイコンフォントの大きさ*/
ul.snsp li a i {
font-size: 40px
}
/*feedlyアイコンは自作なので少し大きかったので調整*/
ul.snsp li a i.icon-feedly-square {
font-size: 34px
}
ul.snsp li.twitter-page a:hover {
color: #55ACEE
}
ul.snsp li.facebook-page a:hover {
color: #3C5A99
}
ul.snsp li.google-plus-page a:hover {
color: #DD4B39
}
ul.snsp li.feedly-page a:hover {
color: #87BD33
}
ul.snsp li.rss-page a:hover {
color: #FE9900
}
ul.snsp li.feedly-page a img {
margin-bottom: -3px;
width: 32.5px;
height: 32.5px;
border-radius: 7px;
border-width: 0px;
}
ul.snsp li a i {
background-image: url("images/white.png");
background-repeat: no-repeat;
background-position: 3px 5px;
padding: 0;
}
/************************************
** 前の記事へ、次の記事へ
************************************/
.navigation {
clear: both;
overflow: hidden;
margin-bottom: 40px;
margin: 20px -30px 40px;
}
.navigation > div {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.navigation > div + div {
border-top: 0;
border-bottom: 1px solid #ddd;
}
.navigation .alignright {
text-align: right
}
.navigation a {
display: block;
padding: 1em;
border: none;
}
.navigation a i {
color: #ddd;
padding-right: 10px;
margin-top: -4px;
clear: left;
}
.navigation a:hover {
background: #eee
}
.navigation .alignright a:hover {
border-left: 1px solid #ddd
}
/************************************
** ページャー、ページナビゲーション
************************************/
.pager {
margin: 3em 0;
text-align: center;
}
a.page-numbers,
.pager .current {
background-color: #ddd;
border: solid 1px #ddd;
border-radius: 5px;
padding: 5px 8px;
margin: 0 2px;
}
.pager .current {
background-color: #ddd;
border: solid 1px #ddd;
color: #000;
}
.pager a {
background: #fff;
color: #000;
text-decoration: none;
}
.pager a:hover {
border: solid 1px #ddd;
background-color: #eee;
}
/************************************
** 記事分割時のページナビゲーション
************************************/
.page-link {
margin: 3em 0;
text-align: center;
}
.comment-page-link {
margin: 0 0 3em
}
.page-link span,
.comment-page-link span,
.comment-page-link a {
margin-right: 3px;
padding: 5px 8px;
border: 1px solid #ddd;
background: #ddd;
border-radius: 5px;
}
.page-link a span,
.comment-page-link a {
background: #fff;
color: #000;
}
.page-link a {
border-bottom: none;
color: #000;
text-decoration: none;
}
.page-link a span:hover,
.comment-page-link a:hover {
background: #eee;
color: #000;
}
/************************************
** 関連記事(Relation)
************************************/
.related-entry h3 {
font-size: 24px
}
.related-entry {
line-height: 150%;
margin-bottom: 20px;
margin-right: 10px;
clear: both;
}
.related-entry-thumb {
float: left;
margin-bottom: 5px;
padding-bottom: 5px;
margin-bottom: 30px;
}
.related-entry-thumb img {
border: 0
}
.related-entry-content {
margin-left: 120px
}
.related-entry-title {
margin-bottom: 5px
}
.related-entry-title a {
text-decoration: none;
font-size: 18px;
font-weight: bold;
color: #333;
}
.related-entry-snippet {
margin: 0 0 5px 0;
color: #555;
}
.related-entry-read {
margin: 0;
font-size: 14px;
}
/************************************
** 関連記事サムネイル(Relation)
************************************/
.related-entry-thumbnail {
width: 226px;
height: 292px;
text-align: center;
overflow: hidden;
float: left;
margin-bottom: 15px;
}
.related-entry-thumbnail .related-entry-thumb {
margin: 0;
padding: 0;
float: none;
}
.related-entry-thumbnail .related-entry-content {
margin: -20px 6px 0
}
.related-entry-thumbnail .related-entry-content a {
font-weight: normal
}
/************************************
** コメントエリア(Comments Area)
************************************/
#comment-area ol,
#comment-area ul {
list-style: none;
padding-left: 0;
}
.required {
color: #fe56aa
}
.commets-list,
.trackback-list {
margin-top: -20px;
margin-bottom: 40px;
}
.commets-list li,
.trackback-list li {
margin-top: -1px;
padding: 20px 0 0;
width: 100%;
border-bottom: 1px solid transparent;
}
.commets-list .avatar {
float: left;
margin-right: 10px;
margin-bottom: 10px;
}
.comment-meta,
.reply,
.comment-notes,
.form-allowed-tags,
span.small {
font-size: 80%
}
.comment-body p {
clear: both
}
.reply {
text-align: right
}
.bypostauthor {
/* 記事投稿者のコメントのスタイル */:
}
.children {
padding-left: 2em
}
#respond {
margin-bottom: 40px
}
/************************************
** 入力フォーム(Form)
************************************/
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea {
margin: 0;
margin-bottom: 20px;
padding: 6px 4px;
max-width: 100%;
width: 290px;
outline: none;
border: 1px solid #ddd;
border-radius: 2px;
background: #eee;
color: #555;
vertical-align: bottom;
font-size: 14px;
padding: 0;
}
.gsc-search-box input[type="text"] {
background-color: #FFF;
border-radius: 0px;
}
#comment-area input[type="text"],
#comment-area textarea {
display: block
}
textarea {
overflow: auto;
width: 80%;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
border: 1px solid #ff69b4;
background: #fff;
-webkit-box-shadow: 0 0 3px rgba(255,105,180,1);
-moz-box-shadow: 0 0 3px rgba(255,105,180,1);
box-shadow: 0 0 3px rgba(255,105,180,1);
color: #444;
}
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
display: inline-block;
margin-bottom: 20px;
padding: 6px 12px;
border: 1px solid #777;
border-radius: 3px;
background: #fff;
color: #333;
text-decoration: none;
font-weight: bold;
line-height: normal;
cursor: pointer;
/* Old browsers */
}
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
background: #eee
}
.button:active,
button:active,
input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active {
position: relative;
top: 1px;
}
/************************************
** サイドバー(Sidebar)
************************************/
#sidebar h4 {
margin-bottom: 10px;
font-size: 20px;
}
.widget {
margin-bottom: 45px
}
.widget_search {
margin-bottom: 0
}
#sidebar ul,
#sidebar ol {
padding-left: 1em;
list-style: none;
}
#sidebar-recent-posts li,
#sidebar-popular-posts li {
margin: 20px 0
}
#sidebar li {
margin-bottom: 10px
}
.sidebar-thumbnail-box {
float: left;
width: 75px;
}
.sidebar-recent-posts-title {
float: right;
width: 165px;
}
#sidebar-recent-posts h3,
#sidebar-recent-posts p,
#sidebar-popular-posts h3,
#sidebar-popular-posts p {
margin: 0
}
.tagcloud a {
white-space: nowrap
}
/************************************
** 新着記事・人気記事(new, pupular)
************************************/
#new-entries,
#popular-entries {
line-height: 150%
}
#new-entries h4,
#popular-entries h4 {
margin-bottom: 15px
}
#new-entries ul,
#popular-entries ul {
padding-left: 0
}
#new-entries ul li,
#popular-entries ul li {
clear: left;
float: none;
margin-bottom: 10px;
}
#new-entries ul li img,
#popular-entries ul li img {
border: medium none;
display: inline;
float: left;
margin: 0 5px 10px 0;
}
/************************************
** フッター(footer)
************************************/
#footer {
clear: both;
background-color: #555;
color: #fff;
padding: 5px 5px 5px 35px;
}
#footer-widget {
margin: 10px auto;
text-align: left;
padding: 0 5%;
}
.footer-left {
float: left;
width: 34%;
padding: 0;
}
.footer-center {
float: left;
width: 33%;
padding: 0;
}
.footer-right {
float: left;
width: 33%;
padding: 0;
}
#footer-widget {
color: #fcfcfc
}
#footer-widget ul {
list-style: none;
padding-left: 1em;
}
#footer-widget li {
font-size: 14px
}
#footer a {
color: #DCDCDC
}
#footer h4 {
color: #fff
}
#copyright {
padding: 20px 0;
font-size: 80%;
text-align: center;
}
#copyright a {
text-decoration: none;
color: #fff;
}
/************************************
** TOPへ戻るボタン(Go to top)
************************************/
#page-top {
position: fixed;
right: 16px;
bottom: 16px;
display: none;
}
#page-top a {
color: #fff;
padding: 10px;
text-decoration: none;
display: block;
cursor: pointer;
text-align: center;
background: #aaa;
line-height: 100%;
border-radius: 5px;
}
#page-top a:hover {
background: #8b8b8b;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
/************************************
** 広告(ads)
************************************/
.ad-space {
margin: 30px 0;
clear: both;
}
.ad-article-bottom {
}
.ad-left {
float: left;
margin-right: 4px;
width: 336px;
}
.ad-right {
float: right;
margin-left: 4px;
width: 336px;
}
#sidebar .ad-space {
margin-top: 0
}
#sidebar .ad-space .ad-label {
display: none
}
/************************************
** シェアバー
************************************/
#sharebar {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #CCCCCC;
margin: 0;
padding: 0;
position: absolute;
text-align: center;
z-index: 99;
margin-left: -110px;
margin-top: -50px;
width: 90px;
position: fixed;
}
#sharebar ul li {
display: block;
margin: 5px;
overflow: hidden;
padding: 0;
text-align: center;
float: none;
padding: 0;
}
#sharebar .sns-share-msg {
display: none
}
/************************************
** TOPへ戻るボタン(Go to top)
************************************/
#page-top {
position: fixed;
right: 16px;
bottom: 16px;
display: none;
}
#page-top a {
color: #fff;
padding: 10px;
text-decoration: none;
display: block;
cursor: pointer;
text-align: center;
background: #aaa;
line-height: 100%;
border-radius: 5px;
}
#page-top a:hover {
background: #8b8b8b;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
/************************************
** モバイルメニュー
************************************/
#mobile-menu {
display: none
}
#mobile-menu a {
color: #fff;
padding: 8px;
width: 100px;
text-decoration: none;
display: block;
cursor: pointer;
text-align: center;
background: #aaa;
line-height: 100%;
border-radius: 10px;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
position: absolute;
right: 30px;
}
#mobile-menu a:hover {
background: #8b8b8b;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
/************************************
** レスポンシブデザインスタイル読込
************************************/
@media screen and (max-width:1150px) {
#header-in,
#navi-in,
#body-in,
#footer-in {
width: 740px
}
#site-title a {
margin-right: 170px
}
#sidebar {
clear: both;
float: none;
padding: 15px;
width: auto;
position: static !important;
}
#footer-widget {
display: none
}
#footer-widget .footer-left,
#footer-widget .footer-center,
#footer-widget .footer-right {
clear: both;
width: 100%;
}
#sidebar-scroll {
display: none
}
/************************************
** モバイルメニュー
************************************/
#mobile-menu {
display: block;
position: relative;
}
/************************************
** ヘッダー関係
************************************/
#header .menu {
display: none
}
#header .alignright {
display: none
}
/************************************
** メインメニュー
************************************/
#navi ul {
display: none
}
#navi ul li {
float: none;
border-left: 0;
border-top: 0px;
border: solid 1px #ccc display:block;
}
#navi ul li a:hover {
text-decoration: none;
background-color: #ddd;
}
#navi ul li a {
font-size: medium;
padding: 10px;
color: #111;
background: #f3f3f3;
}
#navi ul.sub-menu,
#navi ul.children {
display: none !important
}
}
/* 画面幅が1151px以上の時 */
@media screen and (min-width:1151px) {
#navi ul {
display: block
}
}
※インデントされたコメントは、ずれることもあるようです。
まとめ
「ProCSSor(現在サービス中止)」は、サイトのデザイン完成時にCSS記法を統一するのにとても便利だと思います。
僕も、好みのCSS記法はあるものの、使用するエディターによっては、登録されているスニペットの違いから記法が変わってしまうことも結構あります。なので書くときは、書きたいように書いて、こういうもので後から一発で自分好みの書き方に変換できるのは、ものすごく楽でいいです。
後のメンテナンス時のコードの可読性が良くなる点からも今後積極的に使っていきたいと思います。