Skip to content

Commit

Permalink
Merge pull request #157 from EthicalML/156_customise_docs
Browse files Browse the repository at this point in the history
Added dark mode on docs
  • Loading branch information
axsaucedo authored Feb 21, 2021
2 parents b9e0b5e + 0bae3d5 commit 0f0d736
Show file tree
Hide file tree
Showing 3 changed files with 549 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ add_custom_command(
-E copy_directory
${CODECOV_DIR_HTML}
${CODECOV_DOCS_DIR}
COMMAND ${CMAKE_COMMAND}
-E copy
${PROJECT_SOURCE_DIR}/docs/assets/gcov.css
${CODECOV_DOCS_DIR}/gcov.css
DEPENDS codecov_genhtml)

#####################################################
Expand Down
42 changes: 42 additions & 0 deletions docs/assets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,45 @@
.md-nav__title--site {
display: none;
}

h1, h2, h3, h4, h5, h6 {
color:white !important;
}

/* Container backgrounds */
.md-container, .md-main, .md-nav {
background-color: #252632;
color: #fff;
}

.md-header, .md-tabs {
background-color: #ad152c !important;
}

/* Code blocks */
pre, code {
background-color: #181820 !important;
color: #fff !important;
}

/* All links */
a {
color: #ff9292;
}
a:hover {
color: #fff;
}

/* Side Menu Links */
.md-nav__item a {
color: #36D3D9;
}
.md-nav__item a:hover {
color: #0091ea;
}

.md-source {
color: #fff;
}


Loading

0 comments on commit 0f0d736

Please sign in to comment.