822
Views
6
Comments
CSS specificity
Application Type
Traditional Web, Mobile, Reactive, Service

Hello

I study this article for "Front end specialist" certification: https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Look_and_Feel/Cascading_Style_Sheets_(CSS)   :

CSS specificity

The styles have different priorities and the order Service Studio imports the style sheets affects how the  browsers apply them. The last style to be applied has the highest priority.

  1. System style sheet for Container widgets in the Grid.
  2. Block style sheet.
  3. Theme style sheet, which also includes a base theme (if specified).
  4. Screen or Email style sheet.
  5. Theme extra style sheet, with the Grid settings defined in the Theme properties.
  6. Styles that Service Studio generates when you use Styles Editor.
  7. Inline style you define in Attributes or Extended Properties.

If we are talking about two rules defined in the same style sheet, the last rule to be defined has a higher precedence.

 

But if you go through the videos of the course, 

https://www.outsystems.com/training/paths/16/becoming-a-front-end-developer-in-outsystems/

then this is part of the study material. Why is it different from the article above ?

Precedence/loading order: 

  • Blocks (lowest)
  • Base theme(s)
  • Theme and Theme Editor 
  • Screen 
  • Styles Editor
  • Inline styles
2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

The last list is what you need to remember for the front end developer specialization exam.

Why that document has a bigger list i don't know, good question.

Let me try and get an answer from the training and documentation department.

UserImage.jpg
Elizabeth Marais

Thank you

2023-08-04 07-10-45
Willts

any update on this?

UserImage.jpg
Juho Kemppainen

I was also a bit confused about these two lists. Is there any clarification to this? 

2021-07-22 16-16-55
Edgar Ramos
Champion

Hey all,

I'm also reviewing content for that certification that @Daniël Kuhlmann mentioned @Elizabeth Marais.

Also, in this video: https://learn.outsystems.com/training/journeys/css-590/styles-loading-order/o11/940, the style sheet precedence is aligned with the last list you wrote, in this video, we can conclude that the correct order is:


2025-05-12 03-18-06
tianqi liu

Hey all, 

The priority of the following styles should be described in more detail and should be memorized.

Items 1, 5, and 6 may be difficult to understand, but the following is my interpretation:

For item 1, it seems that the foundation of OutSystems styles is based on the Bootstrap concept of Container and Grid. This refers to the design of containers, columns, rows, and similar layout elements.

For item 5, it refers to the design of the area highlighted below.

For item 6, it also refers to the design of the area highlighted below.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.