Passion make things more better

Rails, Swiftあたりの話題を中心に書いています

normalize.cssを使用するときのベースCSS

normalize.cssを使用する時のベースとなるCSSです。

html {
  font-family: Helvetica, Arial,"Meiryo","メイリオ","ヒラギノ角ゴ Pro w3","Hiragino Kaku Gothic Pro,osaka","MS Pゴシック",sans-serif;
  font-size: 10px;
  overflow: hidden;
  overflow-y: scroll;
}

body {
  min-width: 1100px;
  margin: 0;
}

@media (max-width: 1024px) {
  body {
    min-width: 100%;
  }
}

h1, h2, h3, h4, h5, h6 {
  line-height: 2;
  margin-top: 0px;
  margin-bottom: 0px;
}

@media (max-width: 1024px) {
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.6;
  }
}
@media (max-width: 740px) {
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
  }
}

h1, h2, h3, h4, h5, h6,
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary, div, span, p, ul, ol, li, dl, dt, dd, table, tr, th, td, a, img, *:after, *:before {
  box-sizing: border-box;
}

figure {
  margin: 0;
  padding: 0;
}

p, li, dl, table {
  line-break: strict;
  word-break: break-strict;
  word-wrap: break-word;
  line-height: 2;
  font-size: 16px;
  margin-top: 0px;
  margin-bottom: 0px;
}

small {
  font-size: 12px;
}

@media (max-width: 1024px) {
  p, li, dl, table {
    line-height: 1.7;
  }
}
@media (max-width: 740px) {
  p, li, dl, table {
    line-height: 1.5;
  }
}

tr {
  word-break: break-all;
}

img {
  vertical-align: bottom;
  max-width: 100%;
}

a {
  background: transparent;
  text-decoration: none;
  transition: 0.3s;
}

a:focus{
    outline:none;
}

a:hover {
  text-decoration: underline;
}

.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

textarea {
  overflow: auto;
  vertical-align: top;
  resize: vertical;
}

select option {
  padding: 0px 5px;
}

form label {
  cursor: pointer;
}