-
Notifications
You must be signed in to change notification settings - Fork 3
Styling
Shuqian Hon edited this page Sep 12, 2018
·
6 revisions
You can create styles which will apply to any page.
-
Open
client/src/styles/app.scss
-
To give all pages a red background by default add the following code
#watch {
background-color: red;
}
You can find an example of this in client/src/main.scss
@import './styles/pages/home.scss'
...
-
Create a new SCSS file
client/src/styles/pages/my_page.scss
-
Include the SCSS file in
client/src/main.scss
with the following code@import './styles/pages/my_page.scss';
-
Add your custom styles using the selector
#my-page
to limit the scope.
#my-page {
p {
color: red;
}
}