Skip to content

Commit 86a1616

Browse files
authored
Merge pull request #1035 from GetStream/remove-old-scss
Remove some old css
2 parents 8259b83 + 5568502 commit 86a1616

File tree

8 files changed

+36
-359
lines changed

8 files changed

+36
-359
lines changed

examples/typescript-app/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9844,10 +9844,10 @@ react-fast-compare@^3.0.1, react-fast-compare@^3.2.0:
98449844
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
98459845
integrity sha512-rtGImPZ0YyLrscKI9xTpV8psd6I8VAtjKCzQDlzyDvqJA8XOW78TXYQwNRNd8g8JZnDu8q9Fu/1v4HPAVwVdHA==
98469846

9847-
9848-
version "1.1.0"
9849-
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.0.tgz#54913d558f98c6864d6c1f3b65e99b40f83b4a68"
9850-
integrity sha512-h9IWUk31gYqmmSUxM6Op3SoWEyiKVBX9alGN6uUOKNxe5gmc5fYPKrd9SwSwF5lX3M5Pr24SXqfZMgVdAxGQFg==
9847+
9848+
version "1.1.1"
9849+
resolved "https://registry.yarnpkg.com/react-file-utils/-/react-file-utils-1.1.1.tgz#620f06154f1ca61c4c89702acb61da88445739b3"
9850+
integrity sha512-ioJcEZQOUBbpFC61aUPp+7zByJsrFZ8JwFu4E4zIssn+NeSUjnSkUxzoZMI438Pzp6nG10r5ZBgtnjnmu+WQVA==
98519851
dependencies:
98529852
react-dropzone "11.2.0"
98539853

src/styles/ChannelListTeam.scss

Lines changed: 0 additions & 141 deletions
This file was deleted.

src/styles/ChannelPreview.scss

Lines changed: 6 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,3 @@
1-
.str-chat__channel-preview {
2-
button {
3-
position: relative;
4-
border: none;
5-
background: none;
6-
display: flex;
7-
flex-direction: row;
8-
align-items: center;
9-
width: 100%;
10-
padding: 8px 40px 8px 8px;
11-
font-size: var(--sm-font);
12-
border-bottom: 1px solid var(--black10);
13-
outline: 0;
14-
overflow: hidden;
15-
white-space: nowrap;
16-
text-overflow: ellipsis;
17-
18-
&:focus {
19-
background: var(--white);
20-
box-shadow: inset 0 0 0 1px var(--primary-color), inset 0 0 0 2px var(--primary-color-faded);
21-
}
22-
}
23-
24-
&-info {
25-
display: flex;
26-
flex-direction: column;
27-
text-align: left;
28-
padding: 0 8px;
29-
max-width: 250px;
30-
}
31-
32-
&-avatar {
33-
width: 32px;
34-
height: 32px;
35-
flex: 0 0 32px;
36-
border-radius: var(--border-radius);
37-
}
38-
39-
&-title {
40-
color: var(--black);
41-
display: block;
42-
overflow: hidden;
43-
white-space: nowrap;
44-
text-overflow: ellipsis;
45-
}
46-
47-
&-unread-count {
48-
position: absolute;
49-
right: 10px;
50-
width: 22px;
51-
height: 22px;
52-
color: var(--black);
53-
font-size: var(--sm-font);
54-
background: var(--grey-whisper);
55-
border-radius: var(--border-radius);
56-
display: flex;
57-
align-items: center;
58-
justify-content: center;
59-
align-self: center;
60-
}
61-
62-
&-last-message {
63-
color: var(--lighten-black);
64-
white-space: nowrap;
65-
overflow: hidden;
66-
text-overflow: ellipsis;
67-
max-width: 150px;
68-
}
69-
70-
&--active {
71-
background: var(--primary-color);
72-
color: white;
73-
74-
.str-chat__channel-preview-title {
75-
color: var(--white);
76-
}
77-
78-
.str-chat__channel-preview-last-message {
79-
color: var(--white70);
80-
}
81-
}
82-
83-
&--unread {
84-
position: relative;
85-
86-
.str-chat__channel-preview-last-message {
87-
font-weight: var(--font-weight-bold);
88-
color: var(--black);
89-
}
90-
}
91-
92-
&--dot {
93-
width: 5px;
94-
height: 5px;
95-
position: absolute;
96-
border-radius: var(--border-radius-round);
97-
left: 2px;
98-
background-color: var(--primary-color);
99-
}
100-
}
101-
102-
.str-chat__channel-preview-compact {
103-
font-family: var(--second-font);
104-
display: flex;
105-
font-size: var(--md-font);
106-
letter-spacing: 0;
107-
line-height: 40px;
108-
color: var(--black);
109-
position: relative;
110-
border: none;
111-
background: none;
112-
flex-direction: row;
113-
align-items: center;
114-
width: 100%;
115-
padding: 0 40px 0 8px;
116-
border-bottom: 1px solid var(--black10);
117-
text-align: left;
118-
outline: 0;
119-
120-
&:focus {
121-
background: var(--white);
122-
box-shadow: inset 0 0 0 1px var(--primary-color), inset 0 0 0 2px var(--primary-color-faded);
123-
}
124-
125-
&--left {
126-
width: 22px;
127-
height: 22px;
128-
}
129-
130-
&--right {
131-
flex: 1;
132-
margin-left: var(--sm-m);
133-
}
134-
135-
&--unread {
136-
font-weight: var(--font-weight-bold);
137-
}
138-
}
139-
140-
.str-chat__channel-preview-compact--active {
141-
color: var(--white);
142-
background: var(--primary-color);
143-
}
144-
1451
.str-chat__channel-preview-messenger {
1462
display: flex;
1473
width: 100%;
@@ -168,6 +24,7 @@
16824

16925
&--last-message p {
17026
font-size: var(--sm-font);
27+
margin: 0;
17128
line-height: 14px;
17229
max-width: 150px;
17330
text-overflow: ellipsis;
@@ -191,6 +48,7 @@
19148
font-weight: var(--font-weight-semi-bold);
19249
margin-bottom: calc(var(--xxs-m) / 2);
19350
max-width: 250px;
51+
19452
span {
19553
display: block;
19654
overflow: hidden;
@@ -221,39 +79,29 @@
22179
}
22280

22381
.dark.str-chat {
224-
.str-chat__channel-preview {
225-
&--active {
226-
background: var(--black80);
227-
}
228-
&-title {
229-
color: var(--white);
230-
}
231-
button {
232-
&:focus {
233-
background: var(--black80);
234-
box-shadow: inset 0 0 0 1px var(--primary-color), inset 0 0 0 2px var(--primary-color-faded);
235-
}
236-
}
237-
}
23882
.str-chat__channel-preview-messenger {
23983
&--active {
24084
background: var(--white5);
24185
box-shadow: 0 1px 5px 0 var(--black10);
24286
}
87+
24388
&--last-message p {
24489
color: var(--white);
90+
margin: 0;
24591
max-width: 150px;
24692
text-overflow: ellipsis;
24793
overflow: hidden;
24894
white-space: nowrap;
24995
}
96+
25097
&--last-message {
25198
color: var(--white);
25299
max-width: 150px;
253100
text-overflow: ellipsis;
254101
overflow: hidden;
255102
white-space: nowrap;
256103
}
104+
257105
&--name {
258106
color: var(--white);
259107
}

0 commit comments

Comments
 (0)