Skip to content

Commit 29a8bff

Browse files
author
Lanny McNie
committed
Updated documentation styles
1 parent efe7db9 commit 29a8bff

File tree

5 files changed

+39
-20
lines changed

5 files changed

+39
-20
lines changed

build/createjsTheme/assets/scss/elements/tags.scss

+7-5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ a:visited {
8080
// LAYOUT
8181
// Display, Positioning
8282
// Box Model
83-
padding: 0 2px;
83+
//padding: 0 2px;
8484
position: relative;
8585
// Type
8686
// DISPLAY
@@ -90,8 +90,8 @@ a:visited {
9090
z-index: 0;
9191
// Type
9292
font-family: $fontFamily-default;
93-
font-weight: 700;
94-
text-decoration: none;
93+
font-weight: 400;
94+
text-decoration: underline;
9595
white-space: nowrap;
9696
// PSUEDO Elements & Classes
9797
// Elements :: before, after, first-line, first-letter, selection
@@ -179,7 +179,7 @@ h2 {
179179
h3 {
180180
@extend h1;
181181
font-size: $fontSize-smaller;
182-
font-weight: 400;
182+
font-weight: 700;
183183
text-transform: none;
184184
}
185185

@@ -190,6 +190,8 @@ h3 code {
190190
h3 code {
191191
font-weight: bold;
192192
}
193+
194+
193195
.paren {
194196
font-size: $fontSize-smaller;
195197
margin: auto 5px;
@@ -247,7 +249,7 @@ p {
247249

248250
// abbr[title] {}
249251
// b {}
250-
strong {font-weight:400;} // assumes the font is 'effra' weight: 700
252+
strong {font-weight:700;} // assumes the font is 'effra' weight: 700
251253
// dfn {}
252254

253255
hr {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.header {
2+
@extend %color_soundjs-gradient;
3+
}
4+
5+
$library-color: $color_soundjs-default;

build/createjsTheme/assets/scss/main.scss

+27-15
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,25 @@
3131
@import "elements/tags.scss";
3232

3333

34-
3534
//*******************************************
3635
//
3736
// LIBRARY SPECIFIC COLORS
3837
//
3938
//*******************************************
40-
.header {
41-
@extend %color_soundjs-gradient;
42-
}
39+
@import "library-specific.scss";
40+
4341
.yui3-skin-sam .yui3-tab-selected .yui3-tab-label,
4442
.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:focus,
4543
.yui3-skin-sam .yui3-tab-selected .yui3-tab-label:hover {
4644
background: none !important;
4745
border: none !important;
48-
background-color: $color_soundjs-default !important;
46+
background-color: $library-color !important;
4947
}
5048
.yui3-skin-sam .yui3-tabview-list {
51-
border-bottom: 5px solid $color_soundjs-default !important;
49+
border-bottom: 5px solid $library-color !important;
5250
}
5351

5452

55-
5653
//*******************************************
5754
//
5855
// RULES
@@ -106,7 +103,8 @@ td p:first-child {
106103
code,
107104
kbd,
108105
pre,
109-
samp {
106+
samp,
107+
A.crosslink {
110108
font-family: $fontFamily-monospace;
111109
font-size: $fontSize-smallest;
112110
line-height: $gridUnit-default;
@@ -149,6 +147,17 @@ pre.code {
149147
margin: $gridUnit-large 0;
150148
}
151149

150+
.description,
151+
.box.intro,
152+
.param-description,
153+
.returns-description {
154+
code {
155+
background-color: $color-gray-lighter;
156+
}
157+
}
158+
pre code { background-color: transparent !important; }
159+
160+
152161

153162
/* Used to denote text that shouldn't be selectable, such as line numbers or
154163
shell prompts. Guess which browser this doesn't work in. */
@@ -312,7 +321,7 @@ th {
312321
}
313322
.header {
314323
padding: 1em 0 0 0 !important;
315-
background-color: $color_gray-dark;
324+
background-color: $color_gray-dark;
316325
a:hover {
317326
background: transparent;
318327
}
@@ -393,6 +402,7 @@ ul li p {
393402
.apidocs .events .extends .inherited {
394403
font-weight: normal;
395404
}
405+
396406
#hd {
397407
padding: 0 15px 1px 20px;
398408
}
@@ -557,7 +567,7 @@ kbd .cmd {
557567
border-bottom: 1px solid $color_gray-light;
558568
color: $color_gray-darker;
559569
font-size: 13px;
560-
margin: 2em 0 0.6em;
570+
margin: 1em 0 0.6em;
561571
padding-bottom: 2px;
562572
}
563573
.apidocs .index .no-visible-items {
@@ -647,11 +657,13 @@ kbd .cmd {
647657
.apidocs .item .type,
648658
.apidocs .item .type a,
649659
.apidocs .returns-inline {
650-
color: $color_gray-default;
660+
//color: $color_gray-default;
661+
text-decoration: none;
662+
font-size: 12px;
651663
}
652664
.apidocs .item .type,
653665
.apidocs .returns-inline {
654-
font-size: 11px;
666+
font-size: 12px;
655667
margin: 0 0 0 0;
656668
}
657669
.apidocs .item .type a {
@@ -677,7 +689,7 @@ kbd .cmd {
677689
}
678690
.apidocs .param .type,
679691
.apidocs .param .type a {
680-
color: $color_gray-default;
692+
//color: $color_gray-default;
681693
}
682694
.apidocs .param .type {
683695
margin: 0 0 0 0.5em;
@@ -694,7 +706,7 @@ kbd .cmd {
694706
/* -- Item "Returns" block -------------------------------------------------- */
695707
.apidocs .item .returns .type,
696708
.apidocs .item .returns .type a {
697-
font-size: 11px;
709+
font-size: 12px;
698710
margin: 0;
699711
}
700712
/* -- Class Constructor block ----------------------------------------------- */
@@ -890,7 +902,7 @@ ol.linenums {
890902
.file-line {
891903
position: relative;
892904
z-index: 2;
893-
color:$color_gray-darkest;
905+
color:$color_gray-darkest;
894906
}
895907
}
896908

docs/SoundJS_docs-0.6.0.zip

5.69 KB
Binary file not shown.

docs/soundjs_docs-NEXT.zip

5.65 KB
Binary file not shown.

0 commit comments

Comments
 (0)