From: Sarah White Date: Fri, 9 Feb 2018 20:12:36 +0000 (-0700) Subject: improve listing, admonition, example block titles X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=559ccf368d3aa9c6e41944cf363f26777ddd05b4;p=eg-antora.git improve listing, admonition, example block titles - set margin to 0 on pre - add example block content styles --- diff --git a/preview-site-src/index.html b/preview-site-src/index.html index 099aa71..d3a10cf 100644 --- a/preview-site-src/index.html +++ b/preview-site-src/index.html @@ -28,16 +28,23 @@ Eu mea inani iriure.

"scripts": { "test": "mocha", "lint": "eslint" - }, - "main": "index.js", - "devDependencies": { - "eslint": "^4.7.2", - "mocha": "^3.5.3" - }, - "license": "ISC" } +
+
Example paragraph syntax
+
+
.Optional title
+[example]
+This is an #example paragraph#.
+
+
+
+
Optional title
+
+This is an example paragraph. +
+

How about some code?

@@ -48,19 +55,7 @@ const browserify = require('browserify') const buffer = require('vinyl-buffer') const uglify = require('gulp-uglify') const tap = require('gulp-tap') (1) - -gulp.task('js', () => - gulp - .src('js/vendor/*.js', { cwd: 'src', base: 'src', read: false }) - .pipe( - tap((file) => { - file.contents = browserify(file.relative, { basedir: 'src', detectGlobals: false }).bundle() - }) - ) - .pipe(buffer()) - .pipe(uglify()) - .pipe(gulp.dest('build')) -) +
@@ -92,14 +87,12 @@ src/

Select File  Open Project to open the project in your IDE. Per ea solet civibus inimicus. -Ferri tacimates constituam sed ex, eu mea munere vituperata constituam. -No vel quem admodum, etiam possim voluptatum sed ei. -Voluptua singulis pro ei, melius constituto consequuntur eos in, ei ius blandit albucius.

+Ferri tacimates constituam sed ex, eu mea munere vituperata constituam.

-
-

Liber recusabo

+
+

Liber recusabo

No sea, at invenire voluptaria mnesarchum has. @@ -117,12 +110,6 @@ At ornatus splendide sed, phaedrum omittantur usu an, vix an noster voluptatibus

  • lacus volutpat semper porttitor aliquet ornare primis nulla enim

  • -
  • -

    ultricies sociosqu tristique integer

    -
  • -
  • -

    posuere curae pharetra rutrum adipiscing lectus est praesent

    -
  • @@ -195,18 +182,6 @@ Ea mea agam graeci philosophia.

    jscs

    ^2.3.5

    - -

    jscs-preset-gulp

    -

    ^1.0.0

    - - -

    mississippi

    -

    ^1.2.0

    - - -

    mocha

    -

    ^2.4.5

    -
    @@ -283,18 +258,6 @@ Eos suscipit scaevola at.

    -
    - - - - - -
    - - -I wouldn’t try that either. -
    -
    @@ -320,9 +283,9 @@ I wouldn’t try that either.

    If you installed the CLI and the default site generator globally, you can upgrade both of them with the same command.

    -
    +
    -
    $ npm i -g @antora/cli @antora/site-generator-default
    +
    $ npm i -g @antora/cli @antora/site-generator-default
    @@ -331,10 +294,9 @@ I wouldn’t try that either.

    Nominavi luptatum eos, an vim hinc philosophia intellegebat. -Lorem expetenda pertinacia et nec, wisi illud sonet qui ea. -Eum an doctus maiestatis efficiantur. Eu mea inani iriure.

    +

    Voluptua singulis

    Cum dicat putant ne. diff --git a/src/css/doc.css b/src/css/doc.css index 10a28cd..60736a4 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -83,6 +83,7 @@ font-size: 0.9rem; /* color: #000; */ line-height: 1.5; + margin: 0; } .doc pre:not(.highlight), @@ -283,7 +284,7 @@ padding: 0.75em 1em; } -.doc .admonitionblock td.content > div[class] { +.doc .admonitionblock td.content > :first-child { margin: 0; } @@ -375,8 +376,20 @@ .doc .literalblock .title, .doc .listingblock .title { color: #4a4a4a; - padding-bottom: 0.15rem; - font-size: 0.85rem; + padding-bottom: 0.08rem; + font-size: 0.92rem; + font-style: italic; +} + +.doc .admonitionblock .title + .paragraph { + margin-top: 0; +} + +/* Other possible colors #248232 (dark green) #2ba84a (brighter green), #f7ef99 (soft yellow), #f78e69 (orangey-grayish) */ +.doc .exampleblock > .content { + background-color: #fff; + box-shadow: inset 0 0 2px #2ba84a; + padding: 0.75rem; } /* NEEDS REVIEW prevent pre in table from causing article to exceed bounds */