Skip to content

Commit

Permalink
Document the workings of env_name,env_ribbon_color
Browse files Browse the repository at this point in the history
Also make the codes match the actual HTML color names for simplicity.
  • Loading branch information
thijskh committed Sep 27, 2023
1 parent 0997318 commit 65c3628
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ parameters:
view_default_logo: /images/logo.png
view_default_logo_width: 96
view_default_logo_height: 96
# when set, will show a ribbon top-right to visually distinguish this install from other
# environments in your constellation (e.g. "test", "qa"), with the given ribbon color in
# env_ribbon_color. You can choose from colors: crimson,orange,hotpink,khaki.
env_name: ""
env_ribbon_color: ""

Expand Down
6 changes: 3 additions & 3 deletions theme/base/stylesheets/components/ribbon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ body::after {
content: attr(data-envname);
}

body[data-ribboncolor="red"]::after {
body[data-ribboncolor="crimson"]::after {
background-color: crimson;
}
body[data-ribboncolor="orange"]::after {
background-color: orange;
}
body[data-ribboncolor="pink"]::after {
body[data-ribboncolor="hotpink"]::after {
background-color: hotpink;
}
body[data-ribboncolor="beige"]::after {
body[data-ribboncolor="khaki"]::after {
background-color: khaki;
}

0 comments on commit 65c3628

Please sign in to comment.