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

Adaptions to LSG html in order to get it running again after all the styles have been moved to the Frontend (WiP)

Henriette Darge223054639f77
diff --git a/app/assets/stylesheets/styleguide.html.lsg b/app/assets/stylesheets/styleguide.html.lsg
index 21d33cfb589..8acbdecb612 100644
--- a/app/assets/stylesheets/styleguide.html.lsg
+++ b/app/assets/stylesheets/styleguide.html.lsg
@@ -1,6 +1,6 @@
@require sassc
-@sass ../../../frontend/src/global_styles/openproject.sass
+@sass styleguide.sass
@title "Living Style Guide for OpenProject"
@style base-font: Lato
@@ -10,18 +10,7 @@
@default preprocessor: sass
@css
- .livingstyleguide--header {
- @include grid-content;
- }
-
- .livingstyleguide--footer {
- @include grid-content;
- }
-
- .livingstyleguide--intro {
- @include grid-content;
- }
-
+
.styleguide-banner {
height: 280px;
padding: 200px 0 0;
@@ -75,7 +64,7 @@
}
@header
- <header class="livingstyleguide--header">
+ <header class="livingstyleguide--header grid-content">
<div class="styleguide-banner">
<h1 class="styleguide-banner--text">Living Style Guide</h1>
</div>
@@ -92,17 +81,15 @@
</ul>
</nav>
- <section class="livingstyleguide--intro">
+ <section class="livingstyleguide--intro grid-content">
<p>&nbsp;</p>
</section>
-@javascript-before /assets/styleguide.js
-
@search-box
@footer
- <footer class="livingstyleguide--footer">
- Copyright © 2019 OpenProject - All rights reserved.
+ <footer class="livingstyleguide--footer grid-content">
+ Copyright © 2020 OpenProject - All rights reserved.
</footer>
-@import ../../frontend/src/global_styles/**/_*.lsg
+@import ../../../frontend/src/global_styles/**/_*.lsg
diff --git a/app/assets/stylesheets/styleguide.sass b/app/assets/stylesheets/styleguide.sass
new file mode 100644
index 00000000000..3b17ad97097
--- /dev/null
+++ b/app/assets/stylesheets/styleguide.sass
@@ -0,0 +1,10 @@
+// Variables
+@import "../../../frontend/src/global_styles/openproject/_variables.scss"
+// Foundation variables
+@import "../../../frontend/src/global_styles/openproject/_settings.scss"
+
+// Dependencies
+@import "../../../frontend/src/global_styles/vendor/foundation-apps/scss/foundation.scss"
+
+// Core styles
+@import "../../../frontend/src/global_styles/openproject.sass"
\ No newline at end of file