compass-theme 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.markdown +29 -0
  4. data/README.markdown +2 -0
  5. data/Rakefile +1 -0
  6. data/compass-theme.gemspec +26 -0
  7. data/lib/compass-theme.rb +10 -0
  8. data/lib/compass-theme/fonts/examples/bgrove.otf +0 -0
  9. data/lib/compass-theme/fonts/examples/bgrove.ttf +0 -0
  10. data/lib/compass-theme/fonts/museosans-web.eot +0 -0
  11. data/lib/compass-theme/fonts/museosans-web.svg +241 -0
  12. data/lib/compass-theme/fonts/museosans-web.ttf +0 -0
  13. data/lib/compass-theme/fonts/museosans-web.woff +0 -0
  14. data/lib/compass-theme/images/bg-light.jpg +0 -0
  15. data/lib/compass-theme/images/compass-logo-small-dark.png +0 -0
  16. data/lib/compass-theme/images/compass-logo-small-light.png +0 -0
  17. data/lib/compass-theme/images/compass-logo.png +0 -0
  18. data/lib/compass-theme/images/compass.app.png +0 -0
  19. data/lib/compass-theme/images/compass.png +0 -0
  20. data/lib/compass-theme/images/compass_icon.png +0 -0
  21. data/lib/compass-theme/images/examples/css3/bg-origin/bg.png +0 -0
  22. data/lib/compass-theme/images/sites/addons.heroku.jpg +0 -0
  23. data/lib/compass-theme/images/sites/busyconf.jpg +0 -0
  24. data/lib/compass-theme/images/sites/caring.jpg +0 -0
  25. data/lib/compass-theme/images/sites/cofamilies.jpg +0 -0
  26. data/lib/compass-theme/images/sites/cornell.jpg +0 -0
  27. data/lib/compass-theme/images/sites/dailymile.jpg +0 -0
  28. data/lib/compass-theme/images/sites/hubblesite.jpg +0 -0
  29. data/lib/compass-theme/images/sites/jumpstartlab.jpg +0 -0
  30. data/lib/compass-theme/images/sites/memberhub.jpg +0 -0
  31. data/lib/compass-theme/images/sites/sencha.jpg +0 -0
  32. data/lib/compass-theme/railtie.rb +10 -0
  33. data/lib/compass-theme/stylesheets/core/_base-classes.sass +70 -0
  34. data/lib/compass-theme/stylesheets/core/_clearing-classes.sass +17 -0
  35. data/lib/compass-theme/stylesheets/core/_extensions.scss +10 -0
  36. data/lib/compass-theme/stylesheets/home.scss +17 -0
  37. data/lib/compass-theme/stylesheets/ie.scss +5 -0
  38. data/lib/compass-theme/stylesheets/partials/_blog.scss +6 -0
  39. data/lib/compass-theme/stylesheets/partials/_code.scss +113 -0
  40. data/lib/compass-theme/stylesheets/partials/_example.scss +29 -0
  41. data/lib/compass-theme/stylesheets/partials/_home.scss +99 -0
  42. data/lib/compass-theme/stylesheets/partials/_install.scss +10 -0
  43. data/lib/compass-theme/stylesheets/partials/_layout.scss +21 -0
  44. data/lib/compass-theme/stylesheets/partials/_main.scss +63 -0
  45. data/lib/compass-theme/stylesheets/partials/_nav.scss +96 -0
  46. data/lib/compass-theme/stylesheets/partials/_sidebar.scss +31 -0
  47. data/lib/compass-theme/stylesheets/partials/_theme.scss +290 -0
  48. data/lib/compass-theme/stylesheets/partials/_typography.scss +47 -0
  49. data/lib/compass-theme/stylesheets/screen.scss +28 -0
  50. data/lib/compass-theme/stylesheets/syntax/_shCore.scss +216 -0
  51. data/lib/compass-theme/stylesheets/syntax/_shThemeRDark.scss +113 -0
  52. data/lib/compass-theme/stylesheets/syntax/_syntax-theme.scss +8 -0
  53. data/lib/compass-theme/stylesheets/syntax/_theme_template.scss +120 -0
  54. data/lib/compass-theme/templates/.keep +0 -0
  55. data/lib/compass-theme/version.rb +5 -0
  56. metadata +134 -0
@@ -0,0 +1,17 @@
1
+ .clear-top-left-corner
2
+ +border-top-left-radius(0)
3
+ .clear-top-right-corner
4
+ +border-top-right-radius(0)
5
+ .clear-bottom-left-corner
6
+ +border-bottom-left-radius(0)
7
+ .clear-bottom-right-corner
8
+ +border-bottom-right-radius(0)
9
+
10
+ .hide
11
+ display: none
12
+ .clear-box-shadow
13
+ +box-shadow(none)
14
+ .clear-border-radius
15
+ @extend .clear-rounded-corners
16
+ .clear-rounded-corners
17
+ +border-radius(0)
@@ -0,0 +1,10 @@
1
+ @mixin reset($reset-type: false){
2
+ @if($reset-type){
3
+ @if($reset-type == global){
4
+ @include global-reset;
5
+ }
6
+ @if($reset-type == html5){
7
+ @include reset-html5;
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,17 @@
1
+ @import "compass";
2
+ @import "core/extensions";
3
+ @include reset(global);
4
+ @include reset(html5);
5
+ @import "core/base-classes";
6
+
7
+ @import "partials/theme";
8
+ @import "partials/layout";
9
+ @import "partials/nav";
10
+ @import "partials/typography";
11
+ @import "partials/main";
12
+ @import "partials/home";
13
+
14
+ html.dark { @include dark-theme; }
15
+ html.light { @include light-theme; }
16
+
17
+ @import "core/clearing-classes";
@@ -0,0 +1,5 @@
1
+ ul#featured_sites li {
2
+ margin-left: 4px;
3
+ margin-top: 4px;
4
+ &:hover{ padding: 6px;
5
+ img { width: 240px; }}}
@@ -0,0 +1,6 @@
1
+ body#blog-archive {
2
+ .timestamp {
3
+ margin-right: 1em;
4
+ font-size: 12px;
5
+ }
6
+ }
@@ -0,0 +1,113 @@
1
+ //html.sass .mixin-source .scss, html.scss .mixin-source .sass { @extend .hide;}
2
+ .mixin-source, .example-source, .function-source {
3
+ position: relative; @extend .fixed-font;
4
+ .syntaxhighlighter, pre {
5
+ &.scss, &.sass, &.css, &.haml, &.html { display: none; } } }
6
+
7
+ html.sass { .mixin-source, .example-source, .function-source { .syntaxhighlighter.sass { display: block; } } }
8
+ html.scss { .mixin-source, .example-source, .function-source { .syntaxhighlighter.scss { display: block; } } }
9
+ html.css .example-source .syntaxhighlighter.css { display: block; }
10
+ html.html .example-source .syntaxhighlighter.html { display: block; }
11
+ html.haml .example-source .syntaxhighlighter.haml { display: block; }
12
+
13
+
14
+
15
+ .mixin-source, .function-source { display: none; }
16
+
17
+ html.light .syntaxhighlighter, html.dark .syntaxhighlighter {
18
+ margin: 0 0 2px;
19
+ code { padding: 0; }
20
+ //font-size: 1.1em;
21
+ text-shadow: none;
22
+ .code-block { background: none; @extend .clear-box-shadow; }
23
+ table td.gutter { .line { &:first-child { padding-top: 10px !important; } &:last-child { padding-bottom: 10px !important; } } }
24
+ .toolbar { display: none; }
25
+ //a.help { font-size: 1.5em; @extend .pictos; color: #aaa; position: relative; right: 6px; top: 2px; }
26
+ }
27
+
28
+ a[rel="github-source"] {
29
+ position: relative;
30
+ float: right;
31
+ top: 1.1em;
32
+ }
33
+
34
+ pre {
35
+ margin: 1.5em 0;
36
+ overflow: auto;
37
+ .code-block:first-child { padding: .6em; display: block; }
38
+ .code-block:first-child { width: 100%; @include box-sizing(border-box); overflow: auto; }
39
+ }
40
+
41
+ .code-block { @extend .round-corners-4; @extend .fixed-font;
42
+ display: inline-block;
43
+ font-size: .95em;
44
+ padding: 0 .4em;
45
+ line-height: 1.5em;
46
+ }
47
+
48
+ .source-documentation {
49
+ @extend .round-corners-4;
50
+ padding: 10px 15px;
51
+ @include round-bottom-corners
52
+ }
53
+
54
+ h3 { @include round-corners;
55
+ padding: 10px 15px;
56
+ margin: 20px 0 20px;
57
+ font-weight: bold;
58
+ position: relative;
59
+ a { text-decoration: none;}
60
+ code, .arg { font-weight: normal; }
61
+ }
62
+ h3.mixin, h3.function { @include round-top-corners; margin-bottom: 2px;}
63
+ .arg {
64
+ display: inline-block;
65
+ padding: 0 2px;
66
+ &[data-default-value] {
67
+ font-style: italic;
68
+ &:before { content: "[" ; }
69
+ &:after { content: "]" ; }}
70
+ }
71
+
72
+ a[rel="view source"]{ float: right; padding: 9px 15px; margin-top: 20px; position: relative; z-index: 2; font-size: .8em; @include hover-link;}
73
+ h2 + a[rel="view source"]{ margin-top: 6px;}
74
+
75
+ .syntaxhighlighter {
76
+ a, div, code, table, table td, table tr, table tbody, table thead, table caption, textarea {
77
+ background: none; border: 0; bottom: auto; float: none; height: auto; left: auto; line-height: 1.2em !important;
78
+ padding: 0; margin: 0; outline: 0;
79
+ overflow: visible; position: static; right: auto;
80
+ text-align: left; top: auto; vertical-align: baseline;
81
+ width: auto;
82
+ font: { weight: normal; style: normal;
83
+ size: 1em;
84
+ }
85
+ min: { height: inherit; }
86
+ }
87
+ }
88
+
89
+ .syntaxhighlighter { width: 100%; margin: 1em 0 1em 0; position: relative; overflow: auto; font-size: 1em;
90
+
91
+ // set up bold and italic
92
+ .bold { font-weight: bold; }
93
+ .italic { font-style: italic; }
94
+ .line { white-space: pre; }
95
+
96
+ // main table and columns
97
+ table { width: 100%;
98
+ td.code { width: 100%;
99
+ .line { padding: 0 .6em; } }
100
+ td.gutter .line { text-align: right; padding: 0 0.8em 0 1em; } } // middle spacing between line numbers and lines
101
+
102
+ // Styles for the toolbar
103
+ .toolbar { position: absolute; right: 1px; top: 1px; width: 11px; height: 11px; font-size: 10px; z-index: 10;
104
+ span.title { display: inline; }
105
+ a { display: block; text-align: center; text-decoration: none; padding-top: 1px; } }
106
+ .container { position: relative; }
107
+ textarea { @include stretch(0, .65em, 0, .65em); @extend .fixed-font; font-size: .95em; line-height: 1.3em !important;}
108
+ }
109
+ .syntaxhighlighter, pre .code-block:first-child, pre {
110
+ &::-webkit-scrollbar { height: 12px; }
111
+ &::-webkit-scrollbar-button { &:start:decrement, &:end:increment { display: block; width: 0; height: 0; } }
112
+ &::-webkit-scrollbar-thumb:horizontal { -webkit-border-radius: 5px; -webkit-background-clip: padding-box; }
113
+ }
@@ -0,0 +1,29 @@
1
+ html.light #demo, html.dark #demo {
2
+ color: #333;
3
+ }
4
+
5
+ #demo {
6
+ @include round-corners;
7
+ @extend .group;
8
+ background: #fff;
9
+ margin-bottom: 1.2em;
10
+ padding: 40px;
11
+ code {
12
+ @include box-shadow(rgba(#000, .3) 0 1px 3px, rgba(#000, .15) 0 1px 0 0 inset);
13
+ background: #fff;
14
+ color: inherit;
15
+ }
16
+ }
17
+
18
+ #how {
19
+ section { width: 49%; float: left; }
20
+ section + section { float: right; }
21
+
22
+ .example-source { clear: both; }
23
+ }
24
+
25
+ #reference {
26
+ float: right;
27
+ margin-top: 1em;
28
+ }
29
+
@@ -0,0 +1,99 @@
1
+ body#home {
2
+ width: 810px;
3
+ #page { padding-top: 31px;}
4
+ h1#logo {
5
+ $logo: 'compass-logo.png';
6
+ background: image-url($logo) no-repeat;
7
+ text-indent: -9999px;
8
+ overflow: hidden;
9
+ width: image-width($logo);
10
+ height: image-height($logo)/2;
11
+ padding: 0;
12
+ margin: 0 auto 18px;
13
+ }
14
+ #{headings()}{ @extend .heading-font; }
15
+ h2 {
16
+ text-align: center;
17
+ font-size: 30px;
18
+ padding-bottom: 15px;
19
+ margin-bottom: 30px;
20
+ line-height: 1.1em;
21
+ }
22
+ h3 {
23
+ text-align: center;
24
+ font-size: 25px;
25
+ margin-top: 32px;
26
+ }
27
+ h4 { font-size: 1.5em; }
28
+ .overview {
29
+ @extend .group;
30
+ .compass { width: 406px; float: left;
31
+ h4:before { content: "k"; } }
32
+ .sass { width: 275px; float: right;
33
+ h4:before { content: "2"; } }
34
+ div {
35
+ padding: 20px;
36
+ h4 {
37
+ padding-bottom: 12px;
38
+ margin-bottom: 12px;
39
+ &:before {
40
+ @extend .pictos;
41
+ color: #fb292d;
42
+ display: inline-block;
43
+ font-size: 1.2em;
44
+ padding-right: .3em;
45
+ }
46
+ }
47
+ }
48
+ ol { padding-left: 0; list-style: inside decimal; margin-bottom: 0; }
49
+ p { margin-bottom: 0; }
50
+ ol, p { line-height: 1.8em; font-size: .95em;}
51
+ }
52
+ }
53
+ ul#featured_sites {
54
+ @extend .group;
55
+ overflow: visible;
56
+ margin-top: 30px;
57
+ list-style: none;
58
+ padding: 0px;
59
+ li {
60
+ float: left;
61
+ text-shadow: none;
62
+ overflow: visible;
63
+ position: relative;
64
+ &:nth-child(3n+2){ margin: 0 7px; }
65
+ &:nth-child(1n+4){ margin-top: 7px; }
66
+ &:nth-child(3n+4){ clear: left; }
67
+ padding: 6px;
68
+ a { text-decoration: none; }
69
+ img { float: left; width: 240px; }
70
+ span { display: none;}
71
+ &:hover { z-index: 100;
72
+ padding: 3px 2px;
73
+ img { width: 248px; }
74
+ span { display: block; position: absolute; text-shadow: none;}
75
+ }
76
+ .url {
77
+ bottom: 2px; left: 2px; right: 2px; background: #000; background: rgba(#000, .8); z-index: 102; padding: 2.2em 10px 6px;
78
+ font-size: .8em; border-top: 1px solid rgba(#fff, .2); }
79
+ .title { bottom: 1.7em; left: 0; z-index: 103; text-decoration: none; padding: 0 11px; color: #fff; }
80
+ }
81
+ }
82
+ section.book, section.gui {
83
+ width: 48%;
84
+ float: left;
85
+ @extend .group;
86
+ h3 { margin-bottom: 1em; height: 2em; text-align: left; }
87
+ }
88
+ section.book {
89
+ margin-right: 2%;
90
+ img { float: left; margin-right: 1em; margin-bottom: 1em; }
91
+ }
92
+ section.gui {
93
+ text-align: center;
94
+ .note {
95
+ font-size: smaller;
96
+ }
97
+ }
98
+
99
+ html.light body#home { h1#logo { background-position: bottom;} }
@@ -0,0 +1,10 @@
1
+ body#install {
2
+ #steps, p.madlib, p.note, h4 { margin-top: 1em; }
3
+ p.note { font-size: smaller; font-style: italic; }
4
+ p.warning { color: #c00; }
5
+ .customization { display: none; }
6
+ .customizable .customization { display: inline; }
7
+ blockquote { border-left: 2px solid #ccc;
8
+ text-indent: 0; padding-left: 0.5em; }
9
+ .customization input { width: 8em; }
10
+ }
@@ -0,0 +1,21 @@
1
+ $min-width: 700px;
2
+ $side-nav-width: 160px;
3
+ $main-min-width: $min-width - $side-nav-width;
4
+
5
+ body {
6
+ max-width: 1500px;
7
+ min-width: $min-width;
8
+ margin: 0 auto;
9
+ @extend .sans-font;
10
+ line-height: 1.45em;
11
+ }
12
+
13
+ #wrap { @extend .group; padding: 0 20px 20px; }
14
+ #page { @extend .group; padding-bottom: 30px; }
15
+ footer { @extend .group; clear: both; padding-top: 20px;}
16
+ header { padding: 22px 0 0; position: relative; }
17
+ #page aside + article { margin-left: $side-nav-width + 22px; padding-left: 23px; }
18
+ aside { float: left; width: $side-nav-width; position: relative; z-index: 2;}
19
+
20
+ body#home #page article { padding-left: 0;}
21
+ body.site, body#changelog, body.default { max-width: 1024px; }
@@ -0,0 +1,63 @@
1
+ body.get-involved h1 + p { font-size: 1.2em; line-height: 1.45em; }
2
+
3
+ #page {
4
+ position: relative;
5
+ padding-top: 40px;
6
+ & > article { padding-top: 10px; font-size: 15px;
7
+ img { max-width: 100%; } } }
8
+
9
+ #theme_pref {
10
+ a { display: block; font-size: 18px; width: .9em; position: relative; text-decoration: none; @extend .pictos; } }
11
+
12
+ #docs_panel {
13
+ position: absolute; top: 0; right: 0;
14
+ width: 100%;
15
+ & > div { float: right; margin-left: 10px; @include round-bottom-corners; border: 1px solid; border-top: 0;}
16
+ a { text-decoration: none; }
17
+ #theme_pref { padding: 3px 12px 6px; a { position: relative; top: 2px;} }
18
+ #version { font-size: .75em; padding: 4px 0 5px; background: none; border: none; position: absolute; left: 0; a { @include hover-link; } }
19
+
20
+ }
21
+
22
+ #syntax_pref, .syntax_pref { padding: 4px 8px 5px; a { font-size: .9em; padding: 0px 6px 1px; display: inline-block; line-height: 1.45em;} }
23
+
24
+ .syntax_pref {
25
+ float: left; @include round-top-corners; border: 1px solid; border-bottom: 0;
26
+ a { text-decoration: none; }
27
+ }
28
+
29
+ footer {
30
+ .links { float: left; font-size: .9em;
31
+ img { vertical-align: middle; padding-right: 5px; position: relative; top: -2px;}
32
+ span { position: relative; top: -1px; }
33
+ ul { @include horizontal-list(15px); overflow: visible;
34
+ li { padding-top: 3px; }
35
+ li:last-child {border: 0; @include box-shadow(none); } } }
36
+ }
37
+ #page article h2 {
38
+ margin-top: 1.5em;
39
+ }
40
+ h2 a.help {
41
+ text-indent: -9999px;
42
+ display: inline-block;
43
+ position: relative;
44
+ text-decoration: none;
45
+ @include opacity(.3);
46
+ &:hover { @include opacity(.7); }
47
+ &:before {
48
+ @extend .pictos;
49
+ content: "?";
50
+ text-indent: 0;
51
+ position: absolute;
52
+ top: 2px;
53
+ left: 0;
54
+ font-size: .85em;
55
+ }
56
+ }
57
+ hr {
58
+ height: 0px;
59
+ border: 0;
60
+ border-bottom-width: 4px;
61
+ margin: 3em 0;
62
+ background: transparent;
63
+ }
@@ -0,0 +1,96 @@
1
+ .triangle-marker {
2
+ border-color: transparent transparent;
3
+ content: "\00a0";
4
+ height: 0; width: 0;
5
+ position: absolute;
6
+ border-style: solid; }
7
+
8
+ nav a { @include hover-link; }
9
+ nav .selected a:hover { text-decoration: none;}
10
+
11
+ header { @extend .group;
12
+ font-size: 1.3em; @extend .heading-font; border-width: 4px;}
13
+ #main-nav {
14
+ display: inline-block;
15
+ padding-bottom: 10px;
16
+ ul {
17
+ @include horizontal-list(10px);
18
+ line-height: 2em; }}
19
+
20
+ #sub-nav {
21
+ @extend .group;
22
+ padding: 8px 0; }
23
+
24
+ #docs-nav, #module-nav {
25
+ display: inline-block;
26
+ float: left;
27
+ a {
28
+ padding: 2px 10px;
29
+ display: inline-block; }}
30
+
31
+ #docs-nav { padding-right: 30px;
32
+ & + #module-nav {
33
+ padding-left: 20px;
34
+ }}
35
+
36
+ #module-nav {
37
+ display: inline-block;
38
+ ul { @include horizontal-list(false); }}
39
+
40
+ body.getting-started #module-nav li.getting-started,
41
+ body.tutorial #module-nav li.tutorials,
42
+ body.support #module-nav li.support,
43
+ #module-nav li.selected {
44
+ position: relative;
45
+ a {
46
+ text-decoration: none;
47
+ }
48
+ a:before{ @extend .triangle-marker;
49
+ border-width: 0 8px 8px;
50
+ z-index: 2;
51
+ bottom: -9px;
52
+ left: 50%;
53
+ margin-left: -8px;
54
+ border-bottom-color: #121212;
55
+ }
56
+ &:before { @extend .triangle-marker;
57
+ border-bottom-color: #414141;
58
+ border-width: 0 6px 6px;
59
+ z-index: 3;
60
+ bottom: -9px;
61
+ left: 50%;
62
+ margin-left: -6px;
63
+ }
64
+ &:after { @extend .triangle-marker;
65
+ border-bottom-color: #343434;
66
+ border-width: 0 5px 5px;
67
+ z-index: 3;
68
+ bottom: -10px;
69
+ left: 50%;
70
+ margin-left: -5px;
71
+ }
72
+ }
73
+
74
+ #search-docs {
75
+ width: 170px;
76
+ float: right;
77
+ position: relative;
78
+ top: .3em;
79
+ //position: absolute; top: 29px; right: 0;
80
+ &:before {
81
+ content: "s";
82
+ display: block;
83
+ @extend .pictos;
84
+ position: absolute;
85
+ left: 6px;
86
+ top: 4px;
87
+ font-size: .8em;
88
+ z-index: 20;
89
+ @include opacity(.8)
90
+ }
91
+ input { @extend .sans-font; @include round-corners;
92
+ @include box-sizing(border-box);
93
+ width: 170px; border: 0; margin: 0; padding: 5px 8px 5px 26px;
94
+ font-size: .8em;
95
+ float: right;
96
+ position: relative; } }