summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_error-bar.scss
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-06-05 12:49:38 -0400
committerGitHub <noreply@github.com>2017-06-05 12:49:38 -0400
commitabd0466a42d6b9897ba9e3bcb373b41974e9c46f (patch)
treeaee90a2041d243ed4094b7180db0642f73b57e82 /webapp/sass/components/_error-bar.scss
parent0f3bd85b8dddc6805e260a9d19cadcc603a12e17 (diff)
downloadchat-abd0466a42d6b9897ba9e3bcb373b41974e9c46f.tar.gz
chat-abd0466a42d6b9897ba9e3bcb373b41974e9c46f.tar.bz2
chat-abd0466a42d6b9897ba9e3bcb373b41974e9c46f.zip
PLT-3466 E10: Add announcement bar feature (#6509)
* E10 - Add announcement bar feature * Updates per feedback * Add component tests and snapshots * Update snapshots * Updating color picker UI (#6543) * Add class to body tag when banner is not dismissable and clean up localstorage items when banner changes * Fixing links (#6544) * Updating UI for fixed error bar (#6552) * Truncating text on fixed banner (#6561) * Plt 3466 - Error bar link states (#6577) * Updating error bar hover state * Updating error bar link states
Diffstat (limited to 'webapp/sass/components/_error-bar.scss')
-rw-r--r--webapp/sass/components/_error-bar.scss21
1 files changed, 19 insertions, 2 deletions
diff --git a/webapp/sass/components/_error-bar.scss b/webapp/sass/components/_error-bar.scss
index c2ad2402a..765b61ba8 100644
--- a/webapp/sass/components/_error-bar.scss
+++ b/webapp/sass/components/_error-bar.scss
@@ -4,16 +4,33 @@
background-color: darken($primary-color, 5%);
color: $white;
padding: 5px 30px;
- position: absolute;
+ position: fixed;
text-align: center;
top: 0;
width: 100%;
z-index: 9999;
+ &.error-bar--fixed {
+ overflow: hidden;
+ padding: 1px 30px;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
+
a {
- color: $white !important;
+ color: $white;
text-decoration: underline;
+ .app__body & {
+ color: $white;
+
+ &:hover,
+ &:active,
+ &:focus {
+ color: $white;
+ }
+ }
+
&.error-bar__close {
color: $white;
font-family: 'Open Sans', sans-serif;