| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,35 @@ | |||
| 1 | + @property --as-gutter-background-color { | ||
| 2 | + syntax: '<color>'; | ||
| 3 | + inherits: true; | ||
| 4 | + initial-value: #eeeeee; | ||
| 5 | + } | ||
| 6 | + | ||
| 7 | + @property --as-gutter-icon-horizontal { | ||
| 8 | + syntax: '<url>'; | ||
| 9 | + inherits: true; | ||
| 10 | + initial-value: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=='); | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + @property --as-gutter-icon-vertical { | ||
| 14 | + syntax: '<url>'; | ||
| 15 | + inherits: true; | ||
| 16 | + initial-value: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC'); | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + @property --as-gutter-icon-disabled { | ||
| 20 | + syntax: '<url>'; | ||
| 21 | + inherits: true; | ||
| 22 | + initial-value: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg=='); | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + @property --as-transition-duration { | ||
| 26 | + syntax: '<time>'; | ||
| 27 | + inherits: true; | ||
| 28 | + initial-value: 0.3s; | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | + @property --as-gutter-disabled-cursor { | ||
| 32 | + syntax: '*'; | ||
| 33 | + inherits: true; | ||
| 34 | + initial-value: default; | ||
| 35 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,5 +3,6 @@ | |||
| 3 | 3 | "dest": "../../dist/angular-split", | |
| 4 | 4 | "lib": { | |
| 5 | 5 | "entryFile": "src/public_api.ts" | |
| 6 | - } | ||
| 6 | + }, | ||
| 7 | + "assets": ["_theme.css"] | ||
| 7 | 8 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,6 +26,11 @@ | |||
| 26 | 26 | "flexbox" | |
| 27 | 27 | ], | |
| 28 | 28 | "license": "Apache-2.0", | |
| 29 | + "exports": { | ||
| 30 | + "./theme": { | ||
| 31 | + "css": "./theme.css" | ||
| 32 | + } | ||
| 33 | + }, | ||
| 29 | 34 | "peerDependencies": { | |
| 30 | 35 | "@angular/common": ">=16.0.0", | |
| 31 | 36 | "@angular/core": ">=16.0.0", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,20 +1,4 @@ | |||
| 1 | - as-split { | ||
| 2 | - --_as-gutter-background-color: var(--as-gutter-background-color, #eeeeee); | ||
| 3 | - --_as-gutter-icon-horizontal: var( | ||
| 4 | - --as-gutter-icon-horizontal, | ||
| 5 | - url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==') | ||
| 6 | - ); | ||
| 7 | - --_as-gutter-icon-vertical: var( | ||
| 8 | - --as-gutter-icon-vertical, | ||
| 9 | - url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC') | ||
| 10 | - ); | ||
| 11 | - --_as-gutter-icon-disabled: var( | ||
| 12 | - --as-gutter-icon-disabled, | ||
| 13 | - url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==') | ||
| 14 | - ); | ||
| 15 | - --_as-transition-duration: var(--as-transition-duration, 0.3s); | ||
| 16 | - --_as-gutter-disabled-cursor: var(--as-gutter-disabled-cursor, default); | ||
| 17 | - } | ||
| 1 | + @import '../../../_theme.css'; | ||
| 18 | 2 | ||
| 19 | 3 | as-split { | |
| 20 | 4 | display: flex; | |
@@ -29,15 +13,15 @@ as-split { | |||
| 29 | 13 | &.as-transition.as-init:not(.as-dragging) { | |
| 30 | 14 | & > .as-split-gutter, | |
| 31 | 15 | & > .as-split-area { | |
| 32 | - transition: flex-basis var(--_as-transition-duration); | ||
| 16 | + transition: flex-basis var(--as-transition-duration); | ||
| 33 | 17 | } | |
| 34 | 18 | } | |
| 35 | 19 | ||
| 36 | 20 | & > .as-split-gutter { | |
| 37 | 21 | border: none; | |
| 38 | 22 | flex-grow: 0; | |
| 39 | 23 | flex-shrink: 0; | |
| 40 | - background-color: var(--_as-gutter-background-color); | ||
| 24 | + background-color: var(--as-gutter-background-color); | ||
| 41 | 25 | display: flex; | |
| 42 | 26 | align-items: center; | |
| 43 | 27 | justify-content: center; | |
@@ -87,7 +71,7 @@ as-split { | |||
| 87 | 71 | height: 100%; | |
| 88 | 72 | ||
| 89 | 73 | & > .as-split-gutter-icon { | |
| 90 | - background-image: var(--_as-gutter-icon-horizontal); | ||
| 74 | + background-image: var(--as-gutter-icon-horizontal); | ||
| 91 | 75 | } | |
| 92 | 76 | } | |
| 93 | 77 | ||
@@ -105,7 +89,7 @@ as-split { | |||
| 105 | 89 | width: 100%; | |
| 106 | 90 | ||
| 107 | 91 | & > .as-split-gutter-icon { | |
| 108 | - background-image: var(--_as-gutter-icon-vertical); | ||
| 92 | + background-image: var(--as-gutter-icon-vertical); | ||
| 109 | 93 | } | |
| 110 | 94 | } | |
| 111 | 95 | ||
@@ -120,10 +104,10 @@ as-split { | |||
| 120 | 104 | ||
| 121 | 105 | &.as-disabled { | |
| 122 | 106 | & > .as-split-gutter { | |
| 123 | - cursor: var(--_as-gutter-disabled-cursor); | ||
| 107 | + cursor: var(--as-gutter-disabled-cursor); | ||
| 124 | 108 | ||
| 125 | 109 | & > .as-split-gutter-icon { | |
| 126 | - background-image: var(--_as-gutter-icon-disabled); | ||
| 110 | + background-image: var(--as-gutter-icon-disabled); | ||
| 127 | 111 | } | |
| 128 | 112 | } | |
| 129 | 113 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,6 +62,9 @@ import { Component, VERSION } from '@angular/core' | |||
| 62 | 62 | <h5>Define splits in your template:</h5> | |
| 63 | 63 | <pre [innerText]="code3"></pre> | |
| 64 | 64 | <br /> | |
| 65 | + <h5>Add css theme in styles.css/scss for variables type hints (optional):</h5> | ||
| 66 | + <pre [innerText]="code4"></pre> | ||
| 67 | + <br /> | ||
| 65 | 68 | <h5>Support:</h5> | |
| 66 | 69 | If you have an issue using the library, feel free to join our chat! We are part of the | |
| 67 | 70 | <a href="https://discord.gg/Qm9MPCg">Angular Community</a> Discord and you can ask questions in the | |
@@ -115,4 +118,5 @@ export class AppModule {}` | |||
| 115 | 118 | </as-split-area> | |
| 116 | 119 | </as-split> | |
| 117 | 120 | </div>` | |
| 121 | + code4 = `@use/@import 'angular-split/theme';` | ||
| 118 | 122 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | + @use 'angular-split/theme'; | ||
| 2 | + | ||
| 1 | 3 | html, | |
| 2 | 4 | body { | |
| 3 | 5 | margin: 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments