276 lines
3.4 KiB
CSS
276 lines
3.4 KiB
CSS
/*
|
|
////////////////////////////////////////
|
|
reset.css を読み込んで全てのスタイルをなくす
|
|
////////////////////////////////////////
|
|
*/
|
|
|
|
/* http://meyerweb.com/eric/tools/css/reset/
|
|
v2.0 | 20110126
|
|
License: none (public domain)
|
|
*/
|
|
|
|
html,
|
|
body,
|
|
div,
|
|
span,
|
|
applet,
|
|
object,
|
|
iframe,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6,
|
|
p,
|
|
blockquote,
|
|
pre,
|
|
a,
|
|
abbr,
|
|
acronym,
|
|
address,
|
|
big,
|
|
cite,
|
|
code,
|
|
del,
|
|
dfn,
|
|
em,
|
|
img,
|
|
ins,
|
|
kbd,
|
|
q,
|
|
s,
|
|
samp,
|
|
small,
|
|
strike,
|
|
strong,
|
|
sub,
|
|
sup,
|
|
tt,
|
|
var,
|
|
b,
|
|
u,
|
|
i,
|
|
center,
|
|
dl,
|
|
dt,
|
|
dd,
|
|
ol,
|
|
ul,
|
|
li,
|
|
fieldset,
|
|
form,
|
|
label,
|
|
legend,
|
|
table,
|
|
caption,
|
|
tbody,
|
|
tfoot,
|
|
thead,
|
|
tr,
|
|
th,
|
|
td,
|
|
article,
|
|
aside,
|
|
canvas,
|
|
details,
|
|
embed,
|
|
figure,
|
|
figcaption,
|
|
footer,
|
|
header,
|
|
hgroup,
|
|
menu,
|
|
nav,
|
|
output,
|
|
ruby,
|
|
section,
|
|
summary,
|
|
time,
|
|
mark,
|
|
audio,
|
|
video {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
font-size: 100%;
|
|
font: inherit;
|
|
vertical-align: baseline;
|
|
}
|
|
/* HTML5 display-role reset for older browsers */
|
|
article,
|
|
aside,
|
|
details,
|
|
figcaption,
|
|
figure,
|
|
footer,
|
|
header,
|
|
hgroup,
|
|
menu,
|
|
nav,
|
|
section {
|
|
display: block;
|
|
}
|
|
body {
|
|
line-height: 1;
|
|
}
|
|
ol,
|
|
ul {
|
|
list-style: none;
|
|
}
|
|
blockquote,
|
|
q {
|
|
quotes: none;
|
|
}
|
|
blockquote:before,
|
|
blockquote:after,
|
|
q:before,
|
|
q:after {
|
|
content: "";
|
|
content: none;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
/*
|
|
////////////////////////////////////////
|
|
reset.css では足りない初期化を追加
|
|
////////////////////////////////////////
|
|
*/
|
|
|
|
/* 全てに box-sizing: border-box; を適用 */
|
|
*,
|
|
*:before,
|
|
*:after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 画像に関する初期設定 */
|
|
img {
|
|
/* 大きい画像がはみ出さないように */
|
|
max-width: 100%;
|
|
/* 画像周りの無駄なスペースができないように */
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
[data-whatinput="mouse"] *:focus,
|
|
[data-whatinput="touch"] *:focus {
|
|
outline: none;
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
font-family: inherit;
|
|
}
|
|
|
|
/*
|
|
////////////////////////////////////////
|
|
初期設定
|
|
////////////////////////////////////////
|
|
*/
|
|
|
|
body {
|
|
padding: 32px 0;
|
|
color: #56564f;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
article {
|
|
width: 640px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/*
|
|
////////////////////////////////////////
|
|
以下に自分なりのCSSを書いて読みやすくする
|
|
////////////////////////////////////////
|
|
*/
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
line-height: 1.4;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
line-height: 1.4;
|
|
margin-bottom: 0.5em;
|
|
border-bottom: 1px solid gray;
|
|
}
|
|
|
|
p {
|
|
line-height: 1.8;
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: disc;
|
|
padding: 0.5em 0.5em 0.5em 2em;
|
|
}
|
|
|
|
ol {
|
|
list-style-type: decimal;
|
|
padding: 0.5em 0.5em 0.5em 2em;
|
|
}
|
|
|
|
ul li,
|
|
ol li {
|
|
line-height: 1.4;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
blockquote {
|
|
padding-left: 1em;
|
|
margin-bottom: 2em;
|
|
border-left: 7px solid #ccc;
|
|
}
|
|
|
|
img {
|
|
width: 40%;
|
|
display: block;
|
|
margin: auto;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
label {
|
|
width: 104px;
|
|
display: inline-block;
|
|
font-weight: bold;
|
|
text-align: right;
|
|
vertical-align: middle;
|
|
padding-right: 0.5em;
|
|
}
|
|
|
|
input[type="text"],
|
|
textarea {
|
|
width: calc(100% - 130px);
|
|
padding: 0.5em;
|
|
border: solid 1px #aaa;
|
|
border-radius: 4px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.form-items__item {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
input[type="submit"] {
|
|
display: block;
|
|
margin: 0 auto;
|
|
background-color: #4397de;
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
width: 200px;
|
|
height: 40px;
|
|
border: solid 1px #4397de;
|
|
border-radius: 4px;
|
|
}
|