You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/create-basic-content-type/step-5-add-styles.md
+28-15Lines changed: 28 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -5,15 +5,38 @@ The development of this tutorial is currently **IN PROGRESS**.
5
5
6
6
***
7
7
8
-
Like in the rest of Magento, you can use LESS files to style your content types in the Admin UI and on the storefront (frontend).
8
+
In this step, we will create CSS styles (using LESS) so that we can give end-users different options for customizing the Quote's appearance in the Admin and on the storefront.
9
9
10
-
## Configuration
10
+
## About styles
11
11
12
-
CSS classes from your LESS files are typically used within your HTML templates. However, you can also allow end-users to apply CSS classes directly to your content types from within the editor, using the CSS Classess input field as shown here:
12
+
Page Builder specifies two ways to
13
+
14
+
Describe how the Quote content type combines the usage of style files from end-user specification of classes in forms, to non-interactive styles used in the templates.
15
+
16
+
And more discussion of the `pagebuilder-content-type` style.
17
+
18
+
## Style conventions
19
+
20
+
Add your LESS files here:
21
+
22
+
- For Admin UI previews: `view/adminhtml/web/css/source/content-type/example-quote/`
23
+
- For storefront display: `view/frontend/web/css/source/content-type/example-quote/`
**Discuss the need for naming ``_module.less` file in the `source` directory and then how the styles are compiled and imported together and where the combined styles ultimately end up.**
30
+
31
+
32
+
33
+
## Style configuration
34
+
35
+
CSS classes from your LESS files are typically used within your HTML templates. However, you can also allow end-users to apply CSS classes to your content types from within the form editor, using the CSS Classess input field as shown here:
0 commit comments