Trim details to the summary, expand shows all (#1197)
* trim details using ellipsis * fix css * move styles to global stylesheet * outline to none
This commit is contained in:
parent
196fc40253
commit
f9501aa068
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@ package-lock.json
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.idea/
|
||||
|
||||
@ -102,3 +102,14 @@ article {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
details[open] > summary {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
details > summary {
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user