Skip to content

Commit b30df08

Browse files
UX: Presence indicator additions (#14)
1 parent 65d591a commit b30df08

2 files changed

Lines changed: 42 additions & 26 deletions

File tree

common/common.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@
55
@import "header";
66
@import "misc";
77

8-
// COMPONENTS
9-
.floating-search-input {
10-
grid-column-start: 3;
11-
@include breakpoint("medium") {
12-
display: none;
13-
}
14-
}
15-
16-
.floating-search-input + .panel .header-dropdown-toggle.search-dropdown,
17-
.floating-search-input + .panel .search-menu {
18-
@include breakpoint("medium") {
19-
display: block;
20-
}
21-
}
22-
238
.sidebar-theme-toggle__wrapper
249
.sidebar-theme-toggle-dropdown.select-kit.is-expanded
2510
.select-kit-body {

scss/presence.scss

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
height: 6px;
55
box-shadow: 0px 0px 0px 2px var(--sidebar-color);
66
border: 1px solid var(--dimmed-text);
7-
border-radius: var(--d-border-radius);
7+
border-radius: 100%;
88
display: inline;
99
position: absolute;
1010
bottom: 3px;
@@ -16,7 +16,7 @@
1616
.sidebar-section-link-prefix.image.active::before {
1717
box-shadow: 0px 0px 0px 2px var(--tertiary) !important;
1818
border: 1px solid #ffff !important;
19-
border-radius: var(--d-border-radius);
19+
border-radius: 100%;
2020
display: inline;
2121
position: absolute;
2222
bottom: 3px;
@@ -45,7 +45,7 @@
4545
.sidebar-section-link-prefix.image.active::before {
4646
box-shadow: 0px 0px 0px 2px var(--sidebar-color);
4747
border: 1px solid var(--sidebar-online);
48-
border-radius: var(--d-border-radius);
48+
border-radius: 100%;
4949
display: inline;
5050
position: absolute;
5151
bottom: 3px;
@@ -57,35 +57,66 @@
5757
}
5858
}
5959

60-
.chat-message-avatar .chat-user-avatar .chat-user-avatar-container::before {
60+
.chat-message-avatar .chat-user-avatar .chat-user-avatar__container::before {
6161
content: "";
6262
width: 6px;
6363
height: 6px;
6464
border: 2px solid var(--primary-medium);
6565
box-shadow: 0px 0px 0px 2px var(--secondary);
66-
border-radius: var(--d-border-radius);
66+
border-radius: 100%;
6767
display: inline;
6868
position: absolute;
69-
bottom: 0;
70-
left: calc(32px - 4px);
69+
bottom: -3px;
70+
left: calc(30px - 6px);
71+
background-color: var(--secondary);
72+
}
73+
74+
.chat-channel-title__avatar
75+
.chat-user-avatar
76+
.chat-user-avatar__container::before {
77+
content: "";
78+
width: 8px;
79+
height: 8px;
80+
border: 1px solid var(--primary-medium);
81+
box-shadow: 0px 0px 0px 2px var(--secondary);
82+
border-radius: 100%;
83+
display: inline;
84+
position: absolute;
85+
bottom: 0px;
86+
left: 19px;
7187
background-color: var(--secondary);
7288
}
7389

7490
.chat-message-avatar
7591
.chat-user-avatar.is-online
76-
.chat-user-avatar-container
92+
.chat-user-avatar__container
7793
.avatar,
7894
.chat-channel-title__avatar
7995
.chat-user-avatar.is-online
80-
.chat-user-avatar-container
81-
.avatar {
96+
.chat-user-avatar__container
97+
.avatar,
98+
.chat-channel-title__avatar
99+
.chat-user-avatar.is-online
100+
.chat-user-avatar__container {
82101
box-shadow: none;
83102
border: none;
84103
}
85104

105+
.chat-user-avatar__container .avatar {
106+
padding: 0;
107+
border: none;
108+
}
109+
110+
.chat-channel-title__avatar
111+
.chat-user-avatar.is-online
112+
.chat-user-avatar__container::before {
113+
border: 0px;
114+
background-color: var(--success);
115+
}
116+
86117
.chat-message-avatar
87118
.chat-user-avatar.is-online
88-
.chat-user-avatar-container::before {
119+
.chat-user-avatar__container::before {
89120
width: 8px;
90121
height: 8px;
91122
border: 2px solid var(--secondary);

0 commit comments

Comments
 (0)