User Tools

Site Tools


advanced:customcss

Adapt Appereance with custom CSS

The commands to adapt the style of your pCon.ui instance must be in a CSS file on your server.

The URL of the CSS file has to be sent to us so it can be set as parameter in the corresponding instance configuration on the server.

We have comprehensively adapted our software to the requirements of the German Accessibility Improvement Act (BFSG).

You can find more information here: https://www.barrierefreiheit-dienstekonsolidierung.bund.de/

:!: Please note that your choosen highlight color for hoovered text and buttons in your instance or customization via color scheme and custom CSS can have a negative impact on the accessibility of our application.

Customizable Components

The following components can be customized by their id:

General

Component/IDDescription
egr_footer_cad_button “CAD Download” button if enabled and in footer
egr_footer_cad_button
.egr_footer_icon
Icon of “CAD Download” if enabled and in footer
egr_footer_price (3)Price field below property list (label and value)
egr_footer_price_label (4)Label in front of price (Standard “Total:”)
egr_footer_price_value Value of price consisting of number and currency
egr_footer_price_discount_original (1)Value of original price when discount is given via PriceService API
egr_footer_price_discount_value (2)Value of percentage discount given via PriceService API

Shop only

Component/IDDescription
egr_add_to_basket “Add to cart”-button
egr_add_to_basket_x “x” between number field and “Add to cart”-button
egr_add_to_basket_number number field in front of “Add to cart”-button
egr_add_to_basket_number fieldset and egr_add_to_basket_number input are also available

Lead only

Component/IDDescription
egr_send_request “Send request”-button
egr_send_request
.egr_footer_icon
Icon of “Send request”-button

Components in modular View

if modular view is activated, you can change the style of the following additional components:

You have to use the !important rule to these style attributes.

Component/IDDescription
egr_tabs button parent element which involves all buttons
egr_tab_configuration (1)id for the configuration tab
egr_tab_description (2)id for the description tab
egr_tab_download (3)id for the download tab
egr_tab_indicator (4)indicator for active tab

Examples

Change Font

@font-face {
    font-family: 'name of font';
    font-style: normal;
    font-weight: normal;
    src: url("path/to/font");
}
 
body {
    font-family: "name of font", sans-serif;
}

(Shop only) Adapt Cart Button and hide Number Field in Front of Cart Button

Example

→ you want to change the color of the ADD TO CART button, eliminate the round corners and hide the quantity field.

#egr_add_to_basket {
    background-color: black;
    color: white;
    border-radius: 0px
}
 
#egr_add_to_basket_x {
    display: none
}
 
#egr_add_to_basket_number {
    display: none
}

(Lead only) Adapt Request Button and hide its Icon

Example

→ you want to change color of SEND REQUEST button, hide the envelope icon and eliminate the round corners.

#egr_send_request {
    background-color: black;
    color: white;
    border-radius: 0px;
    text-align: center
}
 
#egr_send_request .egr_footer_icon {
    display: none
}

Adapt Price Fields (only if pricing is enabled)

Example

→ you want to change the background color of TOTAL and add text decoration to the price.

#egr_footer_price {
    font-weight: bold
}
 
#egr_footer_price_label {
    background: yellow
}
 
#egr_footer_price_value {
    text-decoration-line: overline underline;
    text-decoration-color: blue;
}

Adapt original Price and Discount Field (with PriceService API only)

Example

→ you want to change background color of discount percentage, add border radius and add text decoration to original price.

#egr_footer_price_discount_original {
    text-decoration: line-through
}
 
#egr_footer_price_discount_value {
    background-color:  #71c419;
    border-radius:5pX;
    padding: 2px;
    color: black
}

(Modular View only) Change Color of Tabs

Example

→ You want to change the active indicator, the selected colors and colors of the tabs

#egr_tabs button {
    background-color: gray;
    color: white;
 
}
 
#egr_tabs button[aria-selected=true] {
    color: black;
}
 
#egr_tab_indicator {
    background-color: red;
}

advanced/customcss.txt · Last modified: by Karolin Merten



Legal Notice and Data Protection