docs: stylesheets & escaping gcode (#279)
* docs: just a few stylesheet adjustments modified: docs/_sass/color_schemes/mainsail.scss new file: docs/assets/img/alert.svg new file: docs/assets/img/info.svg new file: docs/assets/img/success.svg new file: docs/assets/img/warning.svg * docs: escape gcodes, so that it can be rendered. modified: necessary-cfg.md
This commit is contained in:
1 parent
6096704fe5
commit
598a7fe94f
6 files changed
+49
-40
No files matched your search
@@ -1,52 +1,52 @@
|
||||
$link-color: $red-300;
|
||||
$btn-primary-color: $red-300;
|
||||
|
||||
.success, .info, .warning, .alert {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background: #f5f6fa;
|
||||
border: 1px solid hsl(0, 0%, 85%);
|
||||
border-left: 4px solid;
|
||||
padding-left: 3.5em;
|
||||
|
||||
}
|
||||
.success {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(38, 203, 124);
|
||||
border-left-color: rgb(38, 203, 124);
|
||||
}
|
||||
|
||||
.info {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(56, 132, 255);
|
||||
border-left-color: rgb(56, 132, 255);
|
||||
}
|
||||
|
||||
.warning {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(247, 125, 5);
|
||||
border-left-color: rgb(247, 125, 5);
|
||||
}
|
||||
.alert {
|
||||
border-left-color: rgb(255, 70, 66);
|
||||
}
|
||||
|
||||
.alert {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(255, 70, 66);
|
||||
.success::before, .info::before, .warning::before, .alert::before {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 1.0em;
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
vertical-align: middle;
|
||||
margin: 0px 10px 0px 0px;
|
||||
}
|
||||
.success::before {
|
||||
content: url("/assets/img/success.svg");
|
||||
}
|
||||
.info::before {
|
||||
content: url("/assets/img/info.svg");
|
||||
}
|
||||
.warning::before {
|
||||
content: url("/assets/img/warning.svg");
|
||||
}
|
||||
.alert::before {
|
||||
content: url("/assets/img/alert.svg");
|
||||
}
|
||||
|
||||
.key {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(255, 70, 66);" class="icon-7f6730be--text-3f89f380"><g><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12" y2="17"/></g></svg>
|
||||
|
After Width: | Height: | Size: 454 B |
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" stroke="none" style="color: rgb(56, 132, 255);" class="icon-7f6730be--text-3f89f380"><g><path d="M12.2 8.98c.06-.01.12-.03.18-.06.06-.02.12-.05.18-.09l.15-.12c.18-.19.29-.45.29-.71 0-.06-.01-.13-.02-.19a.603.603 0 0 0-.06-.19.757.757 0 0 0-.09-.18c-.03-.05-.08-.1-.12-.15-.28-.27-.72-.37-1.09-.21-.13.05-.23.12-.33.21-.04.05-.09.1-.12.15-.04.06-.07.12-.09.18-.03.06-.05.12-.06.19-.01.06-.02.13-.02.19 0 .26.11.52.29.71.1.09.2.16.33.21.12.05.25.08.38.08.06 0 .13-.01.2-.02M13 16v-4a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0M12 3c-4.962 0-9 4.038-9 9 0 4.963 4.038 9 9 9 4.963 0 9-4.037 9-9 0-4.962-4.037-9-9-9m0 20C5.935 23 1 18.065 1 12S5.935 1 12 1c6.066 0 11 4.935 11 11s-4.934 11-11 11" fill-rule="evenodd"></path></g></svg>
|
||||
|
After Width: | Height: | Size: 874 B |
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(38, 203, 124);" class="icon-7f6730be--text-3f89f380"><g><path d="M22 11.07V12a10 10 0 1 1-5.93-9.14"></path><polyline points="23 3 12 14 9 11"></polyline></g></svg>
|
||||
|
After Width: | Height: | Size: 376 B |
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(247, 125, 5);" class="icon-7f6730be--text-3f89f380"><g><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line></g></svg>
|
||||
|
After Width: | Height: | Size: 406 B |
@@ -30,8 +30,9 @@ This enables pause / resume in mainsail.
|
||||
```
|
||||
|
||||
# Macros
|
||||
## for pause /resume / cancel functionality
|
||||
## for pause / resume / cancel functionality
|
||||
These should be modified to your own needs.
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro PAUSE]
|
||||
rename_existing: BASE_PAUSE
|
||||
@@ -73,6 +74,7 @@ gcode:
|
||||
BASE_RESUME
|
||||
```
|
||||
|
||||
|
||||
```yaml
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
rename_existing: BASE_CANCEL_PRINT
|
||||
@@ -82,11 +84,13 @@ gcode:
|
||||
SDCARD_RESET_FILE
|
||||
BASE_CANCEL_PRINT
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
# Optional
|
||||
|
||||
## customize klipper default commands
|
||||
for example, if you want to adjust the `BED_MESH_CALIBRATE` command, which you can run from "heightmap > calibrate".
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro BED_MESH_CALIBRATE]
|
||||
rename_existing: BASE_BED_MESH_CALIBRATE
|
||||
@@ -99,3 +103,4 @@ gcode:
|
||||
BASE_BED_MESH_CALIBRATE
|
||||
#after the original gcode
|
||||
```
|
||||
{% endraw %}
|
||||
Reference in new issue
Block a user