basic usage of scss, which contains variables, nesting, functions, mixins and extends. And the practice link in codepen is here
transform-origin
-> default to center.
+ selector
direct sibling element
~ selector
general sibling element might not be the next to it.
==hijack the checkbox== or ==checkbox hack==?
checkbox:check
and display:none
solid-gradient animation
background-position
background-size
cubic-bezier function
An anchor is the elements' id, use <a href="#id"/>
can route to the correspond anchor
anchor -> anchor-element:target
some attributes can not be animated
e.g display:none
--> instead --> opacity:0; visibility:hidden
;
Same element can only have ONE transform
attribute
use last transform
overwrite the former one.
display:table
can be used to make sibling elements have the same HEIGHT
parent-element {
display: table;
}
siblings {
display: table-cell;
vertical-align: middle;
}
column
attribute which can separate a paragraph in to specified columns
column-count: 2; // numbers
column-gap: 4rem; // space between gaps
column-rule: 1px solid $color-grey-light-2;
hyphens
use with
add -
to a word at the end of line.
@media(max-width:xxx)
and@media(min-width:xxx)
diffs.- sass mixin to write media query.
- 3 ways to write media query : bad\good\perfect.
- content of
_typography.scss
and_base.scss
. height:auto
means why card__back not show?
some key words: <img srcset />
<source media srcset />
, desity descriptor, resolution switching.
key words: <img> sizes
, <srcset>
, width
descriptor.