-
-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CSS overrides in applications (#12646)
* Declare new override entrypoint for frontend * Declare new override entrypoint for admin * Declare new override entrypoint for system panel * Add documentation * Add overrides in the design app to facilitate the development of new themes * Apply suggestions from code review Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> * Add docs * Add Readme * Lint * Apply suggestions from code review Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> --------- Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
- Loading branch information
1 parent
2457682
commit 359b793
Showing
16 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
decidim-admin/app/packs/entrypoints/decidim_admin_overrides.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Application specific styles: https://docs.decidim.org/en/customize/styles/ | ||
@import "stylesheets/decidim/admin/decidim_application"; |
5 changes: 5 additions & 0 deletions
5
decidim-admin/app/packs/stylesheets/decidim/admin/decidim_application.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// This is a file that can be overridden by the application in order to override styles | ||
// Notice that this file is included at the very end of the stylesheets packs to have | ||
// more priority | ||
// | ||
// By default this is empty. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Application specific styles: https://docs.decidim.org/en/customize/styles/ | ||
@import "stylesheets/decidim/decidim_application"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
decidim-design/app/views/layouts/decidim/design/_head.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<%= javascript_pack_tag "decidim_core", "decidim_design", defer: false %> | ||
<%= stylesheet_pack_tag "decidim_core", "decidim_design", media: "all" %> | ||
<%= append_stylesheet_pack_tag "decidim_overrides", media: "all" %> | ||
<%= append_stylesheet_pack_tag "decidim_design", media: "all" %> | ||
<%= stylesheet_pack_tag "decidim_core", media: "all" %> | ||
<%= organization_colors %> | ||
<%= render partial: "layouts/decidim/js_configuration" %> |
2 changes: 2 additions & 0 deletions
2
decidim-system/app/packs/entrypoints/decidim_system_overrides.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Application specific styles: https://docs.decidim.org/en/customize/styles/ | ||
@import "stylesheets/decidim/system/decidim_application"; |
5 changes: 5 additions & 0 deletions
5
decidim-system/app/packs/stylesheets/decidim/system/decidim_application.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// This is a file that can be overridden by the application in order to override styles | ||
// Notice that this file is included at the very end of the stylesheets packs to have | ||
// more priority | ||
// | ||
// By default this is empty. |
1 change: 1 addition & 0 deletions
1
decidim-system/app/views/layouts/decidim/system/_header.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<%= csrf_meta_tags %> | ||
<%= append_stylesheet_pack_tag "decidim_system_overrides", media: "all" %> | ||
<%= stylesheet_pack_tag "decidim_core", "decidim_system", media: "all" %> | ||
<%= javascript_pack_tag "decidim_core", "decidim_system", defer: false %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters