Skip to main content

override style css

Comments

8 comments

  • kjg
    Hi Infopro, Thank you for the links, and I have reread those and a number of other documents and forum posts. Unfortunately I do not understand it all. More used to work with CMS style overrides and the concept here doesn't seem to be override but instead replace. Cannot find anywhere that it is possible to just add a custom.css to override existing css As I understand It, I need to create a complete new style, add it to /var/cpanel/customizations/styled/thenewstyle/ and after that symlink that style to /var/cpanel/customizations/styled/default_style But I only want to be able to change a couple of elements in the style.css via a custom style.css or similar. Probably it is me not understanding, but to try to explain: If I want to create a whole new style, I create it as above and add it to all users as above. But that makes all accounts using that style and if they change later to another style, the css added there will naturally not be in action. Also updates to paper lantern will not be reflected in this added style so updates have to be added manually each time it is updated. If possible I only want to override the style.css so regardless of what style the user chooses to use, that custom.css will be in action If that is not possible, I can set paper lantern retro as style for all accounts and stop the possibility to change style for the accounts, but I still want updates to paper lantern and retro to be used. So it is a simple override I am looking for. Is this possible somehow? // kjg
    0
  • Infopro
    Override the CSS with what exactly, your own CSS? That's what those docs explain in good detail.
    0
  • kjg
    Infopro Well, that was not helpful. If I say that I have reread those documents and that I maybe do not understand them and because of this asks a question here on the forum, I do not think such an answer is called for
    0
  • Infopro
    My apologies. I'm unclear what you're hoping for here. You asked about modifying the CSS and I provided you links to docs that explain how to do it. If those docs don't make any sense to you, how could your custom CSS overrides be better than the proper way of working with the style, explained in those docs?
    0
  • kjg
    Unfortunately english is not my native language, as it is not for a lot of people out there. ( Yes, I know this might come as a surprise to all of you english speaking people :) So even if I have read the documents several times, I do not understand them. I am not saying anything is better or worse. I am only asking how to do this. Are you saying that if I only create a new style folder: /var/cpanel/customizations/styled/thenewstyle/ and adds only a styles.css with only one element in it (lets say p {color:#ff0; } and symlink that folder to /var/cpanel/customizations/styled/default_style the color on all p elements regardless of styule chosen by the cpanel account user will be #ff0 ?
    0
  • kjg
    Hi Infopro and thank you for the reply So I guess the only way to achieve what I need is to take a full copy of retro and add some styles in that one and make it the default style. Then block possibility to change styles. When cpanel updates retro, I'll just have to do a new copy of retro and add my new style again to that new copy. Thank you. I'll go ahead and do this and see if it works
    0

Please sign in to leave a comment.