collintate / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

Group selectors in CSS #4

Open aubreywullschleger opened 7 years ago

aubreywullschleger commented 7 years ago

Simplify! Consider adding a group selector in your CSS for any repeated styles. For example you could use:

#brushes, #frames, #paint {
  font-weight: bold;
  color: white; 
}

Then delete the other instances of font-weight: bold; and color: white; on those individual selectors. This practice will help your CSS to be more concise.

Also, I love your use of the universal (*) selector to style the font-family for all elements, this definitely helps keep your CSS clean and concise.

collintate commented 7 years ago

This is a great tip @aubreywullschleger. I'll be sure to remember to group CSS selectors on future projects. I went ahead and made this change to my code.