- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2018 12:42 PM
Our team built a table widget for Service Portal and defined our own CSS instead of using bootstrap classes. Our widget looks great with the ootb HRJ theme:
Our CSS is pretty normal, but we chose to not use bootstrap classes for a bit more flexibility:
.red, .yellow, .green {
text-align: center;
}
.red {
background: rgba($overdue,0.5);
}
.yellow {
background: rgba($due-today,0.5);
}
.green {
background: rgba($due-later,0.5);
}
.empty-state-content {
color: $danger;
text-align: center;
margin-bottom:0;
}
.flex {
display: flex;
align-items: center;
//justify-content: space-between;
}
.table {
display: table;
padding:10px;
}
.table-header {
font-weight: bold;
}
.table-row {
display: table-row;
}
.table-row:not(:first-child):hover {
background: $color-row-hover;
//font-weight:bold;
}
.table-row:not(:last-child) .table-cell, .table-row .table-header {
border-bottom: 1px solid $color-light;
}
.table-cell, .table-header {
display: table-cell;
padding: 10px;
}
When we switch the portal to something other than hrportal (for example, sp), all of our table styles disappear:
Any thoughts on why this happens and how to fix it? Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2018 05:36 PM
How are you switching to another portal? Do you mean you placed this widget on another portal's page?
Which creates a new instance...
Then did you check that the CSS in that instance is actually there?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2018 05:36 PM
How are you switching to another portal? Do you mean you placed this widget on another portal's page?
Which creates a new instance...
Then did you check that the CSS in that instance is actually there?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2018 05:48 PM
Hi,
Please mark my post as Helpful/Correct if I've assisted you. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2018 01:13 PM
Hi Allen, so if the hrportal theme has predefined SCSS elements such as $black = #000000 and the sp portal theme does NOT have that defined, and I use $black in the widget CSS...will that cause the sp portal page to not render the styles?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2018 08:47 AM
It depends on where you are placing and defining the variable and CSS. If the variable is defined within the theme or portal form and the page is used in a different portal that is using a different theme then yes it WON'T work because it doesn't exist in that portal or its theme.