Skip to content

Instantly share code, notes, and snippets.

@oti
Created November 4, 2016 18:55
Show Gist options
  • Save oti/ceedf9144bee8372aeaaf3b074426761 to your computer and use it in GitHub Desktop.
Save oti/ceedf9144bee8372aeaaf3b074426761 to your computer and use it in GitHub Desktop.
CSSのプロパティーの書き順(なんとなくやってるやつ)
.class {
pointer-events: none;
box-sizing: border-box;
z-index: 2147483647;
position: fixed;/*fixedやめろ*/
top: 0;
right: 0;
bottom: 0;
left: 0;
clear: both;
float: left;
display: flex;
justify-content: center;
align-items: center;
margin: auto;
padding: 0;
border: 1px solid currentColor;
border-collapse: collapse;
border-spacing: 0;
width: 100vw;
height: 100vh;
color: gold;
font-family: sans-serif;/*漢は黙ってsans-serif*/
font-size: 10px;/*ピコ文字やめろ*/
font-weight: bold;
font-style: italic;
line-height: 1;
text-align: center;
vertical-align: middle;
text-decoration: underline;
background: url('path/to/image.jpg') no-repeat 0 0;
background-clip: padding-box;
background-size: contain;
background-blend-mode: overlay;
box-shadow: 0 0 5px 10px rgba(0,0,0, 0.3);
outline: 0 none;/*やめろ*/
mix-blend-mode: overlay;/*やめろ*/
opacity: 0;/*やめろ*/
transform: translate3d(0,0,0);
backface-visibility: visible;
overflow: hidden;
transition: all 0.5s linear;
animation: tkg 0.5s linear;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment