docs: Review Themes Chapter in Documentation (#486)
* Review Themes Chapter and fix typos, grammar and readability Signed-off-by Paul Cutler paul@paulcutler.org
This commit is contained in:
1 parent
b4764194b0
commit
702981e324
6 files changed
+29
-34
No files matched your search
Vendored
+5
-7
@@ -11,29 +11,27 @@ description: >-
|
||||
# {{ page.title }}
|
||||
{{ page.description }}
|
||||
|
||||
There are two background images that can be used in Mainsail. The first is in the sidebar and the second is in the main section.
|
||||
|
||||
|
||||
At the moment there are two background images that can be set. In the sidebar- and mainview.
|
||||
|
||||
{:width="50%"}
|
||||
|
||||
For uploads you can use the built-in file manager. `(Settings > Machine)`
|
||||
You can upload a new background image using the file manager located in `Settings > Machine`.
|
||||
|
||||
<!--  -->
|
||||
|
||||
## Sidebar background image
|
||||
Just load a background image into your .theme folder and name it `sidebar-background.<extension>`.
|
||||
Load the background image into your .theme folder and name it `sidebar-background.<extension>`.
|
||||
|
||||
| Filename | sidebar-background |
|
||||
| Valid file extensions | .jpg, .png, .gif and .svg |
|
||||
| Recommended image size | 300x1000px |
|
||||
|
||||
## Mainview background image
|
||||
## Main background image
|
||||
Upload a background image into your .theme folder and name it `main-background.<extension>`.
|
||||
|
||||
| Filename | main-background |
|
||||
| Valid file extensions | .jpg, .png, .gif and .svg |
|
||||
|
||||
**Please note**: By default, the background image is stretched to the entire area.
|
||||
For example, if you want a repeating pattern, you also need to use custom css.
|
||||
**Please note**: The background image is stretched to cover the entire area by default. For example, if you want a repeating pattern, you will also need to use custom CSS to style it correctly.
|
||||
{: .info}
|
||||
Vendored
+12
-19
@@ -6,49 +6,42 @@ nav_order: 30
|
||||
permalink: /theming/custom-css
|
||||
---
|
||||
|
||||
# Custom-CSS
|
||||
# Custom CSS
|
||||
|
||||
The custom.css file allows you to customize the appearance of Mainsail
|
||||
without the need of rebuilding it. All you need to do is to place a file
|
||||
named "custom.css" into the configuration directory ".theme" and define
|
||||
your css rules in there.
|
||||
The `custom.css` file allows you to customize the appearance of Mainsail
|
||||
without the need of rebuilding it. Place a file named `custom.css` in the `.theme` folder of your Mainsail installation and define your custom **C**ascading **S**tyle **S**heets (CSS) rules inside the file.
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
## How to CSS
|
||||
## Customizing the CSS
|
||||
|
||||
You need to be familiar with the CSS (**C**ascading **S**tyle **S**heets) syntax.
|
||||
There are many resources to learn CSS online, for example:
|
||||
You need to be familiar with the CSS syntax to customize Mainsail. There are many resources available to learn CSS online, for example:
|
||||
- https://www.w3schools.com/css/default.asp
|
||||
|
||||
### find the Element selector (example based on Chrome Browser)
|
||||
### Finding the Element to Customize
|
||||
|
||||
Use your browser's built-in developer tools to find the right selector of the element you want to add your own flair to.
|
||||
|
||||
Open the developer tools:
|
||||
|
||||
right click anywhere on the page and select "inspect" (or F12 on the keyboard)
|
||||
You will need to use your browser's built in developer tools to find the element you want to customize. You can do this by clicking the "Developer Tools" button in the browser's toolbar or by right clicking on the page and choosing `Inspect Element` or press `F12`.
|
||||
|
||||

|
||||
|
||||
1. Activate the "inspector"
|
||||
1. Activate the developer tools and inspector
|
||||
2. Select the desired element
|
||||
3. Find the selector
|
||||
4. Use the style editor and fiddle arround
|
||||
4. Use the style editor to customize the element. Play around to find the style you like!
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
When you have achieved your desired appearance copy the full "section" including selector and curly braces
|
||||
When you have achieved your desired appearance, copy the full "section", including the selector and curly braces.
|
||||
|
||||

|
||||
|
||||
Then copy it to the "custom.css" file (you can keep everything or only what you have added)
|
||||
Next copy it inside the "custom.css" file (you can keep everything or only what you have added)
|
||||
|
||||

|
||||
|
||||
NOTE: After saving, your browser may need a uncached reload to show the change (https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache)
|
||||
NOTE: After saving, your browser may need a uncached reload to show the change. Visit [Wikipedia to learn how.](https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache)
|
||||
Vendored
+7
-5
@@ -1,20 +1,22 @@
|
||||
---
|
||||
layout: default
|
||||
title: Logos/Icons
|
||||
title: Logos and Icons
|
||||
parent: Theming
|
||||
nav_order: 20
|
||||
permalink: /theming/favicons
|
||||
description: >-
|
||||
Replace the default logos/icons, to quickly recognize your printers.
|
||||
Replace the default logos and icons with your own.
|
||||
---
|
||||
|
||||
# {{ page.title }}
|
||||
{{ page.description }}
|
||||
|
||||
For uploads you can use the built-in file manager. `(Settings > Machine)`
|
||||
You can use the built in file manager in `Settings > Machine` to upload your own logos and icons. Customizing your icons can help identify your printers.
|
||||
|
||||
## Sidebar logo
|
||||
Just upload a logo into your .theme folder and name it `sidebar-logo.<extension>`.
|
||||
Upload a logo into your .theme folder and name it `sidebar-logo.<extension>`, where extension is one of the valid file types below.
|
||||
|
||||
For more information on creating and uploading to your `.theme` folder, please refer to the [Customizing your theme](/docs/theming/prepare) chapter.
|
||||
|
||||
| Filename | sidebar-logo |
|
||||
| Valid file extensions | .svg, .jpg, .png and .gif |
|
||||
@@ -30,7 +32,7 @@ Upload favicons into your .theme folder and name them `favicon-32x32.png` *(requ
|
||||
| Valid file extensions | .png |
|
||||
| Recommended image size | 32x32px, 16x16px |
|
||||
|
||||
A hard browser refresh may be necessary (CTRL+SHIFT+F5 on windows or CMD+SHIFT+R on mac).
|
||||
A browser refresh may be necessary (CTRL+SHIFT+F5 on windows or CMD++SHIFT+R on macOS) to reload without the browser cache.
|
||||
{: .info}
|
||||
|
||||

|
||||
|
||||
Vendored
+1
-1
@@ -11,7 +11,7 @@ description: >-
|
||||
# {{ page.title }}
|
||||
{{ page.description }}
|
||||
|
||||
Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community.
|
||||
Start with the [Prepare](/theming/prepare) section to create a basic structure for your own theme or take a look in [themes](/theming/themes) to see if there are themes from the Mainsail community you would like to use or customize.
|
||||
|
||||
<div class="youtube-container">
|
||||
<iframe type="text/html" src="https://www.youtube.com/embed/kbSfLQtl4tA" frameborder="0"></iframe>
|
||||
|
||||
Vendored
+3
-1
@@ -11,7 +11,9 @@ description: >-
|
||||
# {{ page.title }}
|
||||
{{ page.description }}
|
||||
|
||||
## .theme folder
|
||||
## Preparing your custom theme
|
||||
Create a `.theme` folder in your Mainsail `config` folder. The dot in the name means that it is hidden folder and you will need to activate *show hidden files* in your file manager to see it.
|
||||
|
||||
You only need to create a ".theme" folder in your config folder.
|
||||
There you will place all the files you need to personalize Mainsail.
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -16,7 +16,7 @@ description: >-
|
||||
|
||||
## Setup Instructions
|
||||
{: .no_toc}
|
||||
Go to the repo of the theme and download it. Place the files according to [these instructions](/theming/prepare#directory-structure).
|
||||
Click on the URL link below to go to the theme's repository and download it. Place the files according to [the instructions in the Preparing your theme section](/theming/prepare#directory-structure).
|
||||
|
||||
[KIAUH](/setup/kiauh) has an integrated theme installer
|
||||
Go to `[Advanced] > [Theme installer]`, enter the desired theme <span class="key">id</span> and confirm with return.
|
||||
|
||||
Reference in new issue
Block a user