- 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-24-2018 02:18 PM
Glad you got this resolved. This was what I said in the very first post, a week ago....lol...so yea....but anyways.
Glad you got it...
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-30-2018 01:51 PM
lol my bad Allen, thanks for your help!