Style configuration
XTM Portal Administrators can configure the styles for the XTM Portal page using Cascading Style Sheets (CSS).
Important
This section requires some prior knowledge of Cascading Style Sheets (CSS).
If you need help with configuring the look and feel of your XTM Portal instance, request support:
To request support
Visit our Support Portal.
Log in to XTM Portal as an Administrator.
In the menu on the left of the screen, select the cog icon
. The Settings tab screen is displayed.
In the Settings screen, select the STYLES tab.
In the STYLES tab screen, in the CSS Stylesheet text field, enter the CSS rules that you have selected for the XTM Portal page.
You can also use the STYLES tab screen to customize the Translation request page. For example, you can:
Example 6. 1: using CSS in XTM PortalUse the sample CSS below to change the colors on an active sub-tab in XTM Portal Project list tab screen, for all XTM Portal users. When you do so:
color #BE6AAA
will be used for the active sub-tab label and icon.
color #FFCDF3
will be used for the active sub-tab background and underlining.
.PortalProjectFilters-root .MuiButtonBase-root.Mui-selected { color: #BE6AAA; background-color: #FFCDF3; }.PortalProjectFilters-root .MuiTabs-indicator { background-color: #FFCDF3; }Cascading Style SheetsExample 7. 2: using CSS in XTM PortalUse the sample CSS below to hide the Create project without files for translation setting in the translation request.
.ra-input-_noContent {display: none;}Example 8. 3: using CSS in XTM PortalUse the sample CSS below to create a tooltip containing the "This is a tooltip" text above the Customer-related fields (for example, above the Customer field), in the translation request form.
.ra-input-customer:after {content: "This is a tooltip";position: absolute;top: 50px;display: none;text-align: center;background-color: white;color: black;border-radius: 4px;padding: 2px;background-color: white;z-index: 1;border: 1px solid #aaa;}.ra-input-customer:hover:after {display: block;}Example 9. 4: using CSS in XTM PortalUse a similar CSS to the one below to change the background and border colors in the translation request form and hide a custom field for a selected customer. For example, you can hide the "Payment method" field (whose ID is 456) for the "Internal" customer (whose ID is 123) and also style the request form. These changes will only apply if a user selects this customer in the translation request form.
You can check the ID for the selected customers and custom fields in the HTML source code or the XTM Portal API. You can also ask our XTM Support team for help.
.PortalLayout-translation_requests-create {.customers-123 .ra-input-customField_456 {display: none;}.customers-3630865 {background-color: #e7fffc;}.PortalTranslationRequest-requestDetails,.PortalTranslationRequest-additionalInfo {border: 1px solid blue;}}Example 10. 5: using CSS in XTM PortalUse a similar CSS to the one below to replace the "Translation request" form title with "New request" at the top of the request form and in the menu on the left-hand side of the screen.
.PortalLayout-translation_requests-create { #react-admin-title span:last-of-type { span { display: none; } &::before { content: "Send request"; } } } /* Change sidebar menu item tooltip from "Translation request" to "New request". */ .MenuItemLink-resources_translation_requests_form .MuiTooltip-tooltip span { display: none; } .MenuItemLink-resources_translation_requests_form .MuiTooltip-tooltip::after { content: "Send request"; font-size: 0.6875rem; }Select the Save button in the top right-hand corner of the screen.
Result: your XTM Portal is customized according to the CSS Stylesheet settings that you have made.