css初期化ファイル
3559 ワード
/* */
@charset "UTF-8";
html {
font-family: sans-serif;
font-size: 20px;
}
html,
body {
-webkit-touch-callout: none;
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-user-select: none;
width: 100%;
height: 100%;
}
body {
line-height: 1.5;
font-size: 0.8rem;
color: #212121;
background-color: #f5f5f5;
outline: 0;
}
html,
body,
header,
section,
footer,
div,
ul,
ol,
li,
img,
a,
span,
em,
del,
legend,
center,
strong,
var,
fieldset,
form,
label,
dl,
dt,
dd,
cite,
input,
hr,
time,
mark,
code,
figcaption,
figure,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p {
margin: 0;
border: 0;
padding: 0;
font-style: normal;
}
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
outline: none;
}
@media only screen and (min-width: 400px) {
html {
font-size: 21.33333333px !important;
}
}
@media only screen and (min-width: 410.2rem) {
html {
font-size: 21px !important;
}
}
@media only screen and (min-width: 480px) {
html {
font-size: 25.6px !important;
}
}
ul,
li {
list-style: none;
}
p {
font-size: 0.7rem;
color: #757575;
}
a {
color: #0062cc;
text-decoration: none;
background-color: transparent;
}
a:hover {
outline: 0;
}
textarea {
overflow: hidden;
resize: none;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
input,
select,
textarea {
font: inherit;
color: inherit;
}
/* 、 */
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 400;
}
h1 {
font-size: 1.2rem;
}
h2 {
font-size: 1rem;
}
h3 {
font-size: 0.8rem;
}
h4 {
font-size: 0.7rem;
}
h5 {
font-size: 0.7rem;
font-weight: normal;
color: #757575;
}
h6 {
font-size: 0.7rem;
font-weight: normal;
color: #757575;
}
h1 small,
h2 small,
h3 small,
h4 small {
font-weight: normal;
line-height: 1;
color: #757575;
}
h5 small,
h6 small {
font-weight: normal;
line-height: 1;
color: #757575;
}
h1 small,
h2 small,
h3 small {
font-size: 65%;
}
h4 small,
h5 small,
h6 small {
font-size: 75%;
}
/*flex */
.wrap {
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-flex-wrap: wrap
}
.flex {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-webkit-align-items: center;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-justify-content: space-between
}
.flex.j_center {
-ms-flex-pack: center;
justify-content: center;
-webkit-justify-content: center
}
.flex.j_start {
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-justify-content: flex-start
}
.flex.j_end {
-ms-flex-pack: end;
justify-content: flex-end;
-webkit-justify-content: flex-end
}
.flex.j_around {
-ms-flex-pack: distribute;
justify-content: space-around;
-webkit-justify-content: space-around
}
.flex.j_between {
-ms-flex-pack: distribute;
justify-content: space-between;
-webkit-justify-content: space-between
}
.flex.a_start {
-ms-flex-align: start;
align-items: flex-start;
-webkit-align-items: flex-start
}
.flex.a_end {
-ms-flex-align: end;
align-items: flex-end;
-webkit-align-items: flex-end
}
.flex.a_baseline {
-ms-flex-align: baseline;
align-items: baseline;
-webkit-align-items: baseline
}