diff --git a/docs/themes/backgrounds.md b/docs/themes/backgrounds.md index 9f0c0155..c9e100df 100644 --- a/docs/themes/backgrounds.md +++ b/docs/themes/backgrounds.md @@ -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. - ![screenshot](../assets/img/customizing/sidebar-main.jpg){: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.`. +Load the background image into your .theme folder and name it `sidebar-background.`. | 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.`. | 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} diff --git a/docs/themes/custom-css.md b/docs/themes/custom-css.md index 5e448fd0..2840b5fd 100644 --- a/docs/themes/custom-css.md +++ b/docs/themes/custom-css.md @@ -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. ![file-screenshot](../assets/img/customizing/screenshot-custom-css.png "custom.css file") ![example result](../assets/img/customizing/screenshot-custom-css-example-result.png "custom.css result") -## 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`. ![open dev-tools](../assets/img/customizing/screenshot-custom-css-inspect.png "open dev-tools") -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! ![find element](../assets/img/customizing/screenshot-custom-css-find-element.png "find the right element") ![fiddle](../assets/img/customizing/screenshot-custom-css-fiddle.png "fiddle") -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. ![fiddle 2](../assets/img/customizing/screenshot-custom-css-fiddle-2.png "fiddle 2") -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) ![example](../assets/img/customizing/screenshot-custom-css-example.png "custom.css example") -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) diff --git a/docs/themes/icons.md b/docs/themes/icons.md index e01bab81..23821a78 100644 --- a/docs/themes/icons.md +++ b/docs/themes/icons.md @@ -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.`. +Upload a logo into your .theme folder and name it `sidebar-logo.`, 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} ![screenshot](../assets/img/customizing/screenshot-favicons.png) diff --git a/docs/themes/index.md b/docs/themes/index.md index aa9ed664..bf27b41e 100644 --- a/docs/themes/index.md +++ b/docs/themes/index.md @@ -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.
diff --git a/docs/themes/prepare.md b/docs/themes/prepare.md index 47baa81a..c0e76d36 100644 --- a/docs/themes/prepare.md +++ b/docs/themes/prepare.md @@ -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. diff --git a/docs/themes/themes.md b/docs/themes/themes.md index 3610e39a..74e63281 100644 --- a/docs/themes/themes.md +++ b/docs/themes/themes.md @@ -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 id and confirm with return.