stylin 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/Rakefile +21 -0
- data/app/assets/javascripts/stylin/application.js +4 -0
- data/app/assets/javascripts/stylin/highlight.pack.js +1 -0
- data/app/assets/javascripts/stylin/kss.js +54 -0
- data/app/assets/javascripts/stylin/styleguides.js +2 -0
- data/app/assets/stylesheets/stylin/_header.scss +12 -0
- data/app/assets/stylesheets/stylin/_navigation.css.scss +12 -0
- data/app/assets/stylesheets/stylin/application.css.scss +5 -0
- data/app/assets/stylesheets/stylin/highlight/arta.css +160 -0
- data/app/assets/stylesheets/stylin/highlight/ascetic.css +50 -0
- data/app/assets/stylesheets/stylin/highlight/brown_paper.css +105 -0
- data/app/assets/stylesheets/stylin/highlight/dark.css +105 -0
- data/app/assets/stylesheets/stylin/highlight/default.css +153 -0
- data/app/assets/stylesheets/stylin/highlight/docco.css +132 -0
- data/app/assets/stylesheets/stylin/highlight/far.css +113 -0
- data/app/assets/stylesheets/stylin/highlight/foundation.css +133 -0
- data/app/assets/stylesheets/stylin/highlight/github.css +125 -0
- data/app/assets/stylesheets/stylin/highlight/googlecode.css +147 -0
- data/app/assets/stylesheets/stylin/highlight/idea.css +122 -0
- data/app/assets/stylesheets/stylin/highlight/ir_black.css +105 -0
- data/app/assets/stylesheets/stylin/highlight/magula.css +123 -0
- data/app/assets/stylesheets/stylin/highlight/mono-blue.css +62 -0
- data/app/assets/stylesheets/stylin/highlight/monokai.css +127 -0
- data/app/assets/stylesheets/stylin/highlight/monokai_sublime.css +149 -0
- data/app/assets/stylesheets/stylin/highlight/obsidian.css +154 -0
- data/app/assets/stylesheets/stylin/highlight/pojoaque.css +106 -0
- data/app/assets/stylesheets/stylin/highlight/railscasts.css +182 -0
- data/app/assets/stylesheets/stylin/highlight/rainbow.css +112 -0
- data/app/assets/stylesheets/stylin/highlight/school_book.css +113 -0
- data/app/assets/stylesheets/stylin/highlight/solarized_dark.css +107 -0
- data/app/assets/stylesheets/stylin/highlight/solarized_light.css +107 -0
- data/app/assets/stylesheets/stylin/highlight/sunburst.css +160 -0
- data/app/assets/stylesheets/stylin/highlight/tomorrow-night-blue.css +93 -0
- data/app/assets/stylesheets/stylin/highlight/tomorrow-night-bright.css +92 -0
- data/app/assets/stylesheets/stylin/highlight/tomorrow-night-eighties.css +92 -0
- data/app/assets/stylesheets/stylin/highlight/tomorrow-night.css +93 -0
- data/app/assets/stylesheets/stylin/highlight/tomorrow.css +90 -0
- data/app/assets/stylesheets/stylin/highlight/vs.css +89 -0
- data/app/assets/stylesheets/stylin/highlight/xcode.css +158 -0
- data/app/assets/stylesheets/stylin/highlight/zenburn.css +117 -0
- data/app/assets/stylesheets/stylin/styleguides.css.scss +106 -0
- data/app/controllers/stylin/application_controller.rb +11 -0
- data/app/controllers/stylin/styleguides_controller.rb +13 -0
- data/app/helpers/stylin/application_helper.rb +4 -0
- data/app/helpers/stylin/navigation_helper.rb +50 -0
- data/app/helpers/stylin/styleguides_helper.rb +29 -0
- data/app/models/styleguide.rb +69 -0
- data/app/views/layouts/stylin/_navigation.html.erb +3 -0
- data/app/views/layouts/stylin/application.html.erb +26 -0
- data/app/views/stylin/styleguides/_section.html.erb +31 -0
- data/app/views/stylin/styleguides/index.html.erb +5 -0
- data/app/views/stylin/styleguides/show.html.erb +3 -0
- data/config/routes.rb +5 -0
- data/lib/generators/stylin/install_generator.rb +12 -0
- data/lib/generators/stylin/views_generator.rb +10 -0
- data/lib/generators/templates/stylin.yml +7 -0
- data/lib/generators/templates/views/layouts/stylin/_navigation.html.erb +3 -0
- data/lib/generators/templates/views/layouts/stylin/application.html.erb +23 -0
- data/lib/generators/templates/views/stylin/styleguides/_section.html.erb +30 -0
- data/lib/generators/templates/views/stylin/styleguides/index.html.erb +5 -0
- data/lib/generators/templates/views/stylin/styleguides/show.html.erb +3 -0
- data/lib/stylin.rb +8 -0
- data/lib/stylin/engine.rb +37 -0
- data/lib/stylin/version.rb +3 -0
- data/lib/tasks/stylin_tasks.rake +12 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css.scss +1 -0
- data/spec/dummy/app/assets/stylesheets/buttons.css +51 -0
- data/spec/dummy/app/assets/stylesheets/forms.css +51 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/styleguides/buttons.html +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/stylin.yml +3 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/production.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +16 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +4143 -0
- data/spec/dummy/log/production.log +4 -0
- data/spec/dummy/log/test.log +380 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/models/styleguide_spec.rb +55 -0
- data/spec/spec_helper.rb +22 -0
- metadata +327 -0
@@ -0,0 +1,89 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Visual Studio-like style based on original C# coloring by Jason Diamond <jason@diamond.name>
|
4
|
+
|
5
|
+
*/
|
6
|
+
.hljs {
|
7
|
+
display: block; padding: 0.5em;
|
8
|
+
background: white; color: black;
|
9
|
+
}
|
10
|
+
|
11
|
+
.hljs-comment,
|
12
|
+
.hljs-annotation,
|
13
|
+
.hljs-template_comment,
|
14
|
+
.diff .hljs-header,
|
15
|
+
.hljs-chunk,
|
16
|
+
.apache .hljs-cbracket {
|
17
|
+
color: #008000;
|
18
|
+
}
|
19
|
+
|
20
|
+
.hljs-keyword,
|
21
|
+
.hljs-id,
|
22
|
+
.hljs-built_in,
|
23
|
+
.smalltalk .hljs-class,
|
24
|
+
.hljs-winutils,
|
25
|
+
.bash .hljs-variable,
|
26
|
+
.tex .hljs-command,
|
27
|
+
.hljs-request,
|
28
|
+
.hljs-status,
|
29
|
+
.nginx .hljs-title,
|
30
|
+
.xml .hljs-tag,
|
31
|
+
.xml .hljs-tag .hljs-value {
|
32
|
+
color: #00f;
|
33
|
+
}
|
34
|
+
|
35
|
+
.hljs-string,
|
36
|
+
.hljs-title,
|
37
|
+
.hljs-parent,
|
38
|
+
.hljs-tag .hljs-value,
|
39
|
+
.hljs-rules .hljs-value,
|
40
|
+
.hljs-rules .hljs-value .hljs-number,
|
41
|
+
.ruby .hljs-symbol,
|
42
|
+
.ruby .hljs-symbol .hljs-string,
|
43
|
+
.hljs-aggregate,
|
44
|
+
.hljs-template_tag,
|
45
|
+
.django .hljs-variable,
|
46
|
+
.hljs-addition,
|
47
|
+
.hljs-flow,
|
48
|
+
.hljs-stream,
|
49
|
+
.apache .hljs-tag,
|
50
|
+
.hljs-date,
|
51
|
+
.tex .hljs-formula,
|
52
|
+
.coffeescript .hljs-attribute {
|
53
|
+
color: #a31515;
|
54
|
+
}
|
55
|
+
|
56
|
+
.ruby .hljs-string,
|
57
|
+
.hljs-decorator,
|
58
|
+
.hljs-filter .hljs-argument,
|
59
|
+
.hljs-localvars,
|
60
|
+
.hljs-array,
|
61
|
+
.hljs-attr_selector,
|
62
|
+
.hljs-pseudo,
|
63
|
+
.hljs-pi,
|
64
|
+
.hljs-doctype,
|
65
|
+
.hljs-deletion,
|
66
|
+
.hljs-envvar,
|
67
|
+
.hljs-shebang,
|
68
|
+
.hljs-preprocessor,
|
69
|
+
.hljs-pragma,
|
70
|
+
.userType,
|
71
|
+
.apache .hljs-sqbracket,
|
72
|
+
.nginx .hljs-built_in,
|
73
|
+
.tex .hljs-special,
|
74
|
+
.hljs-prompt {
|
75
|
+
color: #2b91af;
|
76
|
+
}
|
77
|
+
|
78
|
+
.hljs-phpdoc,
|
79
|
+
.hljs-javadoc,
|
80
|
+
.hljs-xmlDocTag {
|
81
|
+
color: #808080;
|
82
|
+
}
|
83
|
+
|
84
|
+
.vhdl .hljs-typename { font-weight: bold; }
|
85
|
+
.vhdl .hljs-string { color: #666666; }
|
86
|
+
.vhdl .hljs-literal { color: #a31515; }
|
87
|
+
.vhdl .hljs-attribute { color: #00B0E8; }
|
88
|
+
|
89
|
+
.xml .hljs-attribute { color: #f00; }
|
@@ -0,0 +1,158 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
XCode style (c) Angel Garcia <angelgarcia.mail@gmail.com>
|
4
|
+
|
5
|
+
*/
|
6
|
+
|
7
|
+
.hljs {
|
8
|
+
display: block; padding: 0.5em;
|
9
|
+
background: #fff; color: black;
|
10
|
+
}
|
11
|
+
|
12
|
+
.hljs-comment,
|
13
|
+
.hljs-template_comment,
|
14
|
+
.hljs-javadoc,
|
15
|
+
.hljs-comment * {
|
16
|
+
color: #006a00;
|
17
|
+
}
|
18
|
+
|
19
|
+
.hljs-keyword,
|
20
|
+
.hljs-literal,
|
21
|
+
.nginx .hljs-title {
|
22
|
+
color: #aa0d91;
|
23
|
+
}
|
24
|
+
.method,
|
25
|
+
.hljs-list .hljs-title,
|
26
|
+
.hljs-tag .hljs-title,
|
27
|
+
.setting .hljs-value,
|
28
|
+
.hljs-winutils,
|
29
|
+
.tex .hljs-command,
|
30
|
+
.http .hljs-title,
|
31
|
+
.hljs-request,
|
32
|
+
.hljs-status {
|
33
|
+
color: #008;
|
34
|
+
}
|
35
|
+
|
36
|
+
.hljs-envvar,
|
37
|
+
.tex .hljs-special {
|
38
|
+
color: #660;
|
39
|
+
}
|
40
|
+
|
41
|
+
.hljs-string {
|
42
|
+
color: #c41a16;
|
43
|
+
}
|
44
|
+
.hljs-tag .hljs-value,
|
45
|
+
.hljs-cdata,
|
46
|
+
.hljs-filter .hljs-argument,
|
47
|
+
.hljs-attr_selector,
|
48
|
+
.apache .hljs-cbracket,
|
49
|
+
.hljs-date,
|
50
|
+
.hljs-regexp {
|
51
|
+
color: #080;
|
52
|
+
}
|
53
|
+
|
54
|
+
.hljs-sub .hljs-identifier,
|
55
|
+
.hljs-pi,
|
56
|
+
.hljs-tag,
|
57
|
+
.hljs-tag .hljs-keyword,
|
58
|
+
.hljs-decorator,
|
59
|
+
.ini .hljs-title,
|
60
|
+
.hljs-shebang,
|
61
|
+
.hljs-prompt,
|
62
|
+
.hljs-hexcolor,
|
63
|
+
.hljs-rules .hljs-value,
|
64
|
+
.css .hljs-value .hljs-number,
|
65
|
+
.hljs-symbol,
|
66
|
+
.hljs-symbol .hljs-string,
|
67
|
+
.hljs-number,
|
68
|
+
.css .hljs-function,
|
69
|
+
.clojure .hljs-title,
|
70
|
+
.clojure .hljs-built_in,
|
71
|
+
.hljs-function .hljs-title,
|
72
|
+
.coffeescript .hljs-attribute {
|
73
|
+
color: #1c00cf;
|
74
|
+
}
|
75
|
+
|
76
|
+
.hljs-class .hljs-title,
|
77
|
+
.haskell .hljs-type,
|
78
|
+
.smalltalk .hljs-class,
|
79
|
+
.hljs-javadoctag,
|
80
|
+
.hljs-yardoctag,
|
81
|
+
.hljs-phpdoc,
|
82
|
+
.hljs-typename,
|
83
|
+
.hljs-tag .hljs-attribute,
|
84
|
+
.hljs-doctype,
|
85
|
+
.hljs-class .hljs-id,
|
86
|
+
.hljs-built_in,
|
87
|
+
.setting,
|
88
|
+
.hljs-params,
|
89
|
+
.clojure .hljs-attribute {
|
90
|
+
color: #5c2699;
|
91
|
+
}
|
92
|
+
|
93
|
+
.hljs-variable {
|
94
|
+
color: #3f6e74;
|
95
|
+
}
|
96
|
+
.css .hljs-tag,
|
97
|
+
.hljs-rules .hljs-property,
|
98
|
+
.hljs-pseudo,
|
99
|
+
.hljs-subst {
|
100
|
+
color: #000;
|
101
|
+
}
|
102
|
+
|
103
|
+
.css .hljs-class,
|
104
|
+
.css .hljs-id {
|
105
|
+
color: #9B703F;
|
106
|
+
}
|
107
|
+
|
108
|
+
.hljs-value .hljs-important {
|
109
|
+
color: #ff7700;
|
110
|
+
font-weight: bold;
|
111
|
+
}
|
112
|
+
|
113
|
+
.hljs-rules .hljs-keyword {
|
114
|
+
color: #C5AF75;
|
115
|
+
}
|
116
|
+
|
117
|
+
.hljs-annotation,
|
118
|
+
.apache .hljs-sqbracket,
|
119
|
+
.nginx .hljs-built_in {
|
120
|
+
color: #9B859D;
|
121
|
+
}
|
122
|
+
|
123
|
+
.hljs-preprocessor,
|
124
|
+
.hljs-preprocessor *,
|
125
|
+
.hljs-pragma {
|
126
|
+
color: #643820;
|
127
|
+
}
|
128
|
+
|
129
|
+
.tex .hljs-formula {
|
130
|
+
background-color: #EEE;
|
131
|
+
font-style: italic;
|
132
|
+
}
|
133
|
+
|
134
|
+
.diff .hljs-header,
|
135
|
+
.hljs-chunk {
|
136
|
+
color: #808080;
|
137
|
+
font-weight: bold;
|
138
|
+
}
|
139
|
+
|
140
|
+
.diff .hljs-change {
|
141
|
+
background-color: #BCCFF9;
|
142
|
+
}
|
143
|
+
|
144
|
+
.hljs-addition {
|
145
|
+
background-color: #BAEEBA;
|
146
|
+
}
|
147
|
+
|
148
|
+
.hljs-deletion {
|
149
|
+
background-color: #FFC8BD;
|
150
|
+
}
|
151
|
+
|
152
|
+
.hljs-comment .hljs-yardoctag {
|
153
|
+
font-weight: bold;
|
154
|
+
}
|
155
|
+
|
156
|
+
.method .hljs-id {
|
157
|
+
color: #000;
|
158
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Zenburn style from voldmar.ru (c) Vladimir Epifanov <voldmar@voldmar.ru>
|
4
|
+
based on dark.css by Ivan Sagalaev
|
5
|
+
|
6
|
+
*/
|
7
|
+
|
8
|
+
.hljs {
|
9
|
+
display: block; padding: 0.5em;
|
10
|
+
background: #3F3F3F;
|
11
|
+
color: #DCDCDC;
|
12
|
+
}
|
13
|
+
|
14
|
+
.hljs-keyword,
|
15
|
+
.hljs-tag,
|
16
|
+
.css .hljs-class,
|
17
|
+
.css .hljs-id,
|
18
|
+
.lisp .hljs-title,
|
19
|
+
.nginx .hljs-title,
|
20
|
+
.hljs-request,
|
21
|
+
.hljs-status,
|
22
|
+
.clojure .hljs-attribute {
|
23
|
+
color: #E3CEAB;
|
24
|
+
}
|
25
|
+
|
26
|
+
.django .hljs-template_tag,
|
27
|
+
.django .hljs-variable,
|
28
|
+
.django .hljs-filter .hljs-argument {
|
29
|
+
color: #DCDCDC;
|
30
|
+
}
|
31
|
+
|
32
|
+
.hljs-number,
|
33
|
+
.hljs-date {
|
34
|
+
color: #8CD0D3;
|
35
|
+
}
|
36
|
+
|
37
|
+
.dos .hljs-envvar,
|
38
|
+
.dos .hljs-stream,
|
39
|
+
.hljs-variable,
|
40
|
+
.apache .hljs-sqbracket {
|
41
|
+
color: #EFDCBC;
|
42
|
+
}
|
43
|
+
|
44
|
+
.dos .hljs-flow,
|
45
|
+
.diff .hljs-change,
|
46
|
+
.python .exception,
|
47
|
+
.python .hljs-built_in,
|
48
|
+
.hljs-literal,
|
49
|
+
.tex .hljs-special {
|
50
|
+
color: #EFEFAF;
|
51
|
+
}
|
52
|
+
|
53
|
+
.diff .hljs-chunk,
|
54
|
+
.hljs-subst {
|
55
|
+
color: #8F8F8F;
|
56
|
+
}
|
57
|
+
|
58
|
+
.dos .hljs-keyword,
|
59
|
+
.python .hljs-decorator,
|
60
|
+
.hljs-title,
|
61
|
+
.haskell .hljs-type,
|
62
|
+
.diff .hljs-header,
|
63
|
+
.ruby .hljs-class .hljs-parent,
|
64
|
+
.apache .hljs-tag,
|
65
|
+
.nginx .hljs-built_in,
|
66
|
+
.tex .hljs-command,
|
67
|
+
.hljs-prompt {
|
68
|
+
color: #efef8f;
|
69
|
+
}
|
70
|
+
|
71
|
+
.dos .hljs-winutils,
|
72
|
+
.ruby .hljs-symbol,
|
73
|
+
.ruby .hljs-symbol .hljs-string,
|
74
|
+
.ruby .hljs-string {
|
75
|
+
color: #DCA3A3;
|
76
|
+
}
|
77
|
+
|
78
|
+
.diff .hljs-deletion,
|
79
|
+
.hljs-string,
|
80
|
+
.hljs-tag .hljs-value,
|
81
|
+
.hljs-preprocessor,
|
82
|
+
.hljs-pragma,
|
83
|
+
.hljs-built_in,
|
84
|
+
.sql .hljs-aggregate,
|
85
|
+
.hljs-javadoc,
|
86
|
+
.smalltalk .hljs-class,
|
87
|
+
.smalltalk .hljs-localvars,
|
88
|
+
.smalltalk .hljs-array,
|
89
|
+
.css .hljs-rules .hljs-value,
|
90
|
+
.hljs-attr_selector,
|
91
|
+
.hljs-pseudo,
|
92
|
+
.apache .hljs-cbracket,
|
93
|
+
.tex .hljs-formula,
|
94
|
+
.coffeescript .hljs-attribute {
|
95
|
+
color: #CC9393;
|
96
|
+
}
|
97
|
+
|
98
|
+
.hljs-shebang,
|
99
|
+
.diff .hljs-addition,
|
100
|
+
.hljs-comment,
|
101
|
+
.java .hljs-annotation,
|
102
|
+
.hljs-template_comment,
|
103
|
+
.hljs-pi,
|
104
|
+
.hljs-doctype {
|
105
|
+
color: #7F9F7F;
|
106
|
+
}
|
107
|
+
|
108
|
+
.coffeescript .javascript,
|
109
|
+
.javascript .xml,
|
110
|
+
.tex .hljs-formula,
|
111
|
+
.xml .javascript,
|
112
|
+
.xml .vbscript,
|
113
|
+
.xml .css,
|
114
|
+
.xml .hljs-cdata {
|
115
|
+
opacity: 0.5;
|
116
|
+
}
|
117
|
+
|
@@ -0,0 +1,106 @@
|
|
1
|
+
$light-gray: #FEFEFE;
|
2
|
+
$light-medium-gray: #F1F1F1;
|
3
|
+
$medium-gray: #DDDDDD;
|
4
|
+
$dark-gray: #333333;
|
5
|
+
$black: #000000;
|
6
|
+
$white: #FFFFFF;
|
7
|
+
|
8
|
+
$styleguide-background: $light-gray;
|
9
|
+
$styleguide-border: $medium-gray;
|
10
|
+
|
11
|
+
$styleguide-header: $white;
|
12
|
+
$styleguide-header-border: $black;
|
13
|
+
$styleguide-header-background: $dark-gray;
|
14
|
+
$styleguide-header-em: $white;
|
15
|
+
|
16
|
+
$styleguide-description-border: $dark-gray;
|
17
|
+
$styleguide-description-background: $light-medium-gray;
|
18
|
+
|
19
|
+
$styleguide-element-border: $medium-gray;
|
20
|
+
|
21
|
+
$styleguide-modifier-name: $black;
|
22
|
+
$styleguide-modifier-name-background: $light-medium-gray;
|
23
|
+
$styleguide-modifier-name-border: $medium-gray;
|
24
|
+
|
25
|
+
.styleguide-example {
|
26
|
+
margin-bottom: 15px;
|
27
|
+
background-color: $styleguide-background;
|
28
|
+
border: 1px solid $styleguide-border;
|
29
|
+
|
30
|
+
& > h3 {
|
31
|
+
margin: 0;
|
32
|
+
padding: 5px;
|
33
|
+
color: $styleguide-header;
|
34
|
+
font-size: 12px;
|
35
|
+
text-transform: uppercase;
|
36
|
+
background: $styleguide-header-background;
|
37
|
+
border-top: 1px solid $styleguide-header-border;
|
38
|
+
|
39
|
+
em {
|
40
|
+
float: right;
|
41
|
+
text-transform: none;
|
42
|
+
font-style: normal;
|
43
|
+
font-weight: normal;
|
44
|
+
color: $styleguide-header-em;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
.styleguide-description {
|
49
|
+
padding: 10px 5px;
|
50
|
+
background: $styleguide-description-background;
|
51
|
+
border-bottom: 1px solid $styleguide-description-border;
|
52
|
+
|
53
|
+
p:first-child { margin-top: 0; }
|
54
|
+
p:last-child { margin-bottom: 0; }
|
55
|
+
}
|
56
|
+
|
57
|
+
.styleguide-element + .styleguide-element {
|
58
|
+
margin-top: -5px;
|
59
|
+
border-top: 1px solid $styleguide-element-border;
|
60
|
+
}
|
61
|
+
|
62
|
+
.styleguide-element {
|
63
|
+
position: relative;
|
64
|
+
padding: 45px 20px 45px 20px;
|
65
|
+
|
66
|
+
.styleguide-modifier-name {
|
67
|
+
display: block;
|
68
|
+
position: absolute;
|
69
|
+
top: 0;
|
70
|
+
right: 0;
|
71
|
+
padding: 5px 8px;
|
72
|
+
font-size: 11px;
|
73
|
+
color: $styleguide-modifier-name;
|
74
|
+
background: $styleguide-modifier-name-background;
|
75
|
+
border: 1px solid $styleguide-modifier-name-border;
|
76
|
+
border-top: none;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.styleguide-html {
|
81
|
+
padding: 5px 10px;
|
82
|
+
background: #edf6f8;
|
83
|
+
border-top: 1px solid #dde7ea;
|
84
|
+
overflow: auto;
|
85
|
+
|
86
|
+
.highlight { background: none; }
|
87
|
+
}
|
88
|
+
|
89
|
+
ul.styleguide-modifiers {
|
90
|
+
margin: 0 0 0 10px;
|
91
|
+
|
92
|
+
li {
|
93
|
+
list-style-type: none;
|
94
|
+
margin-left: 0;
|
95
|
+
|
96
|
+
strong {
|
97
|
+
font-family: Monaco, monospace;
|
98
|
+
font-size: 12px;
|
99
|
+
font-weight: normal;
|
100
|
+
color: #222;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
& > .styleguide-code { font-family: Monaco, monospace; }
|
106
|
+
}
|