mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +00:00
Auto-generate centering info for centered labels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35393 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a5e4f310fe
commit
0675c802a7
@ -35,10 +35,10 @@ Style Abstract
|
|||||||
EndFont
|
EndFont
|
||||||
HTMLLabel div
|
HTMLLabel div
|
||||||
HTMLLabelFirst 1
|
HTMLLabelFirst 1
|
||||||
|
HTMLForceCSS 1
|
||||||
HTMLStyle
|
HTMLStyle
|
||||||
div.abstract {
|
div.abstract {
|
||||||
margin-top: 2em;
|
margin: 4ex;
|
||||||
margin-bottom: 2em;
|
|
||||||
}
|
}
|
||||||
div.abstract_item {
|
div.abstract_item {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
|
@ -1049,15 +1049,21 @@ void Layout::makeDefaultCSS() const {
|
|||||||
from_ascii(htmltag() + "." + defaultCSSClass() + " {\n") +
|
from_ascii(htmltag() + "." + defaultCSSClass() + " {\n") +
|
||||||
htmldefaultstyle_ + from_ascii("\n}\n");
|
htmldefaultstyle_ + from_ascii("\n}\n");
|
||||||
|
|
||||||
if (labelfont == font || htmllabeltag() == "NONE")
|
if (labeltype == LABEL_NO_LABEL || htmllabeltag() == "NONE")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
docstring labelCSS;
|
||||||
|
|
||||||
// label font
|
// label font
|
||||||
docstring const labelfontCSS = labelfont.asCSS();
|
if (labelfont != font)
|
||||||
if (!labelfontCSS.empty())
|
labelCSS = labelfont.asCSS() + from_ascii("\n");
|
||||||
|
if (labeltype == LABEL_CENTERED_TOP_ENVIRONMENT)
|
||||||
|
labelCSS += from_ascii("text-align: center;\n");
|
||||||
|
|
||||||
|
if (!labelCSS.empty())
|
||||||
htmldefaultstyle_ +=
|
htmldefaultstyle_ +=
|
||||||
from_ascii(htmllabeltag() + "." + defaultCSSLabelClass() + " {\n") +
|
from_ascii(htmllabeltag() + "." + defaultCSSLabelClass() + " {\n") +
|
||||||
labelfontCSS + from_ascii("\n}\n");
|
labelCSS + from_ascii("\n}\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user