Skip to content

Commit

Permalink
Offline docs: Improve styling of unordered lists and external links
Browse files Browse the repository at this point in the history
Use list-style-type correctly and replace background-image with
::before content for external link icons.

Pick-to: 6.0
Fixes: QTBUG-89470
Fixes: QTBUG-89471
Change-Id: Ib11a45baf5e92565b22e21f3bd1a929cbbbef608
Reviewed-by: Leena Miettinen <[email protected]>
  • Loading branch information
toreinio committed Dec 22, 2020
1 parent 093e0d4 commit 1021cbf
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions doc/global/template/style/offline.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,11 @@ offline viewing: HTML links display an icon
-----------
*/

a[href*="http://"], a[href*="ftp://"], a[href*="https://"] {
text-decoration: none;
background-image: url(../images/ico_out.png);
background-repeat: no-repeat;
background-position: left;
padding-left: 20px;
text-align: left;
a[href*="http://"]::before,
a[href*="ftp://"]::before,
a[href*="https://"]::before {
content: url(../images/ico_out.png);
padding-right: 5px;
}

.flags {
Expand Down Expand Up @@ -547,11 +545,27 @@ ol.a > li{
list-style-type: lower-alpha;
}

ol > li {
ol > li {
margin-left: 30px;
padding-left: 8px;
list-style: decimal;
}
list-style-type: decimal;
}

ol.A > li {
list-style-type: upper-alpha;
}

ol.a > li {
list-style-type: lower-alpha;
}

ol.i > li {
list-style-type: lower-roman;
}

ol.I > li {
list-style-type: upper-roman;
}

.centerAlign {
text-align: left
Expand Down

0 comments on commit 1021cbf

Please sign in to comment.