diff options
| author | Igor Minar | 2010-11-29 13:19:18 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-11-29 16:47:13 -0800 |
| commit | 46091f811b8ec5bfe8ee53c15ef4589cf30dee01 (patch) | |
| tree | 151f75799cd8f05bb743927b7b6d67e2d5076e48 /docs | |
| parent | fde2ccb3f563104f5db7df6d330cf8d4b4aa8077 (diff) | |
| download | angular.js-46091f811b8ec5bfe8ee53c15ef4589cf30dee01.tar.bz2 | |
dual scrolling for docs with custom scrollbars
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/docs.css | 66 | ||||
| -rw-r--r-- | docs/docs.js | 1 |
2 files changed, 56 insertions, 11 deletions
diff --git a/docs/docs.css b/docs/docs.css index c051efce..dfacfbe2 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -14,17 +14,32 @@ a { /* Main Layout */ +#header { + height: 3.5em; +} + #page { - display: table-row; } #sidebar, #section { - display: table-cell; + position: absolute; + top: 3.5em; + bottom: 0; + margin-top: 1px; + overflow-x: hidden; + overflow-y: scroll; +} + +#sidebar { + width: 13em; + padding: 0.8em 0.8em 1.5em 0.8em; } #section { - width: 100%; + left: 14.6em; + right: 0; + padding: 1em 0.5em 1em 1em; } @@ -45,7 +60,7 @@ a { } #header .angular { - font-family: Courier New, monospace; + font-family: "Courier New", monospace; font-weight: bold; } @@ -61,10 +76,6 @@ a { /* Main Section Style */ -#section { - padding: 1em; -} - #section h1 { font-family: monospace; margin-top: 0; @@ -92,7 +103,6 @@ a { /* Sidebar Style */ #sidebar { - padding: 10px 10px 20px 10px; background-color: #EEE; border-right: 1px solid #DDD; } @@ -106,7 +116,7 @@ a { } #sidebar input { - width: 175px; + width: 15em; margin-bottom: 1em; } @@ -200,3 +210,39 @@ a { .doc-example-live table td { padding: 0 1.5em; } + + +/* Scrollbars */ + +::-webkit-scrollbar{ + width:0.8em; + height:0.8em; + border-left: 1px solid #ccc; +} +::-webkit-scrollbar:hover{ + background-color:#eee; +} +::-webkit-resizer{ + -webkit-border-radius:0.3em; + background-color:#666; +} +::-webkit-scrollbar-thumb{ + min-height:0.8em; + min-width:0.8em; + -webkit-border-radius:0.3em; + background-color: #ddd; +} +::-webkit-scrollbar-thumb:hover{ + background-color: #bbb; +} +::-webkit-scrollbar-thumb:active{ + background-color:#888; +} + +#sidebar::-webkit-scrollbar { + background-color:#eee; +} + +#section::-webkit-scrollbar { + background-color:#fff; +} diff --git a/docs/docs.js b/docs/docs.js index a475b7b6..7e6c2ac4 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -31,7 +31,6 @@ function DocsController($location, $browser, $window) { }; this.afterPartialLoaded = function() { - $window.scroll(0,0); SyntaxHighlighter.highlight(); }; |
