Skip to content

Instantly share code, notes, and snippets.

@Brontojoris
Last active March 22, 2017 05:06
Show Gist options
  • Save Brontojoris/7f9270123aece803ce1ceecd42469409 to your computer and use it in GitHub Desktop.
Save Brontojoris/7f9270123aece803ce1ceecd42469409 to your computer and use it in GitHub Desktop.
Slack: Hide sidebar when window is narrow
@media (max-width: 700px) {
/* hide the sidebar */
.client_channels_list_container {
display: none !important;
}
*#messages_container {
margin-left: 0 !important;
}
#messages-input-container,
#notification_bar {
left: -160px !important;
}
#notification_bar {
width: 100vw !important;
}
#client_header {
min-width: 0 !important;
}
#client_header .channel_header {
margin-left: 0 !important;
}
body {
min-width: 0 !important;
}
.modal {
-webkit-transform: none !important;
left: 0.2%;
width: 99.6%;
max-width: 750px;
}
textarea.comment_input {
width:100% !important;
}
#col_flex {
background-color:white;
z-index:9999;
position:absolute;
}
}
@Brontojoris
Copy link
Author

Updated to work with Slack html changes release on 22 March, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment