wysia 0.0.2

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,96 @@
1
+ // Variables
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+
6
+
7
+ // GLOBAL VALUES
8
+ // --------------------------------------------------
9
+
10
+
11
+ // Grays
12
+ // -------------------------
13
+ $black: #000 !default;
14
+ $grayDarker: #222 !default;
15
+ $grayDark: #333 !default;
16
+ $gray: #555 !default;
17
+ $grayLight: #999 !default;
18
+ $grayLighter: #eee !default;
19
+ $white: #fff !default;
20
+
21
+
22
+ // Accent colors
23
+ // -------------------------
24
+ $blue: #049cdb !default;
25
+ $blueDark: #0064cd !default;
26
+ $green: #46a546 !default;
27
+ $red: #9d261d !default;
28
+ $yellow: #ffc40d !default;
29
+ $orange: #f89406 !default;
30
+ $pink: #c3325f !default;
31
+ $purple: #7a43b6 !default;
32
+
33
+
34
+ // Scaffolding
35
+ // -------------------------
36
+ $bodyBackground: $white !default;
37
+ $textColor: $grayDark !default;
38
+
39
+
40
+ // Links
41
+ // -------------------------
42
+ $linkColor: #08c !default;
43
+ $linkColorHover: darken($linkColor, 15%) !default;
44
+
45
+
46
+ // Typography
47
+ // -------------------------
48
+ $sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
49
+ $serifFontFamily: Georgia, "Times New Roman", Times, serif !default;
50
+ $monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace !default;
51
+
52
+ $baseFontSize: 13px !default;
53
+ $baseFontFamily: $sansFontFamily !default;
54
+ $baseLineHeight: 18px !default;
55
+ $altFontFamily: $serifFontFamily !default;
56
+
57
+ $headingsFontFamily: inherit !default; // empty to use BS default, $baseFontFamily
58
+ $headingsFontWeight: bold !default; // instead of browser default, bold
59
+ $headingsColor: inherit !default; // empty to use BS default, $textColor
60
+
61
+
62
+ // Tables
63
+ // -------------------------
64
+ $tableBackground: transparent !default; // overall background-color
65
+ $tableBackgroundAccent: #f9f9f9 !default; // for striping
66
+ $tableBackgroundHover: #f5f5f5 !default; // for hover
67
+ $tableBorder: #ddd !default; // table and cell border
68
+
69
+
70
+ // Buttons
71
+ // -------------------------
72
+ $btnBackground: $white !default;
73
+ $btnBackgroundHighlight: darken($white, 10%) !default;
74
+ $btnBorder: #ccc !default;
75
+
76
+ $btnPrimaryBackground: $linkColor !default;
77
+ $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%) !default;
78
+
79
+ $btnInfoBackground: #5bc0de !default;
80
+ $btnInfoBackgroundHighlight: #2f96b4 !default;
81
+
82
+ $btnSuccessBackground: #62c462 !default;
83
+ $btnSuccessBackgroundHighlight: #51a351 !default;
84
+
85
+ $btnWarningBackground: lighten($orange, 15%) !default;
86
+ $btnWarningBackgroundHighlight: $orange !default;
87
+
88
+ $btnDangerBackground: #ee5f5b !default;
89
+ $btnDangerBackgroundHighlight: #bd362f !default;
90
+
91
+ $btnInverseBackground: $gray !default;
92
+ $btnInverseBackgroundHighlight: $grayDarker !default;
93
+
94
+ // Input placeholder text color
95
+ // -------------------------
96
+ $placeholderText: $grayLight !default;
@@ -0,0 +1,115 @@
1
+ @import "_variables.scss";
2
+ @import "_mixins.scss";
3
+ @import '../font-awesome/css/font-awesome.scss';
4
+ .btn-toolbar{
5
+
6
+ font-family: Helvetica, sans-serif;
7
+ font-size: 18px;
8
+ line-height: 23px;
9
+ margin-bottom: 10px;
10
+ overflow: hidden;
11
+ .wysihtml5-command-active{
12
+ background-color: darken($white, 15%);
13
+ background-image: none;
14
+ outline: 0;
15
+ @include box-shadow(#{inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)});
16
+ }
17
+ label{
18
+ float: none;
19
+ }
20
+ .btn-group {
21
+ float: left;
22
+ position: relative;
23
+ margin-right: 10px;
24
+
25
+ > .btn{
26
+ float: left;
27
+ margin-left: -1px;
28
+ min-width: 24px;
29
+ font-size: 18px;
30
+ line-height: 23px;
31
+ @include border-radius(0);
32
+ &:first-child{
33
+ margin-left: 0;
34
+ -webkit-border-top-left-radius: 4px;
35
+ -moz-border-radius-topleft: 4px;
36
+ border-top-left-radius: 4px;
37
+ -webkit-border-bottom-left-radius: 4px;
38
+ -moz-border-radius-bottomleft: 4px;
39
+ border-bottom-left-radius: 4px;
40
+ }
41
+ &:last-child{
42
+ -webkit-border-top-right-radius: 4px;
43
+ -moz-border-radius-topright: 4px;
44
+ border-top-right-radius: 4px;
45
+ -webkit-border-bottom-right-radius: 4px;
46
+ -moz-border-radius-bottomright: 4px;
47
+ border-bottom-right-radius: 4px;
48
+ }
49
+ &.btn-small{
50
+ font-size: 14px;
51
+ line-height: 18px;
52
+ padding: 3px 6px 3px;
53
+ }
54
+ }
55
+ }
56
+ .btn{
57
+ display: inline-block;
58
+ padding: 4px 10px 4px;
59
+ border: 1px solid #aaa;
60
+ @include border-radius(5px);
61
+ @include gradient-vertical(#eee, #ccc);
62
+ text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
63
+ text-decoration: none;
64
+ text-align: center;
65
+ vertical-align: middle;
66
+ cursor: pointer;
67
+ color: #333;
68
+ margin-bottom: 0;
69
+ }
70
+ }
71
+ .wysihtml5-dialog{
72
+ border:1px solid #aaa;
73
+ @include border-radius(5px);
74
+ padding: 5px;
75
+ margin-top: 5px;
76
+ font-size: 12px;
77
+ float: left;
78
+ a.ok{
79
+ border-bottom: 3px solid #aaa;
80
+ font-size: 15px;
81
+ color: #333;
82
+ &:hover{
83
+ border-color: #666;
84
+ }
85
+ }
86
+ a.cancel{
87
+ margin-left: 15px;
88
+
89
+ }
90
+ a{
91
+ cursor: pointer;
92
+ }
93
+ input{
94
+ display: inline-block;
95
+ min-width: 250px;
96
+ height: 18px;
97
+ padding: 4px;
98
+ font-size: 13px;
99
+ line-height: 18px;
100
+ color: #555;
101
+ background-color: white;
102
+ border: 1px solid #CCC;
103
+ @include border-radius(3px);
104
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
105
+ }
106
+ }
107
+ //TODO: this should have a class or smthing textarea{
108
+ // border: 1px solid #aaa;
109
+ // @include border-radius(5px);
110
+ // width: 100%;
111
+ // max-width: 500px;
112
+ // padding: 5px;
113
+ // height: 200px;
114
+ // font-size: 12px;
115
+ //}
data/wysia.gemspec ADDED
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/wysia/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Johnny Eradus", "Benjamin Udink Ten Cate"]
6
+ gem.email = ["jeradus@gmail.com"]
7
+ gem.description = "wysihtml5 editor with font awesome"
8
+ gem.summary = "wysihtml5 editor with font awesome"
9
+ gem.homepage = "https://github.com/jeradus/wysia"
10
+ gem.files = `git ls-files`.split($\)
11
+
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ #gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "wysia"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Wysia::VERSION
17
+
18
+ gem.add_dependency "railties", ">= 3.1"
19
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wysia
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Johnny Eradus
9
+ - Benjamin Udink Ten Cate
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-10-01 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: railties
17
+ requirement: &70317713966440 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '3.1'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *70317713966440
26
+ description: wysihtml5 editor with font awesome
27
+ email:
28
+ - jeradus@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - .gitignore
34
+ - Gemfile
35
+ - LICENSE
36
+ - README.md
37
+ - Rakefile
38
+ - lib/wysia.rb
39
+ - lib/wysia/version.rb
40
+ - lib/wysia/wysia_form_helper.rb
41
+ - vendor/assets/javascripts/wysia.js
42
+ - vendor/assets/javascripts/wysiwyg/advanced.js
43
+ - vendor/assets/javascripts/wysiwyg/wysihtml5-0.3.0.js
44
+ - vendor/assets/stylesheets/font-awesome/FontAwesome-Vectors.pdf
45
+ - vendor/assets/stylesheets/font-awesome/FontAwesome.ttf
46
+ - vendor/assets/stylesheets/font-awesome/README.md
47
+ - vendor/assets/stylesheets/font-awesome/css/font-awesome.scss
48
+ - vendor/assets/stylesheets/font-awesome/font/fontawesome-webfont.eot
49
+ - vendor/assets/stylesheets/font-awesome/font/fontawesome-webfont.svg
50
+ - vendor/assets/stylesheets/font-awesome/font/fontawesome-webfont.ttf
51
+ - vendor/assets/stylesheets/font-awesome/font/fontawesome-webfont.woff
52
+ - vendor/assets/stylesheets/wysia.scss
53
+ - vendor/assets/stylesheets/wysiwyg/_mixins.scss
54
+ - vendor/assets/stylesheets/wysiwyg/_variables.scss
55
+ - vendor/assets/stylesheets/wysiwyg/stylesheet.css.scss
56
+ - wysia.gemspec
57
+ homepage: https://github.com/jeradus/wysia
58
+ licenses: []
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 1.8.10
78
+ signing_key:
79
+ specification_version: 3
80
+ summary: wysihtml5 editor with font awesome
81
+ test_files: []