Skip to content

Instantly share code, notes, and snippets.

@ituki
Last active June 18, 2020 01:12
Show Gist options
  • Save ituki/8662130 to your computer and use it in GitHub Desktop.
Save ituki/8662130 to your computer and use it in GitHub Desktop.
スマホサイトコーディングの覚え書き(ツール・コード・CSS・TIP等) ref: https://qiita.com/ituki_b/items/5f9a0dda32ec6fb323cf
p.name {/* 親 */
display: -webkit-box;
display: box;
-webkit-box-align: center;
box-align: center;
}
p.name span {/* 子の幅が固定のほう */
display: block;
width: 100px;
text-align: center;
}
p.name input {/* 子の幅を可変にしたいほう */
display: -webkit-box;
display: box;
-webkit-box-flex: 1;
box-flex: 1;
}
p.name a {
background: rgb(181,189,200) url(http://jsrun.it/assets/r/7/z/X/r7zXg.png) right center no-repeat; /* Old browsers */
background: url(http://jsrun.it/assets/r/7/z/X/r7zXg.png) right center no-repeat, -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(181,189,200,.8)), color-stop(36%,rgba(130,140,149,.8)), color-stop(100%,rgba(40,52,59,.8))); /* Chrome,Safari4+ */
background: url(http://jsrun.it/assets/r/7/z/X/r7zXg.png) right center no-repeat, -webkit-linear-gradient(top, rgba(181,189,200,.8) 0%,rgba(130,140,149,.8) 36%,rgba(40,52,59,.8) 100%); /* Chrome10+,Safari5.1+ */
background: url(http://jsrun.it/assets/r/7/z/X/r7zXg.png) right center no-repeat, linear-gradient(to bottom, rgba(181,189,200,.8) 0%,rgba(130,140,149,.8) 36%,rgba(40,52,59,.8) 100%); /* W3C */
-webkit-background-size: 20px 20px,auto auto;
background-size: 20px 20px,auto auto;
-webkit-background-origin: content-box, padding-box;
background-origin: content-box, padding-box;
}
.font_small {
letter-spacing: -0.01px;
}
z-indexが効いていない要素 {
-webkit-transform: translate3d(0,0,0);
}
body {
overflow: scroll;
-webkit-overflow-scrolling: touch;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment