css: Create a separate file for left-sidebar CSS.

Create a new file left-sidebar.css.
Move all left-sidebar CSS from zulip.css to left-sidebar.css.
This commit is contained in:
trueskawka 2016-10-28 01:12:32 -04:00 committed by Tim Abbott
parent bf1a7a7f2d
commit 977339954c
3 changed files with 450 additions and 413 deletions

View File

@ -0,0 +1,440 @@
#left-sidebar .brand {
display: table-row;
}
#left-sidebar #user-list,
#left-sidebar #group-pm-list {
padding-left: 10px;
}
.share-the-love-title {
font-size: 11px;
font-weight: normal;
display: inline;
}
#streams_inline_cog,
#streams_filter_icon {
float: right;
color: #000;
font-size: 13px;
margin-top: 3px;
margin-left: 6px;
opacity: 0.5;
}
#streams_inline_cog:hover,
#streams_filter_icon:hover {
opacity: 1.0;
}
#streams_header a {
color: inherit;
text-decoration: none;
}
.tooltip {
max-width: 10em;
}
#stream_filters {
overflow: visible;
margin: 2px 0px 2px 0px;
padding: 0;
font-weight: normal;
}
#stream-filters-container {
overflow-y: hidden;
position: relative;
}
#stream-filters-container .ps-scrollbar-y-rail {
right: 0px !important;
width: 4px !important;
}
#stream-filters-container .ps-scrollbar-y {
width: 4px !important;
}
.stream-list-filter {
margin-left: 1ex;
}
#global_filters li:hover,
#stream_filters li:hover {
background-color: #e2e8dd;
}
#stream_filters li.active-sub-filter:hover {
background-color: #ccd6cc;
}
ul.filters {
list-style-type: none;
margin-left: 0px;
}
ul.filters a {
color: #333;
}
ul.filters hr {
margin-top: 10px;
margin-bottom: 10px;
}
li.active-filter,
li.active-sub-filter {
font-weight: 600 !important;
background: #ddedf6;
position: relative;
}
li.hidden-filter {
visibility: hidden;
display: none;
}
.filter-icon {
display: inline-block;
width: 18px;
text-align: center;
margin-right: 5px;
}
.stream-pin-icon {
margin-right: 4px !important;
margin-left: 3px;
}
#global_filters .global-filter {
position: relative;
padding: 1px 10px;
font-size: 16px;
font-weight: 300;
}
#global_filters .global-filter i {
font-size: 14px;
}
#global_filters .count,
#stream_filters .count {
position: absolute;
right: 20px;
top: 4px;
padding: 2px 3px 1px 3px;
background: #80837f;
border-radius: 0px;
color: #ffffff;
font-size: 12px;
font-weight: normal;
letter-spacing: 0.6px;
}
#stream_filters .count,
#global_filters .count {
margin-left: 0.5em;
display: none;
}
#global_filters .count {
line-height: 13px;
top: 2px;
}
.subject_count {
display: block;
position: absolute;
line-height: 1em;
right: 20px;
top: 2px;
padding: 2px 3px 0px 3px;
background: #a6ada4;
color: #ffffff;
border-radius: 1px;
font-size: 12px;
font-weight: normal;
letter-spacing: 0.6px;
}
.private_message_count {
display: block;
position: absolute;
line-height: 1em;
right: 10px;
top: 2px;
padding: 2px 3px 0px 3px;
background: #a6ada4;
color: #ffffff;
border-radius: 1px;
font-size: 12px;
font-weight: normal;
letter-spacing: 0.6px;
}
ul.filters i {
padding-right: 0.25em;
/* Make filter icons the same width so labels line up. */
display: inline-block;
width: 13px;
}
ul.filters .arrow {
position: absolute;
right: 0px;
top: 2px;
font-size: 0.8em;
display: none;
}
ul.filters li:hover .arrow {
display: inline;
cursor: pointer;
color: #888;
}
ul.filters li .arrow:hover {
display: inline;
cursor: pointer;
color: #000;
}
ul.filters .topic-sidebar-arrow {
font-size: 0.7em;
top: 1px;
display: none !important;
}
ul.filters li.expanded_subject:hover .topic-sidebar-arrow {
display: inline !important;
cursor: pointer;
color: #888;
}
ul.filters li.expanded_subject .topic-sidebar-arrow:hover {
display: inline;
cursor: pointer;
color: #000;
}
ul.filters li.muted_topic,
ul.filters li.out_of_home_view {
opacity: 0.25;
}
ul.filters li.out_of_home_view li.muted_topic {
/* If stream is muted, this resets opacity of muted topics in muted
stream to 1; since opacity is multiplied down through child
elements, this avoids an unreadable opacity of 0.25^2. */
opacity: 1;
}
#stream_filters .subscription_block {
padding-bottom: 3px;
line-height: 12px;
padding-top: 4px;
margin-right: 15px;
padding-left: 33px;
}
#stream_filters .subscription_block.stream-with-count {
margin-right: 38px;
}
.streamlist_swatch {
display: block;
width: 11px;
height: 11px;
vertical-align: middle;
float: left;
position: absolute;
left: 10px;
top: 5px;
box-shadow: inset 0px 0px 3px -2px #000;
}
.streamlist_swatch.private-stream-swatch {
visibility: hidden;
}
.stream-privacy {
position: absolute;
left: 11px;
top: 3px;
font-size: 15px;
}
ul.expanded_subjects {
list-style-type: none;
font-weight: normal;
margin-left: 0px;
padding-bottom: 2px;
}
ul.expanded_private_messages {
list-style-type: none;
font-weight: 300;
font-size: 84%;
margin-left: 0px;
padding-bottom: 2px;
}
li.show-more-topics,
li.expanded_subject {
position: relative;
padding-left: 33px;
}
li.show-more-private-messages,
li.expanded_private_message {
position: relative;
padding-left: 24px;
padding-bottom: 1px;
padding-top: 2px;
}
.show-all-streams a {
color: #333;
}
.all-streams-padding {
padding-top: 5px;
margin-bottom: -5px;
}
.expanded_subject .subject_box,
#private .expanded_private_message .subject_box {
display: block;
margin-right: 38px;
}
.expanded_subject.zero-subject-unreads .subject_box,
#private .expanded_private_messages.zero-subject-unreads .subject_box {
display: block;
margin-right: 15px;
}
.zoom-out #topics_header {
display: none;
}
#global_filters {
margin-bottom: 20px;
}
#topics_header,
#sharethelove-header {
border-top: 1px solid #e2e2e2;
margin-top: 5px;
margin-right: 10px;
}
#streams_header {
margin-right: 0px;
padding-left: 10px;
}
#stream_filters .inactive_stream {
opacity: .5;
}
.zero_count {
display: none;
}
#share-the-love {
margin-left: 0px;
margin-right: 0px;
margin-bottom: 5px;
line-height: 18px;
display: none;
}
#share-the-love-contents {
display: none;
}
#share-the-love-expand-collapse {
position: relative;
cursor: pointer;
}
#share-the-love-expand-collapse h4 {
padding-left: 1em;
}
#share-the-love-expand-collapse .toggle {
position: absolute;
left: 0px;
top: 50%;
margin-top: -8px;
}
#share-the-love input,
#share-the-love p {
margin-top: 5px;
margin-bottom: 5px;
}
#referral-form label {
margin: 0;
}
#share-the-love .icon-vector-heart {
color: red;
}
#share-the-love .still-have-invites {
clear: both;
margin-right: 10px;
}
#share-the-love .no-more-invites {
clear: both;
display: none;
margin-right: 10px;
}
#share-the-love .invite-count-area {
margin-right: 10px;
}
#share-the-love .alert {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
#referral-form {
margin-bottom: 0;
}
#tell-a-friend-success {
display: none;
}
li.show-more-topics a {
font-size: 75%;
}
li.show-more-private-messages a {
font-size: 90%
}
.zoom-in .show-more-topics {
display: none;
}
.zoom-in .show-more-private-messages {
display: none;
}
.zoom-out .zoom-out-hide {
display: none;
}
.zoom-in .zoom-in-hide {
display: none;
}

View File

@ -223,7 +223,6 @@ input {
font-family: 'Humbug', Helvetica, Arial, sans-serif;
}
/* Override Bootstrap's fixed sizes for various elements */
textarea,
@ -233,6 +232,7 @@ label {
}
/* List of text-like input types taken from Bootstrap */
input[type="text"],
input[type="password"],
input[type="datetime"],
@ -314,14 +314,12 @@ li,
position: relative;
}
/* Lighter strong */
strong {
font-weight: 600;
}
/* Inline and block code */
code {
@ -399,15 +397,6 @@ a:hover code {
max-width: 250px;
}
#left-sidebar .brand {
display: table-row;
}
#left-sidebar #user-list,
#left-sidebar #group-pm-list {
padding-left: 10px;
}
.edit-profile {
font-weight: 300;
font-size: 12px;
@ -418,16 +407,13 @@ a:hover code {
white-space: nowrap;
}
.sidebar-title,
.share-the-love-title {
.sidebar-title {
font-size: 11px;
font-weight: normal;
display: inline;
}
#message_edit_tooltip,
#streams_inline_cog,
#streams_filter_icon {
#message_edit_tooltip {
float: right;
color: #000;
font-size: 13px;
@ -436,9 +422,7 @@ a:hover code {
opacity: 0.5;
}
#message_edit_tooltip:hover,
#streams_inline_cog:hover,
#streams_filter_icon:hover {
#message_edit_tooltip:hover {
opacity: 1.0;
}
@ -449,56 +433,16 @@ a:hover code {
top: -18px;
}
#streams_header a {
color: inherit;
text-decoration: none;
}
.tooltip {
max-width: 10em;
}
#stream_filters {
overflow: visible;
margin: 2px 0px 2px 0px;
padding: 0;
font-weight: normal;
}
#stream-filters-container {
overflow-y: hidden;
position: relative;
}
#stream-filters-container .ps-scrollbar-y-rail {
right: 0px !important;
width: 4px !important;
}
#stream-filters-container .ps-scrollbar-y {
width: 4px !important;
}
.stream-list-filter {
margin-left: 1ex;
}
.narrow-filter {
display: block;
position: relative;
}
#global_filters li:hover,
#group-pms li:hover,
#stream_filters li:hover,
#user_presences li:hover {
background-color: #e2e8dd;
}
#stream_filters li.active-sub-filter:hover {
background-color: #ccd6cc;
}
#user_presences,
#group-pms {
list-style-position: inside; /* Draw the bullets inside our box */
@ -593,59 +537,10 @@ a:hover code {
margin-right: 5px;
}
ul.filters {
list-style-type: none;
}
.message_header_stream a.message_label_clickable,
ul.filters a {
.message_header_stream a.message_label_clickable {
color: #333;
}
ul.filters hr {
margin-top: 10px;
margin-bottom: 10px;
}
li.active-filter,
li.active-sub-filter {
font-weight: 600 !important;
background: #ddedf6;
position: relative;
}
li.hidden-filter {
visibility: hidden;
display: none;
}
ul.filters {
margin-left: 0px;
}
.filter-icon {
display: inline-block;
width: 18px;
text-align: center;
margin-right: 5px;
}
.stream-pin-icon {
margin-right: 4px !important;
margin-left: 3px;
}
#global_filters .global-filter {
position: relative;
padding: 1px 10px;
font-size: 16px;
font-weight: 300;
}
#global_filters .global-filter i {
font-size: 14px;
}
.group-pms-sidebar-entry .selectable_sidebar_block {
width: 235px;
display: block;
@ -688,9 +583,7 @@ ul.filters {
}
.user_sidebar_entry .count,
.group-pms-sidebar-entry .count,
#global_filters .count,
#stream_filters .count {
.group-pms-sidebar-entry .count {
position: absolute;
right: 20px;
top: 4px;
@ -707,113 +600,18 @@ ul.filters {
right: 2px;
}
#stream_filters .count,
#global_filters .count {
margin-left: 0.5em;
display: none;
}
.user_sidebar_entry .count,
.group-pms-sidebar-entry .count,
#global_filters .count
{
.group-pms-sidebar-entry .count {
line-height: 13px;
top: 2px;
}
.subject_count {
display: block;
position: absolute;
line-height: 1em;
right: 20px;
top: 2px;
padding: 2px 3px 0px 3px;
background: #a6ada4;
color: #ffffff;
border-radius: 1px;
font-size: 12px;
font-weight: normal;
letter-spacing: 0.6px;
}
.private_message_count {
display: block;
position: absolute;
line-height: 1em;
right: 10px;
top: 2px;
padding: 2px 3px 0px 3px;
background: #a6ada4;
color: #ffffff;
border-radius: 1px;
font-size: 12px;
font-weight: normal;
letter-spacing: 0.6px;
}
ul.filters i {
padding-right: 0.25em;
/* Make filter icons the same width so labels line up. */
display: inline-block;
width: 13px;
}
li.actual-dropdown-menu i {
/* In gear menu, make icons the same width so labels line up. */
display: inline-block;
width: 14px;
}
ul.filters .arrow {
position: absolute;
right: 0px;
top: 2px;
font-size: 0.8em;
display: none;
}
ul.filters li:hover .arrow {
display: inline;
cursor: pointer;
color: #888;
}
ul.filters li .arrow:hover {
display: inline;
cursor: pointer;
color: #000;
}
ul.filters .topic-sidebar-arrow {
font-size: 0.7em;
top: 1px;
display: none !important;
}
ul.filters li.expanded_subject:hover .topic-sidebar-arrow {
display: inline !important;
cursor: pointer;
color: #888;
}
ul.filters li.expanded_subject .topic-sidebar-arrow:hover {
display: inline;
cursor: pointer;
color: #000;
}
ul.filters li.muted_topic,
ul.filters li.out_of_home_view {
opacity: 0.25;
}
ul.filters li.out_of_home_view li.muted_topic {
/* If stream is muted, this resets opacity of muted topics in muted
stream to 1; since opacity is multiplied down through child
elements, this avoids an unreadable opacity of 0.25^2. */
opacity: 1;
}
.message_area_padder {
/* The height of the header and the tabbar plus a small gap */
margin-top: 68px;
@ -2224,18 +2022,6 @@ div.floating_recipient {
padding-left: 15px;
}
#stream_filters .subscription_block {
padding-bottom: 3px;
line-height: 12px;
padding-top: 4px;
margin-right: 15px;
padding-left: 33px;
}
#stream_filters .subscription_block.stream-with-count {
margin-right: 38px;
}
.subject-name {
display: block;
line-height: 1.3em;
@ -2400,80 +2186,6 @@ button.topic_edit_cancel {
margin-top: -7px;
}
.streamlist_swatch {
display: block;
width: 11px;
height: 11px;
vertical-align: middle;
float: left;
position: absolute;
left: 10px;
top: 5px;
box-shadow: inset 0px 0px 3px -2px #000;
}
.streamlist_swatch.private-stream-swatch {
visibility: hidden;
}
.stream-privacy {
position: absolute;
left: 11px;
top: 3px;
font-size: 15px;
}
ul.expanded_subjects {
list-style-type: none;
font-weight: normal;
margin-left: 0px;
padding-bottom: 2px;
}
ul.expanded_private_messages {
list-style-type: none;
font-weight: 300;
font-size: 84%;
margin-left: 0px;
padding-bottom: 2px;
}
li.show-more-topics,
li.expanded_subject {
position: relative;
padding-left: 33px;
}
li.show-more-private-messages,
li.expanded_private_message {
position: relative;
padding-left: 24px;
padding-bottom: 1px;
padding-top: 2px;
}
.show-all-streams a {
color: #333;
}
.all-streams-padding {
padding-top: 5px;
margin-bottom: -5px;
}
.expanded_subject .subject_box,
#private .expanded_private_message .subject_box {
display: block;
margin-right: 38px;
}
.expanded_subject.zero-subject-unreads .subject_box,
#private .expanded_private_messages.zero-subject-unreads .subject_box {
display: block;
margin-right: 15px;
}
.twitter-tweet {
border: 1px solid #ddd;
padding: .5em .75em;
@ -2589,17 +2301,7 @@ li.expanded_private_message {
display: none;
}
.zoom-out #topics_header {
display: none;
}
#global_filters {
margin-bottom: 20px;
}
#topics_header,
#userlist-header,
#sharethelove-header,
#group-pm-header {
border-top: 1px solid #e2e2e2;
margin-top: 5px;
@ -2610,15 +2312,6 @@ li.expanded_private_message {
border-top: none;
}
#streams_header {
margin-right: 0px;
padding-left: 10px;
}
#stream_filters .inactive_stream {
opacity: .5;
}
#feedback_section {
text-align: left;
padding-bottom: 10px;
@ -2760,10 +2453,6 @@ li.expanded_private_message {
cursor: pointer;
}
.zero_count {
display: none;
}
.message-pane {
padding-left: 0.3em;
}
@ -2783,6 +2472,7 @@ li.expanded_private_message {
#tutorial-subject {
width: 250px;
}
.tutorial-done-button {
text-align: right;
margin-top: 9px;
@ -2795,77 +2485,6 @@ li.expanded_private_message {
margin-right: 25px;
}
#share-the-love {
margin-left: 0px;
margin-right: 0px;
margin-bottom: 5px;
line-height: 18px;
display: none;
}
#share-the-love-contents {
display: none;
}
#share-the-love-expand-collapse {
position: relative;
cursor: pointer;
}
#share-the-love-expand-collapse h4 {
padding-left: 1em;
}
#share-the-love-expand-collapse .toggle {
position: absolute;
left: 0px;
top: 50%;
margin-top: -8px;
}
#share-the-love input,
#share-the-love p {
margin-top: 5px;
margin-bottom: 5px;
}
#referral-form label {
margin: 0;
}
#share-the-love .icon-vector-heart {
color: red;
}
#share-the-love .still-have-invites {
clear: both;
margin-right: 10px;
}
#share-the-love .no-more-invites {
clear: both;
display: none;
margin-right: 10px;
}
#share-the-love .invite-count-area {
margin-right: 10px;
}
#share-the-love .alert {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
#referral-form {
margin-bottom: 0;
}
#tell-a-friend-success {
display: none;
}
.deactivated_user {
text-decoration: line-through;
}
@ -2874,30 +2493,6 @@ li.expanded_private_message {
display: none;
}
li.show-more-topics a {
font-size: 75%;
}
li.show-more-private-messages a {
font-size: 90%
}
.zoom-in .show-more-topics {
display: none;
}
.zoom-in .show-more-private-messages {
display: none;
}
.zoom-out .zoom-out-hide {
display: none;
}
.zoom-in .zoom-in-hide {
display: none;
}
.user-list-filter ,
.add-user-list-filter {
width: 80%;

View File

@ -664,6 +664,7 @@ PIPELINE = {
'styles/settings.css',
'styles/subscriptions.css',
'styles/compose.css',
'styles/left-sidebar.css',
'styles/overlay.css',
'styles/pygments.css',
'styles/thirdparty-fonts.css',
@ -682,6 +683,7 @@ PIPELINE = {
'styles/settings.css',
'styles/subscriptions.css',
'styles/compose.css',
'styles/left-sidebar.css',
'styles/overlay.css',
'styles/pygments.css',
'styles/thirdparty-fonts.css',