diff options
author | ADAM GARZA <thefewproduction@gmail.com> | 2018-07-25 11:39:01 -0500 |
---|---|---|
committer | Yang Song <songy23@users.noreply.github.com> | 2018-07-25 09:39:01 -0700 |
commit | 53fc5f0e49eab37fc814f38b11352c9b19e83fe1 (patch) | |
tree | 36ac10689692b4e5a2b0f04852cf8e9c10027ecc /contrib | |
parent | e28223602ee7b2e5e28d0d8dce635e6094f6907c (diff) | |
download | opencensus-java-53fc5f0e49eab37fc814f38b11352c9b19e83fe1.tar.gz |
Zpages external CSS added and gradle modified to include this resource (#1341)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/zpages/build.gradle | 3 | ||||
-rw-r--r-- | contrib/zpages/src/resources/style.css | 102 |
2 files changed, 105 insertions, 0 deletions
diff --git a/contrib/zpages/build.gradle b/contrib/zpages/build.gradle index 9648d64e..e9e5d089 100644 --- a/contrib/zpages/build.gradle +++ b/contrib/zpages/build.gradle @@ -14,3 +14,6 @@ dependencies { signature "org.codehaus.mojo.signature:java18:+@signature" } + +sourceSets.main.resources.srcDirs = [ "src/resources/" ] +sourceSets.main.resources.includes = [ "**/*.css" ] diff --git a/contrib/zpages/src/resources/style.css b/contrib/zpages/src/resources/style.css new file mode 100644 index 00000000..36a08970 --- /dev/null +++ b/contrib/zpages/src/resources/style.css @@ -0,0 +1,102 @@ +/* ================================================ + Zpages CSS 04/10/2018 +=================================================== + + 1. TYPOGRAPHY + 2. GLOBAL STYLES + 3. HEADER + 4. TABLE + +=================================================== */ + +/* ------------------------------------------- + 1. TYPOGRAPHY +---------------------------------------------- */ +/* FONTS */ +@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto'); + +/* ------------------------------------------- + 2. GLOBAL STYLES +---------------------------------------------- */ +body { + font-family: 'Roboto',sans-serif; + font-size: 14px; + background-color: #F2F4EC; +} +h1 { + color: #3D3D3D; + text-align: center; + margin-bottom: 20px; +} +p { + padding: 0 0.5em; + color: #3D3D3D; +} +h2 { + color: #3D3D3D; + font-size: 1.5em; + background-color: #FFF; + line-height: 2.0; + margin-bottom: 0; + padding: 0 0.5em; +} +h3 { + font-size:16px; + padding:0 0.5em; + margin-top:4px; + margin-bottom:25px; +} +a { + color:#A94442; +} + +/* ------------------------------------------- + 3. HEADER +---------------------------------------------- */ +p.header { + font-family: 'Open Sans', sans-serif; + top: 0; + left: 0; + width: 100%; + height: 60px; + vertical-align: middle; + color: #C1272D; + font-size: 22pt; +} +.header span { + color: #3D3D3D; +} +img.oc { + vertical-align: middle; +} + +/* ------------------------------------------- + 4. TABLE +---------------------------------------------- */ +table { + width: 100%; + color: #FFF; + background-color: #FFF; + overflow: hidden; + margin-bottom: 30px; + margin-top: 0; + border-bottom: 1px solid #3D3D3D; + border-left: 1px solid #3D3D3D; + border-right: 1px solid #3D3D3D; +} +thead { + background-color: #A94442; +} +th { + background-color: #A94442; +} +tr:nth-child(even) { + background-color: #F2F2F2; +} +td { + color: #3D3D3D; + line-height: 2.0; + text-align: left; + padding: 0 0.5em; +} + |