ComunicWeb/assets/css/components/sidebar.css

146 lines
2.5 KiB
CSS
Raw Normal View History

2019-05-16 13:48:50 +00:00
/**
2019-05-16 16:05:21 +00:00
* Sidebar stylesheet
*
* @author Pierre HUBERT
*/
2019-05-16 13:48:50 +00:00
2019-05-16 15:38:10 +00:00
.main-sidebar > .sidebar {
display: flex;
flex-direction: column;
position: absolute;
height: 100%;
}
body.sidebar-collapse .main-sidebar > .sidebar {
position: unset;
}
body.sidebar-collapse .main-sidebar > .sidebar .hide-on-collapse {
display: none;
}
.main-sidebar .intermediate-label {
color: #c3c3c3;
padding: 10px 25px 0px 15px;
font-size: 12px;
}
/**
* Search form
*/
.sidebar-search-results {
display: flex;
height: 200px;
background-color: white;
position: absolute;
z-index: 2;
width: 90%;
margin-top: -2px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
}
.sidebar-search-results .results-container {
flex: 1;
}
.sidebar-search-results .results-container > div {
padding: 10px;
cursor: pointer;
}
.sidebar-search-results .results-container > div:hover {
background-color: #0003;
}
.sidebar-search-results .results-container > div img {
height: 30px;
2019-05-18 16:08:08 +00:00
margin-right: 5px;
}
/**
* Memberships
*/
2019-05-16 15:38:10 +00:00
.main-sidebar .memberships-list {
flex: 2;
overflow: hidden;
}
2019-05-16 16:05:21 +00:00
body.sidebar-collapse .memberships-list,
body.sidebar-collapse .slimScrollDiv,
body.sidebar-collapse .sidebar-menu {
overflow: unset !important;
2019-05-16 15:38:10 +00:00
}
.main-sidebar .memberships-list img {
2019-05-16 13:48:50 +00:00
width: 20px;
margin-right: 10px;
margin-left: -4px;
2019-05-16 15:38:10 +00:00
}
2019-05-16 16:05:21 +00:00
.main-sidebar .memberships-list .subinfo {
margin-left: 24px;
font-size: 90%;
}
2020-04-09 06:57:22 +00:00
/**
* Conversations entries
*/
2020-04-09 10:02:46 +00:00
/**
add left border
.main-sidebar .memberships-list .conversation_memberhsip.has-unread-msg::before {
border: 2px white solid;
border-radius: 2px 0px 0px 2px;
content: " ";
position: absolute;
background-color: white;
height: 100%;
left: 1%;
}
*/
.main-sidebar .memberships-list .conversation_memberhsip.has-unread-msg {
background-color: #00a65a30;
}
2020-04-09 06:57:22 +00:00
.main-sidebar .memberships-list .conversation_memberhsip a {
padding: 5px 5px 5px 15px;
}
.main-sidebar .memberships-list .conversation_memberhsip span {
font-size: 90%;
}
.main-sidebar .memberships-list .conversation_memberhsip .subinfo {
font-size: 80%;
}
2019-05-16 16:05:21 +00:00
body.sidebar-collapse .main-sidebar .memberships-list .subinfo {
display: none;
}
body.sidebar-collapse .main-sidebar .memberships-list li:hover .subinfo {
display: block;
background: #2c3b41;
position: absolute;
width: 180px;
left: 50px;
padding-top: 5px;
padding-bottom: 5px;
border-bottom-right-radius: 4px;
margin: 7px -3px;
padding-left: 20px;
}
/**
* Conversations
*/
2019-05-16 15:38:10 +00:00
.main-sidebar .recents-conversations-list {
flex: 1;
2019-05-16 13:48:50 +00:00
}