Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract use of Roboto font into global css class #50

Open
rkclark opened this issue May 23, 2018 · 0 comments
Open

Extract use of Roboto font into global css class #50

rkclark opened this issue May 23, 2018 · 0 comments

Comments

@rkclark
Copy link
Owner

rkclark commented May 23, 2018

This CSS is used in various places:

  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  font-weight: normal;

It should be extracted into a global css class and added to a new file src/css/fonts.css, from which the class can then be imported into each css module where it is needed, like this example:

/* import global css file */
@import "../../css/grid.css"; 

.wrapper {
  /* use composes syntax to apply classes from the global file to this class */
  composes: col-xs-12 col-md-6 col-lg-4;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant