From 32e486bfb8f30459ed11a56068d17559e736e3e1 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Tue, 22 Apr 2014 07:52:14 -0700 Subject: [PATCH] Removing mobile interface --- client/css/style.css | 72 -------------------------------------------- client/index.html | 7 ----- client/js/chat.js | 13 -------- 3 files changed, 92 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 148fb22c..b68e2243 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -245,75 +245,3 @@ h2 { #chat .topic .type:after { content: ":"; } - -@media screen and (max-device-width: 480px) { - #wrap { - overflow: hidden; - height: 100%; - position: relative; - width: 100%; - } - #viewport { - -webkit-transition: -webkit-transform .2s ease-out; - transition: transform .2s ease-out; - -webkit-transform: translateX(0); - transform: translateX(0); - height: 100%; - margin-left: -200px; - width: 100%; - } - #viewport.left { - -webkit-transform: translateX(200px); - transform: translateX(200px); - } - #viewport.right { - -webkit-transform: translateX(-160px); - transform: translateX(-160px); - } - #chat { - width: 100%; - } - #chat .toggle { - display: block; - font-size: 12px; - position: relative; - } - #chat .toggle a { - color: #000; - height: 42px; - line-height: 46px; - margin: 0 10px; - position: absolute; - text-align: center; - } - #chat .toggle .left { - border-left: 0; - left: 0; - } - #chat .toggle .right { - display: none; - border-right: 0; - right: 0; - } - #chat .channel .title, - #chat .channel .messages { - right: 0; - } - #chat .channel .right { - display: inherit; - } - #chat .title { - padding: 0; - text-align: center; - } - #chat .title .btn { - display: none; - } - #chat .users { - bottom: 0; - right: -160px; - } - #chat .users a { - line-height: 1.8em; - } -} diff --git a/client/index.html b/client/index.html index 8be073d4..b7084148 100644 --- a/client/index.html +++ b/client/index.html @@ -74,14 +74,7 @@ {{#each windows}}
-
- Channels - Users -

{{name}}

-
{{partial "#users"}} diff --git a/client/js/chat.js b/client/js/chat.js index 6f921091..73f801af 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -193,11 +193,6 @@ $(function() { badge.html(num); }); - chat.on("click touchstart", ".toggle a", function(e) { - $("#viewport").toggleClass($(this).attr("class")); - return false; - }); - chat.on("submit", "form", function() { var input = $(this).find(".input"); var text = input.val(); @@ -211,14 +206,6 @@ $(function() { }); }); - chat.on("click", ".close", function() { - var id = parseInt($(this).closest(".window").attr("id").replace("window-", "")); - socket.emit("input", { - id: id, - text: "/part", - }); - }); - chat.on("mousedown", ".user", function(e) { return false; });