From f05fcef7dbe21618ff01f9213ff11aa82ac31302 Mon Sep 17 00:00:00 2001 From: Evert Date: Sun, 25 Sep 2016 21:48:35 +0300 Subject: [PATCH] settings --- public/css/main.css | 70 ++++++++++++-- public/image/settings.svg | 4 +- public/index.html | 25 ++++- public/js/main.js | 195 +++++++++++++++++++++++++++++++++----- public/main.styl | 72 +++++++++++--- server/irc.js | 2 +- 6 files changed, 317 insertions(+), 51 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index b6865c9..1fb2650 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -51,6 +51,8 @@ body { padding: 15px; background-color: #f7f7f7; border: 1px solid #dadada; + -webkit-box-shadow: 4px 4px 18px #d6d6d6; + -moz-box-shadow: 4px 4px 18px #d6d6d6; box-shadow: 4px 4px 18px #d6d6d6; } .ircclient .coverwindow .wrapper .msg.error { @@ -68,6 +70,8 @@ body { width: 300px; border-radius: 5px; border: 1px solid #d2d2d2; + -webkit-box-shadow: inset 2px 2px 4px #dcdcdc; + -moz-box-shadow: inset 2px 2px 4px #dcdcdc; box-shadow: inset 2px 2px 4px #dcdcdc; } .ircclient .coverwindow .wrapper input[type="submit"] { @@ -93,6 +97,9 @@ body { background: -webkit-linear-gradient(top, #c4effc 0%, #7fd5ef 40%, #39b7dd 100%); background: linear-gradient(to bottom, #c4effc 0%, #7fd5ef 40%, #39b7dd 100%); } +.ircclient #chat { + overflow: hidden; +} .ircclient #chat .ircwrapper { position: absolute; width: 100%; @@ -103,20 +110,36 @@ body { background-color: #00c7e0; position: relative; z-index: 15; + -webkit-box-shadow: 2px 2px 4px #cecece; + -moz-box-shadow: 2px 2px 4px #cecece; box-shadow: 2px 2px 4px #cecece; } -.ircclient #chat .ircwrapper .toolbar .logo { - width: 56px; - height: 56px; +.ircclient #chat .ircwrapper .toolbar .open_settings { + width: 36px; + height: 36px; display: inline-block; - margin: 0 5px; + position: absolute; + right: 10px; + top: 10px; + cursor: pointer; + background-image: url("../image/settings.svg"); + background-repeat: no-repeat; + background-size: contain; + -webkit-transition: transform 0.2s linear; + -moz-transition: transform 0.2s linear; + -ms-transition: transform 0.2s linear; + -o-transition: transform 0.2s linear; + transition: transform 0.2s linear; +} +.ircclient #chat .ircwrapper .toolbar .open_settings:hover { + transform: rotateZ(-90deg); } .ircclient #chat .ircwrapper .toolbar .tabby { display: inline-block; height: 56px; position: absolute; - left: 60px; - right: 0; + right: 45px; + left: 0; white-space: nowrap; overflow-x: auto; overflow-y: hidden; @@ -130,8 +153,15 @@ body { padding: 10px; line-height: 25px; background-color: #29e1ff; + -webkit-transition: background-color 0.2s linear; + -moz-transition: background-color 0.2s linear; + -ms-transition: background-color 0.2s linear; + -o-transition: background-color 0.2s linear; + transition: background-color 0.2s linear; border-radius: 5px; border: 1px solid #00d0ea; + -webkit-box-shadow: inset 4px 4px 8px #44ebff; + -moz-box-shadow: inset 4px 4px 8px #44ebff; box-shadow: inset 4px 4px 8px #44ebff; color: #fff; cursor: pointer; @@ -143,6 +173,8 @@ body { height: 18px; background-color: #bf0000; border: 1px solid #b00; + -webkit-box-shadow: inset 2px 2px 3px #f00; + -moz-box-shadow: inset 2px 2px 3px #f00; box-shadow: inset 2px 2px 3px #f00; text-align: center; font-size: 12px; @@ -158,15 +190,19 @@ body { width: 12px; text-align: center; color: #ff3d3d; - float: right; + margin-left: 5px; } .ircclient #chat .ircwrapper .toolbar .tabby .tab:hover { background-color: #63e9ff; + -webkit-box-shadow: inset 4px 4px 8px #86f2ff; + -moz-box-shadow: inset 4px 4px 8px #86f2ff; box-shadow: inset 4px 4px 8px #86f2ff; } .ircclient #chat .ircwrapper .toolbar .tabby .tab.active { background-color: #00b9d8; border: 1px solid #009aad; + -webkit-box-shadow: inset 4px 4px 8px #009caf; + -moz-box-shadow: inset 4px 4px 8px #009caf; box-shadow: inset 4px 4px 8px #009caf; color: #fff; } @@ -223,6 +259,7 @@ body { overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; + padding: 5px; } .ircclient #chat .ircwrapper .chatarea .nicklist { width: 280px; @@ -263,6 +300,23 @@ body { width: 25px; display: inline-block; } +.ircclient #chat .ircwrapper .chatarea .settings { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + padding: 20px; + width: 60%; + min-width: 360px; + margin: auto; + overflow: auto; +} +.ircclient #chat .ircwrapper .chatarea .settings .grade1, +.ircclient #chat .ircwrapper .chatarea .settings .grade2, +.ircclient #chat .ircwrapper .chatarea .settings .grade3 { + text-align: left; +} .ircclient #chat .ircwrapper .chatarea.vnicks .nicklist { display: block; } @@ -310,6 +364,8 @@ body { font-size: 120%; border: 1px solid #929292; border-left: 0; + -webkit-box-shadow: inset 4px 4px 8px #d8d8d8; + -moz-box-shadow: inset 4px 4px 8px #d8d8d8; box-shadow: inset 4px 4px 8px #d8d8d8; } .ircclient #chat .ircwrapper .input .sendbutton { diff --git a/public/image/settings.svg b/public/image/settings.svg index bbe7c2b..44ea38d 100644 --- a/public/image/settings.svg +++ b/public/image/settings.svg @@ -23,9 +23,9 @@ c4.4,3.1,10.2,3.3,14.8,0.6c13-7.8,27.1-13.8,41.8-17.6c5.1-1.4,9-5.6,9.9-10.8l7.2-42.3c0.2-1.3,1.3-2.2,2.6-2.2h42.1 c1.3,0,2.4,0.9,2.6,2.2l7,41.7c0.9,5.3,4.8,9.6,10,10.9c15.1,3.8,29.5,9.7,42.9,17.6c4.6,2.7,10.3,2.5,14.7-0.6l34.5-24.8 c0.5-0.3,1-0.5,1.5-0.5c0.4,0,1.2,0.1,1.9,0.8l29.8,29.8c0.9,0.9,1,2.3,0.3,3.4l-24.7,34.7c-3.1,4.3-3.3,10.1-0.6,14.7 - c7.8,13.1,13.6,27.2,17.4,41.9c1.3,5.2,5.6,9.1,10.8,9.9l42,7.1c1.3,0.2,2.2,1.3,2.2,2.6v42.1H451.9z"/> + c7.8,13.1,13.6,27.2,17.4,41.9c1.3,5.2,5.6,9.1,10.8,9.9l42,7.1c1.3,0.2,2.2,1.3,2.2,2.6v42.1H451.9z" fill="#FFFFFF"/> + z M239.4,315.601c-42.1,0-76.3-34.2-76.3-76.3s34.2-76.3,76.3-76.3s76.3,34.2,76.3,76.3S281.5,315.601,239.4,315.601z" fill="#FFFFFF"/> diff --git a/public/index.html b/public/index.html index 5c07391..e6050a9 100644 --- a/public/index.html +++ b/public/index.html @@ -40,16 +40,33 @@