Removing the word Figure and Table from titles in WebHelp but keeping them in PDF
Posted: Wed Nov 13, 2019 5:44 pm
The word Figure (without a number) appears in my Figure titles in WebHelp, and all Table titles are titled as Table 1. The titles and numbering are correct in the PDF output. How do I remove the word Figure and Table 1 so that my Webhelp just has the figure/table title but keep it the way it currently is in the PDF.
Code: Select all
/* Use the WebHelp main CSS */
@import "oxygen.css";
/* Now specific rules for the print output. */
@page :left, :right, table-of-contents:left, table-of-contents:right, chapter:left, chapter:right{
@top-left{
font-size: 10pt;
font-family: Roboto;
}
@top-right{
font-size: 10pt;
font-family: Roboto;
}
}
body {
font-size: 10pt;
}
code {
padding:2px 0;
}
/* The code blocks generate a code inside a pre. Avoid padding on the code, it creates indent of the first line. */
pre{
padding:2px 4px;
}
pre > code{
padding:0;
}
h1 {
color:#3F7BAB;
background-color:white;
text-align:left;
text-transform:none
}
h2, h3 {
color:#3F7BAB;
background-color:white;
text-align:left;
font-style:italic
}
h4 {
color:#3F7BAB;
background-color:#d7d7d7;
font-size:12pt;
font-weight:bold;
font-style:normal
}
*[class~="front-page/front-page"] {
page: front-page;
}
*[class~="front-page/front-page-title"] {
display:block;
text-align:center;
margin-top:3in;
color:#3F7BAB;
font-size:2em;
font-family:arial, helvetica, sans-serif;
font-weight:bold;
}
front-page-title {
background-image: url("images/Shiji_logo.png");
background-repeat:no-repeat;
background-position: 0 center;
padding-left: 110px;
padding-top: 20px;
}
@page front-page {
@top-left-corner { content:none }
@top-left { content:none }
@top-center { content:none }
@top-right { content:none }
@top-right-corner { content:none }
@bottom-left-corner { content:none }
@bottom-left { content:none }
@bottom-center { content:none }
@bottom-right { content:none }
@bottom-right-corner{ content:none }
}
/*-------------------------------
* The default page layout.
*-------------------------------*/
@page :left {
@top-left {
content: string(maptitle) string(parttitle) string(chaptertitle) string(sectiontitle);
}
}
@page :right{
@top-right {
content: string(maptitle) string(parttitle) string(chaptertitle) string(sectiontitle);
}
}
@page :left {
@bottom-left {
content: "Page " counter(page) " of " counter(pages);
font-family: "Arial Narrow", arial, helvetica, sans-serif;
font-size: 8pt;
font-weight: bold;
border-top: 1px solid black;
}
@bottom-right {
content:oxy_xpath("format-date(current-date(), '[M01]/[D01]/[Y0001]')");
font-family: "Arial Narrow", arial, helvetica, sans-serif;
font-size: 8pt;
font-weight: bold;
border-top: 1px solid black;
}
}
@page :right {
@bottom-left {
content:oxy_xpath("format-date(current-date(), '[M01]/[D01]/[Y0001]')");
font-family: "Arial Narrow", arial, helvetica, sans-serif;
font-size: 8pt;
font-weight: bold;
border-top: 1px solid black;
}
@bottom-right {
content: "Page " counter(page) " of " counter(pages);
font-family: "Arial Narrow", arial, helvetica, sans-serif;
font-size: 8pt;
font-weight: bold;
border-top: 1px solid black;
}
}
@page table-of-contents:left {
@top-left {
content: "My publication table of contents | " counter(page, lower-roman);
color:#335EFF;
}
}
@page table-of-contents:right {
@top-right {
content: "My publication table of contents | " counter(page, lower-roman);
color:#335EFF;
}
}
th, td {
padding: 15px;
text-align: left;
page-break-inside: avoid
}
*[class ~= "topic/fig"] {
page-break-inside: avoid
}
/*
* ==============================================
* Skin for oXygen generated WebHelp.
* ==============================================
*/
/*
* ------------------------------------------------------------------
*
* Fonts.
*
*/
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 100;
src: url(resources/fonts/Roboto-Thin.ttf);
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 300;
src: url(resources/fonts/Roboto-Light.ttf);
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url(resources/fonts/Roboto-Regular.ttf);
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: url(resources/fonts/Roboto-Bold.ttf);
}
html, body {
min-width:100%;
}
body{
font-family: 'Roboto', sans-serif;
}
/*
* ------------------------------------------------------------------
*
* Fight with bootstrap
*
*/
.navbar-brand{
height:auto;
}
.navbar {
border:none;
border-radius:0;
margin:0;
}
.wh_header{
background: #3F7BAB none;
background-repeat: repeat;
background-attachment: fixed;
padding: 4em 0;
color: #ffffff;
}
a,
a:hover,
a:visited {
color: #2372de;
}
a:hover{
text-decoration: none;
}
navbar-brand {
height: auto;
}
/*
* ------------------------------------------------------------------
*
* Publication titles
*
*/
.wh_publication_title > a{
color:#fff;
}
/*
* ------------------------------------------------------------------
*
* Menu
*
*/
.wh_top_menu {
text-transform: uppercase;
margin: .4em 0;
font-size: 0.9em;
}
.wh_top_menu a{
color: #fff;
line-height: 2em;
}
/* The submenus */
.wh_top_menu ul ul {
background-color: #333;
}
.wh_top_menu ul li:hover {
background-color: #333;
}
.wh_top_menu ul ul li a:hover {
background: #000;
}
.wh_top_menu ul ul li {
border-top-color: #000;
width: 270px;
text-transform: capitalize;
}
.wh_top_menu ul ul li.has-children:after{
}
/*
* ------------------------------------------------------------------
*
* Link to the index.
*
*/
.wh_indexterms_link a span{
display:none;
}
.wh_indexterms_link a:before{
color:#fff;
}
/*
* ------------------------------------------------------------------
*
* Breadcrumb
*
*/
.wh_breadcrumb ol {
color: #878787;
}
.wh_breadcrumb ol a {
color:inherit;
}
.wh_breadcrumb ol .active {
color: #5185cb;
}
/*
* ------------------------------------------------------------------
*
* Tools and navigation
*
*/
.wh_tools{
background-color: #ECF2F9;
margin: 1em 0 2em;
}
.wh_print_link,
.wh_navigation_links,
.wh_navigation_links .navnext,
.wh_navigation_links .navprev{
}
.webhelp_expand_collapse_sections,
.wh_hide_highlight,
.wh_print_link button,
.wh_navigation_links a,
.wh_navigation_links a:hover,
.wh_navigation_links a:active,
.wh_navigation_links a:visited,
.wh_print_link a:before,
.wh_navigation_links a:before,
.wh_navigation_links a:hover:before,
.wh_navigation_links a:active:before,
.wh_navigation_links a:visited:before{
color: #347bb7;
text-decoration: none;
}
/*
* ------------------------------------------------------------------
*
* Tiles
*
*/
.wh_tile {
background-color: #ECF2F9;
font-weight: 300;
}
.wh_tile_shortdesc{
margin-top:1em;
text-align: center;
color: #0D1A2B;
font-size:1.1em;
}
.wh_tile_text:after{
background: linear-gradient(to bottom, rgba(236, 242, 249, 0), rgba(236, 242, 249, 1) 75%);
}
.wh_tile_title{
font-size:1.7em;
text-align: center;
text-decoration: none;
}
.wh_tile_title a{
color: #3077be;
}
@media only screen and (max-width: 767px) {
.wh_tile > div {
height: auto;
}
}
/*
You can style some of the tiles in a special way.
Example:
.wh_tiles *[data-id='getting_started']{
background-color:gray;
}
*/
/*
* ------------------------------------------------------------------
*
* Search area
*
*/
.wh_search_input{
display:block;
margin:0;
position:relative;
background: url('resources/images/bgr_right_small.png') right no-repeat #2771bb;
padding: 40px 0;
}
.wh_welcome:not(:empty){
font-size: 2.9em;
margin: 0 auto;
font-family: Roboto, sans-serif;
padding: 0 0 0.5em 0;
text-shadow: none;
font-weight: 300;
line-height: 1.2em;
}
.wh_main_page .wh_search_input{
padding: 115px 0;
background: url('resources/images/bgr_right.png') right no-repeat #2771bb;
}
.wh_search_textfield{
border: solid 1px #CCC;
border-radius: 5px;
padding: 0 .5em;
position: relative;
height: 2.8em;
}
.wh_search_button{
border: solid 1px #CCC;
border-radius: 0 5px 5px 0;
padding: 0.6em 1em;
color:#fff;
background-color: #C93416;
height: 2.8em;
}
/* Search autocomplete icons */
.search-autocomplete-proposal-type-history a,
.search-autocomplete-proposal-type-history a:hover,
.search-autocomplete-proposal-type-history a:visited,
.search-autocomplete-proposal-type-history a:active{
text-decoration: none;
color:inherit;
font-size: 0.8em;
}
.ui-state-active .search-autocomplete-proposal-type-history a,
.ui-state-active .search-autocomplete-proposal-type-history a:hover,
.ui-state-active .search-autocomplete-proposal-type-history a:visited,
.ui-state-active .search-autocomplete-proposal-type-history a:active{
color: #fff;
}
/* Active search page */
#wh-search-pagination > ul > li.active > a {
background-color: #346ec5;
}
/*@media only screen and (max-width: 999px) {*/
/*.wh_search_input:after{*/
/*display:none;*/
/*}*/
/*}*/
@media only screen and (max-width: 767px) {
.wh_main_page .wh_search_input,
.wh_search_input {
padding: 3em 0;
}
}
/*
* ------------------------------------------------------------------
*
* Publication TOC
*
*/
.wh_publication_toc{
border-radius: 3px;
padding: 1.5em .5em;
background-color: #f8f8f8
}
.wh_publication_toc .active > .topicref a {
color: #5185cb;
}
.wh_publication_toc span, .wh_publication_toc a, .wh_publication_toc a:visited, .wh_publication_toc a:hover {
color: #878787;
}
.wh_publication_toc a:hover {
text-decoration: underline;
}
.wh_publication_toc ul li, #wh_topic_toc ul li{
margin-top: .7em;
}
@media only screen and (max-width: 767px) {
.wh_publication_toc {
border-radius: 0;
padding: 1em 0.5em;
margin-top: 10px;
border: 1px solid #e0e0e0;
}
.wh_related_links,
.wh_child_links,
.wh_topic_content .related-links{
border: 1px solid #e0e0e0;
}
}
/* Publication TOC tooltip */
.wh_breadcrumb .topicref .wh-tooltip,
.wh_publication_toc .topicref .wh-tooltip {
background-color: #5185cb;
color: #fff;
font-size: 1.4rem;
}
.wh_breadcrumb .topicref .wh-tooltip a,
.wh_publication_toc .topicref .wh-tooltip a {
color: #fff;
text-decoration: underline;
}
/* Tooltip arrow. */
[data-tooltip-position="left"] .topicref .wh-tooltip::before {
border-left-color: #5185cb;
}
[data-tooltip-position="right"] .topicref .wh-tooltip::before {
border-right-color: #5185cb;
}
[data-tooltip-position="bottom"] .topicref .wh-tooltip::before {
border-bottom-color: #5185cb;
}
[data-tooltip-position="top"] .topicref .wh-tooltip::before {
border-top-color: #5185cb;
}
/*
* ------------------------------------------------------------------
*
* Footer
*
*/
.wh_footer{
text-align: center;
padding: 1em;
position:relative;
bottom: 0;
width: 100%;
color: #ffffff;
background: none #255B90;
margin-top: 2em;
}
.wh_footer a{
color: #CCE2F1;
}
/*
* ------------------------------------------------------------------
*
* Topic content
*
*/
.wh_topic_content,.wh_content_area {
color: #000000;
line-height: 1.7em;
margin-bottom: 80px;
}
.wh_main_page .wh_content_area {
margin: 40px auto;
}
.wh_topic_content .title.topictitle1 {
font-size: 2em;
line-height: 1.1em;
}
.topictitle3{
font-weight: 400;
}
.wh_related_links,
.wh_child_links,
.wh_topic_content .related-links{
border-top: 1px solid #ccc;
padding-top: 7px;
margin-top: 0;
}
.wh_related_links,
.wh_topic_content .related-links{
padding: .5em 1.5em ;
}
.wh_child_links {
padding: 1.5em ;
}
.related-links strong{
font-weight: 500;
}
.related-links a,
.related-links a:visited {
color: #5185cb;
padding-bottom: .3em;
display:inline-block;
}
.filepath {
color: #c7254e !important;
}
/*
* ------------------------------------------------------------------
*
* Search results.
*
*/
.searchresult {
list-style: none;
}
.searchresult li a {
color:#346ec5;
}
.searchresult .shortdesclink {
margin: .3em .5em 0 0;
}
.wh_search_expression{
font-weight:bold;
}
/* Search relative path */
.searchresult li .relativePath a {
color: #006621;
}
/*--------- Search results breadcrumb ----------*/
.search-breadcrumb li a {
background: #ECF2F9;
}
.search-breadcrumb li .title:before,
.search-breadcrumb li .title:after {
border-color: #ECF2F9;
}
.search-breadcrumb li .title:before {
border-left-color: transparent;
}
.search-breadcrumb li .title:after {
border-color: transparent;
border-left-color: #ECF2F9;
}
/*
* ------------------------------------------------------------------
*
* Index terms.
*
*/
.wh_index_terms span.wh_first_letter {
color: #346ec5;
}
.wh_index_terms #indexList{
padding:0;
}
/*
* ------------------------------------------------------------------
*
* Tree TOC for the main page.
*
*/
.wh_main_page_toc{
}
.wh_main_page_toc .expanded, .wh_main_page_toc .wh_main_page_toc_accordion_header:hover, .wh_main_page_toc>.wh_main_page_toc_entry:hover, .wh_main_page_toc_accordion_entries{
background-color: #3F7BAB;
}
/**
*
* Styles used for RTL pages
*
*/
html[dir='rtl'] .wh_top_menu ul li:hover > ul {
max-width: 270px;
}