From: zuber Date: Sat, 22 Aug 2009 22:05:50 +0000 (+0200) Subject: Dodanie toolbara do panelu xmleditor. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/3b370c78b8ac967a56be8321bbd88618a52aa017?ds=sidebyside;hp=--cc Dodanie toolbara do panelu xmleditor. --- 3b370c78b8ac967a56be8321bbd88618a52aa017 diff --git a/project/static/css/master.css b/project/static/css/master.css index 7fa5ddac..8b971142 100644 --- a/project/static/css/master.css +++ b/project/static/css/master.css @@ -129,3 +129,79 @@ label { overflow-y: scroll; } + +/* ==================== */ +/* = XML Editor panel = */ +/* ==================== */ + +#toolbar { + height: 48px; + overflow: hidden; +} + +#toolbar, #toolbar ol, #sidebar-toolbar, #sidebar-toolbar ol { +/* overflow: hidden;*/ + display: block; + margin: 0; + padding: 0; + background-color: #CCC; + border-top: 1px solid #AAA; +} + +#sidebar-toolbar { + width: 0; +} + +#sidebar-toolbar, #sidebar-toolbar ol { + overflow: hidden; +} + +#sidebar-tabs li, #toolbar-tabs li { + font-size: 14px; + display: block; + float: left; + margin: 4px 0 -1px 4px; + padding: 2px 10px 0 10px; + background-color: #CCC; + border: 1px solid #AAA; + border-radius-topleft: 8px; + border-radius-topright: 8px; + -moz-border-radius-topleft: 8px; + -moz-border-radius-topright: 8px; + -webkit-border-top-left-radius: 8px; + -webkit-border-top-right-radius: 8px; +} + +#sidebar-tabs, #toolbar-tabs { + height: 21px; + z-index: 1000; +/* overflow: hidden;*/ +} + +#sidebar-tabs li:hover, #sidebar-tabs li.active, #toolbar-tabs li:hover, #toolbar-tabs li.active { + cursor: default; + background-color: #EEE; + border-bottom: 1px solid #EEE; +} + +#toolbar-buttons { + background-color: #EEE; + border-bottom: 1px solid #AAA; +} + +#toolbar-buttons li { + display: block; + font-size: 12px; + padding: 1px 8px; + margin: 4px; + border-radius: 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 8px; + float: left; +} + +#toolbar-buttons li:hover { + background-color: #777; + color: #FFF; + cursor: default; +} diff --git a/project/templates/explorer/file_xml.html b/project/templates/explorer/file_xml.html index dfbbc56e..093e3044 100644 --- a/project/templates/explorer/file_xml.html +++ b/project/templates/explorer/file_xml.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load toolbar_tags %} {% block extrahead %} @@ -43,28 +42,7 @@
- {# #} - {# #} - {#
#} - {#
#} - {# #} - {#
#} - {# #} - {#
 
#} - {#
#} - {#

Aby zobaczyć obrazki wybierz folder poniżej:

#} - {#

{{ image_folders_form.folders }}

#} - {#
#} - {#
#} - {#
#} - {# #} - {# {% toolbar %} #} {% endblock maincontent %} diff --git a/project/templates/explorer/panels/xmleditor.html b/project/templates/explorer/panels/xmleditor.html index f8d3feff..ef5976c5 100644 --- a/project/templates/explorer/panels/xmleditor.html +++ b/project/templates/explorer/panels/xmleditor.html @@ -1,4 +1,7 @@ +{% load toolbar_tags %} +
+ {% toolbar %}