Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d7b690621e | |||
60951330d1 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@design.estate/dees-catalog",
|
"name": "@design.estate/dees-catalog",
|
||||||
"version": "1.10.2",
|
"version": "1.10.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
|
"description": "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript.",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
|
@ -35,12 +35,24 @@ export class DeesInputTypelist extends DeesInputBase<DeesInputTypelist> {
|
|||||||
}
|
}
|
||||||
.mainbox {
|
.mainbox {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background: #222;
|
background: ${cssManager.bdTheme('#fafafa', '#222222')};
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-top: ${cssManager.bdTheme('1px solid #CCC', '1px solid #444')};
|
border-top: ${cssManager.bdTheme('1px solid #CCC', '1px solid #ffffff10')};
|
||||||
border-bottom: ${cssManager.bdTheme('1px solid #CCC', '1px solid #333')};
|
border-bottom: ${cssManager.bdTheme('1px solid #CCC', '1px solid #222')};
|
||||||
border-right: ${cssManager.bdTheme('1px solid #CCC', 'none')};
|
border-right: ${cssManager.bdTheme('1px solid #CCC', '1px solid #ffffff10')};
|
||||||
border-left: ${cssManager.bdTheme('1px solid #CCC', 'none')};
|
border-left: ${cssManager.bdTheme('1px solid #CCC', '1px solid #ffffff10')};
|
||||||
|
box-shadow: ${cssManager.bdTheme('0px 1px 4px rgba(0,0,0,0.3)', 'none')};
|
||||||
|
transition: all 0.2s;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox:hover {
|
||||||
|
filter: ${cssManager.bdTheme('brightness(0.98)', 'brightness(1.05)')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainbox:focus-within {
|
||||||
|
outline: 2px solid ${cssManager.bdTheme('#0069f2', '#0084ff')};
|
||||||
|
outline-offset: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags {
|
.tags {
|
||||||
@ -50,14 +62,15 @@ export class DeesInputTypelist extends DeesInputBase<DeesInputTypelist> {
|
|||||||
|
|
||||||
.notags {
|
.notags {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
opacity: 0.5;
|
color: ${cssManager.bdTheme('#999', '#666')};
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
display: block;
|
display: block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background: #181818;
|
background: ${cssManager.bdTheme('#f5f5f5', '#181818')};
|
||||||
width: 100%;
|
width: 100%;
|
||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
@ -67,30 +80,68 @@ export class DeesInputTypelist extends DeesInputBase<DeesInputTypelist> {
|
|||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
height: 0px;
|
height: 0px;
|
||||||
transition: height 0.2s;
|
transition: height 0.2s;
|
||||||
|
border-top: 1px solid ${cssManager.bdTheme('#e0e0e0', '#333')};
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus {
|
input:focus {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
background: ${cssManager.bdTheme('#fafafa', '#1a1a1a')};
|
||||||
|
}
|
||||||
|
|
||||||
|
input::placeholder {
|
||||||
|
color: ${cssManager.bdTheme('#999', '#666')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag {
|
.tag {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background: ${cssManager.bdTheme('#e0e0e0', '#444')};
|
background: ${cssManager.bdTheme('#e8f5e9', '#2d3a2d')};
|
||||||
color: ${cssManager.bdTheme('#333', '#fff')};
|
color: ${cssManager.bdTheme('#2e7d32', '#81c784')};
|
||||||
padding: 4px 8px;
|
padding: 4px 10px;
|
||||||
border-radius: 3px;
|
border-radius: 4px;
|
||||||
margin: 2px;
|
margin: 3px;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all 0.2s;
|
||||||
|
border: 1px solid ${cssManager.bdTheme('#c8e6c9', '#1b5e20')};
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag:hover {
|
||||||
|
background: ${cssManager.bdTheme('#c8e6c9', '#3d4f3d')};
|
||||||
|
transform: translateY(-1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag .remove {
|
.tag .remove {
|
||||||
margin-left: 6px;
|
margin-left: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0.6;
|
opacity: 0.7;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1;
|
||||||
|
transition: opacity 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag .remove:hover {
|
.tag .remove:hover {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
color: ${cssManager.bdTheme('#c62828', '#ef5350')};
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Disabled state */
|
||||||
|
:host([disabled]) .mainbox {
|
||||||
|
opacity: 0.6;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host([disabled]) .tags {
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host([disabled]) .tag {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
:host([disabled]) input {
|
||||||
|
cursor: not-allowed;
|
||||||
|
background: ${cssManager.bdTheme('#f0f0f0', '#1a1a1a')};
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user