Skip to content

Commit

Permalink
Merge pull request #2954 from tomchadwin/master
Browse files Browse the repository at this point in the history
New custom CSS for https://qgis.org/api/
  • Loading branch information
m-kuhn committed Apr 8, 2016
2 parents c397ae6 + 2eb660a commit e3bfec0
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 2 deletions.
9 changes: 8 additions & 1 deletion cmake_templates/Doxyfile.in
Expand Up @@ -838,6 +838,13 @@ HTML_FOOTER =

HTML_STYLESHEET =

# @tomchadwin addition - HTML_EXTRA_STYLESHEET needs Doxygen version bump to
# work.
# Assumes Doxygen is run from this directory (/cmake_templates) - if not,
# correct the path

HTML_EXTRA_STYLESHEET = ../doc/api_custom.css

# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
# Doxygen will adjust the colors in the stylesheet and background images
# according to this color. Hue is specified as an angle on a colorwheel,
Expand All @@ -846,7 +853,7 @@ HTML_STYLESHEET =
# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
# The allowed range is 0 to 359.

HTML_COLORSTYLE_HUE = 220
HTML_COLORSTYLE_HUE = 113

# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
# the colors in the HTML output. For a value of 0 the output will use
Expand Down
2 changes: 1 addition & 1 deletion doc/CMakeLists.txt
Expand Up @@ -28,7 +28,7 @@ INSTALL(FILES ${QGIS_DOC_FILES} DESTINATION ${QGIS_DATA_DIR}/doc)
INSTALL(FILES ../images/icons/qgis-icon-60x60.png DESTINATION ${QGIS_DATA_DIR}/doc/images)

IF(WITH_APIDOC)
FIND_PACKAGE(Doxygen)
FIND_PACKAGE(Doxygen 1.8.2 REQUIRED)
IF(DOXYGEN_FOUND)

FIND_FILE(QT_TAG_FILE
Expand Down
228 changes: 228 additions & 0 deletions doc/api_custom.css
@@ -0,0 +1,228 @@
body {
background-color: #fff;
}

.title {
font: 400 18px/28px Roboto,sans-serif;
font-size: 250%;
font-weight: normal;
line-height: 1.25em;
}

a.el {
font-weight: normal;
}

td.memItemRight a.el:first-of-type {
font-weight: bold;
}

div.contents {
width: 80%;
margin-left: auto;
margin-right: auto;
}

.contents > p {
padding-left: 0.5em;
font-size: 120%;
}

address.footer {
width: 80%;
margin-left: auto;
margin-right: auto;
}

hr.footer {
width: 80%;
margin-left: auto;
margin-right: auto;
margin-top: 1em;
}

table.memberdecls {
width: 100%;
}

.mdescLeft, .mdescRight,
.memItemLeft, .memItemRight,
.memTemplItemLeft, .memTemplItemRight, .memTemplParams {
background-color: inherit;
padding: 10px 0 10px 8px;
}

.memItemLeft a {
font-weight: normal;
}

.memname {
font-weight: normal;
}

.memname tr:first-of-type {
font-size: 150%;
}

.memproto, dl.reflist dt {
border-top: inherit;
border-right: inherit;
font-weight: inherit;
text-shadow: inherit;
background-image:inherit;
background-repeat:inherit;
box-shadow: inherit;
border-top-right-radius: inherit;
border-top-left-radius: inherit;
-moz-box-shadow: inherit;
-moz-border-radius-topright: inherit;
-moz-border-radius-topleft: inherit;
-webkit-box-shadow: inherit;
-webkit-border-top-right-radius: inherit;
-webkit-border-top-left-radius: inherit;
}

.memdoc, dl.reflist dd {
margin-bottom: 1em;
border-bottom: inherit;
border-right: inherit;
background-color: inherit;
border-top-width: inherit;
background-image:inherit;
background-repeat:inherit;
background-color: inherit;
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
box-shadow: inherit;
-moz-border-radius-bottomleft: inherit;
-moz-border-radius-bottomright: inherit;
-moz-box-shadow: inherit;
-webkit-border-bottom-left-radius: inherit;
-webkit-border-bottom-right-radius: inherit;
-webkit-box-shadow: inherit;
}

table.fieldtable {
-moz-box-shadow: inherit;
-webkit-box-shadow: inherit;
box-shadow: inherit;
}

.fieldtable th {
background-image:inherit;
background-repeat:inherit;
background-color: inherit;
-moz-border-radius-topleft: inherit;
-moz-border-radius-topright: inherit;
-webkit-border-top-left-radius: inherit;
-webkit-border-top-right-radius: inherit;
border-top-left-radius: inherit;
border-top-right-radius: inherit;
}

.navpath ul {
font-size: inherit;
background-image:inherit;
background-repeat:inherit;
background-position: inherit;
color:inherit;
border:inherit;
overflow:inherit;
margin:inherit;
padding:inherit;
}

.navpath li {
background-image:inherit;
background-repeat:inherit;
background-position:inherit;
color:inherit;
}

.navpath li.navelem + li.navelem:before {
content: '>';
}

.navpath li.navelem a {
display: inline-block;
padding-left: 10px;
}

.navpath li.footer {
list-style-type:inherit;
float:inherit;
padding-left:inherit;
padding-right:inherit;
background-image:inherit;
background-repeat:inherit;
background-position:inherit;
color:inherit;
font-size: inherit;
}

div.header {
margin: 0px;
width: 80%;
margin-left: auto;
margin-right: auto;
background-image:inherit;
background-repeat:inherit;
}

#titlearea {
margin-left: auto;
margin-right: auto;
padding-top: 0.5em;
padding-bottom: 0.5em;
width: 80%;
}

div.qindex, div.navpath {
width: 80%;
margin-left: auto;
margin-right: auto;
}

/* To overwrite tabs.css */
.tabs, .tabs2, .tabs3 {
background-image: inherit;
width: 80%;
background-color: #e3f2e1;
margin-left: auto;
margin-right: auto;
}

.tabs2 {
background-color: #f3f7f2;
}

.tablist li {
background-image: inherit;
}

.tablist a {
background-image: inherit;
color: #0d7200;
border-right: 1px solid #129300;
}

.tablist a:hover {
background-image: inherit;
background-color: #129300;
}

.tablist li.current a {
background-image: inherit;
background-color: #0d7200;
}
/* /tabs.css */

/* To override search/search.css */
#MSearchBox {
right: 10%;
}

#MSearchField {
position: inherit;
}
/* /search.css */

0 comments on commit e3bfec0

Please sign in to comment.