diff options
author | Jarek Ostrowski <jarek.j.ostrowski@gmail.com> | 2019-09-05 21:50:09 +0300 |
---|---|---|
committer | Jarek Ostrowski <jarek.j.ostrowski@gmail.com> | 2019-09-09 21:57:38 +0300 |
commit | 3b01589c3e227611c8df937c1c0fa908ffeb45e9 (patch) | |
tree | f568aadb626c4b388aef0f1d7706a1c67081e322 | |
parent | c15be006c046c6861ef5793fd85d3c6bee06e4ff (diff) |
Add padding to details element in markdown
Add MR to changelog entry
Adjust to give margin bottom to details instead of last-child
Remove trailing whitespace
-rw-r--r-- | app/assets/stylesheets/framework/typography.scss | 12 | ||||
-rw-r--r-- | changelogs/unreleased/34338-details-element.yml | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/app/assets/stylesheets/framework/typography.scss b/app/assets/stylesheets/framework/typography.scss index 33caac4d725..ba123ff9a67 100644 --- a/app/assets/stylesheets/framework/typography.scss +++ b/app/assets/stylesheets/framework/typography.scss @@ -67,6 +67,18 @@ max-height: calc(100vh - 100px); } + details { + margin-bottom: $gl-padding; + + summary { + margin-bottom: $gl-padding; + } + + *:first-child:not(summary) { + margin-top: $gl-padding; + } + } + // Single code lines should wrap code { font-family: $monospace-font; diff --git a/changelogs/unreleased/34338-details-element.yml b/changelogs/unreleased/34338-details-element.yml new file mode 100644 index 00000000000..95e50e1d4a9 --- /dev/null +++ b/changelogs/unreleased/34338-details-element.yml @@ -0,0 +1,5 @@ +--- +title: Add some padding to details markdown element +merge_request: 32716 +author: +type: fixed |