html - SASS extend/share/inherit specific properties from parent to child or vice versa -
is possible extend/share selected/specific properties child parent e.g. without creating variable?
.main-container { padding: 20px; margin: 20px; ul { padding:$parentpadding(); margin: 0; } }
or vice versa
in case, .main-container { ul {
rendered .main-container ul {
, once parent element ul
.main-container
can achieve want using purely css solution: inherit
ul{ padding: inherit; //will inherit padding value of parent element }
Comments
Post a Comment