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: content/en/docs/refguide/installation/upgrading-from-10-to-11/atlas4-migration.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ In CSS (Atlas 4), you define it like this:
105
105
106
106
The browser directly understands `--brand-primary`. It can even change its value dynamically using JavaScript!
107
107
108
-
### 1.2 The New `theme/web/custom-variables.scss` File
108
+
### 1.2 The New Theme .scss File
109
109
110
110
In Atlas 4, your `theme/web/custom-variables.scss` file (or any custom SASS file where you define global variables) needs to declare **CSS variables** instead of SASS variables. See the key changes in the code samples below:
111
111
@@ -156,7 +156,7 @@ If you omit the `$use-css-variables: true;` declaration, your theme may not func
156
156
157
157
SASS offersmanybuilt-infunctions (like `mix()`, `darken()`, `lighten()`) thatperformcalculationsoncolorsorothervaluesduringcompilation. With CSS variables, youwillneedtoleveragenative CSS functions, as SASS functionswillnotfunctionwith CSS variables.
158
158
159
-
#### Example: The `mix()` Function and `color-mix()`
159
+
#### Example: The mix()and color-mix() Functions
160
160
161
161
In SASS, `mix()` blends two colors. The CSS equivalent is `color-mix()`. For more information, see the code samples below:
162
162
@@ -222,7 +222,7 @@ For other SASS functions like `darken()`, `lighten()`, `rgba()`, `transparentize
222
222
The Atlascoretheme (`themesource/atlas_core/web/themes/_theme-default.scss`) uses `color-mix()` extensivelyforcolorvariations. Reviewitforreal-worldexamples.
223
223
{{% /alert%}}
224
224
225
-
### 1.4 Atlas 4 Backward Compatibility: The Role of `_css-variables-mappings.scss` and `_theme-default.scss`
225
+
### 1.4 Atlas 4 Backward Compatibility
226
226
227
227
Atlas 4 hasbackwardcompatibilitywhichhelpsmodulesusing SASS variablesstillfunction. However, therearesomelimitationsduetohowthetwotechnologieswork (pre-processorversusruntimeinterpretation):
228
228
@@ -264,7 +264,7 @@ Do the following steps before your migration begins:
264
264
1. Ensure you are using Mendix Studio Pro 11 or later.
265
265
1. In your Mendix project, update the Atlas UI module to its latest Atlas 4 compatible version via the Marketplace. Also, ensure you update all other Marketplace modules, especially `Atlas Web Content` if used, as they may also require Atlas 4 compatibility.
*Wrapall your SASS variable declarations within a `:root { ... }` block.
@@ -308,9 +308,9 @@ Now that your variables are declared as CSS variables, you need to update everyw
308
308
309
309
1. Use your code editor's search function to find all occurrences of SASS variable usage (`$variable-name`) within your custom `.scss` files (for example, within your `theme/web/` folder or your custom UI modules' `themesource/{modulename}/web/` folders).
0 commit comments