Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVE] Remove dangling side-nav styles #13584

Merged
merged 1 commit into from
Feb 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
355 changes: 0 additions & 355 deletions packages/rocketchat_theme/client/imports/general/base_old.css
Original file line number Diff line number Diff line change
Expand Up @@ -1173,361 +1173,6 @@ rc-old select,
}
}

.rc-old .side-nav {
position: fixed;
z-index: 100;
top: 0;
bottom: 0;
left: 0;

overflow: visible;

width: var(--rooms-box-width);
height: auto;
padding: 12px 0 0;
will-change: transform;

&::before {
position: absolute;
top: 59px;
left: 8px;

width: 189px;
height: 1px;

content: " ";
}

& .rooms-list {
position: absolute;
top: calc(var(--header-min-height) + var(--toolbar-height));
bottom: var(--footer-min-height);

display: block;
overflow-x: hidden;
overflow-y: auto;

width: 100%;
direction: rtl;
-webkit-overflow-scrolling: touch;

& > .wrapper {
position: relative;

padding-bottom: 1em;
padding-left: 8px;
direction: ltr;
}
}

& .more {
display: block;

width: 100%;
margin-top: 2px;
padding: 4px 0 4px 10px;

font-size: 11px;
}

& .input-error {
margin-top: -12px;
margin-bottom: -20px;
padding: 0;

text-align: left;

font-size: 12px;

& strong {
display: block;

margin-bottom: 2px;
}
}

& .empty {
padding: 2px 10px;

font-size: 11px;
}

& .header {
position: absolute;
z-index: 3;
top: 0;
left: 0;

width: 100%;
height: var(--header-min-height);
min-height: var(--header-min-height);

cursor: pointer;
}

& > .arrow {
position: absolute;
z-index: 3;
top: 18px;
right: 8px;

cursor: pointer;
}

& .footer {
position: absolute;
z-index: 2;
bottom: 0;
left: 0;

width: 100%;
height: var(--footer-min-height);
min-height: var(--footer-min-height);
padding: 10px 15px 0;

text-align: right;

& .logo {
display: block;

width: 100%;
height: 100%;
margin-top: -1px;

&:hover {
text-decoration: none;
}
}

& small {
display: block;

width: 100%;
margin-top: 2px;
margin-bottom: 0;
padding-right: 4px;

text-transform: lowercase;

font-size: 11px;
font-weight: 400;
}

& img {
display: inline-block;

max-width: 222px;
max-height: 43px;
}
}

& .search-form > div {
position: relative;
}

& h3 {
position: relative;

margin: 25px 0 0;
padding-left: 10px;

text-transform: uppercase;

font-weight: 500;
line-height: 28px;
}

& .unread {
position: absolute;
top: 6px;
right: 6px;

min-width: 15px;
padding: 0 2px;

text-align: center;

border-radius: 2px;

font-size: 11px;
font-weight: 800;
line-height: 14px;
}

& ul {
position: relative;

& li {
overflow: hidden;

max-width: 100%;

vertical-align: middle;
white-space: nowrap;
text-overflow: ellipsis;

& .remove,
& .erase {
position: absolute;
top: 2px;
right: -18px;

display: block;

transition: opacity 0.15s ease 0.35s, transform 0.12s ease-out 0.35s;
transform: translateX(-10px);

opacity: 0;
}

&:hover .opt {
transform: translateX(0);

opacity: 1;
}

&.has-unread .opt {
opacity: 0;
}

&.has-alert .name {
font-weight: bold;
}
}

& a {
position: relative;

display: block;
overflow: hidden;

max-width: 100%;
padding: 6px 25px 7px 6px;

vertical-align: middle;
white-space: nowrap;
text-decoration: none;
text-overflow: ellipsis;

border-radius: 2px 0 0 2px;

font-size: 15px;
line-height: 16px;

&:hover {
text-decoration: none;
}

& .archived {
font-style: italic;
}
}

& .opt {
position: absolute;
top: 7px;
right: 0;

display: block;

width: 50px;
padding-right: 10px;

transition: opacity 0.12s ease;
text-align: right;

opacity: 0;

& i {
margin: 0 1px;
}

& .icon-cancel-circled::before {
margin-left: 2px;
}

& .icon-logout {
margin-left: 1px;
}

&.fixed {
transform: translateX(0);

opacity: 1;
}
}

& i {
display: inline-block;

width: 16px;

font-size: 14px;
}

& input[type="text"] {
width: 100%;

font-size: 12px;
}
}

& .unread-rooms {
position: absolute;
z-index: 1;

display: -webkit-flex;
display: flex;

width: 100%;

text-align: center;
text-transform: uppercase;

font-weight: bold;
line-height: 24px;
align-items: center;
justify-content: center;

&.top-unread-rooms {
top: calc(var(--header-min-height) + var(--toolbar-height));
}

&.bottom-unread-rooms {
bottom: var(--footer-min-height);
}

& i {
margin-left: 5px;

font-size: 12px;
}
}

& .unread-rooms-mode,
& .unread-rooms-mode + ul {
overflow: hidden;

max-height: 0;
margin: 0;

opacity: 0;
}

& .unread-rooms-mode.has-unread {
margin: 25px 0 0;
}

& .unread-rooms-mode.has-unread,
& .unread-rooms-mode.has-unread + ul {
max-height: 5000px;

transition: max-height 1s ease-in, opacity 0.5s linear;

opacity: 1;
}
}

.rc-old .toolbar {
position: absolute;
z-index: 2;
Expand Down
Loading