CSS Overrides is where you change the look of your intranet with your own CSS (the code that controls how web pages look). Use it for fonts, colors, hidden elements, and anything else a stylesheet can do.
To access CSS Overrides, click the gear icon > Control Panel > System > CSS Overrides.
Type your CSS in the editor, then click Save CSS overrides to apply it. Saving replaces the whole stylesheet, and the screen keeps no earlier versions, so keep a copy of your CSS before you make a large change.
Note: You can use CSS overrides to style and modify any front-end page: the homepage, space pages, user profiles, Page Builder pages, and so on. Pages in the Control Panel and in Manage Space can't be styled with CSS overrides. There are two exceptions: the Page Builder editor, and the box you type in on every Rich Text Editor, on any screen. Both load your CSS overrides, so a rule on a broad selector such as body can change them too.
body
The Axero mobile app does not load CSS overrides, so your overrides change how pages look in a browser only. To style a Page Builder page in the mobile app, add a Raw HTML Widget holding a <style> block to that page's Mobile layout. The app applies those rules to that page only, and it skips rules that have no selector of their own, such as an @media block.
<style>
@media
If you are new to CSS, start with the W3Schools tutorial. It covers how to write CSS and the selectors that pick out one element or a group of elements. It also covers properties such as background color, border, and margin.
This video shows how to use CSS overrides on a Page Builder page: on the whole page, on a group of widgets, and on a single widget.
This video shows how to hide the Activity Ticker in a space. It covers finding the class of an element and the custom class of a space. The same steps work for hiding any element on your site.
This video shows how to try out changes to your site's look with Chrome Developer Tools. Developer Tools only previews what your site would look like; it doesn't apply the changes to your site. When you're happy with the look, paste your CSS changes into CSS Overrides and click Save CSS overrides.
Most HTML elements in Axero carry classes that CSS can target, so you can hide or change most of them with CSS Overrides. Here are some examples:
Hide the My Activity Ticker on My Activity Stream and the Space Activity Ticker on all Space Activity Stream pages.
.axero-activity-ticker { display: none }
Hide the Space Activity Ticker only in the Human Resources space.
.x-custom-space-human-resources .axero-activity-ticker { display: none }
Hide the Login and Register links that signed-out visitors see in the header. These classes are only on a header that isn't built in Page Builder.
.ax-menu-register { display: none }.ax-menu-login { display: none }
Change widget header color.
.axero-widget .axero-widget-header { background: #094268; } .axero-widget .axero-widget-header h3 { color: #fff; }
Show 4 people in each row instead of 3 where people appear as a grid of cards, such as a People widget using the People Directory Template. It has no effect on the list layout that People Directory and Space People use by default.
ul.axero-people-grid li.span4 { width: 20% !important; } ul.axero-people-grid li:nth-child(3n+1) { margin-left: 30px; } ul.axero-people-grid li:nth-child(4n+1) { margin-left: 0px; }
Hide Create activities in My Activity Stream. Each rule hides every entry about that type of content, so entries for updates are hidden along with entries for new content. Comments have types of their own, so entries for comments still show.
/*Article*/ #axero-my-account-container .axero-wall-container div[data-entitytype="3"] {display: none;} /*Blog*/ #axero-my-account-container .axero-wall-container div[data-entitytype="4"] {display: none;} /*Case*/ #axero-my-account-container .axero-wall-container div[data-entitytype="19"] {display: none;} /*Event*/ #axero-my-account-container .axero-wall-container div[data-entitytype="5"] {display: none;} /*Idea*/ #axero-my-account-container .axero-wall-container div[data-entitytype="44"] {display: none;} /*File*/ #axero-my-account-container .axero-wall-container div[data-entitytype="14"] {display: none;} /*Album*/ #axero-my-account-container .axero-wall-container div[data-entitytype="18"] {display: none;} /*Photo*/ #axero-my-account-container .axero-wall-container div[data-entitytype="6"] {display: none;} /*Space*/ #axero-my-account-container .axero-wall-container div[data-entitytype="13"] {display: none;} /*Video*/ #axero-my-account-container .axero-wall-container div[data-entitytype="7"] {display: none;} /*ForumPost*/ #axero-my-account-container .axero-wall-container div[data-entitytype="54"] {display: none;} /*ForumTopic*/ #axero-my-account-container .axero-wall-container div[data-entitytype="55"] {display: none;} /*Wiki*/ #axero-my-account-container .axero-wall-container div[data-entitytype="9"] {display: none;}
A short class name can be in use on more than one screen. To change one part of your site, put that part's own class in front of your selector.
If you saved a rule and nothing on the page changed, check these things in order:
@media (max-width: 480px)
}
*/
/*
!important
Refreshing the page is enough to load a saved change.
Each standard page in a space carries the space's name as a class (a label your CSS can target). A Page Builder page in the space carries it only when Include space photo and navigation is checked on that page. To make your CSS apply only to the Human Resources space, include that space's class name in your CSS code.
To get the class name for a space, visit the space, right-click anywhere on the page, and click Inspect. In the Elements panel, scroll up until you reach the body tag. The body tag carries a class list: several keywords separated by spaces. The space class name is the keyword that starts with x-custom-space.
x-custom-space
Example: This code changes the font color of all paragraphs:
p { color: red; }
To make the CSS code affect only the Human Resources space, add the space class at the beginning of the code.
.x-custom-space-human-resources p { color: red; }
Axero has a Dark Mode, and it changes what your custom CSS has to look like. Dark Mode works by redefining a set of color variables. Any color you hardcode (write as a fixed value) stays exactly as you wrote it. A rule like background: #094268 keeps that color in both themes.
background: #094268
That is how custom styling breaks in Dark Mode. A panel styled for a white page keeps its pale background while the text around it turns light, so the text becomes unreadable.
Use the variables instead of fixed colors. The ones you will need most often:
var(--background-primary)
var(--background-secondary)
var(--background-tertiary)
var(--body-text-primary)
var(--body-text-secondary)
var(--border-color-primary)
var(--hyperlink-color)
So the example above becomes .axero-widget .axero-widget-header { background: var(--background-secondary); color: var(--body-text-primary); }.
.axero-widget .axero-widget-header { background: var(--background-secondary); color: var(--body-text-primary); }
Never set a background without also setting a text color in the same rule. That one habit prevents most of the damage, because content vanishes when a fixed background meets text that takes its color from the page.
Some colors cannot be a variable, such as a brand accent. For those, use a low-alpha (mostly see-through) value like rgba(0, 122, 204, 0.1) rather than an opaque near-white tint. A low-alpha color looks acceptable over both a white and a dark background. Check that any fixed accent color has at least 3:1 contrast against both themes.
rgba(0, 122, 204, 0.1)
See Dark Mode for how people turn it on.
These tools help when you customize Axero with CSS or HTML:
Font Awesome 5 Icon SearchGet class names for icons you can use throughout Axero.
Color Code Generator Find the color code you need for your site.
Clean CSSFormat your CSS so it is easier to read.
Ultimate CSS Gradient GeneratorGenerate code for CSS gradients.
CSS Border Radius GeneratorGenerate code for rounded borders.
is requesting access to a wiki that you have locked: https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/82/css-overrides
Your session has expired. You are being logged out.