### Backup Attachments with Domain Filters Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_backup_attachment/README.rst This section provides examples of domain filters used to specify which attachments should be backed up. It demonstrates how to exclude certain MIME types and models, and how to match specific fields. ```python [ ("mimetype", "not in", ["image/png", "image/jpeg", "application/pdf"]) ] ``` ```python [ ('res_model', "not ilike", 'product'), ('res_model', '!=', 'export.attachment'), ('res_field', 'like', '%') ] ``` -------------------------------- ### Backup Attachments with Domain Filter Example Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_backup_attachment/static/description/index.html Demonstrates how to use domain filters to select attachments for backup. The examples show excluding specific MIME types and filtering by model and field names. ```Odoo Domain [("mimetype","not in",["image/png", "image/jpeg","application/pdf"])] ``` ```Odoo Domain [(‘res_model’,’not ilike’,’product’),(‘res_model’,’!=’,’export.attachment’),(‘res_field’,’like’,’%’)] ``` -------------------------------- ### Run Selected Followups (Python) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_followup/README.rst Executes specific follow-up items based on their 'Code' identifier. This allows for targeted execution of follow-up tasks, for example, by passing a list of codes like ['12D', '20D']. ```python model.run_followup(["12D", "20D"]) ``` -------------------------------- ### Start CRON Trigger (start_cron_trigger) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_queue_job/static/description/index.html Provides functionality for automatically activating and triggering CRON jobs. This method ensures jobs are executed in the background. ```Python def start_cron_trigger(self): """Ensure a job will be executed in the background.""" # Implementation details for starting CRON triggers ``` -------------------------------- ### Start CRON Trigger for Job Execution Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_queue_job/readme/DESCRIPTION.md Provides functionality for automatically activating and triggering CRON jobs, including the `start_cron_trigger` method to ensure jobs execute in the background. ```python def start_cron_trigger(self): """Ensures a job will be executed in the background.""" # Implementation details for starting CRON trigger pass ``` -------------------------------- ### Run All Followups (Python) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_followup/README.rst Executes all configured follow-up items using the followup.send.wizard model. This is the standard method for running all pending follow-up tasks. ```python model.run_followup() ``` -------------------------------- ### Admonition and System Message Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_vendor_stock/static/description/index.html Styles for admonition blocks (notes, warnings, etc.) and system messages, including borders, padding, font styles, and error highlighting. ```css div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } div.admonition p.admonition-title, div.hint p.admonition-title, div.important p.admonition-title, div.note p.admonition-title, div.tip p.admonition-title { font-weight: bold ; font-family: sans-serif } div.attention p.admonition-title, div.caution p.admonition-title, div.danger p.admonition-title, div.error p.admonition-title, div.warning p.admonition-title, .code .error { color: red ; font-weight: bold ; font-family: sans-serif } /* Uncomment (and remove this text!) to get reduced vertical space in compound paragraphs. */ /* div.compound .compound-first, div.compound .compound-middle { margin-bottom: 0.5em } */ /* div.compound .compound-last, div.compound .compound-middle { margin-top: 0.5em } */ div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.figure { margin-left: 2em ; margin-right: 2em } div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.sidebar { margin: 0 0 0.5em 1em ; border: medium outset ; padding: 1em ; background-color: #ffffee ; width: 40% ; float: right ; clear: right } div.sidebar p.rubric { font-family: sans-serif ; font-size: medium } div.system-messages { margin: 5em } div.system-messages h1 { color: red } div.system-message { border: medium outset ; padding: 1em } div.system-message p.system-message-title { color: red ; font-weight: bold } ``` -------------------------------- ### Start CRON Trigger - Odoo Python Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_queue_job/README.rst Provides functionality for automatically activating and triggering CRON jobs. This method ensures that scheduled jobs are executed in the background as intended. ```python def start_cron_trigger(self): """Ensure a job will be executed in the background.""" pass ``` -------------------------------- ### CSS: Definition List Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_invoice_picking/static/description/index.html Provides styling for definition lists, including an option to make terms bold. It also handles the margin and padding for abstract and dedication sections. ```css /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ div.abstract { margin: 2em 5em } div.abstract p.topic-title { font-weight: bold ; text-align: center } ``` -------------------------------- ### Admonition and Message Styling (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_website_sale_sort/static/description/index.html Styles for admonition blocks (notes, warnings, errors, etc.) and system messages. This includes borders, padding, and specific color/font styling for titles. ```css div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } div.admonition p.admonition-title, div.hint p.admonition-title, div.important p.admonition-title, div.note p.admonition-title, div.tip p.admonition-title { font-weight: bold ; font-family: sans-serif } div.attention p.admonition-title, div.caution p.admonition-title, div.danger p.admonition-title, div.error p.admonition-title, div.warning p.admonition-title, .code .error { color: red ; font-weight: bold ; font-family: sans-serif } /* Uncomment (and remove this text!) to get reduced vertical space in compound paragraphs. div.compound .compound-first, div.compound .compound-middle { margin-bottom: 0.5em } div.compound .compound-last, div.compound .compound-middle { margin-top: 0.5em } */ div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.figure { margin-left: 2em ; margin-right: 2em } div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.sidebar { margin: 0 0 0.5em 1em ; border: medium outset ; padding: 1em ; background-color: #ffffee ; width: 40% ; float: right ; clear: right } div.sidebar p.rubric { font-family: sans-serif ; font-size: medium } div.system-messages { margin: 5em } div.system-messages h1 { color: red } div.system-message { border: medium outset ; padding: 1em } div.system-message p.system-message-title { color: red ; font-weight: bold } ``` -------------------------------- ### Style Definition List Terms (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_business_process_handover_document/static/description/index.html Sets definition list terms to be bold. ```css /* Uncomment (and remove this text!) to get bold-faced definition list terms */ dl.docutils dt { font-weight: bold } ``` -------------------------------- ### Admonition and Sidebar Styling (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_sale_multiple_website/static/description/index.html Provides styling for various admonition types (attention, caution, danger, etc.), including borders, padding, and font styles for titles. It also styles sidebar elements, including their background color and float behavior. ```css div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } div.admonition p.admonition-title, div.hint p.admonition-title, div.important p.admonition-title, div.note p.admonition-title, div.tip p.admonition-title { font-weight: bold ; font-family: sans-serif } div.attention p.admonition-title, div.caution p.admonition-title, div.danger p.admonition-title, div.error p.admonition-title, div.warning p.admonition-title, .code .error { color: red ; font-weight: bold ; font-family: sans-serif } /* Uncomment (and remove this text!) to get reduced vertical space in compound paragraphs. div.compound .compound-first, div.compound .compound-middle { margin-bottom: 0.5em } div.compound .compound-last, div.compound .compound-middle { margin-top: 0.5em } */ div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.figure { margin-left: 2em ; margin-right: 2em } div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.sidebar { margin: 0 0 0.5em 1em ; border: medium outset ; padding: 1em ; background-color: #ffffee ; width: 40% ; float: right ; clear: right } div.sidebar p.rubric { font-family: sans-serif ; font-size: medium } div.system-messages { margin: 5em } div.system-messages h1 { color: red } div.system-message { border: medium outset ; padding: 1em } div.system-message p.system-message-title { color: red ; font-weight: bold } ``` -------------------------------- ### Typography and Alignment Styles (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_invoice_payment/static/description/index.html Provides styles for subscript, superscript text, and table of contents back-references. Also includes rules for quote blocks and definition list spacing. ```css .subscript { vertical-align: sub; font-size: smaller } .superscript { vertical-align: super; font-size: smaller } a.toc-backref { text-decoration: none ; color: black } blockquote.epigraph { margin: 2em 5em } dl.docutils dd { margin-bottom: 0.5em } ``` -------------------------------- ### List and Definition Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_report_packaging/static/description/index.html Styles for definition lists and simple ordered/unordered lists, including different list-style types. ```css dl.docutils dd { margin-bottom: 0.5em } ol.simple, ul.simple { margin-bottom: 1em } ol.arabic { list-style: decimal } ol.loweralpha { list-style: lower-alpha } ol.upperalpha { list-style: upper-alpha } ol.lowerroman { list-style: lower-roman } ol.upperroman { list-style: upper-roman } ``` -------------------------------- ### Docutils CSS: Alignment and List Formatting Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_mrp_simple/static/description/index.html Provides styling for aligning content within figures, tables, and text blocks. Also includes rules for different list styles (ordered and unordered) and attribution formatting. ```css div.line-block { display: block; margin-top: 1em; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0; margin-bottom: 0; margin-left: 1.5em } div.sidebar { margin: 0 0 0.5em 1em; border: medium outset; padding: 1em; background-color: #ffffee; width: 40%; float: right; clear: right } div.sidebar p.rubric { font-family: sans-serif; font-size: medium } div.topic { margin: 2em } h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em } h1.title { text-align: center } h2.subtitle { text-align: center } hr.docutils { width: 75% } img.align-left, .figure.align-left, object.align-left, table.align-left { clear: left; float: left; margin-right: 1em } img.align-right, .figure.align-right, object.align-right, table.align-right { clear: right; float: right; margin-left: 1em } img.align-center, .figure.align-center, object.align-center { display: block; margin-left: auto; margin-right: auto; } table.align-center { margin-left: auto; margin-right: auto; } .align-left { text-align: left } .align-center { clear: both; text-align: center } .align-right { text-align: right } /* reset inner alignment in figures */ div.align-right { text-align: inherit } /* div.align-center * { */ /* text-align: left } */ .align-top { vertical-align: top } .align-middle { vertical-align: middle } .align-bottom { vertical-align: bottom } ol.simple, ul.simple { margin-bottom: 1em } ol.arabic { list-style: decimal } ol.loweralpha { list-style: lower-alpha } ol.upperalpha { list-style: upper-alpha } ol.lowerroman { list-style: lower-roman } ol.upperroman { list-style: upper-roman } p.attribution { text-align: right; margin-left: 50% } p.caption { font-style: italic } p.credits { font-style: italic; font-size: smaller } p.label { white-space: nowrap } p.rubric { font-weight: bold; font-size: larger; color: maroon; text-align: center } p.sidebar-title { font-family: sans-serif; font-weight: bold; font-size: larger } p.sidebar-subtitle { font-family: sans-serif; font-weight: bold } p.topic-title { font-weight: bold } pre.address { m ``` -------------------------------- ### Style Admonition Boxes (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_business_process_handover_document/static/description/index.html General styling for admonition boxes (notes, warnings, etc.), including margins, border, and padding. ```css div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } ``` -------------------------------- ### Basic CSS for Docutils HTML Output Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_purchase_picking_status/static/description/index.html This CSS snippet provides fundamental styling for Docutils HTML output, covering elements like borders, padding, alignment, and typography. It's designed to enhance the visual presentation of documentation generated by Docutils. No external dependencies are required. ```css /* :Author: David Goodger (goodger@python.org) :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. */ /* used to remove borders from tables and images */ .borderless, table.borderless td, table.borderless th { border: 0 } table.borderless td, table.borderless th { /* Override padding for "table.docutils td" with "! important". The right padding separates the table cells. */ padding: 0 0.5em 0 0 ! important } .first { /* Override more specific margin styles with "! important". */ margin-top: 0 ! important } .last, .with-subtitle { margin-bottom: 0 ! important } .hidden { display: none } .subscript { vertical-align: sub; font-size: smaller } .superscript { vertical-align: super; font-size: smaller } a.toc-backref { text-decoration: none ; color: black } blockquote.epigraph { margin: 2em 5em ; } dl.docutils dd { margin-bottom: 0.5em } object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { overflow: hidden; } /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ div.abstract { margin: 2em 5em } div.abstract p.topic-title { font-weight: bold ; text-align: center } div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } div.admonition p.admonition-title, div.hint p.admonition-title, div.important p.admonition-title, div.note p.admonition-title, div.tip p.admonition-title { font-weight: bold ; font-family: sans-serif } div.attention p.admonition-title, div.caution p.admonition-title, div.danger p.admonition-title, div.error p.admonition-title, div.warning p.admonition-title, .code .error { color: red ; font-weight: bold ; font-family: sans-serif } /* Uncomment (and remove this text!) to get reduced vertical space in compound paragraphs. div.compound .compound-first, div.compound .compound-middle { margin-bottom: 0.5em } div.compound .compound-last, div.compound .compound-middle { margin-top: 0.5em } */ div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.figure { margin-left: 2em ; margin-right: 2em } div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.sidebar { margin: 0 0 0.5em 1em ; border: medium outset ; padding: 1em ; background-color: #ffffee ; width: 40% ; float: right ; clear: right } div.sidebar p.rubric { font-family: sans-serif ; font-size: medium } div.system-messages { margin: 5em } div.system-messages h1 { color: red } div.system-message { border: medium outset ; padding: 1em } div.system-message p.system-message-title { color: red ; font-weight: bold } div.topic { margin: 2em } h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em } h1.title { text-align: center } h2.subtitle { text-align: center } hr.docutils { width: 75% } img.align-left, .figure.align-left, object.align-left, table.align-left { clear: left ; float: left ; margin-right: 1em } img.align-right, .figure.align-right, object.align-right, table.align-right { clear: right ; float: right ; margin-left: 1em } img.align-center, .figure.align-center, object.align-center { display: block; margin-left: auto; margin-right: auto; } table.align-center { margin-left: auto; margin-right: auto; } .align-left { text-align: left } .align-center { clear: both ; text-align: center } .align-right { text-align: right } /* reset inner alignment in figures */ div.align-right { text-align: inherit } /* div.align-center * { */ /* text-align: left } */ .align-top { vertical-align: top } .align-middle { vertical-align: middle } .align-bottom { vertical-align: bottom } ol.simple, ul.simple { margin-bottom: 1em } ol.arabic { list-style: decimal } ol.loweralpha { list-style: lower-alpha } ol.upperalpha { list-style: upper-alpha } ol.lowerroman { list-style: lower-roman } ol.upperroman { list-style: upper-roman } p.attribution { text-align: right ; margin-left: 50% } p.caption { font-style: italic } p.credits { font-style: italic ; font-size: smaller } p.label { white-space: nowrap } p.rubric { font-weight: bold ; font-size: larger ; color: maroon ; text-align: center } p.sidebar-title { font-family: sans-serif ; font-weight: bold ; font-size: larger } p.sidebar-subtitle { font-family: sans-serif ; font-weight: bold } p.topic-title { font-weight: bold } ``` -------------------------------- ### Basic CSS for Docutils HTML Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_price_change/static/description/index.html This snippet covers fundamental CSS rules for Docutils HTML output, including styles for borders, padding, margins, and basic typography. It demonstrates how to manage element spacing and visual presentation. ```css /* used to remove borders from tables and images */ .borderless, table.borderless td, table.borderless th { border: 0 } table.borderless td, table.borderless th { /* Override padding for "table.docutils td" with "! important". The right padding separates the table cells. */ padding: 0 0.5em 0 0 ! important } .first { /* Override more specific margin styles with "! important". */ margin-top: 0 ! important } .last, .with-subtitle { margin-bottom: 0 ! important } .hidden { display: none } .subscript { vertical-align: sub; font-size: smaller } .superscript { vertical-align: super; font-size: smaller } a.toc-backref { text-decoration: none ; color: black } blockquote.epigraph { margin: 2em 5em ; } dl.docutils dd { margin-bottom: 0.5em } object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { overflow: hidden; } ``` -------------------------------- ### Docutils CSS: Typography and Block Elements Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_mrp_simple/static/description/index.html Styles for various text and block elements, including blockquotes, definition lists, and abstract/dedication sections. Also includes styles for figures and headers/footers. ```css blockquote.epigraph { margin: 2em 5em; } dl.docutils dd { margin-bottom: 0.5em } object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { overflow: hidden; } /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ div.abstract { margin: 2em 5em } div.abstract p.topic-title { font-weight: bold; text-align: center } div.dedication { margin: 2em 5em; text-align: center; font-style: italic } div.dedication p.topic-title { font-weight: bold; font-style: normal } div.figure { margin-left: 2em; margin-right: 2em } div.footer, div.header { clear: both; font-size: smaller } ``` -------------------------------- ### Attribution, Caption, and Rubric Styling (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_product_trade_markup/static/description/index.html Styles for attribution, caption, credits, label, and rubric elements. Includes text alignment, font style, font size, and color properties. ```css p.attribution { text-align: right; margin-left: 50% } p.caption { font-style: italic } p.credits { font-style: italic; font-size: smaller } p.label { white-space: nowrap } p.rubric { font-weight: bold; font-size: larger; color: maroon; text-align: center } p.sidebar-title { font-family: sans-serif; font-weight: bold; font-size: larger } p.sidebar-subtitle { font-family: sans-serif; font-weight: bold } p.topic-title { font-weight: bold } ``` -------------------------------- ### CSS: Admonition and Topic Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_replenish/static/description/index.html Styles various admonition blocks (note, warning, etc.) and topic containers like abstract and dedication. Includes specific styling for admonition titles and system messages. ```css /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ div.abstract { margin: 2em 5em } div.abstract p.topic-title { font-weight: bold ; text-align: center } div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } div.admonition p.admonition-title, div.hint p.admonition-title, div.important p.admonition-title, div.note p.admonition-title, div.tip p.admonition-title { font-weight: bold ; font-family: sans-serif } div.attention p.admonition-title, div.caution p.admonition-title, div.danger p.admonition-title, div.error p.admonition-title, div.warning p.admonition-title, .code .error { color: red ; font-weight: bold ; font-family: sans-serif } /* Uncomment (and remove this text!) to get reduced vertical space in compound paragraphs. div.compound .compound-first, div.compound .compound-middle { margin-bottom: 0.5em } div.compound .compound-last, div.compound .compound-middle { margin-top: 0.5em } */ div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.figure { margin-left: 2em ; margin-right: 2em } div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.sidebar { margin: 0 0 0.5em 1em ; border: medium outset ; padding: 1em ; background-color: #ffffee ; width: 40% ; float: right ; clear: right } div.sidebar p.rubric { font-family: sans-serif ; font-size: medium } div.system-messages { margin: 5em } div.system-messages h1 { color: red } div.system-message { border: medium outset ; padding: 1em } div.system-message p.system-message-title { color: red ; font-weight: bold } div.topic { margin: 2em } h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em } h1.title { text-align: center } h2.subtitle { text-align: center } hr.docutils { width: 75% } ``` -------------------------------- ### Epigraph and Definition List Styling CSS Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_gln/static/description/index.html CSS for styling epigraphs and definition lists. 'blockquote.epigraph' sets margins, and 'dl.docutils dd' adjusts bottom margin for definition descriptions. Includes commented-out styles for bold definition terms. ```css blockquote.epigraph { margin: 2em 5em ; } dl.docutils dd { margin-bottom: 0.5em } /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ ``` -------------------------------- ### Style Topic Sections (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_business_process_handover_document/static/description/index.html Sets margins for general topic sections. ```css div.topic { margin: 2em } ``` -------------------------------- ### CSS: Line Block and Topic Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_invoice_picking/static/description/index.html Styles line blocks for preserving whitespace and indentation, and topics for general section formatting. Also styles section subtitles for improved readability. ```css div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.topic { margin: 2em } h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em } ``` -------------------------------- ### Styling for Hyperlinks and Blockquotes Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_sale_activity_search/static/description/index.html Provides styling for hyperlinks, specifically for table of contents back-references, and for blockquotes used for epigraphs. This enhances the readability and visual structure of linked content and quotations. ```css a.toc-backref { text-decoration: none ; color: black } blockquote.epigraph { margin: 2em 5em ; } ``` -------------------------------- ### Docutils CSS: Definition Lists and SVG/Flash Objects Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_picking_split/static/description/index.html Styles for definition lists, including optional bolding for terms. Also includes styling for SVG and Flash objects, specifically to handle overflow. ```css dl.docutils dd { margin-bottom: 0.5em } object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { overflow: hidden; } /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ ``` -------------------------------- ### Definition List Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_sale_activity_search/static/description/index.html Customizes the appearance of definition lists, including indentation for descriptions and an option to make definition terms bold. This improves the clarity and organization of glossary-like content. ```css dl.docutils dd { margin-bottom: 0.5em } /* Uncomment (and remove this text!) to get bold-faced definition list terms */ dl.docutils dt { font-weight: bold } ``` -------------------------------- ### CSS Styles for Docutils HTML Output Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_sale_transfer/static/description/index.html This CSS snippet defines styles for various elements in the HTML output generated by Docutils. It covers layout, typography, and visual presentation of standard document components. ```css /* :Author: David Goodger (goodger@python.org) :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. */ /* used to remove borders from tables and images */ .borderless, table.borderless td, table.borderless th { border: 0 } table.borderless td, table.borderless th { /* Override padding for "table.docutils td" with "! important". The right padding separates the table cells. */ padding: 0 0.5em 0 0 ! important } .first { /* Override more specific margin styles with "! important". */ margin-top: 0 ! important } .last, .with-subtitle { margin-bottom: 0 ! important } .hidden { display: none } .subscript { vertical-align: sub; font-size: smaller } .superscript { vertical-align: super; font-size: smaller } a.toc-backref { text-decoration: none ; color: black } blockquote.epigraph { margin: 2em 5em ; } dl.docutils dd { margin-bottom: 0.5em } object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { overflow: hidden; } /* Uncomment (and remove this text!) to get bold-faced definition list terms */ /* dl.docutils dt { font-weight: bold } */ div.abstract { margin: 2em 5em } div.abstract p.topic-title { font-weight: bold ; text-align: center } div.admonition, div.attention, div.caution, div.danger, div.error, div.hint, div.important, div.note, div.tip, div.warning { margin: 2em ; border: medium outset ; padding: 1em } div.admonition p.admonition-title, div.hint p.admonition-title, div.important p.admonition-title, div.note p.admonition-title, div.tip p.admonition-title { font-weight: bold ; font-family: sans-serif } div.attention p.admonition-title, div.caution p.admonition-title, div.danger p.admonition-title, div.error p.admonition-title, div.warning p.admonition-title, .code .error { color: red ; font-weight: bold ; font-family: sans-serif } /* Uncomment (and remove this text!) to get reduced vertical space in compound paragraphs. */ /* div.compound .compound-first, div.compound .compound-middle { margin-bottom: 0.5em } */ /* div.compound .compound-last, div.compound .compound-middle { margin-top: 0.5em } */ div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.figure { margin-left: 2em ; margin-right: 2em } div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } div.sidebar { margin: 0 0 0.5em 1em ; border: medium outset ; padding: 1em ; background-color: #ffffee ; width: 40% ; float: right ; clear: right } div.sidebar p.rubric { font-family: sans-serif ; font-size: medium } div.system-messages { margin: 5em } div.system-messages h1 { color: red } div.system-message { border: medium outset ; padding: 1em } div.system-message p.system-message-title { color: red ; font-weight: bold } div.topic { margin: 2em } h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em } h1.title { text-align: center } h2.subtitle { text-align: center } hr.docutils { width: 75% } img.align-left, .figure.align-left, object.align-left, table.align-left { clear: left ; float: left ; margin-right: 1em } img.align-right, .figure.align-right, object.align-right, table.align-right { clear: right ; float: right ; margin-left: 1em } img.align-center, .figure.align-center, object.align-center { display: block; margin-left: auto; margin-right: auto; } table.align-center { margin-left: auto; margin-right: auto; } .align-left { text-align: left } .align-center { clear: both ; text-align: center } .align-right { text-align: right } /* reset inner alignment in figures */ div.align-right { text-align: inherit } /* div.align-center * { text-align: left }*/ .align-top { vertical-align: top } .align-middle { vertical-align: middle } .align-bottom { vertical-align: bottom } ol.simple, ul.simple { margin-bottom: 1em } ol.arabic { list-style: decimal } ol.loweralpha { list-style: lower-alpha } ol.upperalpha { list-style: upper-alpha } ol.lowerroman { list-style: lower-roman } ol.upperroman { list-style: upper-roman } p.attribution { text-align: right ; margin-left: 50% } p.caption { font-style: italic } p.credits { font-style: italic ; font-size: smaller } p.label { white-space: nowrap } p.rubric { font-weight: bold ; font-size: larger ; color: maroon ; text-align: center } p.sidebar-title { font-family: sans-serif ; font-weight: bold ; font-size: larger } p.sidebar-subtitle { font-family: sans-serif ; font-weight: bold } p.topic-title { font-weight: bold } pre. ``` -------------------------------- ### Definition List Styling (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_notification_sound/static/description/index.html Customizes the spacing and font-weight for definition lists (dl.docutils). ```css dl.docutils dd { margin-bottom: 0.5em } /* Uncomment (and remove this text!) to get bold-faced definition list terms */ dl.docutils dt { font-weight: bold } ``` -------------------------------- ### Style Caption, Credits, and Label (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_business_process_handover_document/static/description/index.html Sets font style for captions and credits, and ensures no white-space wrapping for labels. ```css p.caption { font-style: italic } p.credits { font-style: italic ; font-size: smaller } p.label { white-space: nowrap } ``` -------------------------------- ### CSS: Header, Footer, and Line Block Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_pricelist_line_viewer/static/description/index.html Styles for document headers and footers, ensuring they are cleared and have a smaller font size. Also styles line blocks for maintaining line breaks and indentation. ```css div.footer, div.header { clear: both; font-size: smaller } div.line-block { display: block ; margin-top: 1em ; margin-bottom: 1em } div.line-block div.line-block { margin-top: 0 ; margin-bottom: 0 ; margin-left: 1.5em } ``` -------------------------------- ### Definition List Term Styling (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_sale_pallet/static/description/index.html Provides a commented-out style to make definition list terms bold. ```css /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold } */ ``` -------------------------------- ### CSS: List Styling and Attribution Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_invoice_picking/static/description/index.html Styles ordered and unordered lists with different numbering/bullet styles and formats blockquotes for attributions with right alignment and reduced width. ```css ol.simple, ul.simple { margin-bottom: 1em } ol.arabic { list-style: decimal } ol.loweralpha { list-style: lower-alpha } ol.upperalpha { list-style: upper-alpha } ol.lowerroman { list-style: lower-roman } ol.upperroman { list-style: upper-roman } p.attribution { text-align: right ; margin-left: 50% } ``` -------------------------------- ### Definition List Styling (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_stock_negative/static/description/index.html Styles for definition lists, including margin for descriptions and optional bolding for terms. ```css dl.docutils dd { margin-bottom: 0.5em } /* Uncomment (and remove this text!) to get bold-faced definition list terms */ /* dl.docutils dt { font-weight: bold } */ ``` -------------------------------- ### CSS: Definition List and Object Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_cash/static/description/index.html Styles definition lists by managing bottom margin for descriptions. It also handles object elements, specifically those with 'image/svg+xml' or 'application/x-shockwave-flash' types, by hiding overflow content. Includes a commented-out rule to make definition list terms bold. ```css dl.docutils dd { margin-bottom: 0.5em } object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { overflow: hidden; } /* Uncomment (and remove this text!) to get bold-faced definition list terms dl.docutils dt { font-weight: bold }*/ ``` -------------------------------- ### Text Alignment and Centering (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_invoice_payment/static/description/index.html Provides alignment classes for text content. Includes specific rules for centering elements that might otherwise inherit different alignments. ```css .align-left { text-align: left } .align-center { clear: both ; text-align: center } .align-right { text-align: right } /* reset inner alignment in figures */ div.align-right { text-align: inherit } ``` -------------------------------- ### Docutils CSS: Basic Styling and Layout Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_mrp_simple/static/description/index.html Core CSS rules for Docutils HTML output, including borderless tables, padding adjustments, and margin control for first/last elements. Also defines styles for hidden elements and subscript/superscript text. ```css /* used to remove borders from tables and images */ .borderless, table.borderless td, table.borderless th { border: 0 } table.borderless td, table.borderless th { /* Override padding for "table.docutils td" with "! important". The right padding separates the table cells. */ padding: 0 0.5em 0 0 ! important } .first { /* Override more specific margin styles with "! important". */ margin-top: 0 ! important } .last, .with-subtitle { margin-bottom: 0 ! important } .hidden { display: none } .subscript { vertical-align: sub; font-size: smaller } .superscript { vertical-align: super; font-size: smaller } ``` -------------------------------- ### Layout and Structural Styling (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_website_sale_sort/static/description/index.html Provides styling for document structure, including titles, subtitles, section headings, horizontal rules, and image/figure alignment. ```css h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { margin-top: 0.4em } h1.title { text-align: center } h2.subtitle { text-align: center } hr.docutils { width: 75% } img.align-left, .figure.align-left, object.align-left, table.align-left { clear: left ; float: left ; margin-right: 1em } img.align-right, .figure.align-right, object.align-right, table.align-right { clear: right ; float: right ; margin-left: 1em } img.align-center, .figure.align-center, object.align-center { display: block; margin-left: auto; margin-right: auto; } table.align-center { margin-left: auto; margin-right: auto; } .align-left { text-align: left } .align-center { clear: both ; text-align: center } .align-right { text-align: right } /* reset inner alignment in figures */ div.align-right { text-align: inherit } /* div.align-center * { text-align: left } */ .align-top { vertical-align: top } .align-middle { vertical-align: middle } .align-bottom { vertical-align: bottom } ``` -------------------------------- ### Styling for Blockquotes and Definition Lists (CSS) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_product_trade_markup/static/description/index.html Defines styles for blockquotes with the 'epigraph' class and definition lists ('dl.docutils'). It includes specific margin and font-weight settings. ```css blockquote.epigraph { margin: 2em 5em; } dl.docutils dd { margin-bottom: 0.5em } /* Uncomment (and remove this text!) to get bold-faced definition list terms */ /* dl.docutils dt { font-weight: bold } */ ``` -------------------------------- ### List Styling (Simple, Arabic, Alpha, Roman) Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_sale_activity_search/static/description/index.html Styles ordered and unordered lists, including basic lists, numbered lists (Arabic numerals, lower/upper alpha, lower/upper roman), and ensures proper margins for simple lists. ```css ol.simple, ul.simple { margin-bottom: 1em } ol.arabic { list-style: decimal } ol.loweralpha { list-style: lower-alpha } ol.upperalpha { list-style: upper-alpha } ol.lowerroman { list-style: lower-roman } ol.upperroman { list-style: upper-roman } ``` -------------------------------- ### Topic and Dedication Styling Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_reccurent_task_activity/static/description/index.html Styles for general topics, dedications, and their titles. ```css div.dedication { margin: 2em 5em ; text-align: center ; font-style: italic } div.dedication p.topic-title { font-weight: bold ; font-style: normal } div.topic { margin: 2em } ``` -------------------------------- ### Style document abstract sections Source: https://github.com/dhongu/deltatech/blob/17.0/deltatech_sale_fix_followers/static/description/index.html Applies specific margins and centers the topic title for abstract sections. This styles the introductory summary of a document. ```css div.abstract { margin: 2em 5em } div.abstract p.topic-title { font-weight: bold ; text-align: center } ```