Skip to content

Commit

Permalink
Fixed LunaCat css styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jul 24, 2019
1 parent 68eed9b commit 182c92c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions themes/chatview/psi/LunnaCat_Classic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
%scripts%
<style type="text/css" media="screen,print">
%styles%
<style type="text/css" media="screen,print" id="themeStyle">

/* скролл-бар*/
body::-webkit-scrollbar {
Expand Down Expand Up @@ -124,13 +125,14 @@
function startPsiTheme(shared) {
var util = shared.chat.util;

var cssBody = util.findStyleSheet(document.styleSheets[0], "body").style;
var cssSentMsg = util.findStyleSheet(document.styleSheets[0], ".sent").style;
var cssReceivedMsg = util.findStyleSheet(document.styleSheets[0], ".received").style;
var cssInfMsg = util.findStyleSheet(document.styleSheets[0], ".infmsg").style;
var cssUserText = util.findStyleSheet(document.styleSheets[0], ".usertext").style;
var cssChatSays = util.findStyleSheet(document.styleSheets[0], ".msg>span:first").style;
var cssAlertMsg = util.findStyleSheet(document.styleSheets[0], ".alert").style;
var themeStyle = document.getElementById("themeStyle").sheet;
var cssBody = util.findStyleSheet(themeStyle, "body").style;
var cssSentMsg = util.findStyleSheet(themeStyle, ".sent").style;
var cssReceivedMsg = util.findStyleSheet(themeStyle, ".received").style;
var cssInfMsg = util.findStyleSheet(themeStyle, ".infmsg").style;
var cssUserText = util.findStyleSheet(themeStyle, ".usertext").style;
var cssChatSays = util.findStyleSheet(themeStyle, ".msg>span:first").style;
var cssAlertMsg = util.findStyleSheet(themeStyle, ".alert").style;
var useMessageIcons, messageIconsSize = 0;
var colorMap = {
"options.ui.look.colors.messages.sent" : cssSentMsg,
Expand Down

0 comments on commit 182c92c

Please sign in to comment.