From 324694a58b6d0ed33e05b511be4767573d9187dd Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 5 Nov 2010 21:12:37 -0700 Subject: Better example widget - syntax highlighting - tabless design - rename widget to doc:example - rename widget files (wiki_widget.* -> doc_widget.*) - example section is now optional --- docs/doc_widgets.css | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/doc_widgets.css (limited to 'docs/doc_widgets.css') diff --git a/docs/doc_widgets.css b/docs/doc_widgets.css new file mode 100644 index 00000000..f4ef70bd --- /dev/null +++ b/docs/doc_widgets.css @@ -0,0 +1,36 @@ +@namespace doc url("http://docs.angularjs.org/"); + +doc\:example { + display: none; +} + +ul.doc-example { + list-style-type: none; + position: relative; + width: 700px; + font-size: 14px; +} + +ul.doc-example > li { + border: 2px solid gray; + border-radius: 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; + background-color: white; + margin-bottom: 20px; +} + +ul.doc-example > li.doc-example-heading { + border: none; + border-radius: none; + margin-bottom: -10px; +} + +li.doc-example-live { + padding: 10px; + font-size: 1.2em; +} + +div.syntaxhighlighter { + padding-bottom: 1px !important; /* fix to remove unnecessary scrollbars http://is.gd/gSMgC */ +} \ No newline at end of file -- cgit v1.2.3