create-lupine 1.0.27 → 1.0.28
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/package.json +2 -2
- package/templates/common/AI_CONTEXT.md +142 -60
- package/templates/common/dev/dev-watch.js +19 -1
- package/templates/lupine-template-hello-world/web/src/styles/global.css +57 -70
- package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx +7 -3
- package/templates/lupine-template-responsive-starter/web/src/styles/global.css +57 -70
package/package.json
CHANGED
|
@@ -191,91 +191,174 @@ export const MyComponent = () => {
|
|
|
191
191
|
|
|
192
192
|
## 4. CSS Placement Strategies & Sharing Scopes
|
|
193
193
|
|
|
194
|
-
Lupine.js
|
|
194
|
+
Lupine.js handles CSS scoping by generating unique IDs and replacing the `&` symbol in class names. Depending on where your components live, you have three strategies for sharing this CSS scope.
|
|
195
195
|
|
|
196
|
-
###
|
|
196
|
+
### 4.1 Sharing CSS inside a method (Component Level)
|
|
197
197
|
|
|
198
|
-
**Best for**:
|
|
198
|
+
**Best for**: Complex components or pages where you define a single `const css: CssProps` and share it across sub-components rendered in the same function.
|
|
199
199
|
|
|
200
|
-
When you
|
|
200
|
+
When you assign `css={css}` to the root element, a unique ID is generated (e.g., `l01`).
|
|
201
201
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
### Strategy B: `bindGlobalStyle` (Reusable Components)
|
|
206
|
-
|
|
207
|
-
**Best for**: Reusable UI components (Buttons, Toggles, List Items, Modals) that will be rendered multiple times.
|
|
208
|
-
|
|
209
|
-
`bindGlobalStyle`, combined with `getGlobalStylesId`, places the `<style>` block in the `<head>` of the document **exactly once**. All instances of the component share the same CSS class names, but those names are still guaranteed to be collision-free!
|
|
210
|
-
|
|
211
|
-
**How it works seamlessly with `&`**:
|
|
212
|
-
|
|
213
|
-
1. Generate an ID based on the `CssProps` content: `const globalCssId = getGlobalStylesId(css);`. (Call this _inside_ the component!)
|
|
214
|
-
2. Bind the style block globally once: `bindGlobalStyle(globalCssId, css);`
|
|
215
|
-
3. Assign this ID to the component's `ref` to link the scope: `const ref: RefProps = { globalCssId };` / `<div ref={ref}>`
|
|
216
|
-
4. Use `class="&-item"` normally. Lupine replaces `&` with the identical `globalCssId` across all instances.
|
|
217
|
-
|
|
218
|
-
> [!WARNING]
|
|
219
|
-
> Because `getGlobalStylesId` relies on `getRequestContext()` data to correctly attach and track styles (especially across SSR and interactive client renders), `getGlobalStylesId` and `bindGlobalStyle` **MUST** be called inside the component function scope. Calling them at the file/module level will result in runtime errors like: `Uncaught Error: Request context is not initialized`.
|
|
220
|
-
|
|
221
|
-
### ⚠️ IMPORTANT: The "Static `CssProps`" Rule
|
|
222
|
-
|
|
223
|
-
Because `bindGlobalStyle` injects your `<style>` tags into the `<head>` globally, your `CssProps` definition **MUST** be entirely static.
|
|
224
|
-
|
|
225
|
-
**ANTI-PATTERN:** Putting variables (like `isVertical`, `size`, `color`) directly inside the `CssProps` object structure. Every time the component re-renders with a different prop, it will generate conflicting CSS IDs and the latter will overwrite the former's styles, corrupting the layout. Define one immutable `const css: CssProps = {...}` and handle visual variations by appending standard class names to your root element (`class={isVertical ? '&-vertical' : '&-horizontal'}`) and map those variations inside your static `CssProps`.
|
|
226
|
-
|
|
227
|
-
### 🔗 Sharing the same CSS scope (`globalCssId`) among Separated DOMs
|
|
228
|
-
|
|
229
|
-
If your component divides its logic so that some internal floating DOM elements are rendered dynamically later (e.g. through a function passed to `HtmlVar`) _separated_ from the root return statement, the inner DOM will automatically generate a **new, mismatched** CSS ID if not linked. Its internal `class="&-item"` references will break and styles will fail to apply.
|
|
230
|
-
|
|
231
|
-
To force separated local DOM partitions to share the exact same `&` CSS Scope as their parent page, explicitly share a globally unique CSS ID using `globalStyleUniqueId()`:
|
|
202
|
+
1. **Automatic Inheritance**: The top node's CSS ID will be automatically inherited by all descendant nodes in most cases. You **do not** need to pass it manually.
|
|
203
|
+
2. **HtmlVar Support**: Detached DOMs rendered via `HtmlVar` now automatically inherit the CSS ID of the element they are mounted into!
|
|
204
|
+
3. **Explicit Linking (`referToCssId`)**: The **ONLY** time the inheritance chain is broken is when a sub-component defines its OWN `css` property (which creates a new CSS scope). If you want descendants of that sub-component to still use the top parent's CSS ID instead of the new one, you must explicitly pass `referToCssId`.
|
|
232
205
|
|
|
233
206
|
```tsx
|
|
234
|
-
import {
|
|
207
|
+
import { domUniqueId, HtmlVar, RefProps, CssProps } from 'lupine.components';
|
|
208
|
+
|
|
209
|
+
export const TestCssShareInside = () => {
|
|
210
|
+
const cssInner: CssProps = {
|
|
211
|
+
// Top-level rules apply to the root component
|
|
212
|
+
display: 'flex',
|
|
213
|
+
'.&-content': { color: 'red' },
|
|
214
|
+
'.&-sub-title': { fontWeight: 'bold' },
|
|
215
|
+
'.&-list-item': { color: 'blue' }
|
|
216
|
+
};
|
|
235
217
|
|
|
236
|
-
|
|
237
|
-
// 1. Generate a manual ID for the container scope beforehand
|
|
238
|
-
const cssId = globalStyleUniqueId();
|
|
218
|
+
const ref: RefProps = { id: domUniqueId() };
|
|
239
219
|
|
|
220
|
+
// Example of a detached DOM using HtmlVar.
|
|
221
|
+
// It automatically inherits the CSS ID when mounted inside the component!
|
|
240
222
|
const listDom = new HtmlVar('');
|
|
241
|
-
|
|
242
223
|
const renderList = () => {
|
|
243
|
-
// 2. Explicitly bind the inner detached DOM to the parent's globalCssId
|
|
244
224
|
listDom.value = (
|
|
245
|
-
<div
|
|
246
|
-
<div class='&-
|
|
225
|
+
<div class='&-list'>
|
|
226
|
+
<div class='&-list-item'>HtmlVar List Item</div>
|
|
247
227
|
</div>
|
|
248
228
|
);
|
|
249
229
|
};
|
|
250
230
|
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
|
|
231
|
+
const SubContent1 = () => {
|
|
232
|
+
const ref2: RefProps = { onLoad: async () => {} };
|
|
233
|
+
// This sub-component only has a ref, so it naturally inherits the parent's css ID!
|
|
234
|
+
return <div ref={ref2} class='&-sub-top'>Sub component without css.</div>;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
const SubContent2 = (props: { children: VNode<any> }) => {
|
|
238
|
+
// ⚠️ This sub-component has its own `css`, which would break inheritance!
|
|
239
|
+
const css2: CssProps = { color: 'blue' };
|
|
240
|
+
const ref2: RefProps = {
|
|
241
|
+
// So we MUST explicitly link it using referToCssId if we still want parent's css id.
|
|
242
|
+
referToCssId: ref.id,
|
|
243
|
+
onLoad: async () => renderList()
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
return (
|
|
247
|
+
<div ref={ref2} css={css2} class='&-sub-top'>
|
|
248
|
+
<div class='&-sub-title'>Sub component with its own css.</div>
|
|
249
|
+
{listDom.node}
|
|
250
|
+
{props.children}
|
|
251
|
+
</div>
|
|
252
|
+
);
|
|
254
253
|
};
|
|
255
|
-
const css: CssProps = { '.&-bundle-name': { color: 'red' } };
|
|
256
254
|
|
|
257
255
|
return (
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
{
|
|
256
|
+
// 1. Assign css to the top node.
|
|
257
|
+
<div ref={ref} css={cssInner}>
|
|
258
|
+
{/* 2. Normal elements automatically inherit the CSS ID */}
|
|
259
|
+
<div class='&-content'>Content</div>
|
|
260
|
+
|
|
261
|
+
{/* 3. SubContent1 automatically inherits */}
|
|
262
|
+
<SubContent1 />
|
|
263
|
+
|
|
264
|
+
{/* 4. SubContent2 explicitly overrides inheritance internally */}
|
|
265
|
+
<SubContent2>
|
|
266
|
+
<div class='&-sub'>Passed as parameter</div>
|
|
267
|
+
</SubContent2>
|
|
268
|
+
</div>
|
|
269
|
+
);
|
|
270
|
+
};
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### 4.2 Sharing CSS between components (Module Level)
|
|
274
|
+
|
|
275
|
+
**Best for**: Reusable UI components (Buttons, Modals, List Items) that are rendered multiple times across the application, or when sharing a common style block between a few specific components.
|
|
276
|
+
|
|
277
|
+
If you render 100 items using `css={}`, it injects 100 identical `<style>` blocks. To avoid this bloat, use `bindGlobalStyle` to inject the `<style>` block exactly once into the `<head>`, and share its ID using `referToCssId`.
|
|
278
|
+
|
|
279
|
+
**How to share:**
|
|
280
|
+
1. Define the CSS outside or inside of the component method.
|
|
281
|
+
2. Inside the component, get the ID and bind it globally using `bindGlobalStyle()`.
|
|
282
|
+
3. Assign `referToCssId` to the root element's `ref`, **and** add the `globalCssId` to the tag's `class` attribute.
|
|
283
|
+
```tsx
|
|
284
|
+
// 1. Define shared CSS
|
|
285
|
+
const cssShared: CssProps = {
|
|
286
|
+
display: 'flex',
|
|
287
|
+
'.&-content': { color: 'red' },
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export const TestGlobalCss = () => {
|
|
291
|
+
// 2. Get the unique ID and bind it globally (only happens once)
|
|
292
|
+
// By default, noTopClassName is false, meaning the globalCssId will be prefixed to top level selectors (e.g., '.g00 .g00-content').
|
|
293
|
+
const globalCssId = getGlobalStylesId(cssShared);
|
|
294
|
+
bindGlobalStyle(globalCssId, cssShared);
|
|
295
|
+
|
|
296
|
+
return (
|
|
297
|
+
// 3. Assign referToCssId AND manually add the globalCssId as a class name!
|
|
298
|
+
// Since bindGlobalStyle added `.g00` to the selectors, we MUST add `g00` to the top tag.
|
|
299
|
+
<div ref={{ referToCssId: globalCssId }} class={globalCssId}>
|
|
300
|
+
{/* & is automatically replaced by globalCssId */}
|
|
301
|
+
<div class='&-content'>Share CSS cross components</div>
|
|
261
302
|
</div>
|
|
262
303
|
);
|
|
263
304
|
};
|
|
264
305
|
```
|
|
265
306
|
|
|
266
|
-
###
|
|
307
|
+
### 4.3 The `noTopClassName` Parameter
|
|
308
|
+
|
|
309
|
+
When using `bindGlobalStyle` or `bindAppGlobalStyle`, the `noTopClassName` parameter (4th argument) dictates how top-level CSS selectors are compiled.
|
|
267
310
|
|
|
268
|
-
|
|
311
|
+
- **`noTopClassName = false` (Default)**:
|
|
312
|
+
`bindGlobalStyle(globalCssId, cssShared)` will prepend the ID to all top-level selectors.
|
|
313
|
+
If `cssShared` is `{ '.selector-1': {} }` and `globalCssId` is `g00`, it compiles to:
|
|
314
|
+
`'.g00 .selector-1' { ... }`
|
|
315
|
+
This is why you **must** add `class={globalCssId}` to the top tag. In this mode, `cssShared` can also contain styles applied directly to the top tag (e.g., `display: 'flex'`).
|
|
269
316
|
|
|
270
|
-
|
|
317
|
+
- **`noTopClassName = true`**:
|
|
318
|
+
`bindGlobalStyle(globalCssId, cssShared, false, true)` will NOT prepend the ID.
|
|
319
|
+
It compiles to:
|
|
320
|
+
`'.selector-1' { ... }`
|
|
321
|
+
In this mode, you **cannot** define top-level styles directly on the root component without a selector, and you **do not** need to add `globalCssId` to the top tag's class name.
|
|
271
322
|
|
|
272
|
-
|
|
323
|
+
> [!WARNING]
|
|
324
|
+
> Because `bindGlobalStyle` injects your `<style>` tags into the `<head>` globally, your `CssProps` definition **MUST** be entirely static. Do not put variables (like `size` or `color`) directly inside the `CssProps` object structure.
|
|
273
325
|
|
|
274
|
-
|
|
326
|
+
### 4.4 Sharing CSS at application level (Global Scope)
|
|
275
327
|
|
|
276
|
-
|
|
328
|
+
**Best for**: True global styles like general utility classes, typography, or theme-wide resets.
|
|
277
329
|
|
|
278
|
-
|
|
330
|
+
In this case, you define an application-level CSS block and add it to the header when the app initializes.
|
|
331
|
+
|
|
332
|
+
- You **cannot** use the `&` ampersand to represent a dynamic unique ID prefix (like `&-content`). However, you **can** still use `&` in nested structures to refer to the parent selector (e.g., `&.title` compiles to `.app-header.title`), though explicitly using absolute selectors is generally recommended for clarity.
|
|
333
|
+
- You do not need to pass `referToCssId`. You just use the standard global class names in your JSX.
|
|
334
|
+
|
|
335
|
+
```tsx
|
|
336
|
+
// 1. Define the shared CSS with absolute selectors
|
|
337
|
+
export const appSharedCss = {
|
|
338
|
+
'.app-header': {
|
|
339
|
+
fontSize: '14px',
|
|
340
|
+
// Using & here refers to the parent selector (.app-header),
|
|
341
|
+
// resulting in .app-header.title
|
|
342
|
+
'&.title': { fontSize: '24px' },
|
|
343
|
+
},
|
|
344
|
+
'.app-warning-color': { color: 'red' },
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
// 2. Add this in your app's initialization (e.g., index.tsx)
|
|
348
|
+
// The 4th parameter (noTopClassName = true) is critical here!
|
|
349
|
+
bindAppGlobalStyle('app-shared-css', appSharedCss, false, true);
|
|
350
|
+
|
|
351
|
+
// 3. Use it anywhere
|
|
352
|
+
export const AnyComponent = () => (
|
|
353
|
+
// Use the absolute class names directly
|
|
354
|
+
<div class="app-header title">Hello</div>
|
|
355
|
+
);
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### 4.5 Using `&` on Top-Level Tags
|
|
359
|
+
|
|
360
|
+
When there is a special need to use an `&-` class prefix on a top-level tag, use the `&.&-box` syntax. The standalone `&` selector is replaced by the CSS ID automatically generated for this top-level tag.
|
|
361
|
+
For instance, `"&.&-box"` compiles to `"l01.l01-box"`.
|
|
279
362
|
|
|
280
363
|
```typescript
|
|
281
364
|
export const Component1 = () => {
|
|
@@ -288,18 +371,17 @@ export const Component1 = () => {
|
|
|
288
371
|
bindGlobalStyle(gCssId, css);
|
|
289
372
|
|
|
290
373
|
const ref: RefProps = {
|
|
291
|
-
|
|
374
|
+
referToCssId: gCssId,
|
|
292
375
|
};
|
|
376
|
+
|
|
293
377
|
return (
|
|
294
|
-
<div ref={ref} class='&-box'>
|
|
378
|
+
<div ref={ref} class={[gCssId, '&-box'].join(' ')}>
|
|
295
379
|
<div class='&-item'>item</div>
|
|
296
380
|
</div>
|
|
297
381
|
);
|
|
298
382
|
};
|
|
299
383
|
```
|
|
300
384
|
|
|
301
|
-
---
|
|
302
|
-
|
|
303
385
|
## 5. Common Patterns ("The Lupine Way")
|
|
304
386
|
|
|
305
387
|
### List / Search (No Re-render)
|
|
@@ -110,6 +110,13 @@ const watchServer = async (isDev, npmCmd, httpPort, serverRootPath) => {
|
|
|
110
110
|
|
|
111
111
|
// copy files to output directory
|
|
112
112
|
const copyCache = new Map();
|
|
113
|
+
const writeBuildTimeFiles = async (saved) => {
|
|
114
|
+
if (!saved.webVersionFile) return;
|
|
115
|
+
const buildTimeContent = JSON.stringify({ version: new Date().toISOString() }, null, 2) + '\n';
|
|
116
|
+
const sourceBuildTimePath = path.join(saved.appDir, saved.webVersionFile);
|
|
117
|
+
await fs.writeFile(sourceBuildTimePath, buildTimeContent, 'utf8');
|
|
118
|
+
};
|
|
119
|
+
|
|
113
120
|
const clientProcessOnEnd = async (saved) => {
|
|
114
121
|
saved.indexHtml &&
|
|
115
122
|
cpIndexHtml(
|
|
@@ -140,6 +147,10 @@ const watchClientPlugin = (saved) => {
|
|
|
140
147
|
return {
|
|
141
148
|
name: 'watchClientPlugin',
|
|
142
149
|
setup(build) {
|
|
150
|
+
build.onStart(async () => {
|
|
151
|
+
await writeBuildTimeFiles(saved);
|
|
152
|
+
});
|
|
153
|
+
|
|
143
154
|
build.onEnd(async (res) => {
|
|
144
155
|
// console.log(`Build meta data: `, res);
|
|
145
156
|
console.log(`[dev-client:${saved.appName}] Build finished`);
|
|
@@ -180,7 +191,11 @@ const watchClient = async (saved, isDev, entryPoints, outbase) => {
|
|
|
180
191
|
jsxImportSource: 'lupine.web',
|
|
181
192
|
jsx: 'automatic',
|
|
182
193
|
target: ['chrome87'],
|
|
183
|
-
plugins: [
|
|
194
|
+
plugins: [
|
|
195
|
+
watchClientPlugin(saved),
|
|
196
|
+
pluginIfelse(ifPluginVars),
|
|
197
|
+
obfuscatePlugin(saved.isObfuscate, saved.skipObfuscateFiles || []),
|
|
198
|
+
],
|
|
184
199
|
});
|
|
185
200
|
|
|
186
201
|
isDev && (await ctx.watch());
|
|
@@ -316,6 +331,9 @@ const start = async () => {
|
|
|
316
331
|
isObfuscate,
|
|
317
332
|
defaultThemeName: 'light',
|
|
318
333
|
appName,
|
|
334
|
+
appDir,
|
|
335
|
+
webVersionFile: appCfg['webVersionFile'],
|
|
336
|
+
skipObfuscateFiles: (appCfg['skipObfuscateFiles'] || []).map((p) => path.normalize(p)),
|
|
319
337
|
httpPort,
|
|
320
338
|
serverRoot: serverRootPath,
|
|
321
339
|
outdirWeb: `${serverRootPath}/${appName}_web`,
|
|
@@ -496,12 +496,14 @@ fragment {
|
|
|
496
496
|
scrollbar-width: none;
|
|
497
497
|
-webkit-overflow-scrolling: touch;
|
|
498
498
|
}
|
|
499
|
+
|
|
499
500
|
.no-scrollbar-container::-webkit-scrollbar {
|
|
500
501
|
display: none;
|
|
501
502
|
}
|
|
503
|
+
|
|
502
504
|
/* -------------------------- */
|
|
503
505
|
|
|
504
|
-
.row-box
|
|
506
|
+
.row-box>* {
|
|
505
507
|
display: inline-block;
|
|
506
508
|
align-self: center;
|
|
507
509
|
}
|
|
@@ -524,21 +526,27 @@ fragment {
|
|
|
524
526
|
.grid-gap {
|
|
525
527
|
gap: 0.5rem;
|
|
526
528
|
}
|
|
529
|
+
|
|
527
530
|
.grid-gap-0 {
|
|
528
531
|
gap: 0;
|
|
529
532
|
}
|
|
533
|
+
|
|
530
534
|
.grid-gap-ss {
|
|
531
535
|
gap: 0.15rem;
|
|
532
536
|
}
|
|
537
|
+
|
|
533
538
|
.grid-gap-s {
|
|
534
539
|
gap: 0.35rem;
|
|
535
540
|
}
|
|
541
|
+
|
|
536
542
|
.grid-gap-m {
|
|
537
543
|
gap: 0.75rem;
|
|
538
544
|
}
|
|
545
|
+
|
|
539
546
|
.grid-gap-l {
|
|
540
547
|
gap: 1rem;
|
|
541
548
|
}
|
|
549
|
+
|
|
542
550
|
.grid-gap-ll {
|
|
543
551
|
gap: 1.5rem;
|
|
544
552
|
}
|
|
@@ -569,6 +577,7 @@ fragment {
|
|
|
569
577
|
[class^='col-'] {
|
|
570
578
|
margin: calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2);
|
|
571
579
|
}
|
|
580
|
+
|
|
572
581
|
/* for a column with fixed width */
|
|
573
582
|
.col-0 {
|
|
574
583
|
width: auto;
|
|
@@ -774,6 +783,7 @@ fragment {
|
|
|
774
783
|
max-width: calc((100% / (12 / 12)) - var(--grid-gutter));
|
|
775
784
|
}
|
|
776
785
|
}
|
|
786
|
+
|
|
777
787
|
/* -------------------------- */
|
|
778
788
|
|
|
779
789
|
body {
|
|
@@ -785,66 +795,6 @@ body {
|
|
|
785
795
|
font-weight: var(--font-weight-base);
|
|
786
796
|
}
|
|
787
797
|
|
|
788
|
-
.safe-area-pt {
|
|
789
|
-
padding-top: constant(safe-area-inset-top);
|
|
790
|
-
padding-top: env(safe-area-inset-top);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.safe-area-pb {
|
|
794
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
795
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
.safe-area-pl {
|
|
799
|
-
padding-left: constant(safe-area-inset-left);
|
|
800
|
-
padding-left: env(safe-area-inset-left);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.safe-area-pr {
|
|
804
|
-
padding-right: constant(safe-area-inset-right);
|
|
805
|
-
padding-right: env(safe-area-inset-right);
|
|
806
|
-
}
|
|
807
|
-
.safe-area-pall {
|
|
808
|
-
padding-top: constant(safe-area-inset-top);
|
|
809
|
-
padding-top: env(safe-area-inset-top);
|
|
810
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
811
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
812
|
-
padding-left: constant(safe-area-inset-left);
|
|
813
|
-
padding-left: env(safe-area-inset-left);
|
|
814
|
-
padding-right: constant(safe-area-inset-right);
|
|
815
|
-
padding-right: env(safe-area-inset-right);
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.safe-area-mt {
|
|
819
|
-
margin-top: constant(safe-area-inset-top);
|
|
820
|
-
margin-top: env(safe-area-inset-top);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.safe-area-mb {
|
|
824
|
-
margin-bottom: constant(safe-area-inset-bottom);
|
|
825
|
-
margin-bottom: env(safe-area-inset-bottom);
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
.safe-area-ml {
|
|
829
|
-
margin-left: constant(safe-area-inset-left);
|
|
830
|
-
margin-left: env(safe-area-inset-left);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.safe-area-mr {
|
|
834
|
-
margin-right: constant(safe-area-inset-right);
|
|
835
|
-
margin-right: env(safe-area-inset-right);
|
|
836
|
-
}
|
|
837
|
-
.safe-area-mall {
|
|
838
|
-
margin-top: constant(safe-area-inset-top);
|
|
839
|
-
margin-top: env(safe-area-inset-top);
|
|
840
|
-
margin-bottom: constant(safe-area-inset-bottom);
|
|
841
|
-
margin-bottom: env(safe-area-inset-bottom);
|
|
842
|
-
margin-left: constant(safe-area-inset-left);
|
|
843
|
-
margin-left: env(safe-area-inset-left);
|
|
844
|
-
margin-right: constant(safe-area-inset-right);
|
|
845
|
-
margin-right: env(safe-area-inset-right);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
798
|
input.base-css[type='text'],
|
|
849
799
|
input.base-css[type='password'],
|
|
850
800
|
input.base-css[type='email'],
|
|
@@ -989,9 +939,11 @@ input.input-base[type='checkbox'] {
|
|
|
989
939
|
border: 3px solid var(--primary-border-color);
|
|
990
940
|
border-radius: 6px;
|
|
991
941
|
}
|
|
942
|
+
|
|
992
943
|
input.input-base[type='checkbox']:checked {
|
|
993
944
|
background-color: var(--primary-accent-color);
|
|
994
945
|
}
|
|
946
|
+
|
|
995
947
|
input.input-base[type='checkbox']:checked::after {
|
|
996
948
|
content: '';
|
|
997
949
|
position: absolute;
|
|
@@ -1003,9 +955,11 @@ input.input-base[type='checkbox']:checked::after {
|
|
|
1003
955
|
width: 40%;
|
|
1004
956
|
height: 70%;
|
|
1005
957
|
}
|
|
958
|
+
|
|
1006
959
|
input.input-base[type='radio'] {
|
|
1007
960
|
border-radius: 50%;
|
|
1008
961
|
}
|
|
962
|
+
|
|
1009
963
|
input.input-base[type='radio']:checked::after {
|
|
1010
964
|
content: '';
|
|
1011
965
|
position: absolute;
|
|
@@ -1101,9 +1055,11 @@ input.input-base.input-ss[type='checkbox'] {
|
|
|
1101
1055
|
height: 1rem;
|
|
1102
1056
|
border-width: 1px;
|
|
1103
1057
|
}
|
|
1058
|
+
|
|
1104
1059
|
input.input-base.input-ss[type='checkbox']:checked::after {
|
|
1105
1060
|
border-width: 0 2px 2px 0;
|
|
1106
1061
|
}
|
|
1062
|
+
|
|
1107
1063
|
input.input-base.input-ss[type='radio']:checked::after {
|
|
1108
1064
|
left: 12%;
|
|
1109
1065
|
}
|
|
@@ -1114,6 +1070,7 @@ input.input-base.input-s[type='checkbox'] {
|
|
|
1114
1070
|
height: 1.4rem;
|
|
1115
1071
|
border-width: 2px;
|
|
1116
1072
|
}
|
|
1073
|
+
|
|
1117
1074
|
input.input-base.input-s[type='checkbox']:checked::after {
|
|
1118
1075
|
border-width: 0 3px 3px 0;
|
|
1119
1076
|
}
|
|
@@ -1195,10 +1152,10 @@ button.input-base[disabled='true'],
|
|
|
1195
1152
|
transition: 0.3s;
|
|
1196
1153
|
}
|
|
1197
1154
|
|
|
1198
|
-
.input-field input:focus
|
|
1199
|
-
.input-field input:not(:placeholder-shown)
|
|
1200
|
-
.input-field textarea:focus
|
|
1201
|
-
.input-field textarea:not(:placeholder-shown)
|
|
1155
|
+
.input-field input:focus+span,
|
|
1156
|
+
.input-field input:not(:placeholder-shown)+span,
|
|
1157
|
+
.input-field textarea:focus+span,
|
|
1158
|
+
.input-field textarea:not(:placeholder-shown)+span {
|
|
1202
1159
|
top: -6px;
|
|
1203
1160
|
left: 10px;
|
|
1204
1161
|
font-size: small;
|
|
@@ -1206,10 +1163,10 @@ button.input-base[disabled='true'],
|
|
|
1206
1163
|
padding: 0 5px 0 5px;
|
|
1207
1164
|
}
|
|
1208
1165
|
|
|
1209
|
-
.input-field input:focus:invalid
|
|
1210
|
-
.input-field input:not(:placeholder-shown):invalid
|
|
1211
|
-
.input-field textarea:focus:invalid
|
|
1212
|
-
.input-field textarea:not(:placeholder-shown):invalid
|
|
1166
|
+
.input-field input:focus:invalid+span,
|
|
1167
|
+
.input-field input:not(:placeholder-shown):invalid+span,
|
|
1168
|
+
.input-field textarea:focus:invalid+span,
|
|
1169
|
+
.input-field textarea:not(:placeholder-shown):invalid+span {
|
|
1213
1170
|
color: red;
|
|
1214
1171
|
}
|
|
1215
1172
|
|
|
@@ -1848,6 +1805,7 @@ h6,
|
|
|
1848
1805
|
.w-25p {
|
|
1849
1806
|
width: 25%;
|
|
1850
1807
|
}
|
|
1808
|
+
|
|
1851
1809
|
.w-75p {
|
|
1852
1810
|
width: 75%;
|
|
1853
1811
|
}
|
|
@@ -1855,6 +1813,7 @@ h6,
|
|
|
1855
1813
|
.w-33p {
|
|
1856
1814
|
width: 33.333%;
|
|
1857
1815
|
}
|
|
1816
|
+
|
|
1858
1817
|
.w-77p {
|
|
1859
1818
|
width: 77.777%;
|
|
1860
1819
|
}
|
|
@@ -1866,6 +1825,7 @@ h6,
|
|
|
1866
1825
|
.w-100p {
|
|
1867
1826
|
width: 100%;
|
|
1868
1827
|
}
|
|
1828
|
+
|
|
1869
1829
|
.w-auto {
|
|
1870
1830
|
width: auto;
|
|
1871
1831
|
}
|
|
@@ -1873,6 +1833,7 @@ h6,
|
|
|
1873
1833
|
.h-100p {
|
|
1874
1834
|
height: 100%;
|
|
1875
1835
|
}
|
|
1836
|
+
|
|
1876
1837
|
.h-auto {
|
|
1877
1838
|
height: auto;
|
|
1878
1839
|
}
|
|
@@ -1892,6 +1853,7 @@ h6,
|
|
|
1892
1853
|
.align-items-center {
|
|
1893
1854
|
align-items: center;
|
|
1894
1855
|
}
|
|
1856
|
+
|
|
1895
1857
|
.justify-content-center {
|
|
1896
1858
|
justify-content: center;
|
|
1897
1859
|
}
|
|
@@ -1907,6 +1869,7 @@ h6,
|
|
|
1907
1869
|
.flex-row {
|
|
1908
1870
|
flex-direction: row;
|
|
1909
1871
|
}
|
|
1872
|
+
|
|
1910
1873
|
.p-relative {
|
|
1911
1874
|
position: relative;
|
|
1912
1875
|
}
|
|
@@ -2021,10 +1984,12 @@ h6,
|
|
|
2021
1984
|
.setting-section-group {
|
|
2022
1985
|
padding-bottom: 16px;
|
|
2023
1986
|
}
|
|
1987
|
+
|
|
2024
1988
|
.setting-section-title {
|
|
2025
1989
|
font-size: 15px;
|
|
2026
1990
|
padding: 8px 0;
|
|
2027
1991
|
}
|
|
1992
|
+
|
|
2028
1993
|
.setting-section-block {
|
|
2029
1994
|
display: flex;
|
|
2030
1995
|
flex-direction: column;
|
|
@@ -2033,6 +1998,7 @@ h6,
|
|
|
2033
1998
|
border-radius: 8px;
|
|
2034
1999
|
padding: 4px 8px;
|
|
2035
2000
|
}
|
|
2001
|
+
|
|
2036
2002
|
.setting-section-item {
|
|
2037
2003
|
display: flex;
|
|
2038
2004
|
flex-direction: row;
|
|
@@ -2042,16 +2008,20 @@ h6,
|
|
|
2042
2008
|
border-bottom: 1px dotted var(--primary-border-color);
|
|
2043
2009
|
cursor: pointer;
|
|
2044
2010
|
}
|
|
2011
|
+
|
|
2045
2012
|
.setting-section-item:last-child {
|
|
2046
2013
|
border-bottom: none;
|
|
2047
2014
|
}
|
|
2015
|
+
|
|
2048
2016
|
.setting-section-item-text {
|
|
2049
2017
|
font-size: 15px;
|
|
2050
2018
|
}
|
|
2019
|
+
|
|
2051
2020
|
.setting-section-item-icon {
|
|
2052
2021
|
font-size: 20px;
|
|
2053
2022
|
margin-right: 8px;
|
|
2054
2023
|
}
|
|
2024
|
+
|
|
2055
2025
|
.setting-section-item-icon.text {
|
|
2056
2026
|
font-size: 11px;
|
|
2057
2027
|
}
|
|
@@ -2069,15 +2039,18 @@ h6,
|
|
|
2069
2039
|
justify-content: center;
|
|
2070
2040
|
cursor: pointer;
|
|
2071
2041
|
}
|
|
2042
|
+
|
|
2072
2043
|
.setting-section-row-btn i.ifc-icon {
|
|
2073
2044
|
margin: 0 8px;
|
|
2074
2045
|
color: var(--ss-row-btn-color);
|
|
2075
2046
|
font-size: 26px;
|
|
2076
2047
|
}
|
|
2048
|
+
|
|
2077
2049
|
.setting-section-row-btn.warning,
|
|
2078
2050
|
.setting-section-row-btn.warning i.ifc-icon {
|
|
2079
2051
|
color: var(--ss-row-btn-warn-color);
|
|
2080
2052
|
}
|
|
2053
|
+
|
|
2081
2054
|
/* tips inside button */
|
|
2082
2055
|
.setting-section-row-btn-tips {
|
|
2083
2056
|
color: var(--ss-row-btn-warn-color);
|
|
@@ -2091,24 +2064,31 @@ h6,
|
|
|
2091
2064
|
.color-inherit {
|
|
2092
2065
|
color: inherit;
|
|
2093
2066
|
}
|
|
2067
|
+
|
|
2094
2068
|
.color-red {
|
|
2095
2069
|
color: red;
|
|
2096
2070
|
}
|
|
2071
|
+
|
|
2097
2072
|
.color-green {
|
|
2098
2073
|
color: green;
|
|
2099
2074
|
}
|
|
2075
|
+
|
|
2100
2076
|
.color-blue {
|
|
2101
2077
|
color: blue;
|
|
2102
2078
|
}
|
|
2079
|
+
|
|
2103
2080
|
.color-yellow {
|
|
2104
2081
|
color: yellow;
|
|
2105
2082
|
}
|
|
2083
|
+
|
|
2106
2084
|
.color-gray {
|
|
2107
2085
|
color: gray;
|
|
2108
2086
|
}
|
|
2087
|
+
|
|
2109
2088
|
.color-black {
|
|
2110
2089
|
color: black;
|
|
2111
2090
|
}
|
|
2091
|
+
|
|
2112
2092
|
.color-white {
|
|
2113
2093
|
color: white;
|
|
2114
2094
|
}
|
|
@@ -2116,28 +2096,35 @@ h6,
|
|
|
2116
2096
|
.back-color-inherit {
|
|
2117
2097
|
background-color: inherit;
|
|
2118
2098
|
}
|
|
2099
|
+
|
|
2119
2100
|
.back-color-red {
|
|
2120
2101
|
background-color: red;
|
|
2121
2102
|
}
|
|
2103
|
+
|
|
2122
2104
|
.back-color-green {
|
|
2123
2105
|
background-color: green;
|
|
2124
2106
|
}
|
|
2107
|
+
|
|
2125
2108
|
.back-color-blue {
|
|
2126
2109
|
background-color: blue;
|
|
2127
2110
|
}
|
|
2111
|
+
|
|
2128
2112
|
.back-color-yellow {
|
|
2129
2113
|
background-color: yellow;
|
|
2130
2114
|
}
|
|
2115
|
+
|
|
2131
2116
|
.back-color-gray {
|
|
2132
2117
|
background-color: gray;
|
|
2133
2118
|
}
|
|
2119
|
+
|
|
2134
2120
|
.back-color-black {
|
|
2135
2121
|
background-color: black;
|
|
2136
2122
|
}
|
|
2123
|
+
|
|
2137
2124
|
.back-color-white {
|
|
2138
2125
|
background-color: white;
|
|
2139
2126
|
}
|
|
2140
2127
|
|
|
2141
2128
|
.cursor-pointer {
|
|
2142
2129
|
cursor: pointer;
|
|
2143
|
-
}
|
|
2130
|
+
}
|
package/templates/lupine-template-responsive-starter/web/src/components/side-menu-content.tsx
CHANGED
|
@@ -23,6 +23,10 @@ export type SideMenuContentProps = {
|
|
|
23
23
|
|
|
24
24
|
const sideMenuContentCss: CssProps = {
|
|
25
25
|
margin: '0 -12px',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
flexDirection: 'column',
|
|
28
|
+
flex: 1,
|
|
29
|
+
height: '100%',
|
|
26
30
|
'.msm-header': {
|
|
27
31
|
display: 'flex',
|
|
28
32
|
alignItems: 'center',
|
|
@@ -101,7 +105,7 @@ export const SideMenuContent = ({
|
|
|
101
105
|
bindGlobalStyle(globalCssId, sideMenuContentCss);
|
|
102
106
|
|
|
103
107
|
const ref: RefProps = {
|
|
104
|
-
globalCssId,
|
|
108
|
+
referToCssId: globalCssId,
|
|
105
109
|
};
|
|
106
110
|
|
|
107
111
|
const handleAction = (item: string) => {
|
|
@@ -122,7 +126,7 @@ export const SideMenuContent = ({
|
|
|
122
126
|
};
|
|
123
127
|
|
|
124
128
|
return (
|
|
125
|
-
<div ref={ref}
|
|
129
|
+
<div ref={ref} class={globalCssId}>
|
|
126
130
|
<div class='msm-header'>
|
|
127
131
|
{/* <div class='msm-header-icon'></div> */}
|
|
128
132
|
<div class='msm-header-title'>{title}</div>
|
|
@@ -162,7 +166,7 @@ export const SideMenuContent = ({
|
|
|
162
166
|
class='msm-item'
|
|
163
167
|
onClick={() => {
|
|
164
168
|
settingSliderHook.load!(
|
|
165
|
-
<MineSettingsPage sliderFrameHook={settingSliderHook} onDataChanged={() => {}} />
|
|
169
|
+
<MineSettingsPage sliderFrameHook={settingSliderHook} onDataChanged={() => { }} />
|
|
166
170
|
);
|
|
167
171
|
MobileSideMenuHelper.hide();
|
|
168
172
|
}}
|
|
@@ -496,12 +496,14 @@ fragment {
|
|
|
496
496
|
scrollbar-width: none;
|
|
497
497
|
-webkit-overflow-scrolling: touch;
|
|
498
498
|
}
|
|
499
|
+
|
|
499
500
|
.no-scrollbar-container::-webkit-scrollbar {
|
|
500
501
|
display: none;
|
|
501
502
|
}
|
|
503
|
+
|
|
502
504
|
/* -------------------------- */
|
|
503
505
|
|
|
504
|
-
.row-box
|
|
506
|
+
.row-box>* {
|
|
505
507
|
display: inline-block;
|
|
506
508
|
align-self: center;
|
|
507
509
|
}
|
|
@@ -524,21 +526,27 @@ fragment {
|
|
|
524
526
|
.grid-gap {
|
|
525
527
|
gap: 0.5rem;
|
|
526
528
|
}
|
|
529
|
+
|
|
527
530
|
.grid-gap-0 {
|
|
528
531
|
gap: 0;
|
|
529
532
|
}
|
|
533
|
+
|
|
530
534
|
.grid-gap-ss {
|
|
531
535
|
gap: 0.15rem;
|
|
532
536
|
}
|
|
537
|
+
|
|
533
538
|
.grid-gap-s {
|
|
534
539
|
gap: 0.35rem;
|
|
535
540
|
}
|
|
541
|
+
|
|
536
542
|
.grid-gap-m {
|
|
537
543
|
gap: 0.75rem;
|
|
538
544
|
}
|
|
545
|
+
|
|
539
546
|
.grid-gap-l {
|
|
540
547
|
gap: 1rem;
|
|
541
548
|
}
|
|
549
|
+
|
|
542
550
|
.grid-gap-ll {
|
|
543
551
|
gap: 1.5rem;
|
|
544
552
|
}
|
|
@@ -569,6 +577,7 @@ fragment {
|
|
|
569
577
|
[class^='col-'] {
|
|
570
578
|
margin: calc(var(--grid-gutter) / 2) calc(var(--grid-gutter) / 2);
|
|
571
579
|
}
|
|
580
|
+
|
|
572
581
|
/* for a column with fixed width */
|
|
573
582
|
.col-0 {
|
|
574
583
|
width: auto;
|
|
@@ -774,6 +783,7 @@ fragment {
|
|
|
774
783
|
max-width: calc((100% / (12 / 12)) - var(--grid-gutter));
|
|
775
784
|
}
|
|
776
785
|
}
|
|
786
|
+
|
|
777
787
|
/* -------------------------- */
|
|
778
788
|
|
|
779
789
|
body {
|
|
@@ -785,66 +795,6 @@ body {
|
|
|
785
795
|
font-weight: var(--font-weight-base);
|
|
786
796
|
}
|
|
787
797
|
|
|
788
|
-
.safe-area-pt {
|
|
789
|
-
padding-top: constant(safe-area-inset-top);
|
|
790
|
-
padding-top: env(safe-area-inset-top);
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.safe-area-pb {
|
|
794
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
795
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
.safe-area-pl {
|
|
799
|
-
padding-left: constant(safe-area-inset-left);
|
|
800
|
-
padding-left: env(safe-area-inset-left);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.safe-area-pr {
|
|
804
|
-
padding-right: constant(safe-area-inset-right);
|
|
805
|
-
padding-right: env(safe-area-inset-right);
|
|
806
|
-
}
|
|
807
|
-
.safe-area-pall {
|
|
808
|
-
padding-top: constant(safe-area-inset-top);
|
|
809
|
-
padding-top: env(safe-area-inset-top);
|
|
810
|
-
padding-bottom: constant(safe-area-inset-bottom);
|
|
811
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
812
|
-
padding-left: constant(safe-area-inset-left);
|
|
813
|
-
padding-left: env(safe-area-inset-left);
|
|
814
|
-
padding-right: constant(safe-area-inset-right);
|
|
815
|
-
padding-right: env(safe-area-inset-right);
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
.safe-area-mt {
|
|
819
|
-
margin-top: constant(safe-area-inset-top);
|
|
820
|
-
margin-top: env(safe-area-inset-top);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.safe-area-mb {
|
|
824
|
-
margin-bottom: constant(safe-area-inset-bottom);
|
|
825
|
-
margin-bottom: env(safe-area-inset-bottom);
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
.safe-area-ml {
|
|
829
|
-
margin-left: constant(safe-area-inset-left);
|
|
830
|
-
margin-left: env(safe-area-inset-left);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.safe-area-mr {
|
|
834
|
-
margin-right: constant(safe-area-inset-right);
|
|
835
|
-
margin-right: env(safe-area-inset-right);
|
|
836
|
-
}
|
|
837
|
-
.safe-area-mall {
|
|
838
|
-
margin-top: constant(safe-area-inset-top);
|
|
839
|
-
margin-top: env(safe-area-inset-top);
|
|
840
|
-
margin-bottom: constant(safe-area-inset-bottom);
|
|
841
|
-
margin-bottom: env(safe-area-inset-bottom);
|
|
842
|
-
margin-left: constant(safe-area-inset-left);
|
|
843
|
-
margin-left: env(safe-area-inset-left);
|
|
844
|
-
margin-right: constant(safe-area-inset-right);
|
|
845
|
-
margin-right: env(safe-area-inset-right);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
798
|
input.base-css[type='text'],
|
|
849
799
|
input.base-css[type='password'],
|
|
850
800
|
input.base-css[type='email'],
|
|
@@ -989,9 +939,11 @@ input.input-base[type='checkbox'] {
|
|
|
989
939
|
border: 3px solid var(--primary-border-color);
|
|
990
940
|
border-radius: 6px;
|
|
991
941
|
}
|
|
942
|
+
|
|
992
943
|
input.input-base[type='checkbox']:checked {
|
|
993
944
|
background-color: var(--primary-accent-color);
|
|
994
945
|
}
|
|
946
|
+
|
|
995
947
|
input.input-base[type='checkbox']:checked::after {
|
|
996
948
|
content: '';
|
|
997
949
|
position: absolute;
|
|
@@ -1003,9 +955,11 @@ input.input-base[type='checkbox']:checked::after {
|
|
|
1003
955
|
width: 40%;
|
|
1004
956
|
height: 70%;
|
|
1005
957
|
}
|
|
958
|
+
|
|
1006
959
|
input.input-base[type='radio'] {
|
|
1007
960
|
border-radius: 50%;
|
|
1008
961
|
}
|
|
962
|
+
|
|
1009
963
|
input.input-base[type='radio']:checked::after {
|
|
1010
964
|
content: '';
|
|
1011
965
|
position: absolute;
|
|
@@ -1101,9 +1055,11 @@ input.input-base.input-ss[type='checkbox'] {
|
|
|
1101
1055
|
height: 1rem;
|
|
1102
1056
|
border-width: 1px;
|
|
1103
1057
|
}
|
|
1058
|
+
|
|
1104
1059
|
input.input-base.input-ss[type='checkbox']:checked::after {
|
|
1105
1060
|
border-width: 0 2px 2px 0;
|
|
1106
1061
|
}
|
|
1062
|
+
|
|
1107
1063
|
input.input-base.input-ss[type='radio']:checked::after {
|
|
1108
1064
|
left: 12%;
|
|
1109
1065
|
}
|
|
@@ -1114,6 +1070,7 @@ input.input-base.input-s[type='checkbox'] {
|
|
|
1114
1070
|
height: 1.4rem;
|
|
1115
1071
|
border-width: 2px;
|
|
1116
1072
|
}
|
|
1073
|
+
|
|
1117
1074
|
input.input-base.input-s[type='checkbox']:checked::after {
|
|
1118
1075
|
border-width: 0 3px 3px 0;
|
|
1119
1076
|
}
|
|
@@ -1195,10 +1152,10 @@ button.input-base[disabled='true'],
|
|
|
1195
1152
|
transition: 0.3s;
|
|
1196
1153
|
}
|
|
1197
1154
|
|
|
1198
|
-
.input-field input:focus
|
|
1199
|
-
.input-field input:not(:placeholder-shown)
|
|
1200
|
-
.input-field textarea:focus
|
|
1201
|
-
.input-field textarea:not(:placeholder-shown)
|
|
1155
|
+
.input-field input:focus+span,
|
|
1156
|
+
.input-field input:not(:placeholder-shown)+span,
|
|
1157
|
+
.input-field textarea:focus+span,
|
|
1158
|
+
.input-field textarea:not(:placeholder-shown)+span {
|
|
1202
1159
|
top: -6px;
|
|
1203
1160
|
left: 10px;
|
|
1204
1161
|
font-size: small;
|
|
@@ -1206,10 +1163,10 @@ button.input-base[disabled='true'],
|
|
|
1206
1163
|
padding: 0 5px 0 5px;
|
|
1207
1164
|
}
|
|
1208
1165
|
|
|
1209
|
-
.input-field input:focus:invalid
|
|
1210
|
-
.input-field input:not(:placeholder-shown):invalid
|
|
1211
|
-
.input-field textarea:focus:invalid
|
|
1212
|
-
.input-field textarea:not(:placeholder-shown):invalid
|
|
1166
|
+
.input-field input:focus:invalid+span,
|
|
1167
|
+
.input-field input:not(:placeholder-shown):invalid+span,
|
|
1168
|
+
.input-field textarea:focus:invalid+span,
|
|
1169
|
+
.input-field textarea:not(:placeholder-shown):invalid+span {
|
|
1213
1170
|
color: red;
|
|
1214
1171
|
}
|
|
1215
1172
|
|
|
@@ -1848,6 +1805,7 @@ h6,
|
|
|
1848
1805
|
.w-25p {
|
|
1849
1806
|
width: 25%;
|
|
1850
1807
|
}
|
|
1808
|
+
|
|
1851
1809
|
.w-75p {
|
|
1852
1810
|
width: 75%;
|
|
1853
1811
|
}
|
|
@@ -1855,6 +1813,7 @@ h6,
|
|
|
1855
1813
|
.w-33p {
|
|
1856
1814
|
width: 33.333%;
|
|
1857
1815
|
}
|
|
1816
|
+
|
|
1858
1817
|
.w-77p {
|
|
1859
1818
|
width: 77.777%;
|
|
1860
1819
|
}
|
|
@@ -1866,6 +1825,7 @@ h6,
|
|
|
1866
1825
|
.w-100p {
|
|
1867
1826
|
width: 100%;
|
|
1868
1827
|
}
|
|
1828
|
+
|
|
1869
1829
|
.w-auto {
|
|
1870
1830
|
width: auto;
|
|
1871
1831
|
}
|
|
@@ -1873,6 +1833,7 @@ h6,
|
|
|
1873
1833
|
.h-100p {
|
|
1874
1834
|
height: 100%;
|
|
1875
1835
|
}
|
|
1836
|
+
|
|
1876
1837
|
.h-auto {
|
|
1877
1838
|
height: auto;
|
|
1878
1839
|
}
|
|
@@ -1892,6 +1853,7 @@ h6,
|
|
|
1892
1853
|
.align-items-center {
|
|
1893
1854
|
align-items: center;
|
|
1894
1855
|
}
|
|
1856
|
+
|
|
1895
1857
|
.justify-content-center {
|
|
1896
1858
|
justify-content: center;
|
|
1897
1859
|
}
|
|
@@ -1907,6 +1869,7 @@ h6,
|
|
|
1907
1869
|
.flex-row {
|
|
1908
1870
|
flex-direction: row;
|
|
1909
1871
|
}
|
|
1872
|
+
|
|
1910
1873
|
.p-relative {
|
|
1911
1874
|
position: relative;
|
|
1912
1875
|
}
|
|
@@ -2021,10 +1984,12 @@ h6,
|
|
|
2021
1984
|
.setting-section-group {
|
|
2022
1985
|
padding-bottom: 16px;
|
|
2023
1986
|
}
|
|
1987
|
+
|
|
2024
1988
|
.setting-section-title {
|
|
2025
1989
|
font-size: 15px;
|
|
2026
1990
|
padding: 8px 0;
|
|
2027
1991
|
}
|
|
1992
|
+
|
|
2028
1993
|
.setting-section-block {
|
|
2029
1994
|
display: flex;
|
|
2030
1995
|
flex-direction: column;
|
|
@@ -2033,6 +1998,7 @@ h6,
|
|
|
2033
1998
|
border-radius: 8px;
|
|
2034
1999
|
padding: 4px 8px;
|
|
2035
2000
|
}
|
|
2001
|
+
|
|
2036
2002
|
.setting-section-item {
|
|
2037
2003
|
display: flex;
|
|
2038
2004
|
flex-direction: row;
|
|
@@ -2042,16 +2008,20 @@ h6,
|
|
|
2042
2008
|
border-bottom: 1px dotted var(--primary-border-color);
|
|
2043
2009
|
cursor: pointer;
|
|
2044
2010
|
}
|
|
2011
|
+
|
|
2045
2012
|
.setting-section-item:last-child {
|
|
2046
2013
|
border-bottom: none;
|
|
2047
2014
|
}
|
|
2015
|
+
|
|
2048
2016
|
.setting-section-item-text {
|
|
2049
2017
|
font-size: 15px;
|
|
2050
2018
|
}
|
|
2019
|
+
|
|
2051
2020
|
.setting-section-item-icon {
|
|
2052
2021
|
font-size: 20px;
|
|
2053
2022
|
margin-right: 8px;
|
|
2054
2023
|
}
|
|
2024
|
+
|
|
2055
2025
|
.setting-section-item-icon.text {
|
|
2056
2026
|
font-size: 11px;
|
|
2057
2027
|
}
|
|
@@ -2069,15 +2039,18 @@ h6,
|
|
|
2069
2039
|
justify-content: center;
|
|
2070
2040
|
cursor: pointer;
|
|
2071
2041
|
}
|
|
2042
|
+
|
|
2072
2043
|
.setting-section-row-btn i.ifc-icon {
|
|
2073
2044
|
margin: 0 8px;
|
|
2074
2045
|
color: var(--ss-row-btn-color);
|
|
2075
2046
|
font-size: 26px;
|
|
2076
2047
|
}
|
|
2048
|
+
|
|
2077
2049
|
.setting-section-row-btn.warning,
|
|
2078
2050
|
.setting-section-row-btn.warning i.ifc-icon {
|
|
2079
2051
|
color: var(--ss-row-btn-warn-color);
|
|
2080
2052
|
}
|
|
2053
|
+
|
|
2081
2054
|
/* tips inside button */
|
|
2082
2055
|
.setting-section-row-btn-tips {
|
|
2083
2056
|
color: var(--ss-row-btn-warn-color);
|
|
@@ -2091,24 +2064,31 @@ h6,
|
|
|
2091
2064
|
.color-inherit {
|
|
2092
2065
|
color: inherit;
|
|
2093
2066
|
}
|
|
2067
|
+
|
|
2094
2068
|
.color-red {
|
|
2095
2069
|
color: red;
|
|
2096
2070
|
}
|
|
2071
|
+
|
|
2097
2072
|
.color-green {
|
|
2098
2073
|
color: green;
|
|
2099
2074
|
}
|
|
2075
|
+
|
|
2100
2076
|
.color-blue {
|
|
2101
2077
|
color: blue;
|
|
2102
2078
|
}
|
|
2079
|
+
|
|
2103
2080
|
.color-yellow {
|
|
2104
2081
|
color: yellow;
|
|
2105
2082
|
}
|
|
2083
|
+
|
|
2106
2084
|
.color-gray {
|
|
2107
2085
|
color: gray;
|
|
2108
2086
|
}
|
|
2087
|
+
|
|
2109
2088
|
.color-black {
|
|
2110
2089
|
color: black;
|
|
2111
2090
|
}
|
|
2091
|
+
|
|
2112
2092
|
.color-white {
|
|
2113
2093
|
color: white;
|
|
2114
2094
|
}
|
|
@@ -2116,28 +2096,35 @@ h6,
|
|
|
2116
2096
|
.back-color-inherit {
|
|
2117
2097
|
background-color: inherit;
|
|
2118
2098
|
}
|
|
2099
|
+
|
|
2119
2100
|
.back-color-red {
|
|
2120
2101
|
background-color: red;
|
|
2121
2102
|
}
|
|
2103
|
+
|
|
2122
2104
|
.back-color-green {
|
|
2123
2105
|
background-color: green;
|
|
2124
2106
|
}
|
|
2107
|
+
|
|
2125
2108
|
.back-color-blue {
|
|
2126
2109
|
background-color: blue;
|
|
2127
2110
|
}
|
|
2111
|
+
|
|
2128
2112
|
.back-color-yellow {
|
|
2129
2113
|
background-color: yellow;
|
|
2130
2114
|
}
|
|
2115
|
+
|
|
2131
2116
|
.back-color-gray {
|
|
2132
2117
|
background-color: gray;
|
|
2133
2118
|
}
|
|
2119
|
+
|
|
2134
2120
|
.back-color-black {
|
|
2135
2121
|
background-color: black;
|
|
2136
2122
|
}
|
|
2123
|
+
|
|
2137
2124
|
.back-color-white {
|
|
2138
2125
|
background-color: white;
|
|
2139
2126
|
}
|
|
2140
2127
|
|
|
2141
2128
|
.cursor-pointer {
|
|
2142
2129
|
cursor: pointer;
|
|
2143
|
-
}
|
|
2130
|
+
}
|