From 6a8f1a0a918d00063eca8b432b1f597ea8454be6 Mon Sep 17 00:00:00 2001 From: Bachurin Sergey Date: Fri, 27 Mar 2015 19:01:36 +0200 Subject: [PATCH] css --- project/static/css/style.css | 14 +++++++++----- project/static/img/left-arrow.png | Bin 0 -> 289 bytes project/static/img/sign-email.png | Bin 688 -> 756 bytes project/static/js/commons.js | 3 +++ project/static/js/docs/list.panels.js | 2 +- project/templates/docs/_base/base_list.html | 2 +- project/templates/menu/menu.html | 6 +++--- 7 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 project/static/img/left-arrow.png diff --git a/project/static/css/style.css b/project/static/css/style.css index 7ef7a38..330b02a 100644 --- a/project/static/css/style.css +++ b/project/static/css/style.css @@ -325,7 +325,7 @@ input[type=text], input[type=number], input[type=email], input[type=password], t .client-form .bank-header {color:#646669;font-weight:bold;text-align:center;margin:15px 0;} /*.client-form .buttons { padding: 10px 0 6px 33px; }*/ -.profile-table {width:100%;overflow:hidden;border-collapse: separate; display:table;border-spacing:15px;background:url(../img/darker-bg.png);padding-bottom:85px;} +.profile-table {width:100%;overflow:hidden;border-collapse: separate; display:table;border-spacing:15px;background:url(../img/darker-bg.png);margin-bottom:85px;} .profile-row {display:table-row;} .profile-col1 {width: 785px;margin-right:15px;} .profile-col2 {width: 370px;} @@ -372,7 +372,8 @@ ul { clear: both; list-style: none; margin: 0; padding: 0; } .doc-panel a.email-link {background:url(../img/sign-email.png)left center no-repeat;} .doc-panel a.edit-link {background:url(../img/sign-edit.png)left center no-repeat;} .doc-panel a.delete-link {background:url(../img/icon-delete.png)7px center no-repeat;} -.doc-panel .doc-panel-header {background:#f7f7f7;padding:10px 18px;font-size:16px;} +.doc-panel .doc-panel-header {background:#f7f7f7;padding:5px 18px;font-size:16px;} +.doc-panel .doc-panel-header:first-child {border-bottom:1px solid #dedede;} .preview-col2 .doc-panel {box-sizing:border-box;} a.delete { vertical-align: top; } @@ -504,7 +505,8 @@ a.delete { vertical-align: top; } .docs-content-wrapper {border:#dedede 1px solid;border-bottom:none;overflow: hidden;position:relative;} .docs-content-wrapper table.list {border:none;} table.list {border-collapse: collapse;border:#dedede 1px solid;border-bottom:none;width: 100%;} -table.list tr:nth-child(odd) {background: #f7f7f7;} +.docs-content-wrapper table.list tr.doc-row {height:50px;} +table.list tr:nth-child(even) {background: #f7f7f7;} table.list tr th {text-align: left;font-size:12px;color:#646669;padding:7px 10px 7px 10px;border-right:#dedede 1px solid;border-bottom:#dedede 1px solid;border-top:none;background: #f7f7f7;} table.list tr th:last-child {border-right:none;} table.list tr th a {font-size:12px;color:#646669;text-decoration:none;} @@ -546,8 +548,10 @@ div.blockMsg { width: 100%; height: 100%; top: 0; left: 0; text-align: center; } #menu ul li span{color:#fed13e;} #menu ul li.selected{background:url('../img/menu-selected.png') #313942 no-repeat bottom center; } #menu ul li.selected a{color:#fed13e;} -#menu .other_docs_menu {position:absolute;top:50px;z-index:50;} -#menu .other_docs_menu li {display:block;} +#menu .other_docs_menu {position:absolute;top:50px;z-index:50;border:1px #51575f solid;} +#menu .other_docs_menu li {display:block;padding:0;background:#454c54;border-top:1px solid #363b43;} +#menu .other_docs_menu li:first-child {border-top:none;} +#menu .other_docs_menu li a {line-height:50px;padding-left:10px;display:inline-block;width:100%;} .preview-wrapper {width:1200px;background:url(../img/darker-bg.png);margin-bottom:70px;} .preview {width:785px;height:500px;overflow:scroll;float:left;margin:15px 0 15px 15px;} diff --git a/project/static/img/left-arrow.png b/project/static/img/left-arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..2768b7cd824d349a0d5a3a2cd5307fd7e5a4f4c4 GIT binary patch literal 289 zcmV++0p9+JP)ainSh=|B9XC-EQKfV06xMlSgy5AJ-7<55K&2` zQXSEFJbr|M7I+4Oy87~rU5g=!u}tUT5?q7#HkeMQH*x8*jEsZL&HlLm0WV~*pkaci%aGm5@PM*oS=a}2l$l?Na3gkLi_e1n&;~cu z+Q(s=T094ZF|t!psbex^5A zK)cG&DE(aEK(M7L0jI{(UR2?tW*D= zh1U{k=3TF|VIq95F>s)$_p~f&k;QNrmPynBeM&fWP2J%dd~cYTnQ%xMY0+4@(NBm* zh4`v}Ok|pUF}fz6^>sE>!gxD75ouzwW<}WZQ81^&sXfFGpnAhjO`#Aw&61%vNq0=?43l}YdqGhgHs8J9_LM}8^`XEUy#*cBX{SG`AF2mL9cxOED8{wU~ z?|I&Hp7(eYj^iZZ794{`XM1BO{DEGV4-bam2-Hi=8YBvo+<)J@1ZH6n{sog&Kqs6G zh$%$ufMWOn&)~Pe*bd*6d_+GwE+K0LXhj;HOGHZ6IB!DkK?8h-CHMpj&*cT-Lxdfs2;RUW_@VU{=+PyaH6fSOjy-S+e!_S7 z1s~xM>{Cf|4SzG_JUoF{+QV{Pg=?@&YbjqynHKE9GmwF==4N;Ym2g;X+Kg|KN@54; zgE6hwstV^|S$UG#LcD+(^b M07*qoM6N<$f}M^c^8f$< diff --git a/project/static/js/commons.js b/project/static/js/commons.js index bd67dbd..c1eca14 100644 --- a/project/static/js/commons.js +++ b/project/static/js/commons.js @@ -29,6 +29,9 @@ $(document).ready(function() { }); $('#other_docs').mouseover(function(e){ $('.other_docs_menu').show(); + var other_width = $('#other_docs').width(); + console.log(other_width); + $('.other_docs_menu').css({width: other_width}); }); $('.other_docs_menu').mouseout(function(e){ $('.other_docs_menu').hide(); diff --git a/project/static/js/docs/list.panels.js b/project/static/js/docs/list.panels.js index 2e9eaa8..7bfeff8 100644 --- a/project/static/js/docs/list.panels.js +++ b/project/static/js/docs/list.panels.js @@ -26,7 +26,7 @@ $(document).ready(function() { // show only specifil panel and show and adjust pointer coords, and hide filters doc_rows.mouseenter(function() { var row = $(this); - var row_vertical_shift = 8; // predefined const: depends on tr top/bottom paddings + var row_vertical_shift = -30; // predefined const: depends on tr top/bottom paddings var row_pos = row.position(); row_pointer.css({ diff --git a/project/templates/docs/_base/base_list.html b/project/templates/docs/_base/base_list.html index 2850227..e03e25b 100644 --- a/project/templates/docs/_base/base_list.html +++ b/project/templates/docs/_base/base_list.html @@ -81,7 +81,7 @@
diff --git a/project/templates/menu/menu.html b/project/templates/menu/menu.html index 2d0fa18..5d1add6 100644 --- a/project/templates/menu/menu.html +++ b/project/templates/menu/menu.html @@ -46,13 +46,13 @@ {% else %} {% endif %}