Last active
June 18, 2020 01:12
-
-
Save ituki/8662130 to your computer and use it in GitHub Desktop.
スマホサイトコーディングの覚え書き(ツール・コード・CSS・TIP等) ref: https://qiita.com/ituki_b/items/5f9a0dda32ec6fb323cf
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
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; | |
} |
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
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; | |
} |
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
.font_small { | |
letter-spacing: -0.01px; | |
} |
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
z-indexが効いていない要素 { | |
-webkit-transform: translate3d(0,0,0); | |
} |
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
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