Version:

Acquia Cohesion renames to Site Studio from version 6.2. Tell me more.

    Using the style tree

    You can apply CSS properties to different selectors within your style using the Style tree.

    Step 1 - accessing the style tree

    1. Navigate to the Style builder. This is available when you edit Base styles or Custom styles
    2. Within the Style editor, click on the Style tree button. This will say Default on it
    3. The menu that opens is called the Style tree

    Step 2 - Adding a new selector

    To add a new selector to the Style tree:

    1. Within the Style tree, click the + Icon
    2. The Selector menu will open
    3. Click on the Selector you want to add
    4. The Selector menu will close and the selector will be added to the Style tree

    Step 3 - Adding CSS properties to a selector

    To add properties to a selector:

    1. Click on the name of the selector in the Style tree
    2. The menu will close and the properties form for the selector will open
    3. Add properties to the form using the Properties menu.

    Changing the order of the selectors in the style tree

    The order and position of a selector in your Style tree will effect the way your CSS properties are applied. For example, If a selector is nested within another selector, it will only be applied when the parent selector is applied.

    To change the order and position of selectors in your Style tree:

    1. Click and hold a Selector in your Style tree
    2. Drag the selector up, down, left and right to reposition it.

    Deleting selectors from your style tree

    You can delete selectors from your Style tree. When you delete a selector it will delete any properties that have been applied to it.

    To delete a selector:

    1. Click on the Style tree button to open the Style tree
    2. Next to the selector you want to delete, click on the + icon
    3. The Selector menu will open
    4. Click on Delete at the bottom of the Selector menu
    5. Click OK in the confirmation modal
    6. The selector will be removed from your Style tree.

    Editing the name of a selector on your style tree

    You can edit the name of child, modifier, custom pseudo and prefix selectors that you've added to your style tree. You may want to do this if you have made a mistake or simply need to change a selector you've already applied CSS properties to.

    To edit a selector name:

    1. Click on the Style tree button to open the Style tree
    2. Next to the selector you want to edit, click on the + icon
    3. The Selector menu will open
    4. Click on Edit at the bottom of the Selector menu
    5. Enter the new name of your selector in the field and click Update
    6. The selector will be changed on your Style tree.

    DX8 knowledge base icon

    Frequently asked questions

    Get instant answers to common questions. Available online 24/7.

    Find answers

    Raise a ticket icon

    Raise a support ticket

    To raise a ticket, sign into Acquia Cloud and select Help in the top menu.

    Raise support ticket

    Acquia

    Copyright © 2020 Acquia, Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.