css: style scroll bars

This commit is contained in:
Sebastian Castro 2020-04-07 12:11:38 +02:00 committed by muxator
parent 71a3579ae7
commit a89503a4dd
5 changed files with 36 additions and 20 deletions

View file

@ -2,7 +2,7 @@
z-index: 400; z-index: 400;
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
right: 20px; right: 25px;
border-top-left-radius: 5px; border-top-left-radius: 5px;
border-top-right-radius: 5px; border-top-right-radius: 5px;
display: none; display: none;

View file

@ -1,6 +1,7 @@
@import url("src/layout.css"); @import url("src/layout.css");
@import url("src/pad-editor.css"); @import url("src/pad-editor.css");
@import url("src/components/scrollbars.css");
@import url("src/components/buttons.css"); @import url("src/components/buttons.css");
@import url("src/components/popup.css"); @import url("src/components/popup.css");

View file

@ -48,24 +48,6 @@
background-color: transparent !important; background-color: transparent !important;
} }
#chattext p b {
color: #4c4c4c;
}
#chattext::-webkit-scrollbar-track {
background-color: #f6f6f6;
border: 1px solid #f0f0f0;
}
#chattext::-webkit-scrollbar {
width: 7px;
}
#chattext::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #C5C5C5;
}
#chatbox.stickyChat #chattext { #chatbox.stickyChat #chattext {
padding: 0px; padding: 0px;
} }

View file

@ -0,0 +1,33 @@
@media (min-width: 721px) {
::-webkit-scrollbar-track {
background-color: var(--middle-color);
border-radius: 10px;
border: 7px solid var(--light-soft-color);
}
::-webkit-scrollbar {
width: 22px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: var(--dark-soft-color);
border: 7px solid var(--light-soft-color);
}
}
.thin-scrollbar::-webkit-scrollbar-track {
background-color: var(--light-soft-color);
border-radius: 10px;
border: 5px solid var(--light-color);
}
.thin-scrollbar::-webkit-scrollbar {
width: 17px;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
border-radius: 7px;
background-color: var(--middle-color);
border: 5px solid var(--light-color);
}

View file

@ -373,7 +373,7 @@
<a id="titlecross" class="hide-reduce-btn" onClick="chat.hide();return false;">-&nbsp;</a> <a id="titlecross" class="hide-reduce-btn" onClick="chat.hide();return false;">-&nbsp;</a>
<a id="titlesticky" class="stick-to-screen-btn" onClick="chat.stickToScreen(true);return false;" data-l10n-id="pad.chat.stick.title">&nbsp;&nbsp;</a> <a id="titlesticky" class="stick-to-screen-btn" onClick="chat.stickToScreen(true);return false;" data-l10n-id="pad.chat.stick.title">&nbsp;&nbsp;</a>
</div> </div>
<div id="chattext" class="authorColors" aria-live="polite" aria-relevant="additions removals text" role="log" aria-atomic="false"> <div id="chattext" class="authorColors thin-scrollbar" aria-live="polite" aria-relevant="additions removals text" role="log" aria-atomic="false">
<div alt="loading.." id="chatloadmessagesball" class="chatloadmessages loadingAnimation" align="top"></div> <div alt="loading.." id="chatloadmessagesball" class="chatloadmessages loadingAnimation" align="top"></div>
<button id="chatloadmessagesbutton" class="chatloadmessages" data-l10n-id="pad.chat.loadmessages"></button> <button id="chatloadmessagesbutton" class="chatloadmessages" data-l10n-id="pad.chat.loadmessages"></button>
</div> </div>