summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarek Ostrowski <jarek.j.ostrowski@gmail.com>2019-09-05 14:50:09 -0400
committerJarek Ostrowski <jarek.j.ostrowski@gmail.com>2019-09-09 14:57:38 -0400
commit3b01589c3e227611c8df937c1c0fa908ffeb45e9 (patch)
treef568aadb626c4b388aef0f1d7706a1c67081e322
parentc15be006c046c6861ef5793fd85d3c6bee06e4ff (diff)
downloadgitlab-ce-34338-details-element.tar.gz
Add padding to details element in markdown34338-details-element
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.scss12
-rw-r--r--changelogs/unreleased/34338-details-element.yml5
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