Skip to content

Commit

Permalink
OCI branding
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Mar 2, 2018
1 parent 1a8b301 commit 00655c4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,24 @@ asciidoctor {

dependsOn download
}


task copyOciBrandingImages(type: Copy) {
from "${rootProject.projectDir}/src/main/resources/images"
into "${rootProject.buildDir}/asciidoc/html5/images"
include "**/*.png"
}

task ociBranding {
dependsOn copyOciBrandingImages
doLast {
File cssFile = new File("${rootProject.projectDir}/src/main/resources/css/main.css")
assert cssFile.exists()
String css = cssFile.text
File f = new File("${rootProject.buildDir}/asciidoc/html5/index.html")
assert f.exists()
f.text = f.text.replaceAll('</head>', "<style text='type/css'>${css}</style></head>".toString())
}
}

asciidoctor.finalizedBy(ociBranding)
25 changes: 25 additions & 0 deletions src/main/resources/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.deck-container {
background: #14242E !important;
color: #ffffff;
text-shadow: none !important;
background-image: url(images/oci-whitetext.png) !important;
background-position: bottom left !important;
background-repeat: no-repeat !important;
}
.deck-container h1 {
color: #ffffff!important;

}
.deck-container h2 {
color: #ffffff!important;
}

.deck-container .cssreflections h2 {
line-height: 1;
-webkit-box-reflect: none !important;
-moz-box-reflect: none !important;
}

.deck-status {
color: #ffffff !important;
}
Binary file added src/main/resources/images/oci-whitetext.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 00655c4

Please sign in to comment.