digital:css:tips
CSS Tips
みずたま背景
- dotted_pattern.css
.dottedbg { background: #888; background-image: radial-gradient(#444 20%, transparent 0), radial-gradient(#444 20%, transparent 0); background-position: 0 0, 25px 25px; background-size: 50px 50px; }
Dotted B.G.
みずたま背景2
- dotted_pattern.css
.dottedbg2 { background: #888; background-image: radial-gradient(#444 40%, transparent 0), radial-gradient(#444 40%, transparent 0); background-position: 0 0, 25px 25px; background-size: 50px 50px; }
Dotted B.G.
みずたま背景3
- dotted_pattern.css
.dottedbg3 { background: #888; background-image: radial-gradient(#444 20%, transparent 0), radial-gradient(#444 20%, transparent 0); background-position: 0 0, 10px 10px; background-size: 20px 20px; }
Dotted B.G.
応用
- dottedButton01.css
.dotteButton01 { background: #E0609F; background-image: radial-gradient(#965BC4 30%, transparent 0), radial-gradient(#965BC4 30%, transparent 0); background-position: 0 0, 15px 15px; background-size: 30px 30px; border: 2px inset rgba(108, 69, 138, 0.3); border-radius: 0.5em; line-height: 1; padding: 0.4em 1.5em; color: white; font-size: 150%; font-weight: bold; text-decoration: none; position: relative; top: 0; left: 0; transition-property: all; transition-duration: 0.5s; box-shadow: 2px 4px 2px 1px rgba(0, 0, 0, 0.3); text-shadow: 1px 0 0 rgba(0, 0, 0, 0.3), 1px 1px 0 rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.3), -1px 1px 0 rgba(0, 0, 0, 0.2), -1px 0 0 rgba(0, 0, 0, 0.3), -1px -1px 0 rgba(0, 0, 0, 0.2), 0 -1px 0 rgba(0, 0, 0, 0.3), 1px -1px 0 rgba(0, 0, 0, 0.2); } .dotteButton01:hover { background-image: radial-gradient(rgba(0,0,0,0.1) 30%, transparent 0), radial-gradient(rgba(0,0,0,0.1) 30%, transparent 0); top: 2px; left: 1px; text-decoration: none; box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition-duration: 0.1s; }
digital/css/tips.txt · 最終更新: 2018/12/28 13:55 by paya