Last active
August 29, 2015 14:08
-
-
Save wildwest-service/73255b3524e7921f9cc9 to your computer and use it in GitHub Desktop.
マークアップ構造を簡易にプレビューするためのCSSファイル
This file contains 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
/* | |
The MIT License (MIT) | |
Copyright (c) 2014 Kazuya Nagao (wildwest-service.com) | |
Included: [github-markdown-css] | |
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) | |
以下に定める条件に従い、本ソフトウェアおよび関連文書のファイル(以下「ソフトウェア」)の複製を取得するすべての人に対し、 | |
ソフトウェアを無制限に扱うことを無償で許可します。 | |
これには、ソフトウェアの複製を使用、複写、変更、結合、掲載、頒布、サブライセンス、および/または販売する権利、 | |
およびソフトウェアを提供する相手に同じことを許可する権利も無制限に含まれます。 | |
上記の著作権表示および本許諾表示を、ソフトウェアのすべての複製または重要な部分に記載するものとします。 | |
ソフトウェアは「現状のまま」で、明示であるか暗黙であるかを問わず、何らの保証もなく提供されます。 | |
ここでいう保証とは、商品性、特定の目的への適合性、および権利非侵害についての保証も含みますが、それに限定されるものではありません。 | |
作者または著作権者は、契約行為、不法行為、またはそれ以外であろうと、ソフトウェアに起因または関連し、 | |
あるいはソフトウェアの使用またはその他の扱いによって生じる一切の請求、損害、その他の義務について何らの責任も負わないものとします。 | |
*/ | |
*{margin:0;padding:0;} | |
body { | |
font:14px helvetica,arial,freesans,clean,sans-serif; | |
color:#272727; | |
line-height:1.4em; | |
background-color: #fff; | |
padding: 0.7em; | |
} | |
p { | |
margin:1em 0; | |
line-height:1.5em; | |
} | |
table { | |
font-size:inherit; | |
font:100%; | |
margin:1em; | |
} | |
tr:nth-child(odd){background-color: #f1f1f1;} | |
tr:nth-child(even){background-color: #d6d6d6;} | |
table th, table td{padding:.2em 1em;} | |
input[type=text],input[type=password],input[type=image],textarea{font:99% helvetica,arial,freesans,sans-serif;} | |
select,option{padding:0 .25em;} | |
optgroup{margin-top:.5em;} | |
pre,code{font:12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;} | |
pre { | |
margin:1em 0; | |
font-size:12px; | |
background-color:#eee; | |
border:1px solid #ddd; | |
padding:5px; | |
line-height:1.5em; | |
color:#444; | |
overflow:auto; | |
-webkit-box-shadow:rgba(0,0,0,0.07) 0 1px 2px inset; | |
-webkit-border-radius:3px; | |
-moz-border-radius:3px;border-radius:3px; | |
} | |
pre code { | |
padding:0; | |
font-size:12px; | |
background-color:#eee; | |
border:none; | |
} | |
code { | |
font-size:12px; | |
background-color:#f8f8ff; | |
color:#444; | |
padding:0 .2em; | |
border:1px solid #dedede; | |
} | |
img{border:0;max-width:100%;} | |
abbr{border-bottom:none;} | |
a{color:#4183c4;text-decoration:none;} | |
a:hover{text-decoration:underline;} | |
a code,a:link code,a:visited code{color:#4183c4;} | |
h2,h3{margin:1em 0;} | |
h1,h2,h3,h4,h5,h6{border:0;} | |
h1{font-size:170%;border-left:4px solid #272727;padding:0.4em;margin-top:1.5em;background-color: #bbb;line-height: 1.4;} | |
h1:first-child{margin-top:0;padding-top:.25em;border-top:none;} | |
h2{font-size:150%;margin-top:1.5em;border-top:4px solid #e0e0e0;padding-top:.5em;} | |
h3{margin-top:1em;} | |
hr{border:1px solid #ddd;} | |
ul{margin:1em 0 1em 2em;} | |
ol{margin:1em 0 1em 2em;} | |
ul li,ol li{margin-top:.5em;margin-bottom:.5em;} | |
ul ul,ul ol,ol ol,ol ul{margin-top:0;margin-bottom:0;} | |
blockquote{margin:1em 0;border-left:5px solid #ddd;padding-left:.6em;color:#555;} | |
dt{font-weight:bold;margin-left:1em;} | |
dd{margin-left:2em;margin-bottom:1em;} | |
sup { | |
font-size: 0.83em; | |
vertical-align: super; | |
line-height: 0; | |
} | |
* { | |
-webkit-print-color-adjust: exact; | |
} | |
@media screen and (min-width: 914px) { | |
body { | |
width: 854px; | |
margin:0 auto; | |
} | |
} | |
@media print { | |
table, pre { | |
page-break-inside: avoid; | |
} | |
pre { | |
word-wrap: break-word; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment