https://bugs.documentfoundation.org/show_bug.cgi?id=163747

--- Comment #3 from Buovjaga <ilmari.lauhakan...@libreoffice.org> ---
(In reply to Mike Kaganski from comment #2)
> Ilmari: can we use '.not()' CSS selector [1] for this?
> 
> [1] https://developer.mozilla.org/en-US/docs/Web/CSS/:not

There is a glorious hack we might use, copying all the label styles and
applying them to an ::after pseudo element, which also accepts arbitrary text
content:

.title:not(:has(> .mlabels))::after {
  content: "unpublished";
  margin-left: 8px;
  background-color: #728DC1;
  border-top: 1px solid #5373B4;
  border-left: 1px solid #5373B4;
  border-right: 1px solid #C4CFE5;
  border-bottom: 1px solid #C4CFE5;
  text-shadow: none;
  color: white;
  margin-right: 4px;
  padding: 2px 3px;
  border-radius: 3px;
  font-size: 7pt;
  white-space: nowrap;
  vertical-align: middle;
}

However, this is made brittle by Doxygen's too generic approach to the labels:
it doesn't use a class name for "published". CSS does not have a way to check
"does the element have text content matching x". So if our docs contain any
other labels besides "published" the hack is not reliable. If "published" is
the only label, though, then everything will be fine.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to