Skip to content

Instantly share code, notes, and snippets.

@markupboy
Created September 11, 2014 16:32
Show Gist options
  • Save markupboy/4b63d18eff01eccd9782 to your computer and use it in GitHub Desktop.
Save markupboy/4b63d18eff01eccd9782 to your computer and use it in GitHub Desktop.
Slack Userstyle
/* Clearer menu */
#menu,
.menu_example {
border: 1px solid #fff !important;
}
/* Different header */
#header {
background-color: #f5f5f5 !important;
}
#channel_members_toggle {
bottom: auto !important;
right: auto !important;
left: 246px !important;
top: 10px !important;
}
#active_channel_name .name {
padding-left: 226px !important;
}
/* Remove red "New messages" divider */
#msgs_unread_divider { display: none !important; }
/* Remove unread notification bar */
#messages_unread_status { display: none !important; }
/* Remove "Someone is typing" */
#typing_text { display: none !important; }
/* Remove welcome display area */
#end_div { display: none !important; }
/* Adjust "New day" divider */
.light_theme .msgs_holder .day_divider {
text-align: left !important;
margin-right: 0 !important;
}
.light_theme .msgs_holder .day_divider .day_divider_label {
margin: 0 0 0 184px !important;
}
/* Different whitespace and border dividers */
.light_theme .message {
position: relative !important;
padding-left: 200px !important;
padding-top: 15px !important;
padding-bottom: 15px !important;
margin: 0 !important;
}
.light_theme .message.divider,
.light_theme .message.first {
border-top: 1px solid #ededed !important;
}
.light_theme .message.show_user ~ .message:not(.show_user) {
padding-top: 0 !important;
margin-top: -10px !important;
}
.light_theme .message.show_user.file_upload + .message {
padding-top: 10px !important;
}
.light_theme .msgs_holder .day_divider + .message {
border-top: 0 !important;
}
/* Don't display unprocessed messages to avoid flickering */
/* This can't be worked around. Either a bit of lag of flickering. */
.light_theme .message.unprocessed {
display: none !important;
}
/* Different layout for messages */
.light_theme .message .member_image,
.light_theme .message_sender,
.light_theme .message .timestamp,
.light_theme .message .message_star_holder,
.light_theme .message .msg_actions {
position: absolute !important;
}
.light_theme .message .member_image {
display: none !important;
opacity: 0 !important;
-o-transform: scale(0.88) !important;
-moz-transform: scale(0.88) !important;
-webkit-transform: scale(0.88) !important;
transform: scale(0.88) !important;
}
.light_theme .message_sender {
left: 44px !important;
}
.light_theme .message .message_content {
padding-right: 100px !important;
}
/* No idea what this is */
.light_theme .copy_only { display: none !important; }
/* Putting timestamp and message icons on the right */
.light_theme .message .timestamp {
right: 20px !important;
left: auto !important;
top: 11px !important;
white-space: nowrap !important;
}
.light_theme .message.divider ~ .message:not(.divider) .timestamp {
top: 3px !important;
right: 25px !important;
}
.light_theme .message .message_star_holder,
.light_theme .message .msg_actions {
top: 7px !important;
}
.light_theme .message.divider ~ .message:not(.divider) .message_star_holder,
.light_theme .message.divider ~ .message:not(.divider) .msg_actions {
top: 0 !important;
}
.light_theme .message .message_star_holder {
right: 60px !important;
left: auto !important;
}
.light_theme .message .msg_actions {
right: 86px !important;
}
/* Wrangling image previews */
.light_theme .message .message_star_holder + br,
.light_theme .msg_inline_img_holder + .meta,
.light_theme .msg_inline_img_holder + .meta + br {
display: none !important;
}
.inline_attachment .inline_attachment_wrapper {
display: inline-block !important;
padding: 2px 3px !important;
}
/* Editing images and videos */
.light_theme .msg_inline_img_holder,
.light_theme .msg_inline_video_holder {
border: 0 !important;
}
/* Editing quote blocks */
.special_formatting_quote .quote_bar { display: none !important; }
.special_formatting_quote .content {
border-left: 2px solid #ccc !important;
padding-left: 12px !important;
color: #777 !important;
}
/* Wrangling code blocks */
pre.special_formatting {
margin-right: 200px !important;
}
/* Not as bold */
.light_theme .message_sender,
.light_theme .file_reference .file_name {
font-weight: 600 !important;
}
/* Removing useless mentions */
.inline_attachment .mention,
.message_content a .mention {
background: transparent !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment