Merge pull request #1561 from thelounge/astorije/font-size-fixes

Reduce message size on mobile and increase a bit UI text
This commit is contained in:
Jérémie Astori 2017-09-23 12:07:29 -04:00 committed by GitHub
commit 8268eb03c6

View File

@ -456,14 +456,18 @@ kbd {
#sidebar button, #sidebar button,
#sidebar .chan, #sidebar .chan,
#sidebar .sign-out { #sidebar .sign-out,
border: 1px solid transparent; #sidebar .empty {
border-radius: 2px;
color: #99a2b4; color: #99a2b4;
cursor: pointer;
font-size: 14px; font-size: 14px;
} }
#sidebar button,
#sidebar .chan,
#sidebar .sign-out {
cursor: pointer;
}
#sidebar button:hover, #sidebar button:hover,
#sidebar .chan:hover, #sidebar .chan:hover,
#sidebar .active { #sidebar .active {
@ -471,7 +475,7 @@ kbd {
} }
#sidebar .networks { #sidebar .networks {
padding: 20px 30px 0; padding-top: 20px;
touch-action: pan-y; touch-action: pan-y;
} }
@ -486,28 +490,17 @@ kbd {
} }
#sidebar .empty { #sidebar .empty {
color: #9ca5b4;
line-height: 1.6; line-height: 1.6;
font-size: 12px; padding: 40px 20px;
margin-top: 20px;
padding: 20px 40px;
text-align: center; text-align: center;
} }
#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 {
@ -523,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 {
@ -558,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;
@ -583,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;
@ -1385,7 +1378,6 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
#connect .tls { #connect .tls {
float: left; float: left;
font-size: 14px;
margin-top: 6px; margin-top: 6px;
} }
@ -1452,10 +1444,14 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
display: table-row; display: table-row;
} }
#help .help-item,
#help .about {
font-size: 14px;
}
#help .help-item .subject, #help .help-item .subject,
#help .help-item .description { #help .help-item .description {
display: table-cell; display: table-cell;
font-size: 14px;
padding-bottom: 15px; padding-bottom: 15px;
} }
@ -1469,7 +1465,6 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
} }
#help .about { #help .about {
font-size: 14px;
line-height: 1.8; line-height: 1.8;
} }
@ -2004,8 +1999,20 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
margin-top: 60px !important; margin-top: 60px !important;
} }
#sidebar button,
#sidebar .chan,
#sidebar .sign-out,
#sidebar .empty,
#windows label,
#windows .header .topic,
#settings .error,
#help .help-item,
#help .about,
#loading,
#context-menu,
.textcomplete-menu,
.messages .msg { .messages .msg {
font-size: 16px; font-size: 15px;
} }
#sidebar, #sidebar,