mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Webpack code splitting will make the inclusion order of CSS files less obvious, and we need to guarantee that these rules follow the rules they override. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
		
			
				
	
	
		
			282 lines
		
	
	
		
			5.2 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
			
		
		
	
	
			282 lines
		
	
	
		
			5.2 KiB
		
	
	
	
		
			SCSS
		
	
	
	
	
	
.right-sidebar {
 | 
						|
    font-size: 14px;
 | 
						|
}
 | 
						|
 | 
						|
.right-sidebar a:hover {
 | 
						|
    text-decoration: none;
 | 
						|
}
 | 
						|
 | 
						|
#group-pms li:hover,
 | 
						|
#user_presences li:hover,
 | 
						|
#user_presences li.highlighted_user {
 | 
						|
    background-color: hsl(93, 19%, 88%);
 | 
						|
}
 | 
						|
 | 
						|
#buddy_list_wrapper,
 | 
						|
#group-pms {
 | 
						|
    position: relative;
 | 
						|
    margin-left: 0;
 | 
						|
    overflow: auto;
 | 
						|
}
 | 
						|
 | 
						|
#user_presences,
 | 
						|
#group-pms {
 | 
						|
    list-style-position: inside; /* Draw the bullets inside our box */
 | 
						|
}
 | 
						|
 | 
						|
#user_presences {
 | 
						|
    max-width: 95%;
 | 
						|
    overflow-x: hidden;
 | 
						|
 | 
						|
    li {
 | 
						|
        overflow: hidden;
 | 
						|
        white-space: nowrap;
 | 
						|
        text-overflow: ellipsis;
 | 
						|
 | 
						|
        .user-list-arrow {
 | 
						|
            position: absolute;
 | 
						|
            top: 0px;
 | 
						|
            right: 10px;
 | 
						|
            font-size: 0.8em;
 | 
						|
            display: none;
 | 
						|
 | 
						|
            i {
 | 
						|
                padding-right: 0.25em;
 | 
						|
                display: inline-block;
 | 
						|
                width: 13px;
 | 
						|
            }
 | 
						|
 | 
						|
            &:hover {
 | 
						|
                display: inline;
 | 
						|
                cursor: pointer;
 | 
						|
                color: hsl(0, 0%, 0%);
 | 
						|
            }
 | 
						|
        }
 | 
						|
 | 
						|
        &:hover {
 | 
						|
            .user-list-arrow {
 | 
						|
                display: inline;
 | 
						|
                cursor: pointer;
 | 
						|
                color: hsl(0, 0%, 53%);
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
#user_presences li,
 | 
						|
#group-pms li {
 | 
						|
    list-style-type: none;
 | 
						|
 | 
						|
    border-radius: 4px;
 | 
						|
    margin: 1px 0px;
 | 
						|
    padding-right: 15px;
 | 
						|
}
 | 
						|
 | 
						|
#group-pm-title {
 | 
						|
    margin: 10px 0px 0px 0px;
 | 
						|
    display: inline-block;
 | 
						|
}
 | 
						|
 | 
						|
#user_presences .user_circle,
 | 
						|
#group-pms .user_circle_fraction {
 | 
						|
    width: 8px;
 | 
						|
    height: 8px;
 | 
						|
    margin-top: 0px;
 | 
						|
    margin-bottom: 0px;
 | 
						|
    margin-left: 5px;
 | 
						|
    margin-right: 5px;
 | 
						|
    display: block;
 | 
						|
}
 | 
						|
 | 
						|
#user_presences a,
 | 
						|
#group-pms a {
 | 
						|
    color: inherit;
 | 
						|
    margin-left: 0px;
 | 
						|
}
 | 
						|
 | 
						|
#invite-user-link i {
 | 
						|
    text-decoration: none;
 | 
						|
    margin-right: 3px;
 | 
						|
    margin-left: 5px;
 | 
						|
}
 | 
						|
 | 
						|
.group-pms-sidebar-entry .selectable_sidebar_block {
 | 
						|
    display: flex;
 | 
						|
    width: 100%;
 | 
						|
}
 | 
						|
 | 
						|
.group-pm-link,
 | 
						|
.user-presence-link,
 | 
						|
.user_sidebar_entry .selectable_sidebar_block {
 | 
						|
    overflow: hidden;
 | 
						|
    text-overflow: ellipsis;
 | 
						|
}
 | 
						|
 | 
						|
.user_sidebar_entry .selectable_sidebar_block {
 | 
						|
    width: calc(100% - 16px);
 | 
						|
    display: flex;
 | 
						|
    flex-direction: row;
 | 
						|
}
 | 
						|
 | 
						|
.user-presence-link {
 | 
						|
    width: calc(100% - 24px);
 | 
						|
    .my_user_status {
 | 
						|
        opacity: 0.5;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
.group-pm-link {
 | 
						|
    width: calc(100% - 60px);
 | 
						|
    display: inline-block;
 | 
						|
}
 | 
						|
 | 
						|
.selectable_sidebar_block {
 | 
						|
    cursor: pointer;
 | 
						|
}
 | 
						|
 | 
						|
.group-pms-sidebar-entry,
 | 
						|
.user_sidebar_entry {
 | 
						|
    display: flex;
 | 
						|
    align-items: flex-start;
 | 
						|
    justify-content: space-between;
 | 
						|
}
 | 
						|
 | 
						|
.user_sidebar_entry .count,
 | 
						|
.group-pms-sidebar-entry .count {
 | 
						|
    float: right;
 | 
						|
    padding: 0 4px;
 | 
						|
    background-color: hsl(105, 2%, 50%);
 | 
						|
    border-radius: 0px;
 | 
						|
    color: hsl(0, 0%, 100%);
 | 
						|
    font-size: 12px;
 | 
						|
    line-height: 14px;
 | 
						|
    height: 15px;
 | 
						|
    font-weight: normal;
 | 
						|
    letter-spacing: 0.6px;
 | 
						|
    position: relative;
 | 
						|
    top: 3px;
 | 
						|
    border-radius: 4px;
 | 
						|
    margin-left: 5px;
 | 
						|
}
 | 
						|
 | 
						|
.user_sidebar_entry .count {
 | 
						|
    display: none;
 | 
						|
}
 | 
						|
 | 
						|
.group-pms-sidebar-entry .count {
 | 
						|
    margin-right: 16px;
 | 
						|
}
 | 
						|
 | 
						|
.user_sidebar_entry.user-with-count .count {
 | 
						|
    display: block;
 | 
						|
}
 | 
						|
 | 
						|
#userlist-toggle {
 | 
						|
    display: none;
 | 
						|
    position: absolute;
 | 
						|
    top: 0px;
 | 
						|
    right: 0px;
 | 
						|
    text-align: center;
 | 
						|
    vertical-align: middle;
 | 
						|
    border-left: 2px solid hsl(204, 20%, 74%);
 | 
						|
}
 | 
						|
 | 
						|
#userlist-toggle-button {
 | 
						|
    text-decoration: none;
 | 
						|
    background-color: hsl(0, 0%, 89%);
 | 
						|
    color: hsl(0, 0%, 52%);
 | 
						|
    display: block;
 | 
						|
    width: 40px;
 | 
						|
    height: 19px;
 | 
						|
    padding-top: 12px;
 | 
						|
    padding-bottom: 9px;
 | 
						|
}
 | 
						|
 | 
						|
#group-pm-list {
 | 
						|
    display: none;
 | 
						|
}
 | 
						|
 | 
						|
#group-pm-list.show {
 | 
						|
    display: block;
 | 
						|
}
 | 
						|
 | 
						|
#userlist-header,
 | 
						|
#group-pm-header {
 | 
						|
    margin-right: 10px;
 | 
						|
}
 | 
						|
 | 
						|
.right-sidebar-items:first-of-type #userlist-header {
 | 
						|
    border-top: none;
 | 
						|
}
 | 
						|
 | 
						|
#userlist-header {
 | 
						|
    cursor: pointer;
 | 
						|
    display: flex;
 | 
						|
    flex-direction: row;
 | 
						|
    justify-content: space-between;
 | 
						|
    align-items: center;
 | 
						|
 | 
						|
    #userlist-title {
 | 
						|
        margin: 0;
 | 
						|
    }
 | 
						|
 | 
						|
    #user_filter_icon {
 | 
						|
        font-size: 13px;
 | 
						|
        opacity: 0.50;
 | 
						|
        margin-right: 5px;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
#feedback_section {
 | 
						|
    text-align: left;
 | 
						|
    padding-bottom: 15px;
 | 
						|
    border-bottom: 1px solid hsl(0, 0%, 88%);
 | 
						|
    margin-right: 10px;
 | 
						|
}
 | 
						|
 | 
						|
#keyboard-icon {
 | 
						|
    position: fixed;
 | 
						|
    bottom: 8px; /* bottom padding of .compose-content */
 | 
						|
    cursor: pointer;
 | 
						|
    font-size: 20px;
 | 
						|
}
 | 
						|
 | 
						|
#sidebar-keyboard-shortcuts {
 | 
						|
    color: inherit;
 | 
						|
}
 | 
						|
 | 
						|
/* This max-width must be synced with message_viewport.is_narrow */
 | 
						|
@media (max-width: 1165px) {
 | 
						|
    #sidebar-keyboard-shortcuts {
 | 
						|
        /* This is supposed to fix this appearing improperly in narrow
 | 
						|
        windows.  It's likely the wrong solution; a proper fix likely
 | 
						|
        involves replacing `position: fixed` in #keyboard-icon so that
 | 
						|
        it still appears in the right sidebar overlay. */
 | 
						|
        display: none;
 | 
						|
    }
 | 
						|
 | 
						|
    #userlist-toggle {
 | 
						|
        display: block;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
@media (max-width: 775px) {
 | 
						|
    #user_search_section .user-list-filter {
 | 
						|
        /* input should be 100% - 6px padding x2 - 1px border x2. */
 | 
						|
        width: calc(100% - 12px - 2px);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
@media (max-width: 500px) {
 | 
						|
    #userlist-toggle {
 | 
						|
        height: 30px;
 | 
						|
        line-height: 30px;
 | 
						|
    }
 | 
						|
 | 
						|
    #userlist-toggle-button {
 | 
						|
        height: 30px;
 | 
						|
        padding-top: 0px;
 | 
						|
        padding-bottom: 0px;
 | 
						|
    }
 | 
						|
}
 |