Repository: cayenne-website
Updated Branches:
  refs/heads/master 73d170d31 -> b4be2be97


Minor documentation styling fix


Project: http://git-wip-us.apache.org/repos/asf/cayenne-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-website/commit/b4be2be9
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-website/tree/b4be2be9
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-website/diff/b4be2be9

Branch: refs/heads/master
Commit: b4be2be97d152489d11c6374c574203d2f82b47c
Parents: 73d170d
Author: stariy <stari...@gmail.com>
Authored: Tue Jan 9 12:20:26 2018 +0300
Committer: stariy <stari...@gmail.com>
Committed: Tue Jan 9 12:20:26 2018 +0300

----------------------------------------------------------------------
 src/main/assets/styles/_cd.scss | 52 ++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/b4be2be9/src/main/assets/styles/_cd.scss
----------------------------------------------------------------------
diff --git a/src/main/assets/styles/_cd.scss b/src/main/assets/styles/_cd.scss
index 2a3154a..addbe59 100644
--- a/src/main/assets/styles/_cd.scss
+++ b/src/main/assets/styles/_cd.scss
@@ -288,6 +288,58 @@
                                }
                        }
 
+
+                       $conumSize: 1.25rem;
+
+                       // Code line number comments, copied from Asciidoctor 
default styles
+                       .conum[data-value] {
+                               display: inline-block;
+                               color: #fff !important;
+                               background-color: rgba(0, 0, 0, .8);
+                               border-radius: 100px;
+                               text-align: center;
+                               font-size: .75rem;
+                               width: $conumSize;
+                               height: $conumSize;
+                               line-height: $conumSize;
+                               font-style: normal;
+                               font-weight: bold;
+                               * {
+                                       color: #fff !important;
+                               }
+                       }
+                       .conum[data-value] + b {
+                               display: none;
+                       }
+                       .conum[data-value]:after {
+                               content: attr(data-value)
+                       }
+                       pre .conum[data-value] {
+                               position: relative;
+                               top: -.125rem;
+                       }
+                       b.conum * {
+                               color: inherit !important;
+                       }
+                       .conum:not([data-value]):empty {
+                               display: none;
+                       }
+
+                       .colist>table {
+                               tr>td:first-of-type {
+                                       padding: .35rem .5rem 1rem 1rem;
+                                       line-height: 1rem;
+                                       vertical-align: top;
+                                       img {
+                                               max-width:initial
+                                       }
+                               }
+
+                               tr>td:last-of-type {
+                                       padding: 0 0 1rem 0;
+                               }
+                       }
+
                        code {
                                @include media-breakpoint-down(md) {
                                        word-break: break-all;

Reply via email to