From e65ffc9f5a28939c5ef5efb6e77477e1e473d420 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 21 Mar 2014 16:56:25 +0400 Subject: [PATCH] New dialogs panel --- app/css/app.css | 71 ++++++++++++++++++++++++++++++++++++------ app/partials/head.html | 1 - app/partials/im.html | 20 ++++++++++-- 3 files changed, 78 insertions(+), 14 deletions(-) diff --git a/app/css/app.css b/app/css/app.css index 342e9ca9..a3a7a0b5 100644 --- a/app/css/app.css +++ b/app/css/app.css @@ -283,6 +283,11 @@ input[type="number"]::-webkit-inner-spin-button { overflow: hidden; } +.dropdown-menu > li > a { + padding: 3px 14px; + font-size: 13px; +} + .modal-backdrop { background: #111111; } @@ -510,10 +515,14 @@ input[type="number"]::-webkit-inner-spin-button { border-radius : 0; } -.im_dialogs_search { +.im_dialogs_panel { padding: 14px 12px; position: relative; } +.im_dialogs_search { + margin-right: 48px; + position: relative; +} .im_dialogs_search_field { font-size: 12px; line-height: normal; @@ -535,7 +544,7 @@ input[type="number"]::-webkit-inner-spin-button { .im_dialogs_search_clear { position: absolute; - right: 19px; + right: 9px; margin-top: -23px; color: #999; width: 13px; @@ -552,6 +561,22 @@ input[type="number"]::-webkit-inner-spin-button { opacity: 1; } +.im_dialogs_panel_dropdown { + position: absolute; + right: 12px; +} + +.im_dialogs_panel_dropdown .dropdown-menu { + border-radius: 2px; + right: auto; + left: 0; + margin-top: 8px; + padding: 0; + -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.175); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.175); +} + + .im_dialogs_wrap { @@ -781,10 +806,6 @@ a.im_dialog:hover .im_dialog_date { margin-left: 5px; } -.im_history_panel_media_dropdown .dropdown-menu > li > a { - font-size: 13px; -} - .icon-caret { width: 8px; height: 4px; @@ -811,9 +832,6 @@ a.im_dialog:hover .im_dialog_date { -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.175); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.175); } -.dropdown-menu > li > a { - padding: 3px 14px; -} .im_history_wrap { @@ -2569,4 +2587,37 @@ ce671b orange } .tooltip-arrow { opacity: 0.8; -} \ No newline at end of file +} + + +.im_dialogs_panel_dropdown { + margin-left: 8px; +} + +.im_dialogs_panel_dropdown .dropdown-toggle { + background: #F2F2F2; + display: block; + border-radius: 2px; + overflow: hidden; + padding: 11px 12px; + width: 38px; + height: 34px; +} +.im_dialogs_panel_dropdown .dropdown-toggle .icon-bar { + background: #b3b3b3; + display: block; + height: 2px; + margin-bottom: 3px; +} +.im_dialogs_panel_dropdown .dropdown-toggle .icon-bar:last-child { + margin-bottom: 0; +} + + + +.im_dialogs_panel_dropdown.open .dropdown-toggle { + background: #6690b0; +} +.im_dialogs_panel_dropdown.open .dropdown-toggle .icon-bar { + background: #fff; +} diff --git a/app/partials/head.html b/app/partials/head.html index 031909a0..3bc7b618 100644 --- a/app/partials/head.html +++ b/app/partials/head.html @@ -28,7 +28,6 @@