- No Scroll bar
::-webkit-scrollbar { display: none; }
- Remove type="number"the arrow at the end
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; }
- Line clamp
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
- Full bleed
box-shadow: 0 0 0 1000vmax black; clip-path: inset(0 -100vmax);
- Transition to heigh auto
.wrapper { display:grid; grid-template-rows:0fr; transition: grid-template-rows 0.5s; } .wrapper.is-open { grid-template-rows: 1fr; } .inner { overflow:hidden; }
- Fade Gradients
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 1));
- Grid background
background-size: 40px 40px; background-image: linear-gradient(to right, grey 1px, transparent 1px), linear-gradient(to bottom, grey 1px, transparent 1px);
- Dotted background more info
background-size: 40px 40px; background-image: radial-gradient(circle, #000000 1px, rgba(0, 0, 0, 0) 1px);
Note:
-
apply overflow to flex-item might shrink it.
fix:
flex-shrink:0