Doc: CSS: Add styling for content generated with \legalese command
Even though the \legalese command is no longer used in Qt 5 documentation as it doesn't support collating legalese texts across modules, it may still be useful for stand-alone doc projects. Add CSS rules so the \legalese text is styled similarly to code blocks, to make it stand out from the rest of the content. Change-Id: I533d8e2375ea2f8054c0671ff34dfa6f0dfe01d1 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
This commit is contained in:
parent
d245db2f83
commit
431bc3321f
@ -1,4 +1,4 @@
|
|||||||
pre {
|
pre, .LegaleseLeft {
|
||||||
background-color: #f0f0f0;
|
background-color: #f0f0f0;
|
||||||
font-family: Courier, monospace;
|
font-family: Courier, monospace;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -424,7 +424,7 @@ table styles
|
|||||||
|
|
||||||
/* table with border alternative colours*/
|
/* table with border alternative colours*/
|
||||||
|
|
||||||
table, pre {
|
table, pre, .LegaleseLeft {
|
||||||
-moz-border-radius: 7px 7px 7px 7px;
|
-moz-border-radius: 7px 7px 7px 7px;
|
||||||
-webkit-border-radius: 7px 7px 7px 7px;
|
-webkit-border-radius: 7px 7px 7px 7px;
|
||||||
border-radius: 7px 7px 7px 7px;
|
border-radius: 7px 7px 7px 7px;
|
||||||
@ -481,6 +481,10 @@ table, pre {
|
|||||||
margin: 0px
|
margin: 0px
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.LegaleseLeft {
|
||||||
|
font-family: monospace;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
/* table bodless & white*/
|
/* table bodless & white*/
|
||||||
|
|
||||||
.borderless {
|
.borderless {
|
||||||
@ -543,7 +547,7 @@ ol.a > li{
|
|||||||
text-align: left
|
text-align: left
|
||||||
}
|
}
|
||||||
|
|
||||||
.cpp {
|
.cpp, .LegaleseLeft {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
@ -1364,7 +1364,7 @@ div.qt_commercial {
|
|||||||
border-top:5px solid #5caa15;
|
border-top:5px solid #5caa15;
|
||||||
margin-bottom:50px
|
margin-bottom:50px
|
||||||
}
|
}
|
||||||
pre {
|
pre, .LegaleseLeft {
|
||||||
background-color:#404244;
|
background-color:#404244;
|
||||||
color:#fff;
|
color:#fff;
|
||||||
display:block;
|
display:block;
|
||||||
@ -1375,6 +1375,10 @@ pre {
|
|||||||
padding:25px;
|
padding:25px;
|
||||||
margin-top:0.75em
|
margin-top:0.75em
|
||||||
}
|
}
|
||||||
|
.mainContent .LegaleseLeft p {
|
||||||
|
color:#fff;
|
||||||
|
white-space: pre-wrap
|
||||||
|
}
|
||||||
.copy_text {
|
.copy_text {
|
||||||
background-color:#46a2da;
|
background-color:#46a2da;
|
||||||
color:#fff;
|
color:#fff;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user