Best Answer

Brainstorm: What are the most common items you need to modify with CSS that you wish was easier?


Userlevel 7
Badge +3

I am working on a side project to share to do two things:

  1. Make it easier to develop/track your custom CSS changes
  2. Create CSS changes for those not comfortable with typical formatting or creating of those CSS changes.

Obviously these will start at a more basic level to try it out, and the pro’s on here, sorry this is not aimed at you. I have searched around and picked a couple of nice ones to start with that seem to be fairly common instances of like show/hide/change color items, but want to see if I’m missing anything major or big gaps to consider.

Help me out by adding what you find to be the more common modifications (don’t have to share the code, but if you can describe the change and its impact, before/after images welcome!)

Thanks! 

icon

Best answer by Daniel 7 December 2022, 03:09

View original

36 replies

@Bfarkas I am trying to customize the Login page, specifically the header and can’t seem to figure out how to adjust the color and/or logo on the Login page. Currently it is not matching the changes I made to the rest of the pages with CSS. 
Thanks for doing this! 

Userlevel 7
Badge +3

@Bfarkas I had a look through our CSS but most of the changes we’ve made are pretty specific to our organization. The following one might be useful for admins who want to hide the change password option.

/* Test - hide password change option */ 
.my-profile__body .accordion-wrapper .accordion-item:nth-of-type(2) {display: none !important;}
.forgot-password.ng-star-inserted {
display: none !important
}

 

Userlevel 7
Badge +3

whoops, hit the wrong button! I guess i’ve never asked a question before… thanks @Daniel , that is a perfect type of thing. Appreciate you taking a look, added to the list. 

Userlevel 7
Badge +3

@Bfarkas I am trying to customize the Login page, specifically the header and can’t seem to figure out how to adjust the color and/or logo on the Login page. Currently it is not matching the changes I made to the rest of the pages with CSS. 
Thanks for doing this! 

Thanks, I have a couple simple login page items on the list.  

Userlevel 7
Badge +3

Hi @Bfarkas I’ve done that before - go to hit the like button and hit the best answer one instead! Erin should be able to remove the best answer for you if you ask her. For something like this where there isn’t a single best answer, you can always post it as a conversation to remove the best answer option.

Userlevel 7
Badge +3

Hi @Bfarkas I’ve done that before - go to hit the like button and hit the best answer one instead! Erin should be able to remove the best answer for you if you ask her. For something like this where there isn’t a single best answer, you can always post it as a conversation to remove the best answer option.

Yeah, that’s what I usually do, oh well…points for you!! :)

Userlevel 7
Badge +5

Hide password as above

Blankslate-image reskins

I also get rid of box shadow and make most page widgets transparent, so they match the background better, but that’s a personal choice.

Userlevel 7
Badge +3

Hide password as above

Blankslate-image reskins

I also get rid of box shadow and make most page widgets transparent, so they match the background better, but that’s a personal choice.

Thanks, password is on the list, I’m thinking about geenral widget border and background choices, insert a color or choose transparent, that could cover that scenario right?

For the image blank slate….not sure I follow it, do you mean the various images around the system that show when the widget is empty? I’ll have to think about that one but is interesting for sure.

Thanks!

Userlevel 7
Badge +5

Yes, the empty ones. Some are images and some are svgs, but they all appear to follow one of the two following formats:

ce-learningplan-tab blankslate div.blank-slate-image img{
visibility: hidden;
}
ce-learningplan-tab blankslate div.blank-slate-image
{
background: url(https://docebo-institute.s3.us-east-2.amazonaws.com/public/branding_hacks/no-courses.png) no-repeat center;
background-size: contain;
position: relative;
}/*reskin learning plan tab blankslate*/




/*no notifications in enrollments*/
enrl-notifications-association-table.data-browser-table div.ui-blank-slate ui-illustration.ui-illustration {
background: url(https://docebo-institute.s3.us-east-2.amazonaws.com/public/branding_hacks/no-users.png) no-repeat center;
background-size: contain;
position: relative;
}
enrl-simple-assign-resources-rightpanel-body.data-browser-table div.ui-blank-slate ui-illustration.ui-illustration svg { visibility: hidden; !important}

I’ve collected maybe… 80% of them? Happy to share.

Userlevel 7
Badge +3

Yes, the empty ones. Some are images and some are svgs, but they all appear to follow one of the two following formats:

ce-learningplan-tab blankslate div.blank-slate-image img{
visibility: hidden;
}
ce-learningplan-tab blankslate div.blank-slate-image
{
background: url(https://docebo-institute.s3.us-east-2.amazonaws.com/public/branding_hacks/no-courses.png) no-repeat center;
background-size: contain;
position: relative;
}/*reskin learning plan tab blankslate*/




/*no notifications in enrollments*/
enrl-notifications-association-table.data-browser-table div.ui-blank-slate ui-illustration.ui-illustration {
background: url(https://docebo-institute.s3.us-east-2.amazonaws.com/public/branding_hacks/no-users.png) no-repeat center;
background-size: contain;
position: relative;
}
enrl-simple-assign-resources-rightpanel-body.data-browser-table div.ui-blank-slate ui-illustration.ui-illustration svg { visibility: hidden; !important}

I’ve collected maybe… 80% of them? Happy to share.

Thanks, so you’re generally just hiding them? I guess that was why I had to think about it, I was thinking you meant replace them with something else and that would lead to hosting questions potentially and the goal is aimed at simplicity for this, I could see a hide or replace with text line though. I like it, adding to the potential list, thanks!!

Userlevel 7
Badge +5

I hide the image and replace with one I host, yeah.

Could be hosted on Docebo potentially.

Userlevel 7
Badge +5

 

Userlevel 7
Badge +3

I hide the image and replace with one I host, yeah.

Could be hosted on Docebo potentially.

Could be, just more advanced. trying to keep it dirt simple wizard, check box, enter color value, enter size values, etc. 

Userlevel 6
Badge +2

A common tweak we make is to hide the control bar from catalogue widgets. This is the bar that contains the search box and filters, which we often need to hide to either de-clutter the page or prevent users from un-filtering pre-filtered pages.  

#doc-widget-[unique id] .ui-data-browser-controls-bar{
display: none!important;
}

We also make other modifications to the course and LP tiles in catalogues, but those might be a bit too fiddly for this project?

Alan

 

Userlevel 7
Badge +3

Thanks @Alan  - I’ve been debating like a “common widgets tweaks” area with things like your control bar example, adding this to the list for sure.

What kinds of mods for those pages are you thinking? On surface I’d say probably too fiddly, plus might wait for the upcoming course changes for any course adds.

Userlevel 7
Badge +3

Getting ready to start in the main development of this, this week is last call for inputs :)

Userlevel 6
Badge +2

Hi @Bfarkas 

So the modifications we make to the catalogue tiles are in custom widget pages. Here are some more examples of the elements we hide in order to make a cleaner tile.  These use Doc Widget IDs, but it’s also possible to target the page ID to affect the changes on all catalogue widgets on the page. 

/* Hides 'new' status on course tiles */
.ui-badge-status-wrapper{
display: none!important;
}

/* Hides enrollment status */
#doc-widget-156 .item-status-box{
display: none!important;
}

/* Hides Course type */
#doc-widget-156 .type-box{
display: none!important;
}

/* Hides language */
#doc-widget-156 .course-type{
display: none!important;
}

/* Hides tile footers */
#doc-widget-168 .ui-card-catalog-content .ui-card .ui-card-footer{
display: none!important;
}

This is an example of the results:

Hope these are of some use!

Alan

Userlevel 7
Badge +3

Thanks @Alan !

Badge

We were hiding the breadcrumps as we didn’t want our learners to see the “My Courses and Learning Plans” page there. It turned out that this unfortunately leads to problems when e.g. SCORM files are displayed in fullscreen mode, because then the "Back" button is no longer displayed.
We are still waiting for the problem to be fixed and until then this CSS line remains disabled.

/*Hide Breadcrumbs
.hierarchical-breadcrumbs
{
display: none !important;
}*/

 

Badge

Also we are hiding many descriptions, for example catalog and page title descriptions:

/*Catalog: Hide description*/
.course-catalog-content-wrapper .ui-carousel-description
{
display: none;
}

/*Hide page title description*/
.page-title .line-limiter-wrap
{
display: none !important;
}


 

Userlevel 7
Badge +3

We were hiding the breadcrumps as we didn’t want our learners to see the “My Courses and Learning Plans” page there. It turned out that this unfortunately leads to problems when e.g. SCORM files are displayed in fullscreen mode, because then the "Back" button is no longer displayed.
We are still waiting for the problem to be fixed and until then this CSS line remains disabled.

/*Hide Breadcrumbs
.hierarchical-breadcrumbs
{
display: none !important;
}*/

 

Thanks, this is definitely going on the list. I’m curious has anyone investigated if there’s a way to exclude the scorm full page viewer from it? Will take a look. 

Userlevel 7
Badge +3

Also we are hiding many descriptions, for example catalog and page title descriptions:

/*Catalog: Hide description*/
.course-catalog-content-wrapper .ui-carousel-description
{
display: none;
}

/*Hide page title description*/
.page-title .line-limiter-wrap
{
display: none !important;
}


 

Interesting one, I am putting on my “to ponder” lost. Thanks!

Userlevel 7
Badge +5

We are not interested in Docebo’s course ID, we would love to hide from users on mobile too if we could (where it is extra prominent). We use course code.

 

 

 

I also use longer titles on cards. I still need to hide the ellipsis. There’s a div.uitooltipellipsisdirection that is not it. I have yet to find it.

ui-card-formal-content ui-card .ui-card-title a.ui-typography-heading-5 {
    height:90px;
}/*longer title space on cards*/

 

Userlevel 7
Badge +3

@Bfarkas I had a look through our CSS but most of the changes we’ve made are pretty specific to our organization. The following one might be useful for admins who want to hide the change password option.

/* Test - hide password change option */ 
.my-profile__body .accordion-wrapper .accordion-item:nth-of-type(2) {display: none !important;}
.forgot-password.ng-star-inserted {
display: none !important
}

 

Hey @Daniel fyi, just added this in, and thought I’d mention, for hiding the password on the profile page, you can replace your first part with just:

#vertical-tab-changePassword {
display: none;
}

It’s much cleaner, not reliant on the tab order, and no need for the important tag.

Same for the forgot password link on login page, can just do this:

.forgot-password {
display: none;
}
.login-button {
padding-bottom: 32px;
}

I had to add the extra padding due to some other things, but important and ng-star-inserted are not needed.

In case you want to simplify things a bit.

Userlevel 7
Badge +3

We were hiding the breadcrumps as we didn’t want our learners to see the “My Courses and Learning Plans” page there. It turned out that this unfortunately leads to problems when e.g. SCORM files are displayed in fullscreen mode, because then the "Back" button is no longer displayed.
We are still waiting for the problem to be fixed and until then this CSS line remains disabled.

/*Hide Breadcrumbs
.hierarchical-breadcrumbs
{
display: none !important;
}*/

 

Hey @Lena I just added this, but went a different route so the back button would remain, thought you might be interested:

.hierarchical-breadcrumbs nav {
display: none;
}

also doesn’t require the important tag this way.

Reply