Ver código fonte

ref(chat): move some colors to css variables

j8
Leonard Kim 6 anos atrás
pai
commit
a8233bdb84
2 arquivos alterados com 13 adições e 5 exclusões
  1. 4
    4
      css/_chat.scss
  2. 9
    1
      css/_variables.scss

+ 4
- 4
css/_chat.scss Ver arquivo

@@ -92,7 +92,7 @@
92 92
 }
93 93
 
94 94
 .chat-header {
95
-    background-color: rgba(42, 58, 75, 0.9);
95
+    background-color: $chatHeaderBackgroundColor;
96 96
     height: 70px;
97 97
     position: relative;
98 98
     width: 100%;
@@ -120,7 +120,7 @@
120 120
 }
121 121
 
122 122
 #chat-input {
123
-    border-top: 1px solid #A4B8D1;
123
+    border-top: 1px solid $chatInputSeparatorColor;
124 124
     display: flex;
125 125
 
126 126
     * {
@@ -188,7 +188,7 @@
188 188
 }
189 189
 
190 190
 .chatmessage {
191
-    background-color: rgba(240, 243, 247, 0.15);
191
+    background-color: $chatRemoteMessageBackgroundColor;
192 192
     border-radius: 0px 6px 6px 6px;
193 193
     margin-top: 3px;
194 194
     color: white;
@@ -196,7 +196,7 @@
196 196
     position: relative;
197 197
 
198 198
     &.localuser {
199
-        background-color: rgba(26, 108, 180, 1);
199
+        background-color: $chatLocalMessageBackgroundColor;
200 200
         border-radius: 6px 0px 6px 6px;
201 201
     }
202 202
 

+ 9
- 1
css/_variables.scss Ver arquivo

@@ -83,11 +83,19 @@ $modalMockAKInputBorder: 1px solid #f4f5f7;
83 83
 $modalTextColor: #333;
84 84
 
85 85
 /**
86
+ * Chat
87
+ */
88
+$chatHeaderBackgroundColor: rgba(42, 58, 75, 0.9);
89
+$chatInputSeparatorColor: #A4B8D1;
90
+$chatLocalMessageBackgroundColor: rgba(26, 108, 180, 1);
91
+$chatRemoteMessageBackgroundColor:  rgba(240, 243, 247, 0.15);
92
+$sidebarWidth: 375px;
93
+
94
+ /**
86 95
  * Misc.
87 96
  */
88 97
 $borderRadius: 4px;
89 98
 $defaultWatermarkLink: '../images/watermark.png';
90
-$sidebarWidth: 375px;
91 99
 $popoverMenuPadding: 13px;
92 100
 $happySoftwareBackground: transparent;
93 101
 $desktopAppDragBarHeight: 25px;

Carregando…
Cancelar
Salvar