Skip to content

Commit 91eb7c3

Browse files
committed
(refactor) add css helper file
1 parent dd10e01 commit 91eb7c3

File tree

5 files changed

+51
-62
lines changed

5 files changed

+51
-62
lines changed

src/ChatWindow/ChatWindow.vue

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -168,46 +168,4 @@ export default {
168168
height: 100%;
169169
display: flex;
170170
}
171-
172-
// General
173-
$borderStyle: 1px solid var(--chat-border-color);
174-
175-
.app-border {
176-
border: $borderStyle;
177-
}
178-
179-
.app-border-t {
180-
border-top: $borderStyle;
181-
}
182-
183-
.app-border-r {
184-
border-right: $borderStyle;
185-
}
186-
187-
.app-border-b {
188-
border-bottom: $borderStyle;
189-
}
190-
191-
.vertical-center {
192-
display: flex;
193-
align-items: center;
194-
height: 100%;
195-
196-
.vertical-container {
197-
width: 100%;
198-
text-align: center;
199-
}
200-
}
201-
202-
.svg-button {
203-
max-height: 30px;
204-
display: flex;
205-
cursor: pointer;
206-
transition: all 0.2s;
207-
}
208-
209-
.svg-button:hover {
210-
transform: scale(1.1);
211-
opacity: 0.7;
212-
}
213171
</style>

src/ChatWindow/MessagesList.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -424,16 +424,6 @@ export default {
424424
border-top-right-radius: 4px;
425425
}
426426
427-
.room-avatar {
428-
background-size: cover !important;
429-
background-position: center center !important;
430-
background-repeat: no-repeat !important;
431-
height: 42px;
432-
width: 42px;
433-
margin-right: 15px;
434-
border-radius: 50%;
435-
}
436-
437427
.room-name {
438428
font-size: 17px;
439429
}

src/ChatWindow/RoomsList.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,6 @@ input {
197197
min-height: 71px;
198198
}
199199
200-
.room-avatar {
201-
background-size: cover !important;
202-
background-position: center center !important;
203-
background-repeat: no-repeat !important;
204-
height: 42px;
205-
width: 42px;
206-
margin-right: 15px;
207-
border-radius: 50%;
208-
}
209-
210200
.name-container {
211201
-webkit-box-align: center;
212202
align-items: center;

src/styles/helper.scss

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
$borderStyle: 1px solid var(--chat-border-color);
2+
3+
.app-border {
4+
border: $borderStyle;
5+
}
6+
7+
.app-border-t {
8+
border-top: $borderStyle;
9+
}
10+
11+
.app-border-r {
12+
border-right: $borderStyle;
13+
}
14+
15+
.app-border-b {
16+
border-bottom: $borderStyle;
17+
}
18+
19+
.vertical-center {
20+
display: flex;
21+
align-items: center;
22+
height: 100%;
23+
24+
.vertical-container {
25+
width: 100%;
26+
text-align: center;
27+
}
28+
}
29+
30+
.svg-button {
31+
max-height: 30px;
32+
display: flex;
33+
cursor: pointer;
34+
transition: all 0.2s;
35+
}
36+
37+
.svg-button:hover {
38+
transform: scale(1.1);
39+
opacity: 0.7;
40+
}
41+
42+
.room-avatar {
43+
background-size: cover !important;
44+
background-position: center center !important;
45+
background-repeat: no-repeat !important;
46+
height: 42px;
47+
width: 42px;
48+
margin-right: 15px;
49+
border-radius: 50%;
50+
}

src/styles/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
@import 'animation';
22
@import 'menu';
3+
@import 'helper';

0 commit comments

Comments
 (0)