- backface-visibility property
- BEM methodology
- coverr.co for cover videos
- object-fit property
- clip path
- box-decoration-break: clone;
- solid-color-gradient linear gradient with 2 color stops at same %
- general sibling ~
- adjascent sibling +
- -webkit-input-placeholder
- :placeholder-shown
- in order to use position absolute parent element must be have position defined.
- column-* properties: column-gap, column-rule, column-count;
- hyphens needs document language to defined.
- autoprefixer for browser support.
display:none
doesn't supports animation.
useopacity: 0;
visibility: hidden;
instead.- target pseudo class gets attached to the element of window.location.href.
min-width
: mobile first &max-width
: desktop first.- for specificity purposes we write media queries at last.
- order of media queries matters a lot.
- ORDER: base + typography > general layout + grid > page layout > components.
- way to prevent overflow on parent element when a modal or popup is open.
- how to merge branches on github.
- responsive images
- srcset 1x, 2x density descriptors.
- @supports queries and graceful degradation.
- minification / compression creates great impact on file size.
- gtmetrix for website performance tests.
justify-content
- main-axis.align-items
- cross axis - default is stretch.align-content
- only applies when there are more than 1 rows.- default
order
is zero. - default
flex-shrink: 1
hence element is allowed to shrink. - flex containers can be nested.
- sprite svg.
currentColor
value is like inherit.z-index
only works with position specified.last-child
selects last child of container.last-of-type
selects the same type element.- media queries should be written in
em
s and not inrem
s.
- we can use line names in repeat function, like this,
repeat(3, [col-start] 1fr [col-end] )
which will createcol-start 1
tocol-start 3
same withcol-end
.