diff --git a/docs/zdgbook/Products.rst b/docs/zdgbook/Products.rst index b551314e94..ffd0218215 100644 --- a/docs/zdgbook/Products.rst +++ b/docs/zdgbook/Products.rst @@ -833,31 +833,8 @@ When creating management views you should include the DTML variables ``manage_page_footer`` at the bottom. These variables are acquired by your product and draw a standard management view header, tabs widgets, and footer. The management header also includes CSS -information which you can take advantage of if you wish to add CSS -style information to your management views. The management CSS -information is defined in the -`lib/python/App/dtml/manage_page_style.css.dtml`` file. Here are the -CSS classes defined in this file and conventions for their use. - -- 'form-help' -- Explanatory text related to forms. In the future, - users may have the option to hide this text. - -- 'std-text' -- Declarative text unrelated to forms. You should - rarely use this class. - -- 'form-title' -- Form titles. - -- 'form-label' -- Form labels for required form elements. - -- 'form-optional' -- Form labels for optional form elements. - -- 'form-element' -- Form elements. Note, because of a Netscape bug, - you should not use this class on 'textarea' elements. - -- 'form-text' -- Declarative text in forms. - -- 'form-mono' -- Fixed width text in forms. You should rarely use - this class. +information which you can take advantage of. You can use any of the styles +Twitter Bootstrap 4 provides. (See https://getbootstrap.com/docs/4.0) Here's an example management view for your poll class. It allows you to edit the poll question and responses (see ``editPollForm.dtml``):: diff --git a/src/App/Management.py b/src/App/Management.py index 4b1417c058..776e36cdcd 100644 --- a/src/App/Management.py +++ b/src/App/Management.py @@ -186,8 +186,4 @@ def manage_zmi_logout(self, REQUEST, RESPONSE): # Navigation doesn't have an inherited __class_init__ so doesn't get # initialized automatically. -file = DTMLFile('dtml/manage_page_style.css', globals()) -Navigation.security.declarePublic('manage_page_style.css') -setattr(Navigation, 'manage_page_style.css', file) - InitializeClass(Navigation) diff --git a/src/App/dtml/manage_page_header.dtml b/src/App/dtml/manage_page_header.dtml index 66aa9f9c76..2e954442a4 100644 --- a/src/App/dtml/manage_page_header.dtml +++ b/src/App/dtml/manage_page_header.dtml @@ -7,8 +7,6 @@ - -h1 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 24pt; - font-weight: bold; -} - -h2 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 18pt; - font-weight: bold; -} - -h3 { - font-family: Verdana, Helvetica, sans-serif; - font-size: 14pt; - font-weight: bold; -} - -a:hover { - font-family: Verdana, Helvetica, sans-serif; - text-decoration: underline; - color: #333333; -} - -a:link { - font-family: Verdana, Helvetica, sans-serif; - text-decoration: none; - color: #000099; -} - -a { - font-family: Verdana, Helvetica, sans-serif; - text-decoration: none; - color: #000099; -} - -a.strong-link { - font-family: Verdana, Helvetica, sans-serif; - text-decoration: underline; - color: #000099; -} - -a img { - border: 0; -} - -p { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -th { - font-family: Verdana, Helvetica, sans-serif; - font-weight: bold; - font-size: 10pt; - color: #333333; -} - -form { - margin-bottom: 1em; -} - -.form-help { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -.std-text { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -.tab-small { - font-family: Verdana, Helvetica, sans-serif; - font-size: 8pt; - color: #333333; -} - -.location-bar { - background-color: #efefef; - border: none; -} - -.strong-header { - font-family: Verdana, Helvetica, sans-serif; - font-size: 12pt; - font-weight: bold; - background-color: #000000; - color: #ffffff; -} - -.list-header { - background-color: #c0c0c0; - border: none; -} - -.list-item { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; -} - -.list-nav { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - font-weight: bold; -} - -.row-normal { - background-color: #ffffff; - border: none; -} - -.row-hilite { - background-color: #efefef; - border: none; -} - -.section-bar { - background-color: #c0c0c0; - border: none; -} - -.system-msg { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - background-color: #ffffff; - border: 1px solid #000000; - margin-bottom: 6px; - margin-top: 6px; - padding: 4px; - color: #660033; -} - -.form-title { - font-family: Verdana, Helvetica, sans-serif; - font-weight: bold; - font-size: 12pt; - color: #333333; -} - -.form-label { - font-family: Verdana, Helvetica, sans-serif; - font-weight: bold; - font-size: 10pt; - color: #333333; -} - -.form-optional { - font-family: Verdana, Helvetica, sans-serif; - font-weight: bold; - font-style: italic; - font-size: 10pt; - color: #333333; -} - -.form-element { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; -} - -.form-text { - font-family: Verdana, Helvetica, sans-serif; - font-size: 10pt; - color: #333333; -} - -.form-mono { - font-family: monospace; - font-size: 12px; - text-decoration: none; -} diff --git a/src/App/interfaces.py b/src/App/interfaces.py index 5a0841ad04..a8aee9c0fb 100644 --- a/src/App/interfaces.py +++ b/src/App/interfaces.py @@ -30,8 +30,6 @@ class INavigation(Interface): def manage_zmi_logout(REQUEST, RESPONSE): """Logout current user""" -INavigation.setTaggedValue('manage_page_style.css', Attribute(""" """)) - class IRenderZMIEvent(Interface): """ZMI is rendered."""