Skip to content

Commit ecd7cc4

Browse files
committed
Added SCSS variables explanation in the README
1 parent 897d3a6 commit ecd7cc4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@ Add commit (and don't forget to add to `_data/nav.yml`).
141141

142142
## Site quirks and tips
143143

144+
### SCSS variables
145+
146+
Shortcuts with colors and other common variables can be found in `_sass/settings`. They can be used in SCSS files.
147+
148+
```scss
149+
@import "settings/colors"
150+
151+
a {
152+
color: $orange;
153+
}
154+
```
155+
144156
### Lazy loading of images
145157

146158
The Jupyter website uses [lazy loading of images](https://web.dev/browser-level-image-lazy-loading/). In general, images that are "below the fold" (below the browser window on page load) for laptop-sized screen sizes are encouraged to be configured for "lazy loading".
@@ -155,4 +167,4 @@ For images that are "above the fold" (that will be seen by users immediately aft
155167

156168
```html
157169
<img class="my-class" src="my/src.png" loading="eager" />
158-
```
170+
```

0 commit comments

Comments
 (0)