# Global Styles

ScandiPWA defines certain global styles. These are defined in SCSS in the `style` directory, which contains 3 subdirectories, as well as a file that imports all the styles from them.

## Directories in `style`

### `abstract`

The `abstract` subdirectory includes SCSS definitions that do not directly affect any element. Instead, they define utilities such as media selectors (`_media.scss`), SCSS variable declarations (`_variables.scss`) and some generic styles that could be used to style an element (`_loader.scss`, `_button.scss`).

### `base`

This directory defines the base styles for various HTML elements, such as tables, links, buttons and lists. In `_breakpoints.scss`, it defines classes that can be added to elements to easily hide them on some devices (mobile/tablet/desktop)

### `cms`

This directory contains styles for defining the look of various content inserted through a content management system (typically Magento CMS). Currently, it styles various promotion blocks, as well as sliders.

## Breakpoints

| Selector           | Visible on Mobile | Visible on Tablet | Visible on Desktop |
| ------------------ | ----------------- | ----------------- | ------------------ |
| `desktop`          |                   |                   | ✔️                 |
| `before-desktop`   | ✔️                | ✔️                |                    |
| `tablet`           |                   | ✔️                |                    |
| `tablet-landscape` |                   | landscape only    |                    |
| `after-mobile`     |                   |                   | ✔️                 |
| `mobile`           | ✔️                |                   |                    |

To use a breakpoint, use `include`:

```css
@include mobile {
    // your styles
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scandipwa.com/structure/building-blocks-summary/global-styles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
