Skip to content

Instantly share code, notes, and snippets.

@lior-amsalem
Created July 16, 2022 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lior-amsalem/19997fe26fdf32e3979fa12c72f9493e to your computer and use it in GitHub Desktop.
Save lior-amsalem/19997fe26fdf32e3979fa12c72f9493e to your computer and use it in GitHub Desktop.
.app-name-wrapper {
/* lots of code that wrapper covers */
}
.page-name-wrapper {
/* For example, in amazon it would be .catalog-tv {} to apply css styles for tv catalog pages. */
}
/* As we continue we'll get and become more granular, smaller in responsibility, and encapsulating less and less code. For more part it can be achieved with 3-4 levels of responsibility */
.section-name-wrapper {
/* sections like menu, navbar, articles, header, footer etc. Could be mostly margin, padding, structure, sizes etc */
}
.component-name-wrapper {
/* component specific wrapper */
}
.component-name {
/* component very specific styling */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment