Make channel list links clickable on full width, simplify code
- Close button and badge are now positioned using the same method. Previously one was float and the other was absolutely positioned. - Increase the close button size to match 2.4.0, as it was made smaller when moving to the native font stack. - Removed link margins on left/right of the channel links, and the `1px` gap between links. - Removed hack/fix for drag-and-drop now made unnecessary
This commit is contained in:
parent
713d2c14e5
commit
4dc3769b18
@ -475,7 +475,7 @@ kbd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#sidebar .networks {
|
#sidebar .networks {
|
||||||
padding: 20px 30px 0;
|
padding-top: 20px;
|
||||||
touch-action: pan-y;
|
touch-action: pan-y;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -498,17 +498,9 @@ kbd {
|
|||||||
#sidebar .chan,
|
#sidebar .chan,
|
||||||
#sidebar .chan-placeholder {
|
#sidebar .chan-placeholder {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 1px -10px;
|
padding: 8px 25px;
|
||||||
padding: 6px 10px 8px 36px;
|
|
||||||
position: relative;
|
|
||||||
text-align: left;
|
|
||||||
transition: color 0.2s;
|
transition: color 0.2s;
|
||||||
width: 180px;
|
width: 100%;
|
||||||
left: auto !important; /* Fix for drag'n'drop not recalculating left position */
|
|
||||||
}
|
|
||||||
|
|
||||||
#sidebar .chan-placeholder {
|
|
||||||
padding-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar .chan:first-child {
|
#sidebar .chan:first-child {
|
||||||
@ -524,16 +516,12 @@ kbd {
|
|||||||
|
|
||||||
#sidebar .chan::before,
|
#sidebar .chan::before,
|
||||||
#chat .title::before {
|
#chat .title::before {
|
||||||
float: left;
|
|
||||||
margin-top: 3px;
|
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar .chan::before {
|
#sidebar .chan::before {
|
||||||
position: absolute;
|
float: left;
|
||||||
top: 4px;
|
line-height: 18px;
|
||||||
left: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#chat .title::before {
|
#chat .title::before {
|
||||||
@ -559,19 +547,27 @@ kbd {
|
|||||||
content: " ";
|
content: " ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sidebar .badge,
|
||||||
|
#sidebar .close {
|
||||||
|
float: right;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar .badge {
|
#sidebar .badge {
|
||||||
background: rgba(255, 255, 255, 0.06);
|
background: rgba(255, 255, 255, 0.06);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
color: #afb6c0;
|
color: #afb6c0;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
margin-right: -5px;
|
|
||||||
margin-left: 5px;
|
|
||||||
padding: 3px 6px;
|
padding: 3px 6px;
|
||||||
float: right;
|
|
||||||
transition: opacity 0.2s, background-color 0.2s, color 0.2s;
|
transition: opacity 0.2s, background-color 0.2s, color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sidebar .badge:empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#sidebar .badge.highlight {
|
#sidebar .badge.highlight {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: #49505a;
|
color: #49505a;
|
||||||
@ -584,22 +580,18 @@ kbd {
|
|||||||
|
|
||||||
#sidebar .close {
|
#sidebar .close {
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
margin-right: 5px;
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
position: absolute;
|
|
||||||
z-index: 2;
|
|
||||||
right: 0;
|
|
||||||
transition: opacity 0.2s, background-color 0.2s;
|
transition: opacity 0.2s, background-color 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sidebar .close::before {
|
#sidebar .close::before {
|
||||||
font-size: 18px;
|
font-size: 20px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
line-height: 18px;
|
line-height: 16px;
|
||||||
width: 18px;
|
|
||||||
height: 18px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
content: "×";
|
content: "×";
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
Loading…
Reference in New Issue
Block a user