

Kindly help us in getting a proper hazard statement: Something like shown below

Post by dpksaini89 » Tue Jul 10, 2018 10:01 am
Post by Radu » Tue Jul 10, 2018 3:45 pm
The list of allowed child elements for the howtoavoid according to the DITA 1.3 specification is this one:If howtoavoid field has multiple statements it doesnot allow to insert ordered or un-ordered list.
Post by DennyKim » Fri Aug 10, 2018 3:50 pm
Code: Select all
*[class~"hazard-d/statement"] {
display:block;
background-color:#f57222
border-bottom: 2pt solid;
padding:0.2em;
font-weight:bold
font-size:1.8em
Post by Radu » Mon Aug 13, 2018 8:09 am
Code: Select all
*[class~="hazard-d/hazardstatement"][type='danger'] {
background-color:red;
}
Post by DennyKim » Thu Aug 16, 2018 11:35 am
Code: Select all
*[class~="[color=#0040FF]hazard-d/statement"/hazardstatement[/color]"][type:"[color=#0040FF]notice[/color]"] {
display:block;
background-color:blue;
border-bottom: 2pt solid;
padding:0.4em 0.2em 0.2em 0.8em;
font-weight:bold;
font-size:1.2em
}
/*
* Try to put all caps on the known types.
*/
*[class~="hazard-d/statement"/hazardstatement][type]:before {
content: url("../img/warning-black30.png") " " attr(type);
}
Post by Radu » Thu Aug 16, 2018 1:42 pm
Post by DennyKim » Thu Aug 16, 2018 3:08 pm
Post by Dan » Thu Aug 16, 2018 3:56 pm
Code: Select all
*[class~="hazard-d/hazardstatement"][type="notice"]:before {
content: oxy_uppercase(attr(type));
}
*[class~="hazard-d/hazardstatement"][type="notice"] {
display:block;
background-color:blue;
border-bottom: 2pt solid;
padding:0.4em 0.2em 0.2em 0.8em;
font-weight:bold;
font-size:1.2em
}
Post by DennyKim » Mon Sep 10, 2018 4:31 pm
Code: Select all
*[class~='topic/image' ]{
content:attr(href , url);
}
Code: Select all
+[class~="hazard-d/hazardstatement"][type="notice"] {
display:block;
color:rgb (255,255,255);
background-color: rgb(21, 72, 137);
padding:0.4em;
padding:0.1em;
padding:0.1em;
padding:0.1em;
}
Post by Dan » Thu Sep 13, 2018 10:26 am
Code: Select all
*[class ~= "hazard-d/hazardstatement"][type = "notice"]:before {
content: url("other_notice_icon.png") " NOTICE";
}
Post by dpksaini89 » Mon Apr 29, 2019 2:50 pm
Post by Dan » Mon May 06, 2019 2:28 pm
Code: Select all
*[class~="hazard-d/hazardstatement"]:before{
background-color:inherit;
background-position:0 0;
/* This should be an image with a white left part the same size with the danger symbol and the rest filled with the needed color. It can be a svg.*/
background-image: url("bg-image.png"); /* SIGNAL ORANGE, RAL 2010, No ISO, but appears in the american guidelines */
}
*[class~="hazard-d/hazardstatement"][type="danger"]:before{
background-image: url("bg-image-danger.png"); /* SIGNAL RED RAL 3001, https://en.wikipedia.org/wiki/ISO_3864 */
}
*[class~="hazard-d/hazardstatement"][type="caution"]:before{
background-image: url("bg-image-caution.png"); /* SIGNAL YELLOW RAL 1003, https://en.wikipedia.org/wiki/ISO_3864 */
}
*[class~="hazard-d/hazardstatement"][type="note"]:before{
background-image: url("bg-image-note.png"); /* SIGNAL BLUE RAL 5005, https://en.wikipedia.org/wiki/ISO_3864 */
}
Post by julien_lacour » Fri Nov 20, 2020 5:49 pm
Post by Tygopit » Mon Dec 21, 2020 10:36 am
Code: Select all
*[class~="hazardstatement--danger"] {
content: " " !important;
}
Post by julien_lacour » Mon Dec 21, 2020 10:57 am
Code: Select all
*[class~="hazardstatement--danger"] {
display: none;
}
Post by Tygopit » Mon Dec 21, 2020 11:21 am
Code: Select all
BUILD FAILED
C:\Program Files\Oxygen XML Editor\frameworks\dita\DITA-OT3.x\plugins\org.dita.base\build.xml:29: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Editor\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build.xml:524: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Editor\frameworks\dita\DITA-OT3.x\plugins\com.oxygenxml.pdf.css\build.xml:614: Java returned: 1
Code: Select all
[java] Caused by: org.apache.fop.fo.ValidationException: file:/C:/Users/PC/OneDrive/DOX/LEARN/vb/temp/pdf-css-html5/oxygen_dita_temp/stage1.xml.pp:700:86: "fo:table-row" is missing child elements. Required content model: (table-cell+) (See position 700:86)
Post by julien_lacour » Mon Dec 21, 2020 12:12 pm
Code: Select all
*[class ~= "hazard-d/hazardstatement"][type = "danger"] tr:first-of-type {
display: none;
}
*[class ~= "hazard-d/hazardstatement"][type = "danger"] {
border: unset;
}
Return to “DITA (Editing and Publishing DITA Content)”
This website was created & generated with <oXygen/>®XML Editor