CrushMFT Documentation

Login themes and the logo#

How to give the login page your colours and your logo, and how to restyle single parts of it, without writing a page of your own. Everything here is in the WebInterface section of Preferences and survives updates of the server.

To change Go to
the logo the Options tab, The logo
the colours of the whole page the login page editor, Colour themes
one part of the page the login page editor, Styling one part
light or dark, the columns, the picture the Login Page tab, Customizations

The login page editor is opened from the Login Page tab with Open the login page editor; choose custom.css there. See The login page.

The Logo card on the Options tab shows the two logos in use, one for the light and one for the dark theme.

  1. Copy your logo into the server's WebInterface/images/ folder, under a name of your own such as mylogo.png. Do not replace logo.png: an update writes it anew.
  2. For the dark theme, copy a second picture beside it with _dark before the ending: mylogo_dark.png. There is nothing to set for it; the server finds it by its name. Without it, the card says "No dark version yet" and names the file to add.
  3. Under Light logo click Choose… and pick your file from the list. The list shows the pictures in WebInterface/images/, with a filter box. Use default goes back to the CrushMFT logo.
  4. Press Save.

A file that is named in the settings but is not in the folder is marked "Not found in WebInterface/images/".

This is the logo for everyone. A single domain can have another one (Login pages per domain), and a user can have a logo of their own for the pages after the login.

Colour themes#

A theme sets the colours of the whole login page at once, for the light and for the dark theme. In the login page editor, with custom.css open, click Add theme.

Choosing a theme

Theme Accent colour
Default Theme the orange of CrushMFT: takes a theme out again
Blue, Green, Red, Purple, Yellow that colour

The theme is written into Custom CSS as a block between /*Theme Start*/ and /*Theme End*/, and the preview takes the colours at once. Choosing another theme replaces the block.

Warning

Default Theme removes the block and everything in Custom CSS that comes after it. Rules of your own that stand below the block are lost. Move them above /*Theme Start*/ first, or copy them and put them back.

Colours of your own#

The block is a list of colours with names. Change the values to your own colours, as #RRGGBB. The first group is for the light theme, the group under html[data-theme="dark"] for the dark one.

Name Colours
--accent-color the accent colour: buttons, links, the picture side of the page
--accent-background-primary the accent background
--accent-background-secondary the soft accent background
--background-primary the page background
--background-secondary the panel background
--text-primary the text colour
--text-secondary the muted text colour
--border-color the border colour

Styling one part#

To change one part of the page, you do not need to know its name:

  1. In the login page editor, with custom.css open, click Pick. The line at the bottom says "Click an element in the preview to style it. Esc cancels."
  2. Click the part in the preview, for example the Sign In button.
  3. A rule for that part is started in Custom CSS, and a row of quick styles appears above the code, with the name of the part at its left.

The Sign In button picked, with two quick styles applied

Quick style What it does
Align left, Center, Align right where the part stands
Smaller text, Larger text the size of its text
Bold, Italic
Text colour, Background colour a colour box each
Border a line around it
Rounded corners click again for rounder
Shadow
Less padding, More padding the space inside it
Hide takes the part off the page

Each click writes a line into the rule, and the preview follows. You can also type in the rule yourself; the editor suggests properties and values.

A part that already has a rule is not given a second one: "Already styled: …. Use the quick styles or type below."

The names of the parts#

For those who write the CSS by hand, these are the parts of the login page:

Part Name in CSS
the whole page .login-page
anything, in the dark theme only html[data-theme="dark"] in front
your header, your footer .header-container, #customFooterLoginPageContainer
the two columns together #page-columns
the column with the form .auth-form-section
the sign-in box #loginFormCard
the logo .logo
the user name row and its box #usernameRow, #username
the password row and its box #passwordRow, #password
"Remember me" #rememberPanel
"Forgot your password?" #forgotLink
the Sign In button #sign-in-button
the column with the picture, and the picture .auth-banner-container, #auth-art
the theme switch .multi-theme-icon-container
the language picker .language-dropdown

Saving#

The logo, a theme and your rules are on the screen only until you press Save at the bottom of the page (saving).