Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Code formatting #2466

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions guides/v2.1/frontend-dev-guide/layouts/layout-practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ In their Orange theme, OrangeCo wants to transform the header links block to a d
<img src="{{ site.baseurl }}/common/images/layout_transform21.png">
</div>


To do this, they need to wrap the list of header links with a container and add a greeting with a drop-down arrow before the list.

The Orange theme [inherits]({{ page.baseurl }}/frontend-dev-guide/themes/theme-inherit.html) from Blank, so by default the rendered header links look like following:
Expand Down Expand Up @@ -232,12 +233,13 @@ Now the customer links look like following:
<img src="{{ site.baseurl }}/common/images/layout_screen221.png">
</div>


Clicking the **Change** button toggles the `active` CSS class:

To add quick basic styling and visual behavior to the "dropdown" menu, OrangeCo added [_extend.less]({{ page.baseurl }}/frontend-dev-guide/css-guide/css_quick_guide_approach.html#simple_extend) to their theme with the following customizations:

* redundant elements are hidden with CSS
* the `.lib-dropdown()` mixin from [Magento UI library]({{ page.baseurl }}/frontend-dev-guide/css-topics/theme-ui-lib.html) was applied to the corresponding element
* Redundant elements are hidden with CSS
* The `.lib-dropdown()` mixin from [Magento UI library]({{ page.baseurl }}/frontend-dev-guide/css-topics/theme-ui-lib.html) was applied to the corresponding element

`app/design/frontend/OrangeCo/orange/web/css/source/_extend.less`

Expand Down