summaryrefslogtreecommitdiffstats
path: root/webapp/sass
diff options
context:
space:
mode:
authorNick Frazier <nrflaw@gmail.com>2016-12-21 09:37:07 -0500
committerenahum <nahumhbl@gmail.com>2016-12-21 11:37:07 -0300
commit26e43c671c4252dccbf3b0e9257407d41e4297ae (patch)
tree7b5fd3e0c0addda7f8019f0f549ba71ec23cb86f /webapp/sass
parentf0b74e78dde9a029e49e730d854b769a53756624 (diff)
downloadchat-26e43c671c4252dccbf3b0e9257407d41e4297ae.tar.gz
chat-26e43c671c4252dccbf3b0e9257407d41e4297ae.tar.bz2
chat-26e43c671c4252dccbf3b0e9257407d41e4297ae.zip
PLT-4943: Warn when editing a message > 4000 chars (#4789)
* added basic functionality * css fixes * css fixes part II: electric boogaloo * removed css interference with theme changes, for this and post length error
Diffstat (limited to 'webapp/sass')
-rw-r--r--webapp/sass/components/_modal.scss15
-rw-r--r--webapp/sass/layout/_post.scss18
-rw-r--r--webapp/sass/responsive/_tablet.scss10
-rw-r--r--webapp/sass/routes/_activity-log.scss1
4 files changed, 25 insertions, 19 deletions
diff --git a/webapp/sass/components/_modal.scss b/webapp/sass/components/_modal.scss
index c7d82feb9..4012a4611 100644
--- a/webapp/sass/components/_modal.scss
+++ b/webapp/sass/components/_modal.scss
@@ -31,6 +31,21 @@
.suggestion-list__content {
max-height: 150px;
}
+
+ .edit-post-footer {
+ font-size: 13px;
+ position: relative;
+ display: inline-block;
+
+ .post-error {
+ position: relative;
+ font-weight: normal;
+ margin-bottom: 0;
+ font-size: .85em;
+ @include opacity(.55);
+ top: 3px;
+ }
+ }
}
.row--invite {
diff --git a/webapp/sass/layout/_post.scss b/webapp/sass/layout/_post.scss
index ff990f9b8..7d1125b19 100644
--- a/webapp/sass/layout/_post.scss
+++ b/webapp/sass/layout/_post.scss
@@ -448,20 +448,14 @@
padding: 3px 0 0;
position: relative;
- .control-label {
+ .post-error {
font-weight: normal;
margin-bottom: 0;
- position: relative;
- top: -5px;
-
- &.post-error {
- display: inline-block;
- font-size: .85em;
- @include opacity(.55);
- color: rgb(51, 51, 51);
- position: absolute;
- top: 4px;
- }
+ display: inline-block;
+ font-size: .85em;
+ @include opacity(.55);
+ position: absolute;
+ top: 4px;
}
}
diff --git a/webapp/sass/responsive/_tablet.scss b/webapp/sass/responsive/_tablet.scss
index e337fe3ac..3d6abbd69 100644
--- a/webapp/sass/responsive/_tablet.scss
+++ b/webapp/sass/responsive/_tablet.scss
@@ -32,14 +32,10 @@
display: none;
}
- .control-label {
+ .post-error {
top: 0;
-
- &.post-error {
- left: 32px;
- position: relative;
- top: 0;
- }
+ left: 32px;
+ position: relative;
}
}
diff --git a/webapp/sass/routes/_activity-log.scss b/webapp/sass/routes/_activity-log.scss
index d3400e29a..19f4757ea 100644
--- a/webapp/sass/routes/_activity-log.scss
+++ b/webapp/sass/routes/_activity-log.scss
@@ -9,6 +9,7 @@
position: absolute;
top: 0;
width: 100%;
+ display: inline-block;
}
}