@codesense/relayout 0.0.25 → 0.1.3

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2025 Lucian Pacurar
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Lucian Pacurar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
- <p align="center">
2
- <p align="center">
3
- Relayout
4
- </p>
5
- <p align="center">
6
- Responsive layout system
7
- </p>
8
- </p>
9
-
10
- ---
11
-
12
- ## Documentation
13
-
14
- coming soon
1
+ <p align="center">
2
+ <p align="center">
3
+ Relayout
4
+ </p>
5
+ <p align="center">
6
+ Responsive layout system
7
+ </p>
8
+ </p>
9
+
10
+ ---
11
+
12
+ ## Documentation
13
+
14
+ coming soon
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Relayout v0.0.24 | Responsive layout system
2
+ * Relayout v0.1.3 | Responsive layout system
3
3
  * Copyright (c) 2025 Lucian Pacurar
4
4
  * MIT License: https://github.com/codesensedev/relayout/blob/main/LICENSE
5
5
  */:root{--rl-space-0: 0;--rl-space-xs: 0.125rem;--rl-space-s: 0.25rem;--rl-space-m: 0.5rem;--rl-space-l: 1rem;--rl-space-xl: 1.5rem;--rl-space-2xl: 2.25rem;--rl-width-xs: 20rem;--rl-width-s: 30rem;--rl-width-m: 40rem;--rl-width-l: 48rem;--rl-width-xl: 64rem;--rl-width-2xl: 80rem;--rl-grid-xs: 3.125rem;--rl-grid-s: 6.25rem;--rl-grid-m: 9.375rem;--rl-grid-l: 12.5rem;--rl-grid-xl: 15.625rem;--rl-grid-2xl: 20rem;--rl-font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--rl-font-serif: Georgia, 'Times New Roman', Times, serif;--rl-font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;--rl-font-sans-alt: var(--rl-font-sans);--rl-font-serif-alt: var(--rl-font-serif);--rl-font-mono-alt: var(--rl-font-mono);--rl-text-xs: 0.625rem;--rl-text-s: 0.75rem;--rl-text-m: 0.875rem;--rl-text-l: 1rem;--rl-text-xl: 1.5rem;--rl-text-2xl: 2.25rem;--rl-gap-default: var(--rl-space-0);--rl-padding-default: var(--rl-space-0);--rl-radius-default: var(--rl-space-0);--rl-border-default: solid 1px hsl(0, 0%, 50%);--rl-color-primary: hsl(215, 80%, 45%);--rl-color-secondary: hsl(260, 50%, 50%);--rl-color-accent: hsl(30, 90%, 50%);--rl-color-success: hsl(142, 60%, 35%);--rl-color-warning: hsl(38, 95%, 45%);--rl-color-danger: hsl(0, 70%, 50%);--rl-color-info: hsl(200, 75%, 45%);--rl-color-surface: hsl(0, 0%, 100%);--rl-color-surface-alt: hsl(0, 0%, 96%);--rl-color-text: hsl(0, 0%, 10%);--rl-color-text-muted: hsl(0, 0%, 45%);--rl-shadow-xs: 0 1px 2px hsl(0 0% 0% / 0.08);--rl-shadow-s: 0 1px 4px hsl(0 0% 0% / 0.12);--rl-shadow-m: 0 2px 8px hsl(0 0% 0% / 0.16);--rl-shadow-l: 0 4px 16px hsl(0 0% 0% / 0.20);--rl-shadow-xl: 0 8px 32px hsl(0 0% 0% / 0.24);--rl-shadow-inner: inset 0 1px 3px hsl(0 0% 0% / 0.12);--rl-gradient-primary: linear-gradient(135deg, var(--rl-color-primary), var(--rl-color-secondary));--rl-gradient-accent: linear-gradient(135deg, var(--rl-color-accent), var(--rl-color-primary));--rl-gradient-subtle: linear-gradient(180deg, var(--rl-color-surface), var(--rl-color-surface-alt));--rl-gradient-warm: linear-gradient(135deg, hsl(30, 90%, 55%), hsl(0, 75%, 55%));--rl-gradient-cool: linear-gradient(135deg, hsl(200, 80%, 50%), hsl(260, 60%, 55%))}@media(prefers-color-scheme: dark){:root{--rl-color-primary: hsl(215, 85%, 65%);--rl-color-secondary: hsl(260, 60%, 70%);--rl-color-accent: hsl(30, 90%, 60%);--rl-color-success: hsl(142, 60%, 50%);--rl-color-warning: hsl(38, 95%, 60%);--rl-color-danger: hsl(0, 75%, 65%);--rl-color-info: hsl(200, 80%, 60%);--rl-color-surface: hsl(0, 0%, 12%);--rl-color-surface-alt: hsl(0, 0%, 18%);--rl-color-text: hsl(0, 0%, 95%);--rl-color-text-muted: hsl(0, 0%, 65%)}}[class*=rl-]{box-sizing:border-box;outline:none}.rl-stack{display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:var(--rl-gap-default)}.rl-stack.rl-align-start{text-align:start}.rl-stack.rl-align-center{text-align:center}.rl-stack.rl-align-end{text-align:end}.rl-flank{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:var(--rl-gap-default)}.rl-flank>:last-child{flex-basis:0;flex-grow:999}.rl-flank-end>:first-child{flex-basis:0;flex-grow:999}.rl-flank-end>:last-child{flex-basis:auto;flex-grow:0}.rl-split{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--rl-gap-default)}.rl-split-equal>*{flex:1 1 0;min-width:0}.rl-cluster{display:flex;flex-direction:row;align-items:center;justify-content:start;flex-wrap:wrap;gap:var(--rl-gap-default)}.rl-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(var(--rl-grid-s), 1fr));gap:var(--rl-gap-default)}.rl-grid-fit-xs{grid-template-columns:repeat(auto-fit, minmax(var(--rl-grid-xs), 1fr))}.rl-grid-fit-s{grid-template-columns:repeat(auto-fit, minmax(var(--rl-grid-s), 1fr))}.rl-grid-fit-m{grid-template-columns:repeat(auto-fit, minmax(var(--rl-grid-m), 1fr))}.rl-grid-fit-l{grid-template-columns:repeat(auto-fit, minmax(var(--rl-grid-l), 1fr))}.rl-grid-fit-xl{grid-template-columns:repeat(auto-fit, minmax(var(--rl-grid-xl), 1fr))}.rl-grid-fit-2xl{grid-template-columns:repeat(auto-fit, minmax(var(--rl-grid-2xl), 1fr))}.rl-grid-fill-xs{grid-template-columns:repeat(auto-fill, minmax(var(--rl-grid-xs), 1fr))}.rl-grid-fill-s{grid-template-columns:repeat(auto-fill, minmax(var(--rl-grid-s), 1fr))}.rl-grid-fill-m{grid-template-columns:repeat(auto-fill, minmax(var(--rl-grid-m), 1fr))}.rl-grid-fill-l{grid-template-columns:repeat(auto-fill, minmax(var(--rl-grid-l), 1fr))}.rl-grid-fill-xl{grid-template-columns:repeat(auto-fill, minmax(var(--rl-grid-xl), 1fr))}.rl-grid-fill-2xl{grid-template-columns:repeat(auto-fill, minmax(var(--rl-grid-2xl), 1fr))}.rl-frame{display:flex;align-items:center;justify-content:space-around;width:100%;height:100%;overflow:visible}.rl-frame>*{max-width:100%;max-height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.rl-frame>img{display:block;width:auto;height:auto;object-fit:contain}.rl-divider{align-self:stretch;border:none;margin:0;width:100%;height:0;border-top:var(--rl-border-default)}.rl-divider.vertical{width:0;height:100%;border-left:var(--rl-border-default)}.rl-gap-0{gap:var(--rl-space-0)}.rl-gap-xs{gap:var(--rl-space-xs)}.rl-gap-s{gap:var(--rl-space-s)}.rl-gap-m{gap:var(--rl-space-m)}.rl-gap-l{gap:var(--rl-space-l)}.rl-gap-xl{gap:var(--rl-space-xl)}.rl-gap-2xl{gap:var(--rl-space-2xl)}.rl-gradient-primary{background-image:var(--rl-gradient-primary)}.rl-gradient-accent{background-image:var(--rl-gradient-accent)}.rl-gradient-subtle{background-image:var(--rl-gradient-subtle)}.rl-gradient-warm{background-image:var(--rl-gradient-warm)}.rl-gradient-cool{background-image:var(--rl-gradient-cool)}.rl-padding-0{padding:var(--rl-space-0)}.rl-padding-xs{padding:var(--rl-space-xs)}.rl-padding-s{padding:var(--rl-space-s)}.rl-padding-m{padding:var(--rl-space-m)}.rl-padding-l{padding:var(--rl-space-l)}.rl-padding-xl{padding:var(--rl-space-xl)}.rl-padding-2xl{padding:var(--rl-space-2xl)}.rl-align-start{align-items:start}.rl-align-center{align-items:center}.rl-align-end{align-items:end}.rl-align-stretch{align-items:stretch}.rl-justify-start{justify-content:start}.rl-justify-center{justify-content:center}.rl-justify-end{justify-content:end}.rl-width-xs{max-width:var(--rl-width-xs);margin:0 auto;width:100%}.rl-width-s{max-width:var(--rl-width-s);margin:0 auto;width:100%}.rl-width-m{max-width:var(--rl-width-m);margin:0 auto;width:100%}.rl-width-l{max-width:var(--rl-width-l);margin:0 auto;width:100%}.rl-width-xl{max-width:var(--rl-width-xl);margin:0 auto;width:100%}.rl-width-2xl{max-width:var(--rl-width-2xl);margin:0 auto;width:100%}.rl-height-full{height:100%;overflow-y:auto}.rl-height-fill{flex:1 1 0;min-height:0;height:auto;overflow-y:auto}.rl-border{border:var(--rl-border-default);border-radius:var(--rl-radius-default)}.rl-bg-primary{background-color:var(--rl-color-primary)}.rl-bg-secondary{background-color:var(--rl-color-secondary)}.rl-bg-accent{background-color:var(--rl-color-accent)}.rl-bg-success{background-color:var(--rl-color-success)}.rl-bg-warning{background-color:var(--rl-color-warning)}.rl-bg-danger{background-color:var(--rl-color-danger)}.rl-bg-info{background-color:var(--rl-color-info)}.rl-bg-surface{background-color:var(--rl-color-surface)}.rl-bg-surface-alt{background-color:var(--rl-color-surface-alt)}.rl-color-primary{color:var(--rl-color-primary)}.rl-color-secondary{color:var(--rl-color-secondary)}.rl-color-accent{color:var(--rl-color-accent)}.rl-color-success{color:var(--rl-color-success)}.rl-color-warning{color:var(--rl-color-warning)}.rl-color-danger{color:var(--rl-color-danger)}.rl-color-info{color:var(--rl-color-info)}.rl-color-text{color:var(--rl-color-text)}.rl-color-text-muted{color:var(--rl-color-text-muted)}.rl-radius-0{border-radius:var(--rl-space-0)}.rl-radius-xs{border-radius:var(--rl-space-xs)}.rl-radius-s{border-radius:var(--rl-space-s)}.rl-radius-m{border-radius:var(--rl-space-m)}.rl-radius-l{border-radius:var(--rl-space-l)}.rl-radius-xl{border-radius:var(--rl-space-xl)}.rl-radius-2xl{border-radius:var(--rl-space-2xl)}.rl-shadow-xs{box-shadow:var(--rl-shadow-xs)}.rl-shadow-s{box-shadow:var(--rl-shadow-s)}.rl-shadow-m{box-shadow:var(--rl-shadow-m)}.rl-shadow-l{box-shadow:var(--rl-shadow-l)}.rl-shadow-xl{box-shadow:var(--rl-shadow-xl)}.rl-shadow-none{box-shadow:none}.rl-shadow-inner{box-shadow:var(--rl-shadow-inner)}.rl-nowrap{flex-wrap:nowrap}.rl-nowrap-scroll{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}.rl-nowrap-scroll>*{flex:0 0 auto}.rl-wrap-reverse{flex-wrap:wrap-reverse}.rl-font-sans{font-family:var(--rl-font-sans)}.rl-font-serif{font-family:var(--rl-font-serif)}.rl-font-mono{font-family:var(--rl-font-mono)}.rl-font-sans-alt{font-family:var(--rl-font-sans-alt)}.rl-font-serif-alt{font-family:var(--rl-font-serif-alt)}.rl-font-mono-alt{font-family:var(--rl-font-mono-alt)}.rl-font-bold{font-weight:700}.rl-font-medium{font-weight:500}.rl-font-regular{font-weight:400}.rl-text-xs{font-size:var(--rl-text-xs)}.rl-text-s{font-size:var(--rl-text-s)}.rl-text-m{font-size:var(--rl-text-m)}.rl-text-l{font-size:var(--rl-text-l)}.rl-text-xl{font-size:var(--rl-text-xl)}.rl-text-2xl{font-size:var(--rl-text-2xl)}.rl-text-italic{font-style:italic}.rl-text-underline{text-decoration:underline}.rl-text-strike{text-decoration:line-through}.rl-text-muted{opacity:.5}.rl-text-left{text-align:left}.rl-text-center{text-align:center}.rl-text-right{text-align:right}.rl-text-uppercase{text-transform:uppercase}.rl-text-lowercase{text-transform:lowercase}.rl-text-capitalize{text-transform:capitalize}.rl-textline-tight{line-height:1.25}.rl-textline-normal{line-height:1.5}.rl-textline-loose{line-height:2}.rl-text-wrap{white-space:normal}.rl-text-nowrap{white-space:nowrap}.rl-text-truncate{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "@codesense/relayout",
3
- "version": "0.0.25",
4
- "type": "module",
5
- "description": "Responsive layout system",
6
- "license": "MIT",
7
- "main": "dist/js/relayout.js",
8
- "module": "dist/js/relayout.js",
9
- "style": "dist/css/relayout.css",
10
- "types": "dist/js/types/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "types": "./dist/js/types/index.d.ts",
14
- "import": "./dist/js/relayout.js",
15
- "default": "./dist/js/relayout.js"
16
- },
17
- "./css": "./dist/css/relayout.css",
18
- "./relayout.css": "./dist/css/relayout.css"
19
- },
20
- "files": [
21
- "dist"
22
- ],
23
- "scripts": {
24
- "prepublishOnly": "npm run build",
25
- "build": "npm run build:css && npm run build:js",
26
- "build:css": "sass src/scss/relayout.scss dist/css/relayout.css --style=compressed --no-source-map",
27
- "build:js": "rollup -c"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "https://github.com/codesensedev/relayout"
32
- },
33
- "devDependencies": {
34
- "@rollup/plugin-node-resolve": "^16.0.3",
35
- "@rollup/plugin-terser": "^0.4.4",
36
- "@rollup/plugin-typescript": "^12.3.0",
37
- "lit": "^3.3.2",
38
- "rollup": "^4.57.1",
39
- "sass": "^1.93.2",
40
- "tslib": "^2.8.1",
41
- "typescript": "^5.9.3"
42
- }
43
- }
1
+ {
2
+ "name": "@codesense/relayout",
3
+ "version": "0.1.3",
4
+ "type": "module",
5
+ "description": "Responsive layout system",
6
+ "license": "MIT",
7
+ "main": "dist/js/relayout.js",
8
+ "module": "dist/js/relayout.js",
9
+ "style": "dist/css/relayout.css",
10
+ "types": "dist/js/types/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/js/types/index.d.ts",
14
+ "import": "./dist/js/relayout.js",
15
+ "default": "./dist/js/relayout.js"
16
+ },
17
+ "./css": "./dist/css/relayout.css",
18
+ "./relayout.css": "./dist/css/relayout.css"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "scripts": {
24
+ "prepublishOnly": "npm run build",
25
+ "build": "npm run build:css && npm run build:js",
26
+ "build:css": "sass src/scss/relayout.scss dist/css/relayout.css --style=compressed --no-source-map",
27
+ "build:js": "rollup -c"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/codesensedev/relayout"
32
+ },
33
+ "devDependencies": {
34
+ "@rollup/plugin-node-resolve": "^16.0.3",
35
+ "@rollup/plugin-terser": "^0.4.4",
36
+ "@rollup/plugin-typescript": "^12.3.0",
37
+ "lit": "^3.3.2",
38
+ "rollup": "^4.57.1",
39
+ "sass": "^1.93.2",
40
+ "tslib": "^2.8.1",
41
+ "typescript": "^5.9.3"
42
+ }
43
+ }
@@ -1,432 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Graal CSS vs Web Components Comparison</title>
7
- <link rel="stylesheet" href="./css/relayout.css">
8
- <script type="module" src="./js/relayout.js"></script>
9
- <style>
10
- body {
11
- font-family: system-ui, sans-serif;
12
- padding: 2rem;
13
- background: #f5f5f5;
14
- }
15
- .comparison {
16
- display: grid;
17
- grid-template-columns: 1fr 1fr;
18
- gap: 2rem;
19
- margin-bottom: 3rem;
20
- }
21
- .section {
22
- background: white;
23
- padding: 1.5rem;
24
- border-radius: 8px;
25
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
26
- }
27
- h1 {
28
- text-align: center;
29
- margin-bottom: 2rem;
30
- }
31
- h2 {
32
- margin-top: 0;
33
- color: #333;
34
- border-bottom: 2px solid #e0e0e0;
35
- padding-bottom: 0.5rem;
36
- }
37
- h3 {
38
- color: #666;
39
- font-size: 1rem;
40
- margin-top: 1.5rem;
41
- }
42
- .demo-item {
43
- background: #f9f9f9;
44
- padding: 1rem;
45
- border: 1px solid #e0e0e0;
46
- margin: 0.5rem 0;
47
- }
48
- code {
49
- background: #f4f4f4;
50
- padding: 0.2rem 0.4rem;
51
- border-radius: 3px;
52
- font-size: 0.9em;
53
- }
54
- pre {
55
- background: #f4f4f4;
56
- padding: 1rem;
57
- border-radius: 4px;
58
- overflow-x: auto;
59
- font-size: 0.85em;
60
- }
61
- </style>
62
- </head>
63
- <body>
64
- <h1>🎨 Graal CSS Classes vs Web Components</h1>
65
-
66
- <!-- STACK COMPARISON -->
67
- <div class="comparison">
68
- <div class="section">
69
- <h2>CSS Classes (SCSS)</h2>
70
- <h3>Stack Layout</h3>
71
- <div class="rl-stack rl-gap-l">
72
- <div class="demo-item">Item 1</div>
73
- <div class="demo-item">Item 2</div>
74
- <div class="demo-item">Item 3</div>
75
- </div>
76
- <pre>&lt;div class="rl-stack rl-gap-l"&gt;
77
- &lt;div&gt;Item 1&lt;/div&gt;
78
- &lt;div&gt;Item 2&lt;/div&gt;
79
- &lt;div&gt;Item 3&lt;/div&gt;
80
- &lt;/div&gt;</pre>
81
- </div>
82
-
83
- <div class="section">
84
- <h2>Web Components (Lit)</h2>
85
- <h3>Stack Layout</h3>
86
- <rl-stack rl-gap-l>
87
- <div class="demo-item">Item 1</div>
88
- <div class="demo-item">Item 2</div>
89
- <div class="demo-item">Item 3</div>
90
- </rl-stack>
91
- <pre>&lt;rl-stack rl-gap-l&gt;
92
- &lt;div&gt;Item 1&lt;/div&gt;
93
- &lt;div&gt;Item 2&lt;/div&gt;
94
- &lt;div&gt;Item 3&lt;/div&gt;
95
- &lt;/rl-stack&gt;</pre>
96
- </div>
97
- </div>
98
-
99
- <!-- CLUSTER COMPARISON -->
100
- <div class="comparison">
101
- <div class="section">
102
- <h3>Cluster Layout</h3>
103
- <div class="rl-cluster rl-gap-m">
104
- <div class="demo-item">Tag 1</div>
105
- <div class="demo-item">Tag 2</div>
106
- <div class="demo-item">Tag 3</div>
107
- <div class="demo-item">Tag 4</div>
108
- <div class="demo-item">Tag 5</div>
109
- </div>
110
- <pre>&lt;div class="rl-cluster rl-gap-m"&gt;
111
- &lt;div&gt;Tag 1&lt;/div&gt;
112
- &lt;div&gt;Tag 2&lt;/div&gt;
113
- ...
114
- &lt;/div&gt;</pre>
115
- </div>
116
-
117
- <div class="section">
118
- <h3>Cluster Layout</h3>
119
- <rl-cluster rl-gap-m>
120
- <div class="demo-item">Tag 1</div>
121
- <div class="demo-item">Tag 2</div>
122
- <div class="demo-item">Tag 3</div>
123
- <div class="demo-item">Tag 4</div>
124
- <div class="demo-item">Tag 5</div>
125
- </rl-cluster>
126
- <pre>&lt;rl-cluster rl-gap-m&gt;
127
- &lt;div&gt;Tag 1&lt;/div&gt;
128
- &lt;div&gt;Tag 2&lt;/div&gt;
129
- ...
130
- &lt;/rl-cluster&gt;</pre>
131
- </div>
132
- </div>
133
-
134
- <!-- SPLIT COMPARISON -->
135
- <div class="comparison">
136
- <div class="section">
137
- <h3>Split Layout</h3>
138
- <div class="rl-split rl-gap-l">
139
- <div class="demo-item">Left</div>
140
- <div class="demo-item">Right</div>
141
- </div>
142
- <pre>&lt;div class="rl-split rl-gap-l"&gt;
143
- &lt;div&gt;Left&lt;/div&gt;
144
- &lt;div&gt;Right&lt;/div&gt;
145
- &lt;/div&gt;</pre>
146
- </div>
147
-
148
- <div class="section">
149
- <h3>Split Layout</h3>
150
- <rl-split rl-gap-l>
151
- <div class="demo-item">Left</div>
152
- <div class="demo-item">Right</div>
153
- </rl-split>
154
- <pre>&lt;rl-split rl-gap-l&gt;
155
- &lt;div&gt;Left&lt;/div&gt;
156
- &lt;div&gt;Right&lt;/div&gt;
157
- &lt;/rl-split&gt;</pre>
158
- </div>
159
- </div>
160
-
161
- <!-- GRID COMPARISON -->
162
- <div class="comparison">
163
- <div class="section">
164
- <h3>Grid Layout</h3>
165
- <div class="rl-grid rl-gap-m">
166
- <div class="demo-item">1</div>
167
- <div class="demo-item">2</div>
168
- <div class="demo-item">3</div>
169
- <div class="demo-item">4</div>
170
- </div>
171
- <pre>&lt;div class="rl-grid rl-gap-m"&gt;
172
- &lt;div&gt;1&lt;/div&gt;
173
- &lt;div&gt;2&lt;/div&gt;
174
- ...
175
- &lt;/div&gt;</pre>
176
- </div>
177
-
178
- <div class="section">
179
- <h3>Grid Layout</h3>
180
- <rl-grid rl-gap-m>
181
- <div class="demo-item">1</div>
182
- <div class="demo-item">2</div>
183
- <div class="demo-item">3</div>
184
- <div class="demo-item">4</div>
185
- </rl-grid>
186
- <pre>&lt;rl-grid rl-gap-m&gt;
187
- &lt;div&gt;1&lt;/div&gt;
188
- &lt;div&gt;2&lt;/div&gt;
189
- ...
190
- &lt;/rl-grid&gt;</pre>
191
- </div>
192
- </div>
193
-
194
- <!-- FLANK COMPARISON -->
195
- <div class="comparison">
196
- <div class="section">
197
- <h3>Flank Layout</h3>
198
- <div class="rl-flank rl-gap-m">
199
- <div class="demo-item">Logo</div>
200
- <div class="demo-item">Flexible content that grows</div>
201
- </div>
202
- <pre>&lt;div class="rl-flank rl-gap-m"&gt;
203
- &lt;div&gt;Logo&lt;/div&gt;
204
- &lt;div&gt;Flexible content&lt;/div&gt;
205
- &lt;/div&gt;</pre>
206
- </div>
207
-
208
- <div class="section">
209
- <h3>Flank Layout</h3>
210
- <rl-flank rl-gap-m>
211
- <div class="demo-item">Logo</div>
212
- <div class="demo-item">Flexible content that grows</div>
213
- </rl-flank>
214
- <pre>&lt;rl-flank rl-gap-m&gt;
215
- &lt;div&gt;Logo&lt;/div&gt;
216
- &lt;div&gt;Flexible content&lt;/div&gt;
217
- &lt;/rl-flank&gt;</pre>
218
- </div>
219
- </div>
220
-
221
- <!-- FRAME COMPARISON -->
222
- <div class="comparison">
223
- <div class="section">
224
- <h3>Frame Layout</h3>
225
- <div class="rl-frame" style="height: 200px; border: 2px dashed #ccc;">
226
- <div class="demo-item">Centered content</div>
227
- </div>
228
- <pre>&lt;div class="rl-frame"&gt;
229
- &lt;div&gt;Centered content&lt;/div&gt;
230
- &lt;/div&gt;</pre>
231
- </div>
232
-
233
- <div class="section">
234
- <h3>Frame Layout</h3>
235
- <rl-frame style="height: 200px; border: 2px dashed #ccc;">
236
- <div class="demo-item">Centered content</div>
237
- </rl-frame>
238
- <pre>&lt;rl-frame&gt;
239
- &lt;div&gt;Centered content&lt;/div&gt;
240
- &lt;/rl-frame&gt;</pre>
241
- </div>
242
- </div>
243
-
244
- <!-- DIVIDER COMPARISON -->
245
- <div class="comparison">
246
- <div class="section">
247
- <h3>Stack with Divider</h3>
248
- <div class="rl-stack rl-gap-l">
249
- <div class="demo-item">Section 1</div>
250
- <hr class="rl-divider">
251
- <div class="demo-item">Section 2</div>
252
- </div>
253
- <pre>&lt;div class="rl-stack rl-gap-l"&gt;
254
- &lt;div&gt;Section 1&lt;/div&gt;
255
- &lt;hr class="rl-divider"&gt;
256
- &lt;div&gt;Section 2&lt;/div&gt;
257
- &lt;/div&gt;</pre>
258
- </div>
259
-
260
- <div class="section">
261
- <h3>Stack with Divider</h3>
262
- <rl-stack rl-gap-l>
263
- <div class="demo-item">Section 1</div>
264
- <rl-divider></rl-divider>
265
- <div class="demo-item">Section 2</div>
266
- </rl-stack>
267
- <pre>&lt;rl-stack rl-gap-l&gt;
268
- &lt;div&gt;Section 1&lt;/div&gt;
269
- &lt;rl-divider&gt;&lt;/rl-divider&gt;
270
- &lt;div&gt;Section 2&lt;/div&gt;
271
- &lt;/rl-stack&gt;</pre>
272
- </div>
273
- </div>
274
-
275
- <!-- BORDER & RADIUS MODIFIERS -->
276
- <div class="comparison">
277
- <div class="section">
278
- <h3>Border + Radius Modifiers</h3>
279
- <div class="rl-stack rl-gap-m rl-border rl-padding-l rl-radius-m">
280
- <div class="demo-item">With border</div>
281
- <div class="demo-item">With padding</div>
282
- <div class="demo-item">With radius</div>
283
- </div>
284
- <pre>&lt;div class="rl-stack rl-gap-m
285
- rl-border rl-padding-l rl-radius-m"&gt;
286
- &lt;div&gt;With border&lt;/div&gt;
287
- &lt;div&gt;With padding&lt;/div&gt;
288
- &lt;div&gt;With radius&lt;/div&gt;
289
- &lt;/div&gt;</pre>
290
- </div>
291
-
292
- <div class="section">
293
- <h3>Border + Radius Modifiers</h3>
294
- <rl-stack rl-gap-m rl-border rl-padding-l rl-radius-m>
295
- <div class="demo-item">With border</div>
296
- <div class="demo-item">With padding</div>
297
- <div class="demo-item">With radius</div>
298
- </rl-stack>
299
- <pre>&lt;rl-stack rl-gap-m
300
- rl-border rl-padding-l rl-radius-m&gt;
301
- &lt;div&gt;With border&lt;/div&gt;
302
- &lt;div&gt;With padding&lt;/div&gt;
303
- &lt;div&gt;With radius&lt;/div&gt;
304
- &lt;/rl-stack&gt;</pre>
305
- </div>
306
- </div>
307
-
308
- <!-- ALIGN MODIFIERS -->
309
- <div class="comparison">
310
- <div class="section">
311
- <h3>Align Modifiers</h3>
312
- <div class="rl-stack rl-gap-m rl-align-center">
313
- <div class="demo-item" style="width: 60%;">Center aligned</div>
314
- <div class="demo-item" style="width: 40%;">Centered</div>
315
- </div>
316
- <pre>&lt;div class="rl-stack rl-gap-m
317
- rl-align-center"&gt;
318
- &lt;div&gt;Center aligned&lt;/div&gt;
319
- &lt;div&gt;Centered&lt;/div&gt;
320
- &lt;/div&gt;</pre>
321
- </div>
322
-
323
- <div class="section">
324
- <h3>Align Modifiers</h3>
325
- <rl-stack rl-gap-m rl-align-center>
326
- <div class="demo-item" style="width: 60%;">Center aligned</div>
327
- <div class="demo-item" style="width: 40%;">Centered</div>
328
- </rl-stack>
329
- <pre>&lt;rl-stack rl-gap-m rl-align-center&gt;
330
- &lt;div&gt;Center aligned&lt;/div&gt;
331
- &lt;div&gt;Centered&lt;/div&gt;
332
- &lt;/rl-stack&gt;</pre>
333
- </div>
334
- </div>
335
-
336
- <!-- JUSTIFY MODIFIERS -->
337
- <div class="comparison">
338
- <div class="section">
339
- <h3>Justify Modifiers</h3>
340
- <div class="rl-cluster rl-gap-m rl-justify-center" style="border: 2px dashed #ccc; padding: 1rem;">
341
- <div class="demo-item">Item 1</div>
342
- <div class="demo-item">Item 2</div>
343
- <div class="demo-item">Item 3</div>
344
- </div>
345
- <pre>&lt;div class="rl-cluster rl-gap-m
346
- rl-justify-center"&gt;
347
- &lt;div&gt;Item 1&lt;/div&gt;
348
- &lt;div&gt;Item 2&lt;/div&gt;
349
- &lt;div&gt;Item 3&lt;/div&gt;
350
- &lt;/div&gt;</pre>
351
- </div>
352
-
353
- <div class="section">
354
- <h3>Justify Modifiers</h3>
355
- <rl-cluster rl-gap-m rl-justify-center style="border: 2px dashed #ccc; padding: 1rem;">
356
- <div class="demo-item">Item 1</div>
357
- <div class="demo-item">Item 2</div>
358
- <div class="demo-item">Item 3</div>
359
- </rl-cluster>
360
- <pre>&lt;rl-cluster rl-gap-m rl-justify-center&gt;
361
- &lt;div&gt;Item 1&lt;/div&gt;
362
- &lt;div&gt;Item 2&lt;/div&gt;
363
- &lt;div&gt;Item 3&lt;/div&gt;
364
- &lt;/rl-cluster&gt;</pre>
365
- </div>
366
- </div>
367
-
368
- <!-- COMPARISON TABLE -->
369
- <div style="background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
370
- <h2>Key Differences</h2>
371
- <table style="width: 100%; border-collapse: collapse;">
372
- <thead>
373
- <tr style="background: #f4f4f4;">
374
- <th style="padding: 0.75rem; text-align: left; border: 1px solid #ddd;">Aspect</th>
375
- <th style="padding: 0.75rem; text-align: left; border: 1px solid #ddd;">CSS Classes</th>
376
- <th style="padding: 0.75rem; text-align: left; border: 1px solid #ddd;">Web Components</th>
377
- </tr>
378
- </thead>
379
- <tbody>
380
- <tr>
381
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>Browser Support</strong></td>
382
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Universal (all browsers)</td>
383
- <td style="padding: 0.75rem; border: 1px solid #ddd;">⚠️ Modern browsers only</td>
384
- </tr>
385
- <tr style="background: #f9f9f9;">
386
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>Bundle Size</strong></td>
387
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Minimal (CSS only)</td>
388
- <td style="padding: 0.75rem; border: 1px solid #ddd;">⚠️ Includes JS + Lit</td>
389
- </tr>
390
- <tr>
391
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>Style Encapsulation</strong></td>
392
- <td style="padding: 0.75rem; border: 1px solid #ddd;">❌ Global scope</td>
393
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Shadow DOM (isolated)</td>
394
- </tr>
395
- <tr style="background: #f9f9f9;">
396
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>Semantic HTML</strong></td>
397
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Standard elements</td>
398
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Custom elements</td>
399
- </tr>
400
- <tr>
401
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>Performance</strong></td>
402
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Fast (CSS only)</td>
403
- <td style="padding: 0.75rem; border: 1px solid #ddd;">⚠️ Component overhead</td>
404
- </tr>
405
- <tr style="background: #f9f9f9;">
406
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>SSR/SSG</strong></td>
407
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Works perfectly</td>
408
- <td style="padding: 0.75rem; border: 1px solid #ddd;">⚠️ Needs DSD or hydration</td>
409
- </tr>
410
- <tr>
411
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>Framework Agnostic</strong></td>
412
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Works everywhere</td>
413
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Works everywhere</td>
414
- </tr>
415
- <tr style="background: #f9f9f9;">
416
- <td style="padding: 0.75rem; border: 1px solid #ddd;"><strong>DX (Syntax)</strong></td>
417
- <td style="padding: 0.75rem; border: 1px solid #ddd;">⚠️ Class names</td>
418
- <td style="padding: 0.75rem; border: 1px solid #ddd;">✅ Clean HTML tags</td>
419
- </tr>
420
- </tbody>
421
- </table>
422
- </div>
423
-
424
- <script>
425
- // Open DevTools and inspect elements to see Shadow DOM in web components
426
- console.log('%c🎨 Graal CSS Test Page', 'font-size: 20px; font-weight: bold;');
427
- console.log('💡 Inspect elements to see the difference:');
428
- console.log(' - CSS classes: styles applied globally');
429
- console.log(' - Web components: styles encapsulated in Shadow DOM');
430
- </script>
431
- </body>
432
- </html>