@progressive-development/pd-content 0.0.6 → 0.0.7
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 +1 -1
- package/pd-box-view.js +3 -0
- package/src/PdBoxView.js +49 -0
package/package.json
CHANGED
package/pd-box-view.js
ADDED
package/src/PdBoxView.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export class PdBoxView extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: repeat(
|
|
10
|
+
var(--squi-box-columns, 4),
|
|
11
|
+
minmax(var(--squi-box-min-width, 100px), 1fr)
|
|
12
|
+
);
|
|
13
|
+
/*grid-auto-rows: minmax(var(--squi-box-min-height, 100px), 1fr); Für mobile 1 cloum auskommentiert, ging auch für große Ansicht, also eher hinderlich?*/
|
|
14
|
+
gap: var(--squi-box-gap, 25px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@media (min-width: 580px) {
|
|
18
|
+
.button-icon squi-icon {
|
|
19
|
+
margin: 0 0.5rem;
|
|
20
|
+
}
|
|
21
|
+
.button-icon.small squi-icon {
|
|
22
|
+
padding-right: 0.5rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`,
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static get properties() {
|
|
30
|
+
return {
|
|
31
|
+
primary: { type: Boolean },
|
|
32
|
+
gradient: { type: Boolean },
|
|
33
|
+
disabled: { type: Boolean },
|
|
34
|
+
text: { type: String },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
constructor() {
|
|
39
|
+
super();
|
|
40
|
+
this.primary = false;
|
|
41
|
+
this.gradient = true;
|
|
42
|
+
this.disabled = false;
|
|
43
|
+
this.text = 'Ok';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
render() {
|
|
47
|
+
return html` <slot></slot> `;
|
|
48
|
+
}
|
|
49
|
+
}
|