sb_internal_style 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ $page_background_color: #eee;
2
+ $text_color: #666;
3
+
4
+ $green: #2EFF09;
5
+ $light_green: #00A000;
6
+ $blue: #158FB5;
7
+ $light_blue: rgba(21, 143, 181, 0.44);
8
+
9
+ $highlight: #ff8;
10
+
11
+ $good_color: $light_green;
12
+ $ok_color: orange;
13
+ $bad_color: red;
@@ -0,0 +1,33 @@
1
+ // Visual differentiation for links.
2
+
3
+ a {
4
+ color: $blue;
5
+
6
+ &:link, &:visited {
7
+ color: $blue;
8
+ text-decoration: none;
9
+ }
10
+
11
+ &:hover {
12
+ color: lighten($blue, 10%);
13
+ text-decoration: underline;
14
+ }
15
+
16
+ &.primary {
17
+ color: $blue;
18
+ &:hover {
19
+ color: lighten($blue, 10%);
20
+ }
21
+ }
22
+
23
+ &.secondary, &.secondary:link, &.secondary:visited {
24
+ color: darken($text_color, 12%);
25
+ &:hover {
26
+ color: darken($text_color, 20%);
27
+ }
28
+ }
29
+
30
+ img {
31
+ border: none;
32
+ }
33
+ }
@@ -0,0 +1,455 @@
1
+ @import './_colors';
2
+ @import './_links';
3
+
4
+
5
+ @mixin body-typography {
6
+ font-family: Arial, Verdana, Helvetica;
7
+ font-size: 9pt;
8
+ color: $text_color;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: 'singlebrookRegular';
13
+ src: font-url('singlebrookrounded-webfont.eot');
14
+ src: font-url('singlebrookrounded-webfont.eot?#iefix') format('embedded-opentype'),
15
+ font-url('singlebrookrounded-webfont.woff') format('woff'),
16
+ font-url('singlebrookrounded-webfont.ttf') format('truetype'),
17
+ font-url('singlebrookrounded-webfont.svg#singlebrookRegular') format('svg');
18
+ font-weight: normal;
19
+ font-style: normal;
20
+ }
21
+
22
+ h1, h2, h3, h4, h5, fieldset legend {
23
+ font-family: "Arial Rounded MT Bold";
24
+ font-weight: normal;
25
+ }
26
+
27
+ h4 {
28
+ margin-bottom: 0.5em;
29
+ }
30
+
31
+ ul {
32
+ margin-top: 0.5em;
33
+
34
+ &.plain{
35
+ padding-left: 0;
36
+ line-height: 1.5;
37
+
38
+ li {
39
+ list-style-type: none;
40
+ }
41
+ }
42
+ }
43
+
44
+ .logo {
45
+ line-height: .75;
46
+ }
47
+ .logo, span.help_icon {
48
+ font-family: 'singlebrookRegular';
49
+ }
50
+ span.help_icon {
51
+ background-color: $light_blue;
52
+ color: $page_background_color;
53
+ display: inline-block;
54
+ margin-top: 3px;
55
+ padding: 3px 5px !important;
56
+ border-radius: 14px;
57
+ &:before {
58
+ content: 'D';
59
+ }
60
+ .help_text {
61
+ display: none;
62
+ }
63
+ }
64
+
65
+
66
+ h1.logo {
67
+ font-size: 1000%;
68
+ margin: .35em auto;
69
+ text-align:center;
70
+ width:300px;
71
+ font-weight: normal;
72
+ color: $blue;
73
+ padding: 0 0 0 .2em;
74
+ }
75
+
76
+ a.logo.home {
77
+ font-size:300%;
78
+ float:left;
79
+ margin:0;
80
+ color:$blue;
81
+ text-decoration:none;
82
+ padding: .5em;
83
+ }
84
+
85
+
86
+ #header {
87
+ border-bottom:#ccc 1px solid;
88
+ margin:0 0 1em 0;
89
+ padding: 0 0 1em 0;
90
+ position: relative;
91
+ overflow: auto;
92
+ }
93
+
94
+ body {
95
+ @include body-typography;
96
+ background-color: #555;
97
+ }
98
+
99
+ div#flashes + .content_column a {
100
+ line-height: 1.5;
101
+ }
102
+
103
+ h2 {
104
+ font-size: 1.25em;
105
+ margin: 1.5em 0em 0.25em 0em;
106
+ }
107
+
108
+ fieldset {
109
+ border: 1px solid #aaa;
110
+ legend {
111
+ font-size: 1.25em;
112
+ /* Can't use margin on legend in Firefox, apparently -Jared 2012-04-26 */
113
+ /* margin: 1.5em 0em 0.25em 0em; */
114
+ }
115
+ }
116
+
117
+ p {
118
+ margin: 1em 0;
119
+ }
120
+
121
+ .center {
122
+ text-align: center; }
123
+
124
+ table.center {
125
+ text-align:normal;
126
+ margin:0 auto;
127
+ }
128
+
129
+ .left {
130
+ text-align: left; }
131
+
132
+ .right {
133
+ text-align: right; }
134
+
135
+ .bold {
136
+ font-weight: bold; }
137
+
138
+ .nowrap {
139
+ white-space: nowrap; }
140
+
141
+ .hidden { display: none; }
142
+
143
+ .background_green { background: $green; }
144
+ .background_red { background: #f00; }
145
+
146
+ table.entitylist {
147
+ border-spacing: 0px;
148
+ width: 100%;
149
+ th, td {
150
+ padding: 8px 10px;
151
+ }
152
+ tr.sum td {
153
+ background-color:white;
154
+ text-align:right;
155
+ }
156
+ }
157
+ table.compact {
158
+ width: auto;
159
+ th, td {
160
+ padding: 4px;
161
+ }
162
+ }
163
+
164
+ th.numeric, td.numeric {
165
+ text-align: right;
166
+ }
167
+
168
+ td.center {
169
+ text-align:center;
170
+ }
171
+
172
+
173
+ .clear {
174
+ clear: both;
175
+ height: 0;
176
+ overflow: hidden; }
177
+
178
+
179
+ input {
180
+ padding: .25em;
181
+ font-family: arial, helvetica, sans-serif;
182
+ font-size: 1.1em;
183
+ }
184
+
185
+ select {
186
+ width: 200px;
187
+ height: 25px;
188
+ margin: .25em;
189
+ }
190
+
191
+ #container {
192
+ width: 1000px;
193
+ background-color: $page_background_color;
194
+ padding: 20px;
195
+ border: solid 10px #ddd;
196
+ margin: 5px auto 5px;
197
+ border-radius: 4px;
198
+ -moz-box-shadow: 0px 0px 1px #aaa;
199
+ -webkit-box-shadow: 0px 0px 1px #aaa;
200
+ box-shadow: 0px 0px 1px #aaa;
201
+ }
202
+
203
+ #flashes {
204
+ clear: both;
205
+ }
206
+
207
+ #flash_notice, #flash_error {
208
+ padding: 5px 8px;
209
+ margin: 10px 0;
210
+ border-radius: 4px;
211
+ }
212
+
213
+ #flash_notice {
214
+ background-color: #CFC;
215
+ border: solid 1px #6C6;
216
+ color: #6C6;
217
+ }
218
+
219
+ #flash_error {
220
+ background-color: #FCC;
221
+ border: solid 1px #C66; }
222
+
223
+ .warning {
224
+ color: #c00;
225
+ }
226
+
227
+ .field_with_errors {
228
+ display: inline;
229
+ color: #C00;
230
+ }
231
+
232
+ #errorExplanation {
233
+ width: 400px;
234
+ border: 1px solid #CF0000;
235
+ padding: 0px;
236
+ padding-bottom: 12px;
237
+ margin-bottom: 20px;
238
+ background-color: #f0f0f0;
239
+ border-radius: 3px;
240
+ -moz-box-shadow: 0px 0px 4px #ccc;
241
+ -webkit-box-shadow: 0px 0px 4px #ccc;
242
+ box-shadow: 0px 0px 4px #ccc;
243
+ color: #CF0000;
244
+
245
+ h2 {
246
+ text-align: left;
247
+ font-weight: bold;
248
+ padding: 5px 5px 5px 15px;
249
+ font-size: 12px;
250
+ margin: 0;
251
+ background-color: #c00;
252
+ color: #fff; }
253
+
254
+ p {
255
+ color: #333;
256
+ margin-bottom: 0;
257
+ padding: 8px; }
258
+
259
+ ul {
260
+ margin: 2px 24px;
261
+ clear: both;
262
+
263
+ li {
264
+ font-size: 12px;
265
+ list-style: disc;
266
+ }
267
+ }
268
+ }
269
+
270
+ #quicknav {
271
+ float:right;
272
+ color: #eee;
273
+ }
274
+
275
+ #quicknav a {
276
+ text-transform: uppercase;
277
+ letter-spacing: 1px;
278
+ font-weight: bold;
279
+ display: inline-block;
280
+ margin-left: 10px;
281
+ font-size: 10px;
282
+ padding: .5em 1em;
283
+ border: 1px solid #158eb3;
284
+ border-radius: 3px;
285
+ background-image: -webkit-gradient(linear, center top, center bottom, from(#1dc3f5), to(#158fb5));
286
+ background-image: -webkit-linear-gradient(top, #1dc3f5, #158fb5);
287
+ background-image: -moz-linear-gradient(top, #1dc3f5, #158fb5);
288
+ background-image: -o-linear-gradient(top, #1dc3f5, #158fb5);
289
+ background-image: -ms-linear-gradient(top, #1dc3f5, #158fb5);
290
+ background-image: linear-gradient(top, #1dc3f5, #158fb5);
291
+ -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.61);
292
+ -moz-box-shadow: 0 0 3px rgba(0,0,0,0.61);
293
+ box-shadow: 0 0 3px rgba(0,0,0,0.61);
294
+ color: #fff;
295
+ border-radius: 3px;
296
+ text-shadow: 0 -1px 0 #158fb5;
297
+ }
298
+
299
+ #quicknav a:hover {
300
+ background-image: -webkit-gradient(linear, center top, center bottom, from(#89def8), to(#1dc3f5));
301
+ background-image: -webkit-linear-gradient(top, #89def8, #1dc3f5);
302
+ background-image: -moz-linear-gradient(top, #89def8, #1dc3f5);
303
+ background-image: -o-linear-gradient(top, #89def8, #1dc3f5);
304
+ background-image: -ms-linear-gradient(top, #89def8, #1dc3f5);
305
+ background-image: linear-gradient(top, #89def8, #1dc3f5);
306
+ border: 1px solid #1dc3f5;
307
+ text-shadow: 0 -1px 0 #1dc3f5;
308
+
309
+ }
310
+
311
+ .content_column {
312
+ float: left;
313
+ margin-right: 25px;
314
+ margin-left: 10px;
315
+ &.half {
316
+ width: 450px;
317
+ }
318
+ }
319
+
320
+ .content_column.half + .content_column.half {
321
+ margin-right: 0;
322
+ }
323
+
324
+ .content_column + .content_column + .content_column {
325
+ margin-right: 0;
326
+ }
327
+
328
+ .column {
329
+ float: left;
330
+ margin: 0px 10px;
331
+ }
332
+
333
+ .reset_columns {
334
+ clear: both;
335
+ }
336
+
337
+ /* red or green numbers to indicate negative or positive result */
338
+ .ok, .good, .bad { font-weight:bold; }
339
+
340
+ .good { color: $good_color; }
341
+ .bad { color: $bad_color; }
342
+ .ok { color: $ok_color; }
343
+
344
+ form.compact {
345
+ overflow: auto; /* Make the form contain its floating children */
346
+
347
+ label {
348
+ width: 100px;
349
+ padding-right: 10px;
350
+ }
351
+
352
+ label, .field p, .field span {
353
+ float: left;
354
+ display: inline-block;
355
+ padding-top: 6px;
356
+ }
357
+
358
+ .field p {
359
+ max-width: 340px;
360
+ }
361
+
362
+ label.long {
363
+ width: 250px;
364
+ }
365
+
366
+ input, select, img {
367
+ float: left;
368
+ }
369
+
370
+ .field {
371
+ clear: left;
372
+ float: left;
373
+ overflow: auto; /* Expand to contain its floating children */
374
+
375
+ .explanation {
376
+ clear: both;
377
+ padding-left: 115px;
378
+ }
379
+
380
+ &.wider {
381
+ width: 400px;
382
+ }
383
+ }
384
+
385
+ p, .field {
386
+ /*clear: left;
387
+ float: left;*/
388
+ margin: 0px 0px 8px 0px;
389
+ }
390
+ }
391
+
392
+ #new_ticket {
393
+ width: 450px;
394
+ }
395
+
396
+ form.spacious {
397
+ .field {
398
+ margin: 1em 0;
399
+ }
400
+ }
401
+
402
+ details.fieldgroup {
403
+ clear:both;
404
+ float:left;
405
+ margin: 1em 0;
406
+
407
+ summary {
408
+ font-family: "Arial Rounded MT Bold";
409
+ margin-bottom: 0.5em;
410
+
411
+ &:focus {
412
+ outline: none;
413
+ }
414
+ }
415
+ }
416
+
417
+ a.cancel {
418
+ display: inline-block;
419
+ padding-top: 4px;
420
+ padding-left: 8px;
421
+ }
422
+
423
+ .explanation {
424
+ font-size: 0.9em;
425
+ color: lighten($text_color, 18%);
426
+ }
427
+
428
+ .highlight {
429
+ background-color: lighten($page_background_color, 20%);
430
+ }
431
+
432
+ .menu {
433
+ a {
434
+ line-height: 1.5em;
435
+ }
436
+ }
437
+ .menu_section {
438
+ float: left;
439
+ padding-right: 15px;
440
+ width: 154px;
441
+ }
442
+
443
+ @media print {
444
+ body {
445
+ background: none;
446
+ border-style: none;
447
+ border-width: 0px;
448
+ }
449
+ #container {
450
+ border-style: none;
451
+ }
452
+ #quicknav {
453
+ display: none;
454
+ }
455
+ }
@@ -0,0 +1,3 @@
1
+ module SbInternalStyle
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,10 @@
1
+ require "sb_internal_style/version"
2
+
3
+ module SbInternalStyle
4
+ class Engine < ::Rails::Engine
5
+ config.after_initialize do
6
+ # Configure hosting application to precompile font files
7
+ Rails.application.config.assets.precompile += %w( .svg .eot .woff .ttf )
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sb_internal_style/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sb_internal_style"
8
+ spec.version = SbInternalStyle::VERSION
9
+ spec.authors = ["Leon Miller-Out"]
10
+ spec.email = ["leon@singlebrook.com"]
11
+ spec.description = %q{Styling common to various SB internal apps}
12
+ spec.summary = %q{Styling common to various SB internal apps}
13
+ spec.homepage = ""
14
+ spec.license = ""
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+
24
+ spec.add_dependency "font_assets"
25
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sb_internal_style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Leon Miller-Out
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: font_assets
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Styling common to various SB internal apps
56
+ email:
57
+ - leon@singlebrook.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - README.md
65
+ - Rakefile
66
+ - app/assets/fonts/singlebrookrounded-webfont.eot
67
+ - app/assets/fonts/singlebrookrounded-webfont.fog
68
+ - app/assets/fonts/singlebrookrounded-webfont.svg
69
+ - app/assets/fonts/singlebrookrounded-webfont.ttf
70
+ - app/assets/fonts/singlebrookrounded-webfont.woff
71
+ - app/assets/stylesheets/sb_internal_style/_colors.scss
72
+ - app/assets/stylesheets/sb_internal_style/_links.scss
73
+ - app/assets/stylesheets/sb_internal_style/main.scss
74
+ - lib/sb_internal_style.rb
75
+ - lib/sb_internal_style/version.rb
76
+ - sb_internal_style.gemspec
77
+ homepage: ''
78
+ licenses:
79
+ - ''
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project:
97
+ rubygems_version: 2.0.3
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: Styling common to various SB internal apps
101
+ test_files: []