-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make tasks in task properties widget collapsible (#2502)
* make tasks in task properties widget collapsible * simplify dropdown logic and improve styles
- Loading branch information
1 parent
e49b67d
commit 7d64b6f
Showing
4 changed files
with
93 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/components/Widgets/TaskPropertiesWidget/TaskPropertiesWidget.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
details { | ||
overflow: hidden; | ||
transition: max-height 0.3s ease; | ||
max-height: 100px; | ||
} | ||
|
||
details[open] { | ||
max-height: 500px; | ||
} | ||
|
||
details > summary { | ||
position: relative; | ||
padding-left: 1.5em; | ||
cursor: pointer; | ||
transition: transform 0.2s ease; | ||
} | ||
|
||
details > summary::before { | ||
content: '▶'; | ||
position: absolute; | ||
right: 10px; | ||
color: #FFFD86; | ||
font-size: 1.2em; | ||
transition: transform 0.2s ease; | ||
} | ||
|
||
details[open] > summary::before { | ||
transform: rotate(90deg); | ||
} |