[#8093] stub out responsive theme that inherits everything but adds Foundation
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index ee2cfe7..9955e21 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -1398,6 +1398,12 @@
return False
+class ResponsiveTheme(ThemeProvider):
+ def require(self):
+ g.register_theme_css('../allura/css/site_style.css', compress=False) # temporarily include original theme too
+ g.register_theme_css('css/styles.css', compress=False)
+
+
class LocalProjectRegistrationProvider(ProjectRegistrationProvider):
pass
diff --git a/Allura/allura/nf/responsive/scss/styles.scss b/Allura/allura/nf/responsive/scss/styles.scss
index 3d30930..8e203ed 100644
--- a/Allura/allura/nf/responsive/scss/styles.scss
+++ b/Allura/allura/nf/responsive/scss/styles.scss
@@ -23,6 +23,14 @@
@import 'foundation';
// @import 'motion-ui';
+
+
+/*
+NOTE: this includes pretty much everything initially
+ it will probably have some CSS rule conflicts
+ we will soon need to limit this to just the files we want */
+
+
@include foundation-global-styles;
// @include foundation-grid;
@include foundation-flex-grid;
diff --git a/Allura/development.ini b/Allura/development.ini
index 9d00055..7d32dbc 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -128,6 +128,8 @@
; Project registration system. Only local is available, unless you write a custom one for custom integration.
registration.method = local
theme = allura
+; The responsive theme is a work in progress. See also "disable_entry_points.allura.theme.override = responsive" in this file
+;theme = responsive
; These are the sizes of project icons that may be requested. They will be saved to the database.
; If your theme is going to support other sizes, update this list.
diff --git a/Allura/setup.py b/Allura/setup.py
index 9d92f3e..4de3c6b 100644
--- a/Allura/setup.py
+++ b/Allura/setup.py
@@ -102,6 +102,10 @@
[allura.theme]
allura = allura.lib.plugin:ThemeProvider
+ responsive = allura.lib.plugin:ResponsiveTheme
+
+ [allura.theme.override]
+ responsive = allura.templates_responsive.responsive_overrides:ResponsiveOverrides
[allura.spam]
akismet = allura.lib.spam.akismetfilter:AkismetSpamFilter
@@ -155,9 +159,6 @@
set-neighborhood-features = allura.command:SetNeighborhoodFeaturesCommand
reclone-repo = allura.command.reclone_repo:RecloneRepoCommand
- [allura.theme.override]
- responsive = allura.templates_responsive.responsive_overrides:ResponsiveOverrides
-
[easy_widgets.resources]
ew_resources=allura.config.resources:register_ew_resources