-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Option to add ribbon to engineblock pages indication which environmen…
…t you're working on When left empty, nothing is shown. The approach may look a bit unwieldy, but this is done so that envirnment specific config can be passed to CSS. This is making it a pure CSS solution that also would work in installs that have a CSP that disables inline styles, that's why we have to enumerate the available colors since you cannot use `attr()` with anything other than `content:`.
- Loading branch information
Showing
7 changed files
with
38 additions
and
1 deletion.
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
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,30 @@ | ||
body::after { | ||
position: fixed; | ||
width: 109px; | ||
height: 28px; | ||
top: 15px; | ||
right: -25px; | ||
text-align: center; | ||
font-size: 16px; | ||
font-family: sans-serif; | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
color: white; | ||
line-height: 30px; | ||
transform: rotate(45deg); | ||
content: attr(data-envname); | ||
} | ||
|
||
body[data-ribboncolor="red"]::after { | ||
background-color: crimson; | ||
} | ||
body[data-ribboncolor="orange"]::after { | ||
background-color: orange; | ||
} | ||
body[data-ribboncolor="pink"]::after { | ||
background-color: hotpink; | ||
} | ||
body[data-ribboncolor="beige"]::after { | ||
background-color: khaki; | ||
} | ||
|
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
@import "helpers.scss"; | ||
@import "components/ribbon"; | ||
@import "pages/notConverted"; |
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