Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add spacings to headings and style code boxes

Inga Mai17da74dab5fa
diff --git a/app/views/layouts/styleguide/styleguide.layout.html.erb b/app/views/layouts/styleguide/styleguide.layout.html.erb
index 739fd3fb526..3edb8c2af10 100644
--- a/app/views/layouts/styleguide/styleguide.layout.html.erb
+++ b/app/views/layouts/styleguide/styleguide.layout.html.erb
@@ -21,9 +21,20 @@
background-color: white;
}
+ .lsg-headline {
+ margin-top: 3rem
+ }
+
+ .lsg-code-block {
+ margin: 1rem 0 2rem 0;
+ border: 1px solid #e2e2e2;
+ }
+
.lsg-code {
- display: block;
- margin: 10px 0;
+ display: inline-block;
+ min-width: 100%;
+ padding: 1rem;
+ border: none;
}
.styleguide-banner {