diff options
author | Roel Spilker <r.spilker@gmail.com> | 2020-01-20 22:53:13 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-01-20 22:53:13 +0100 |
commit | 6cc74e42295b6138629c6b32dd56a99ee8c2c646 (patch) | |
tree | 408c05731e70557cd4f7a099aa1804c769eebf72 /website/resources | |
parent | 1caf1da5e1ba721e646b6616a7835f47a09d46d1 (diff) | |
download | lombok-6cc74e42295b6138629c6b32dd56a99ee8c2c646.tar.gz lombok-6cc74e42295b6138629c6b32dd56a99ee8c2c646.tar.bz2 lombok-6cc74e42295b6138629c6b32dd56a99ee8c2c646.zip |
Website: style example code
Diffstat (limited to 'website/resources')
-rw-r--r-- | website/resources/css/custom.css | 34 | ||||
-rw-r--r-- | website/resources/img/line-numbers.png | bin | 0 -> 125 bytes |
2 files changed, 34 insertions, 0 deletions
diff --git a/website/resources/css/custom.css b/website/resources/css/custom.css index c9c4924e..2588ae66 100644 --- a/website/resources/css/custom.css +++ b/website/resources/css/custom.css @@ -236,6 +236,40 @@ div.snippet code { word-break: break-word; } + +ol.snippet { + background: repeat-y url(/img/line-numbers.png); + padding-left: 3em; + list-style-type: decimal; +} + +ol.snippet li { + font-size: 14px; + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + color: #9898A8; +} + +ol.snippet li code { + word-break: break-word; + padding: 0; +} + +ol.snippet.oneliner, ol.snippet.cmd { + list-style-type: none; +} + +ol.snippet.oneliner li, ol.snippet.cmd li { + text-indent: -1.7em; +} + +ol.snippet.oneliner li:before { + content: "#\A0\A0"; +} + +ol.snippet.cmd li:before { + content: ">\A0\A0"; +} + .fork-me { position: fixed; width: 150px; diff --git a/website/resources/img/line-numbers.png b/website/resources/img/line-numbers.png Binary files differnew file mode 100644 index 00000000..414b9596 --- /dev/null +++ b/website/resources/img/line-numbers.png |