bootstrap-bookingsync-sass 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -1
  3. data/CHANGELOG.md +11 -0
  4. data/assets/stylesheets/_bootstrap-bookingsync.scss +5 -2
  5. data/assets/stylesheets/bookingsync/_layout.scss +0 -49
  6. data/assets/stylesheets/bookingsync/_menu.scss +282 -0
  7. data/assets/stylesheets/bookingsync/_sheet.scss +27 -0
  8. data/assets/stylesheets/bookingsync/_switch.scss +0 -4
  9. data/assets/stylesheets/bookingsync/_theme.scss +0 -301
  10. data/assets/stylesheets/bookingsync/_type.scss +0 -4
  11. data/assets/stylesheets/bookingsync/_utilities.scss +46 -3
  12. data/assets/stylesheets/bookingsync/_variables.scss +130 -108
  13. data/docs/Gemfile +16 -0
  14. data/docs/Guardfile +25 -0
  15. data/docs/Rakefile +53 -0
  16. data/docs/Rules +58 -0
  17. data/docs/config.ru +15 -0
  18. data/docs/content/CNAME +1 -0
  19. data/docs/content/assets/javascripts/application.js.coffee +7 -0
  20. data/docs/content/assets/stylesheets/_base.scss +41 -0
  21. data/docs/content/assets/stylesheets/_callout.scss +50 -0
  22. data/docs/content/assets/stylesheets/_code.scss +18 -0
  23. data/docs/content/assets/stylesheets/_panels.scss +4 -0
  24. data/docs/content/assets/stylesheets/_variables.scss +14 -0
  25. data/docs/content/assets/stylesheets/application.scss +11 -0
  26. data/docs/content/components.html +23 -0
  27. data/docs/content/components/chosen.md +54 -0
  28. data/docs/content/components/menu.md +184 -0
  29. data/docs/content/components/sheet.md +36 -0
  30. data/docs/content/components/switch.md +44 -0
  31. data/docs/content/css.html +42 -0
  32. data/docs/content/css/forms.md +1138 -0
  33. data/docs/content/css/helpers.md +49 -0
  34. data/docs/content/highlight.css +1 -0
  35. data/docs/content/index.html +5 -0
  36. data/docs/layouts/default.html +12 -0
  37. data/docs/layouts/head.html +17 -0
  38. data/docs/layouts/navbar.html +27 -0
  39. data/docs/lib/default.rb +13 -0
  40. data/docs/nanoc.yaml +74 -0
  41. data/docs/vendor/assets/javascripts/chosen.js +1284 -0
  42. data/docs/vendor/assets/stylesheets/chosen.scss +448 -0
  43. data/lib/bootstrap/bookingsync/version.rb +1 -1
  44. metadata +36 -3
@@ -1,7 +1,3 @@
1
- $line-height: 1.5;
2
- $dl-horizontal-breakpoint: 768px;
3
- $dl-horizontal-narrow-offset: 120px;
4
-
5
1
  dl + dl {
6
2
  border-top: 1px solid rgba($gray-base, .05);;
7
3
  padding-top: 8px;
@@ -1,4 +1,47 @@
1
1
  // Vertical Alignment
2
- .valign-top { vertical-align: top; }
3
- .valign-middle { vertical-align: middle; }
4
- .valign-bottom { vertical-align: bottom; }
2
+ // --------------------------------------------------
3
+ .valign-top {
4
+ vertical-align: top !important;
5
+ }
6
+ .valign-middle {
7
+ vertical-align: middle !important;
8
+ }
9
+ .valign-bottom {
10
+ vertical-align: bottom !important;
11
+ }
12
+
13
+ // Flex
14
+ // --------------------------------------------------
15
+ .flex-col {
16
+ display: flex;
17
+ flex-direction: column;
18
+
19
+ &.collapse {
20
+ display: none;
21
+ }
22
+
23
+ &.collapse.in {
24
+ display: flex;
25
+ }
26
+ }
27
+
28
+ .flex-row {
29
+ display: flex;
30
+
31
+ &.collapse {
32
+ display: none;
33
+ }
34
+
35
+ &.collapse.in {
36
+ display: flex;
37
+ }
38
+ }
39
+
40
+ .flex-1 {
41
+ flex: 1;
42
+ }
43
+
44
+ .flex-middle {
45
+ margin-top: auto;
46
+ margin-bottom: auto;
47
+ }
@@ -2,42 +2,40 @@
2
2
  * Copyright 2015 BookingSync SAS.
3
3
  * Licensed under MIT (https://github.com/BookingSync/bootstrap-bookingsync-sass/blob/master/LICENSE)
4
4
  */
5
- @import 'bootstrap/variables';
6
- @import 'colors';
7
5
 
8
6
  $bootstrap-bookingsync-sass-asset-helper: false !default;
9
7
 
10
- $brand-primary: $bs-lightblue;
11
- $brand-success: $bs-green;
12
- $brand-info: $bs-lightblue;
13
- $brand-warning: $bs-yellow;
14
- $brand-danger: $bs-red;
8
+ $brand-primary: $bs-lightblue !default;
9
+ $brand-success: $bs-green !default;
10
+ $brand-info: $bs-lightblue !default;
11
+ $brand-warning: $bs-yellow !default;
12
+ $brand-danger: $bs-red !default;
15
13
 
16
- $gray-base: $bs-darkblue;
17
- $gray-darker: $gray-base;
18
- $gray-dark: rgba($gray-base, .75);
19
- $gray: rgba($gray-base, .75);
20
- $gray-light: rgba($gray-base, .5);
21
- $gray-lighter: rgba($gray-base, .25);
22
- $gray-lightest: rgba($gray-base, .15);
14
+ $gray-base: $bs-darkblue !default;
15
+ $gray-darker: $gray-base !default;
16
+ $gray-dark: rgba($gray-base, .75) !default;
17
+ $gray: rgba($gray-base, .75) !default;
18
+ $gray-light: rgba($gray-base, .5) !default;
19
+ $gray-lighter: rgba($gray-base, .25) !default;
20
+ $gray-lightest: rgba($gray-base, .15) !default;
23
21
 
24
22
  //== Scaffolding
25
23
  //
26
24
  //## Settings for some of the most global styles.
27
- $text-color: $gray-dark;
28
- $body-bg: #edeff4;
25
+ $text-color: $gray-dark !default;
26
+ $body-bg: #edeff4 !default;
29
27
 
30
28
  //== Typography
31
29
  //
32
30
  //## Font, line-height, and color for body text, headings, and more.
33
- $font-family-sans-serif: "Open Sans", Helvetica, Arial, sans-serif;
34
- $font-family-base: $font-family-sans-serif;
35
- $font-size-base: 14px;
36
- $font-size-h1: 26px;
37
- $font-size-h2: 22px;
38
- $font-size-h3: 18px;
39
- $font-size-h4: 16px;
40
- $headings-color: $bs-darkgray;
31
+ $font-family-sans-serif: "Open Sans", Helvetica, Arial, sans-serif !default;
32
+ $font-family-base: $font-family-sans-serif !default;
33
+ $font-size-base: 14px !default;
34
+ $font-size-h1: 26px !default;
35
+ $font-size-h2: 22px !default;
36
+ $font-size-h3: 18px !default;
37
+ $font-size-h4: 16px !default;
38
+ $headings-color: $bs-darkgray !default;
41
39
 
42
40
  //== Iconography
43
41
  //
@@ -59,122 +57,146 @@ $smiles-font-svg-id: "bookingsync_smiles" !default;
59
57
  //== Components
60
58
  //
61
59
  //## Define common padding and border radius sizes and more. Values based on 14px
62
- $border-radius-base: 2px;
63
- $border-radius-large: 3px;
64
- $border-radius-small: 1px;
60
+ $padding-base-vertical: 6px !default;
61
+
62
+ $border-radius-base: 2px !default;
63
+ $border-radius-large: 3px !default;
64
+ $border-radius-small: 1px !default;
65
65
 
66
66
 
67
67
  //== BookingSync
68
68
  //
69
- $menu-color: #566da7;
70
- $menu-bg: #1e3264;
71
- $menu-header-height: 70px;
72
- $menu-header-color: #ffffff;
73
- $menu-header-bg: $brand-primary;
74
- $menu-header-link-color: #ffffff;
75
- $menu-header-link-hover-color: $menu-header-link-color;
76
- $menu-header-link-hover-bg: #53b4e1;
77
- $menu-link-color: #8ea8ea;
78
- $menu-link-icon-color: rgba($menu-link-color, 0.5);
79
- $menu-link-bg: $menu-bg;
80
- $menu-link-hover-color: #ffffff;
81
- $menu-link-hover-icon-color: $menu-color;
82
- $menu-link-hover-bg: #263c73;
83
- $menu-active-color: #ffffff;
84
- $menu-active-icon-color: $brand-primary;
85
- $menu-active-bg: #16264e;
86
- $menu-footer-color: #ffffff;
87
- $menu-footer-bg: $menu-bg;
88
- $menu-footer-link-color: $menu-link-color;
89
- $menu-footer-back-color: #fff;
90
-
91
- $menu-border-radius: $border-radius-base;
92
- $menu-default-toggle-icon-bar-bg: $gray-light;
69
+ $menu-color: #566da7 !default;
70
+ $menu-bg: #1e3264 !default;
71
+ $menu-header-height: 70px !default;
72
+ $menu-header-color: #ffffff !default;
73
+ $menu-header-bg: $brand-primary !default;
74
+ $menu-header-link-color: #ffffff !default;
75
+ $menu-header-link-hover-color: $menu-header-link-color !default;
76
+ $menu-header-link-hover-bg: #53b4e1 !default;
77
+ $menu-link-color: #8ea8ea !default;
78
+ $menu-link-icon-color: rgba($menu-link-color, 0.5) !default;
79
+ $menu-link-bg: $menu-bg !default;
80
+ $menu-link-hover-color: #ffffff !default;
81
+ $menu-link-hover-icon-color: $menu-color !default;
82
+ $menu-link-hover-bg: #263c73 !default;
83
+ $menu-active-color: #ffffff !default;
84
+ $menu-active-icon-color: $brand-primary !default;
85
+ $menu-active-bg: #16264e !default;
86
+ $menu-footer-color: #ffffff !default;
87
+ $menu-footer-bg: $menu-bg !default;
88
+ $menu-footer-link-color: $menu-link-color !default;
89
+ $menu-footer-back-color: #fff !default;
90
+
91
+ $menu-border-radius: $border-radius-base !default;
92
+ $menu-default-toggle-icon-bar-bg: $gray-light !default;
93
93
 
94
94
  //== Buttons
95
95
  //
96
- $btn-primary-bg: $brand-success;
97
- $btn-primary-border: darken($btn-success-bg, 5%);
98
- $btn-border-radius-base: $border-radius-base;
99
- $btn-border-radius-small: $border-radius-small;
100
- $btn-border-radius-large: $border-radius-large;
96
+ $btn-success-bg: $brand-success !default;
97
+
98
+ $btn-primary-bg: $brand-success !default;
99
+ $btn-primary-border: darken($btn-success-bg, 5%) !default;
100
+ $btn-border-radius-base: $border-radius-base !default;
101
+ $btn-border-radius-small: $border-radius-small !default;
102
+ $btn-border-radius-large: $border-radius-large !default;
101
103
 
102
104
  //== Forms
103
105
  //
104
- $input-color: rgb(106, 117, 141); // #6a758d
105
- $input-bg: transparent;
106
- $input-border-radius-base: 0;
107
- $input-border-radius: $input-border-radius-base;
108
- $input-border-radius-small: $input-border-radius-base;
109
- $input-border-radius-large: $input-border-radius-base;
110
- $input-border: rgba(30, 50, 100, 0.5);
111
- $input-border-focus: $input-color;
112
- $input-height-base: (($padding-base-vertical * 2) + $font-size-base + 1); // 1 for bottom border
113
- $input-bg-disabled: transparent;
106
+ $input-color: rgb(106, 117, 141) !default; // #6a758d
107
+ $input-bg: transparent !default;
108
+ $input-border-radius-base: 0 !default;
109
+ $input-border-radius: $input-border-radius-base !default;
110
+ $input-border-radius-small: $input-border-radius-base !default;
111
+ $input-border-radius-large: $input-border-radius-base !default;
112
+ $input-border: rgba(30, 50, 100, 0.5) !default;
113
+ $input-border-focus: $input-color !default;
114
+ $input-height-base: (($padding-base-vertical * 2) + $font-size-base + 1) !default; // 1 for bottom border
115
+ $input-bg-disabled: transparent !default;
116
+
117
+ $label-color: rgba(106, 117, 141, .75) !default;
114
118
 
115
- $label-color: rgba(106, 117, 141, .75);
119
+ $label-font-size-focus: 12px !default;
120
+ $label-padding-focus: ($padding-base-vertical + $label-font-size-focus) !default;
121
+ $label-color-focus: $brand-primary !default;
122
+ $label-border-focus: $label-color-focus !default;
116
123
 
117
- $label-font-size-focus: 12px;
118
- $label-padding-focus: ($padding-base-vertical + $label-font-size-focus);
119
- $label-color-focus: $brand-primary;
120
- $label-border-focus: $label-color-focus;
124
+ $label-font-size-filled: $label-font-size-focus !default;
125
+ $label-color-filled: rgba(106, 117, 141, 0.6) !default;
126
+ $label-border-filled: $input-border !default;
121
127
 
122
- $label-font-size-filled: $label-font-size-focus;
123
- $label-color-filled: rgba(106, 117, 141, 0.6);
124
- $label-border-filled: $input-border;
128
+ $label-color-disabled: rgba(106, 117, 141, 0.5) !default;
125
129
 
126
- $label-color-disabled: rgba(106, 117, 141, 0.5);
130
+ $input-group-addon-bg: transparent !default;
131
+ $input-group-addon-height: ($input-height-base + $label-padding-focus) !default;
132
+ $input-group-addon-padding-top: ($label-padding-focus + ($padding-base-vertical / 2)) !default;
127
133
 
128
- $input-group-addon-bg: transparent;
129
- $input-group-addon-height: ($input-height-base + $label-padding-focus);
130
- $input-group-addon-padding-top: ($label-padding-focus + ($padding-base-vertical / 2));
134
+ $help-text: $gray-light !default;
131
135
 
132
- $help-text: $gray-light;
136
+ $state-success-text: #2db859 !default;
137
+ $state-success-bg: rgba($brand-success, 1) !default;
138
+ $state-success-border: $state-success-text !default;
133
139
 
134
- $state-success-text: #2db859;
135
- $state-success-bg: rgba($brand-success, 1);
136
- $state-success-border: $state-success-text;
140
+ $state-warning-text: #f39c12 !default;
141
+ $state-warning-bg: rgba($brand-warning, 1) !default;
142
+ $state-warning-border: $state-warning-text !default;
137
143
 
138
- $state-warning-text: #f39c12;
139
- $state-warning-bg: rgba($brand-warning, 1);
140
- $state-warning-border: $state-warning-text;
144
+ $state-danger-text: #e74c3c !default;
145
+ $state-danger-bg: rgba($brand-danger, 1) !default;
146
+ $state-danger-border: $state-danger-text !default;
141
147
 
142
- $state-danger-text: #e74c3c;
143
- $state-danger-bg: rgba($brand-danger, 1);
144
- $state-danger-border: $state-danger-text;
145
148
 
149
+ //== Grid system
150
+ //
151
+ $grid-columns: 12 !default;
152
+ $grid-gutter-width: 30px !default;
146
153
 
147
154
  //== Navbar
148
155
  //
149
- $navbar-height: 70px;
150
- $navbar-default-bg: #fff;
151
- $navbar-default-color: $gray-dark;
152
- $navbar-default-border: $gray-lighter;
153
- $navbar-default-toggle-icon-bar-bg: $gray-light;
156
+ $navbar-height: 70px !default;
157
+ $navbar-default-bg: #fff !default;
158
+ $navbar-default-color: $gray-dark !default;
159
+ $navbar-default-border: $gray-lighter !default;
160
+ $navbar-default-toggle-icon-bar-bg: $gray-light !default;
154
161
 
155
162
 
156
163
  //== Panels
157
164
  //
158
- $panel-footer-bg: #fff;
159
- $panel-default-heading-bg: #fff;
160
- $panel-border-radius: $border-radius-large;
161
- $panel-inner-border: $gray-lightest;
162
- $panel-default-border: $gray-lighter;
165
+ $panel-footer-bg: #fff !default;
166
+ $panel-default-heading-bg: #fff !default;
167
+ $panel-border-radius: $border-radius-large !default;
168
+ $panel-inner-border: $gray-lightest !default;
169
+ $panel-default-border: $gray-lighter !default;
163
170
 
164
171
 
165
172
  //== Tables
166
173
  //
167
- $table-border-color: $gray-lightest;
168
- $table-bg-accent: #f4f5f7;
169
- $table-bg: #fff;
170
- $table-caption-color: $gray;
174
+ $table-border-color: $gray-lightest !default;
175
+ $table-bg-accent: #f4f5f7 !default;
176
+ $table-bg: #fff !default;
177
+ $table-caption-color: $gray !default;
171
178
 
172
179
 
173
180
  //== Sheet
174
181
  //
175
- $sheet-bg: #fff;
176
- $sheet-border: $gray-lighter;
177
- $sheet-border-radius: 3px;
178
- $sheet-margin: ($grid-gutter-width / 2);
179
- $sheet-padding: $sheet-margin;
180
- $sheet-inner-border: $gray-lightest;
182
+ $sheet-bg: #fff !default;
183
+ $sheet-border: $gray-lighter !default;
184
+ $sheet-border-radius: 3px !default;
185
+ $sheet-margin: ($grid-gutter-width / 2) !default;
186
+ $sheet-padding: $sheet-margin !default;
187
+ $sheet-inner-border: $gray-lightest !default;
188
+
189
+
190
+ //== Switch
191
+ //
192
+ $switch-label-size: 10px !default;
193
+ $switch-off-border: $gray-lighter !default;
194
+ $switch-off-bg: #fff !default;
195
+ $switch-off-color: $gray-lightest !default;
196
+
197
+
198
+ //== Typography
199
+ //
200
+ $line-height: 1.5 !default;
201
+ $dl-horizontal-breakpoint: 768px !default;
202
+ $dl-horizontal-narrow-offset: 120px !default;
data/docs/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "nanoc", "~> 3.8.0"
4
+ gem "adsf"
5
+ gem "guard-nanoc"
6
+ gem "guard-livereload"
7
+ gem "guard-bundler"
8
+ gem "guard-pow"
9
+ gem "coderay"
10
+ gem "kramdown"
11
+ gem "pygments.rb"
12
+ gem "nokogiri"
13
+ gem 'uglifier'
14
+ gem 'nanoc-sprockets3'
15
+ gem "bootstrap-bookingsync-sass", path: "../"
16
+ gem "coffee-script"
data/docs/Guardfile ADDED
@@ -0,0 +1,25 @@
1
+ guard 'bundler' do
2
+ watch('Gemfile')
3
+ end
4
+
5
+ guard 'nanoc' do
6
+ watch('nanoc.yaml') # Change this to config.yaml if you use the old config file name
7
+ watch('Rules')
8
+ watch(%r{^(content|layouts|lib|static)/.*$})
9
+ end
10
+
11
+ guard 'livereload' do
12
+ watch(%r{/.+\.(html|css|js|less)})
13
+ end
14
+
15
+ guard 'pow' do
16
+ watch('.powrc')
17
+ watch('.powenv')
18
+ watch('.rvmrc')
19
+ watch('Gemfile')
20
+ watch('Gemfile.lock')
21
+ watch('config/application.rb')
22
+ watch('config/environment.rb')
23
+ watch(%r{^config/environments/.*\.rb$})
24
+ watch(%r{^config/initializers/.*\.rb$})
25
+ end
data/docs/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ require 'nanoc3/tasks'
2
+ require 'fileutils'
3
+
4
+ desc "Compile the site"
5
+ task :compile do
6
+ `nanoc compile`
7
+ end
8
+
9
+ desc "Remove the output dir"
10
+ task :remove_output_dir do
11
+ FileUtils.rm_r('output') if File.exist?('output')
12
+ end
13
+
14
+ def commit_message
15
+ publish_emojis = [':boom:', ':rocket:', ':metal:', ':bulb:', ':zap:',
16
+ ':sailboat:', ':gift:', ':ship:', ':shipit:', ':sparkles:', ':rainbow:']
17
+ default_message = "P U B L I S H #{publish_emojis.sample}"
18
+
19
+ print "Enter a commit message (default: '#{default_message}'): "
20
+ STDOUT.flush
21
+ mesg = STDIN.gets.chomp.strip
22
+
23
+ mesg = default_message if mesg == ''
24
+ mesg.gsub(/'/, '') # Allow this to be handed off via -m '#{message}'
25
+ end
26
+
27
+ desc "Publish to http://styleguide.bookingsync.com"
28
+ task :publish => [:clean, :remove_output_dir] do
29
+ mesg = commit_message
30
+
31
+ sh "nanoc compile"
32
+
33
+ ENV['GIT_DIR'] = File.expand_path(`git rev-parse --git-dir`.chomp)
34
+ old_sha = `git rev-parse refs/remotes/origin/gh-pages`.chomp
35
+ Dir.chdir('output') do
36
+ ENV['GIT_INDEX_FILE'] = gif = '/tmp/dev.gh.i'
37
+ ENV['GIT_WORK_TREE'] = Dir.pwd
38
+ File.unlink(gif) if File.file?(gif)
39
+ `git add -A`
40
+ tsha = `git write-tree`.strip
41
+ puts "Created tree #{tsha}"
42
+ if old_sha.size == 40
43
+ csha = `git commit-tree #{tsha} -p #{old_sha} -m '#{mesg}'`.strip
44
+ else
45
+ csha = `git commit-tree #{tsha} -m '#{mesg}'`.strip
46
+ end
47
+ puts "Created commit #{csha}"
48
+ puts `git show #{csha} --stat`
49
+ puts "Updating gh-pages from #{old_sha}"
50
+ `git update-ref refs/heads/gh-pages #{csha}`
51
+ `git push origin gh-pages`
52
+ end
53
+ end