@toheeb/base 1.5.5 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/base-settings.js CHANGED
@@ -208,17 +208,25 @@ class BaseSettings extends HTMLElement {
208
208
 
209
209
  // Indent Mode
210
210
  {
211
- const mode_indent = root_styles.getPropertyValue("--base-mode-indent").trim();
212
211
  const label_mode_indent = this.querySelector("#base-mode-indent").closest("label");
212
+ const has_other_sheet = doc_sheets.some(sheet => sheet.title?.toLowerCase()?.trim() != "base");
213
+ const mode_indent = root_styles.getPropertyValue("--base-mode-indent").trim();
213
214
 
214
- if (mode_indent) {
215
- label_mode_indent.hidden = false;
216
- this.querySelector("#base-mode-indent").checked = parseInt(mode_indent) === 1;
217
- } else {
215
+ if (has_other_sheet) {
218
216
  label_mode_indent.hidden = true;
217
+ mode_indent.checked = false;
218
+ } else {
219
+
220
+ if (mode_indent) {
221
+ label_mode_indent.hidden = false;
222
+ this.querySelector("#base-mode-indent").checked = parseInt(mode_indent) === 1;
223
+ } else {
224
+ label_mode_indent.hidden = true;
225
+ }
219
226
  }
220
227
  }
221
228
 
229
+
222
230
  // Font Family
223
231
  {
224
232
  const font_family = root_styles.getPropertyValue("--base-font-family").trim();
package/base.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <title>Document</title>
8
- <link rel="stylesheet" href="./base.css">
8
+ <link rel="stylesheet" href="./base.css" title="Base">
9
9
  <meta name="color-scheme" content="darks slight">
10
10
  <script src="./base-settings.js"></script>
11
11
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toheeb/base",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "A classless stylesheet for Personalizable Web Design",
5
5
  "main": "index.js",
6
6
  "scripts": {