mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
Add new task tags design [SCI-11566]
This commit is contained in:
parent
122d14d328
commit
783aebcf7e
6 changed files with 15 additions and 6 deletions
|
@ -104,7 +104,7 @@
|
|||
|
||||
dropdownSelector.init($(myModuleTagsSelector), {
|
||||
closeOnSelect: true,
|
||||
tagClass: 'my-module-white-tags',
|
||||
tagClass: 'my-module-white-tags sci-tag',
|
||||
tagStyle: (data) => {
|
||||
return `background: ${data.params.color}`;
|
||||
},
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
|
||||
dropdownSelector.init($(myModuleTagsSelector), {
|
||||
closeOnSelect: true,
|
||||
tagClass: 'my-module-white-tags',
|
||||
tagClass: 'my-module-white-tags sci-tag',
|
||||
labelHTML: true,
|
||||
tagStyle: (data) => {
|
||||
return `background: ${data.params.color}`;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
@import "tailwind/flyouts";
|
||||
@import "tailwind/radio";
|
||||
@import "tailwind/loader.css";
|
||||
@import "tailwind/tags.css";
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
|
|
|
@ -358,10 +358,14 @@ label {
|
|||
}
|
||||
|
||||
.module-tag {
|
||||
margin-left: 5px;
|
||||
border-radius: 4px;
|
||||
padding: 2px 4px;
|
||||
align-items: center;
|
||||
border-radius: 10px;
|
||||
color: $color-white;
|
||||
display: flex;
|
||||
height: 20px;
|
||||
margin-left: 5px;
|
||||
padding: 2px 8px;
|
||||
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,7 +81,6 @@
|
|||
border-radius: $border-radius-tag;
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
line-height: 13px;
|
||||
margin: 2px 3px;
|
||||
max-height: 24px;
|
||||
max-width: calc(100% - 11px);
|
||||
|
|
5
app/assets/stylesheets/tailwind/tags.css
Normal file
5
app/assets/stylesheets/tailwind/tags.css
Normal file
|
@ -0,0 +1,5 @@
|
|||
@layer components {
|
||||
.sci-tag {
|
||||
@apply text-xs !rounded-full !pl-3 !pr-1 !py-0.5 flex items-center gap-1;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue