modularis 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +24 -0
  3. data/.idea/scopes/scope_settings.xml +5 -0
  4. data/.rbenv-version +1 -0
  5. data/CONTRIBUTING.md +53 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +19 -0
  8. data/Gruntfile.js +27 -0
  9. data/LICENSE +22 -0
  10. data/README.md +27 -0
  11. data/Rakefile +2 -0
  12. data/docs/CHANGELOG.md +260 -0
  13. data/docs/Capfile +4 -0
  14. data/docs/Gemfile +13 -0
  15. data/docs/Gemfile.lock +45 -0
  16. data/docs/Procfile +2 -0
  17. data/docs/README.md +1 -0
  18. data/docs/_sidebar-components.html.erb +115 -0
  19. data/docs/_sidebar.html.erb +115 -0
  20. data/docs/changelog.html.erb +33 -0
  21. data/docs/compile.rb +34 -0
  22. data/docs/components/alert-boxes.html.erb +204 -0
  23. data/docs/components/block-grid.html.erb +132 -0
  24. data/docs/components/breadcrumbs.html.erb +156 -0
  25. data/docs/components/button-groups.html.erb +230 -0
  26. data/docs/components/buttons.html.erb +222 -0
  27. data/docs/components/clearing.html.erb +152 -0
  28. data/docs/components/custom-forms.html.erb +309 -0
  29. data/docs/components/dropdown-buttons.html.erb +235 -0
  30. data/docs/components/dropdown.html.erb +188 -0
  31. data/docs/components/flex-video.html.erb +95 -0
  32. data/docs/components/forms.html.erb +477 -0
  33. data/docs/components/global.html.erb +92 -0
  34. data/docs/components/grid.html.erb +366 -0
  35. data/docs/components/inline-lists.html.erb +91 -0
  36. data/docs/components/joyride.html.erb +183 -0
  37. data/docs/components/keystrokes.html.erb +76 -0
  38. data/docs/components/kitchen-sink.html.erb +870 -0
  39. data/docs/components/labels.html.erb +102 -0
  40. data/docs/components/magellan.html.erb +86 -0
  41. data/docs/components/orbit.html.erb +276 -0
  42. data/docs/components/pagination.html.erb +183 -0
  43. data/docs/components/panels.html.erb +123 -0
  44. data/docs/components/pricing-tables.html.erb +156 -0
  45. data/docs/components/progress-bars.html.erb +123 -0
  46. data/docs/components/reveal.html.erb +162 -0
  47. data/docs/components/section.html.erb +496 -0
  48. data/docs/components/side-nav.html.erb +124 -0
  49. data/docs/components/split-buttons.html.erb +220 -0
  50. data/docs/components/sub-nav.html.erb +122 -0
  51. data/docs/components/switch.html.erb +290 -0
  52. data/docs/components/tables.html.erb +125 -0
  53. data/docs/components/thumbnails.html.erb +89 -0
  54. data/docs/components/tooltips.html.erb +75 -0
  55. data/docs/components/top-bar.html.erb +283 -0
  56. data/docs/components/type.html.erb +396 -0
  57. data/docs/components/visibility.html.erb +110 -0
  58. data/docs/config/deploy.rb +36 -0
  59. data/docs/config.ru +12 -0
  60. data/docs/controller.rb +53 -0
  61. data/docs/css/_coderay.scss +116 -0
  62. data/docs/css/_settings.scss +1 -0
  63. data/docs/css/docs.scss +185 -0
  64. data/docs/css/normalize.scss +396 -0
  65. data/docs/css/qunit-composite.css +13 -0
  66. data/docs/css/qunit.css +235 -0
  67. data/docs/faq.html.erb +63 -0
  68. data/docs/img/demos/demo1-th.jpg +0 -0
  69. data/docs/img/demos/demo1.jpg +0 -0
  70. data/docs/img/demos/demo2-th.jpg +0 -0
  71. data/docs/img/demos/demo2.jpg +0 -0
  72. data/docs/img/demos/demo3-th.jpg +0 -0
  73. data/docs/img/demos/demo3.jpg +0 -0
  74. data/docs/img/demos/demo4-th.jpg +0 -0
  75. data/docs/img/demos/demo4.jpg +0 -0
  76. data/docs/img/demos/demo5-th.jpg +0 -0
  77. data/docs/img/demos/demo5.jpg +0 -0
  78. data/docs/index.html.erb +285 -0
  79. data/docs/javascript.html.erb +134 -0
  80. data/docs/js/docs.js +3 -0
  81. data/docs/js/qunit-composite.js +105 -0
  82. data/docs/js/qunit.js +1977 -0
  83. data/docs/js/tests/tabs/simple_tabs.html +57 -0
  84. data/docs/js/tests/tabs/simple_tabs.js +54 -0
  85. data/docs/js/tests/tooltips/tooltips.html +39 -0
  86. data/docs/js/tests/tooltips/tooltips.js +11 -0
  87. data/docs/layout.html.erb +128 -0
  88. data/docs/media-queries.html.erb +96 -0
  89. data/docs/rails.html.erb +76 -0
  90. data/docs/rtl.html.erb +53 -0
  91. data/docs/sass.html.erb +1295 -0
  92. data/docs/support.html.erb +143 -0
  93. data/docs/test/_test-scripts.html.erb +36 -0
  94. data/docs/test/cards.html.erb +77 -0
  95. data/docs/test/flexbox-grid.html.erb +68 -0
  96. data/docs/test/flip-nav.html.erb +54 -0
  97. data/docs/test/layout.html.erb +15 -0
  98. data/docs/test/off-canvas1.html.erb +64 -0
  99. data/docs/test/off-canvas2.html.erb +75 -0
  100. data/docs/test/off-canvas3.html.erb +65 -0
  101. data/docs/test_layout.html.erb +128 -0
  102. data/js/modularis/index.js +18 -0
  103. data/js/vendor/custom.modernizr.js +4 -0
  104. data/js/vendor/jquery.js +9597 -0
  105. data/js/vendor/zepto.js +1884 -0
  106. data/lib/modularis/engine.rb +18 -0
  107. data/lib/modularis/generators/USAGE +15 -0
  108. data/lib/modularis/generators/install_generator.rb +54 -0
  109. data/lib/modularis/generators/templates/application.html.erb +46 -0
  110. data/lib/modularis/generators/templates/application.html.haml +31 -0
  111. data/lib/modularis/generators/templates/application.html.slim +28 -0
  112. data/lib/modularis/version.rb +3 -0
  113. data/lib/modularis.rb +17 -0
  114. data/modularis.gemspec +20 -0
  115. data/package.json +15 -0
  116. data/scss/compagecss/_variables.scss +1192 -0
  117. data/scss/compagecss/components/_alert-boxes.scss +106 -0
  118. data/scss/compagecss/components/_block-grid.scss +70 -0
  119. data/scss/compagecss/components/_breadcrumbs.scss +124 -0
  120. data/scss/compagecss/components/_button-groups.scss +88 -0
  121. data/scss/compagecss/components/_buttons.scss +226 -0
  122. data/scss/compagecss/components/_clearing.scss +217 -0
  123. data/scss/compagecss/components/_custom-forms.scss +246 -0
  124. data/scss/compagecss/components/_dropdown-buttons.scss +114 -0
  125. data/scss/compagecss/components/_dropdown.scss +149 -0
  126. data/scss/compagecss/components/_flex-video.scss +45 -0
  127. data/scss/compagecss/components/_flexbox-grid.scss +225 -0
  128. data/scss/compagecss/components/_flip.scss +105 -0
  129. data/scss/compagecss/components/_forms.scss +361 -0
  130. data/scss/compagecss/components/_global.scss +289 -0
  131. data/scss/compagecss/components/_grid.scss +184 -0
  132. data/scss/compagecss/components/_inline-lists.scss +52 -0
  133. data/scss/compagecss/components/_joyride.scss +210 -0
  134. data/scss/compagecss/components/_keystrokes.scss +56 -0
  135. data/scss/compagecss/components/_labels.scss +84 -0
  136. data/scss/compagecss/components/_magellan.scss +21 -0
  137. data/scss/compagecss/components/_off-canvas.scss +86 -0
  138. data/scss/compagecss/components/_orbit.scss +209 -0
  139. data/scss/compagecss/components/_pagination.scss +99 -0
  140. data/scss/compagecss/components/_panels.scss +76 -0
  141. data/scss/compagecss/components/_pricing-tables.scss +130 -0
  142. data/scss/compagecss/components/_progress-bars.scss +70 -0
  143. data/scss/compagecss/components/_reveal.scss +131 -0
  144. data/scss/compagecss/components/_section.scss +303 -0
  145. data/scss/compagecss/components/_side-nav.scss +68 -0
  146. data/scss/compagecss/components/_split-buttons.scss +166 -0
  147. data/scss/compagecss/components/_sub-nav.scss +67 -0
  148. data/scss/compagecss/components/_switch.scss +249 -0
  149. data/scss/compagecss/components/_tables.scss +80 -0
  150. data/scss/compagecss/components/_thumbs.scss +47 -0
  151. data/scss/compagecss/components/_tooltips.scss +113 -0
  152. data/scss/compagecss/components/_top-bar.scss +462 -0
  153. data/scss/compagecss/components/_type.scss +422 -0
  154. data/scss/compagecss/components/_visibility.scss +320 -0
  155. data/scss/modularis.scss +49 -0
  156. data/scss/normalize.scss +402 -0
  157. data/templates/project/.gitignore +44 -0
  158. data/templates/project/MIT-LICENSE.txt +20 -0
  159. data/templates/project/config.rb +26 -0
  160. data/templates/project/humans.txt +8 -0
  161. data/templates/project/index.html +124 -0
  162. data/templates/project/manifest.rb +44 -0
  163. data/templates/project/robots.txt +4 -0
  164. data/templates/project/scss/app.scss +48 -0
  165. data/templates/upgrade/manifest.rb +34 -0
  166. metadata +235 -0
@@ -0,0 +1,184 @@
1
+ //
2
+ // Grid Variables
3
+ //
4
+ $row-width: emCalc(1000px) !default;
5
+ $column-gutter: emCalc(30px) !default;
6
+ $total-columns: 12 !default;
7
+
8
+ //
9
+ // Grid Function
10
+ //
11
+
12
+ @function gridCalc($colNumber, $totalColumns) {
13
+ @return percentage(($colNumber / $totalColumns));
14
+ }
15
+
16
+ //
17
+ // Grid Mixins
18
+ //
19
+
20
+ // For creating container, nested, and collapsed rows.
21
+ @mixin grid-row($behavior: false) {
22
+
23
+ // use @include grid-row(nest); to include a nested row
24
+ @if $behavior == nest {
25
+ width: auto;
26
+ margin-#{$default-float}: -($column-gutter/2);
27
+ margin-#{$opposite-direction}: -($column-gutter/2);
28
+ margin-top: 0;
29
+ margin-bottom: 0;
30
+ max-width: none;
31
+ }
32
+
33
+ // use @include grid-row(collapse); to collapsed a container row margins
34
+ @else if $behavior == collapse {
35
+ width: 100%;
36
+ margin: 0;
37
+ max-width: $row-width;
38
+ }
39
+
40
+ // use @include grid-row(nest-collapse); to collapse outer margins on a nested row
41
+ @else if $behavior == nest-collapse {
42
+ width: auto;
43
+ margin: 0;
44
+ max-width: none;
45
+ }
46
+
47
+ // use @include grid-row; to use a container row
48
+ @else {
49
+ width: 100%;
50
+ margin-#{$default-float}: auto;
51
+ margin-#{$opposite-direction}: auto;
52
+ margin-top: 0;
53
+ margin-bottom: 0;
54
+ max-width: $row-width;
55
+ }
56
+
57
+ // Clearfix for all rows
58
+ @include clearfix();
59
+
60
+ }
61
+
62
+
63
+ // For creating columns - @include these inside a media query to control small vs. large grid layouts
64
+ @mixin grid-column($columns:false, $last-column:false, $center:false, $offset:false, $push:false, $pull:false, $collapse:false, $float:true) {
65
+
66
+ position: relative;
67
+
68
+ // If collapsed, get rid of gutter padding
69
+ @if $collapse {
70
+ padding-left: 0;
71
+ padding-right: 0;
72
+ }
73
+
74
+ // Gutter padding whenever a column isn't set to collapse
75
+ // (use $collapse:null to do nothing)
76
+ @else if $collapse == false {
77
+ padding-left: $column-gutter / 2;
78
+ padding-right: $column-gutter / 2;
79
+ }
80
+
81
+ // If a column number is given, calculate width
82
+ @if $columns {
83
+ width: gridCalc($columns, $total-columns);
84
+
85
+ // If last column, float naturally instead of to the right
86
+ @if $last-column { float: $opposite-direction; }
87
+ }
88
+
89
+ // If offset, calculate appropriate margins
90
+ @if $offset { margin-#{$default-float}: gridCalc($offset, $total-columns); }
91
+
92
+ // Source Ordering, adds left/right depending on which you use.
93
+ @if $push { #{$default-float}: gridCalc($push, $total-columns); #{$opposite-direction}: auto; }
94
+ @if $pull { #{$opposite-direction}: gridCalc($pull, $total-columns); #{$default-float}: auto; }
95
+
96
+ // If centered, get rid of float and add appropriate margins
97
+ @if $center {
98
+ margin-#{$default-float}: auto;
99
+ margin-#{$opposite-direction}: auto;
100
+ float: none !important;
101
+ }
102
+
103
+ @if $float {
104
+ @if $float == left or $float == true { float: $default-float; }
105
+ @else if $float == right { float: $opposite-direction; }
106
+ @else { float: none; }
107
+ }
108
+
109
+ }
110
+
111
+
112
+ /* Grid HTML Classes */
113
+ @if $include-html-grid-classes != false {
114
+
115
+ .row {
116
+ @include grid-row;
117
+
118
+ &.collapse {
119
+ .column,
120
+ .columns { @include grid-column($collapse:true); }
121
+ }
122
+
123
+ .row { @include grid-row($behavior:nest);
124
+ &.collapse { @include grid-row($behavior:nest-collapse); }
125
+ }
126
+ }
127
+
128
+ .column,
129
+ .columns { @include grid-column($columns:$total-columns); }
130
+
131
+ @media only screen {
132
+
133
+ .column,
134
+ .columns { @include grid-column($columns:false); }
135
+
136
+ @for $i from 1 through $total-columns {
137
+ .small#{-$i} { @include grid-column($columns:$i,$collapse:null,$float:false); }
138
+ }
139
+
140
+ @for $i from 1 through $total-columns - 2 {
141
+ .small-offset-#{$i} { @include grid-column($offset:$i, $collapse:null,$float:false); }
142
+ }
143
+
144
+ [class*="column"] + [class*="column"]:last-child { float: $opposite-direction; }
145
+ [class*="column"] + [class*="column"].end { float: $default-float; }
146
+
147
+ .column.small-centered,
148
+ .columns.small-centered { @include grid-column($center:true, $collapse:null, $float:false); }
149
+ }
150
+
151
+ /* Styles for screens that are atleast 768px; */
152
+ @media #{$small} {
153
+
154
+ @for $i from 1 through $total-columns {
155
+ .large#{-$i} { @include grid-column($columns:$i,$collapse:null,$float:false); }
156
+ }
157
+
158
+ @for $i from 1 through $total-columns - 1 {
159
+ .row .large-offset-#{$i} { @include grid-column($offset:$i, $collapse:null,$float:false); }
160
+ }
161
+
162
+ @for $i from 1 through $total-columns - 1 {
163
+ .push#{-$i} { @include grid-column($push:$i, $collapse:null, $float:false); }
164
+ .pull#{-$i} { @include grid-column($pull:$i, $collapse:null, $float:false); }
165
+ }
166
+
167
+ @for $i from 1 through $total-columns - 1 {
168
+ .small-push#{-$i} { #{$default-float}: inherit; }
169
+ .small-pull#{-$i} { #{$opposite-direction}: inherit; }
170
+ }
171
+
172
+ .column.small-centered,
173
+ .columns.small-centered {
174
+ margin-#{$default-float}: 0;
175
+ margin-#{$opposite-direction}: 0;
176
+ float: none !important;
177
+ }
178
+
179
+ .column.large-centered,
180
+ .columns.large-centered { @include grid-column($center:true, $collapse:null, $float:false); }
181
+
182
+ }
183
+
184
+ }
@@ -0,0 +1,52 @@
1
+ //
2
+ // Inline List Variables
3
+ //
4
+
5
+ // We use this to control the margins and padding of the inline list.
6
+ $inline-list-top-margin: 0 !default;
7
+ $inline-list-opposite-margin: 0 !default;
8
+ $inline-list-bottom-margin: emCalc(17px) !default;
9
+ $inline-list-default-float-margin: emCalc(-22px) !default;
10
+
11
+ $inline-list-padding: 0 !default;
12
+
13
+ // We use this to control the overflow of the inline list.
14
+ $inline-list-overflow: hidden !default;
15
+
16
+ // We use this to control the list items
17
+ $inline-list-display: block !default;
18
+
19
+ // We use this to control any elments within list items
20
+ $inline-list-children-display: block !default;
21
+
22
+ //
23
+ // Inline List Mixins
24
+ //
25
+
26
+ // We use this mixin to create inline lists
27
+ @mixin inline-list {
28
+ margin: $inline-list-top-margin auto $inline-list-bottom-margin auto;
29
+ margin-#{$default-float}: $inline-list-default-float-margin;
30
+ margin-#{$opposite-direction}: $inline-list-opposite-margin;
31
+ padding: $inline-list-padding;
32
+ list-style: none;
33
+ overflow: $inline-list-overflow;
34
+
35
+ & > li {
36
+ list-style: none;
37
+ float: $default-float;
38
+ margin-#{$default-float}: emCalc(22px);
39
+ display: $inline-list-display;
40
+ &>* { display: $inline-list-children-display; }
41
+ }
42
+ }
43
+
44
+
45
+ @if $include-html-grid-classes != false {
46
+
47
+ /* Inline Lists */
48
+ .inline-list {
49
+ @include inline-list();
50
+ }
51
+
52
+ }
@@ -0,0 +1,210 @@
1
+ //
2
+ // Joyride Variables
3
+ //
4
+
5
+ // Controlling default Joyride styles
6
+ $joyride-tip-bg: rgb(0,0,0) !default;
7
+ $joyride-tip-default-width: 300px !default;
8
+ $joyride-tip-padding: emCalc(18px) emCalc(20px) emCalc(24px) !default;
9
+ $joyride-tip-border: solid 1px #555 !default;
10
+ $joyride-tip-radius: 4px !default;
11
+ $joyride-tip-position-offset: 22px !default;
12
+
13
+ // Here, we're setting the tip dont styles
14
+ $joyride-tip-font-color: #fff !default;
15
+ $joyride-tip-font-size: emCalc(14px) !default;
16
+ $joyride-tip-header-weight: bold !default;
17
+
18
+ // This changes the nub size
19
+ $joyride-tip-nub-size: 14px !default;
20
+
21
+ // This adjusts the styles for the timer when its enabled
22
+ $joyride-tip-timer-width: 50px !default;
23
+ $joyride-tip-timer-height: 3px !default;
24
+ $joyride-tip-timer-color: #666 !default;
25
+
26
+ // This changes up the styles for the close button
27
+ $joyride-tip-close-color: #777 !default;
28
+ $joyride-tip-close-size: 30px !default;
29
+ $joyride-tip-close-weight: normal !default;
30
+
31
+ // When Joyride is filling the screen, we use this style for the bg
32
+ $joyride-screenfill: rgba(0,0,0,0.5) !default;
33
+
34
+
35
+ // We decided not to make a mixin for this because it relies on predefined classes to work properly.
36
+
37
+ /* Modularis Joyride */
38
+ .joyride-list { display: none; }
39
+
40
+ /* Default styles for the container */
41
+ .joyride-tip-guide {
42
+ display: none;
43
+ position: absolute;
44
+ background: $joyride-tip-bg;
45
+ color: $joyride-tip-font-color;
46
+ z-index: 101;
47
+ top: 0;
48
+ #{$default-float}: 2.5%;
49
+ font-family: inherit;
50
+ font-weight: normal;
51
+ width: 95%;
52
+ }
53
+
54
+ .lt-ie9 .joyride-tip-guide {
55
+ max-width:800px;
56
+ #{$default-float}: 50%;
57
+ margin-#{$default-float}:-400px;
58
+ }
59
+
60
+ .joyride-content-wrapper {
61
+ width: 100%;
62
+
63
+ padding: $joyride-tip-padding;
64
+
65
+ .button { margin-bottom: 0 !important; }
66
+ }
67
+
68
+ /* Add a little css triangle pip, older browser just miss out on the fanciness of it */
69
+ .joyride-tip-guide {
70
+ .joyride-nub {
71
+ display: block;
72
+ position: absolute;
73
+ #{$default-float}: $joyride-tip-position-offset;
74
+ width: 0;
75
+ height: 0;
76
+ border: inset $joyride-tip-nub-size;
77
+
78
+ &.top {
79
+ border-top-style: solid;
80
+ border-color: $joyride-tip-bg;
81
+ border-top-color: transparent !important;
82
+ border-#{$default-float}-color: transparent !important;
83
+ border-#{$opposite-direction}-color: transparent !important;
84
+ top: -($joyride-tip-nub-size*2);
85
+ }
86
+ &.bottom {
87
+ border-bottom-style: solid;
88
+ border-color: $joyride-tip-bg !important;
89
+ border-bottom-color: transparent !important;
90
+ border-#{$default-float}-color: transparent !important;
91
+ border-#{$opposite-direction}-color: transparent !important;
92
+ bottom: -($joyride-tip-nub-size*2);
93
+ }
94
+
95
+ &.right { right: -($joyride-tip-nub-size*2); }
96
+ &.left { left: -($joyride-tip-nub-size*2); }
97
+ }
98
+ }
99
+
100
+ /* Typography */
101
+ .joyride-tip-guide h1,
102
+ .joyride-tip-guide h2,
103
+ .joyride-tip-guide h3,
104
+ .joyride-tip-guide h4,
105
+ .joyride-tip-guide h5,
106
+ .joyride-tip-guide h6 {
107
+ line-height: 1.25;
108
+ margin: 0;
109
+ font-weight: $joyride-tip-header-weight;
110
+ color: $joyride-tip-font-color;
111
+ }
112
+ .joyride-tip-guide p {
113
+ margin: 0 0 emCalc(18px) 0;
114
+ font-size: $joyride-tip-font-size;
115
+ line-height: 1.3;
116
+ }
117
+
118
+ .joyride-timer-indicator-wrap {
119
+ width: $joyride-tip-timer-width;
120
+ height: $joyride-tip-timer-height;
121
+ border: $joyride-tip-border;
122
+ position: absolute;
123
+ #{$opposite-direction}: emCalc(17px);
124
+ bottom: emCalc(16px);
125
+ }
126
+ .joyride-timer-indicator {
127
+ display: block;
128
+ width: 0;
129
+ height: inherit;
130
+ background: $joyride-tip-timer-color;
131
+ }
132
+
133
+ .joyride-close-tip {
134
+ position: absolute;
135
+ #{$opposite-direction}: 12px;
136
+ top: 10px;
137
+ color: $joyride-tip-close-color !important;
138
+ text-decoration: none;
139
+ font-size: $joyride-tip-close-size;
140
+ font-weight: $joyride-tip-close-weight;
141
+ line-height: .5 !important;
142
+
143
+ &:hover,
144
+ &:focus { color: #eee !important; }
145
+ }
146
+
147
+ .joyride-modal-bg {
148
+ position: fixed;
149
+ height: 100%;
150
+ width: 100%;
151
+ background: transparent;
152
+ background: $joyride-screenfill;
153
+ z-index: 100;
154
+ display: none;
155
+ top: 0;
156
+ #{$default-float}: 0;
157
+ cursor: pointer;
158
+ }
159
+
160
+ .joyride-expose-wrapper {
161
+ background-color: #ffffff;
162
+ position: absolute;
163
+ border-radius: 3px;
164
+ z-index: 102;
165
+ -moz-box-shadow: 0px 0px 30px #ffffff;
166
+ -webkit-box-shadow: 0px 0px 15px #ffffff;
167
+ box-shadow: 0px 0px 15px #ffffff;
168
+ }
169
+
170
+ .joyride-expose-cover {
171
+ background: transparent;
172
+ border-radius: 3px;
173
+ position: absolute;
174
+ z-index: 9999;
175
+ top: 0px;
176
+ left: 0px;
177
+ }
178
+
179
+
180
+ /* Styles for screens that are atleast 768px; */
181
+ @media #{$small} {
182
+ .joyride-tip-guide { width: $joyride-tip-default-width; #{$default-float}: inherit;
183
+ .joyride-nub {
184
+ &.bottom {
185
+ border-color: $joyride-tip-bg !important;
186
+ border-bottom-color: transparent !important;
187
+ border-#{$default-float}-color: transparent !important;
188
+ border-#{$opposite-direction}-color: transparent !important;
189
+ bottom: -($joyride-tip-nub-size*2);
190
+ }
191
+ &.right {
192
+ border-color: $joyride-tip-bg !important;
193
+ border-top-color: transparent !important;
194
+ border-right-color: transparent !important; border-bottom-color: transparent !important;
195
+ top: $joyride-tip-position-offset;
196
+ left: auto;
197
+ right: -($joyride-tip-nub-size*2);
198
+ }
199
+ &.left {
200
+ border-color: $joyride-tip-bg !important;
201
+ border-top-color: transparent !important;
202
+ border-left-color: transparent !important;
203
+ border-bottom-color: transparent !important;
204
+ top: $joyride-tip-position-offset;
205
+ left: -($joyride-tip-nub-size*2);
206
+ right: auto;
207
+ }
208
+ }
209
+ }
210
+ }
@@ -0,0 +1,56 @@
1
+ //
2
+ // Keystroke Variables
3
+ //
4
+
5
+ // We use these to control text styles.
6
+ $keystroke-font: "Consolas", "Menlo", "Courier", monospace !default;
7
+ $keystroke-font-size: emCalc(15px) !default;
8
+ $keystroke-font-color: #222 !default;
9
+ $keystroke-font-color-alt: #fff !default;
10
+ $keystroke-function-factor: 7% !default;
11
+
12
+ // We use this to control keystroke padding.
13
+ $keystroke-padding: emCalc(2px) emCalc(4px) emCalc(0px) !default;
14
+
15
+ // We use these to control background and border styles.
16
+ $keystroke-bg: darken(#fff, $keystroke-function-factor) !default;
17
+ $keystroke-border-style: solid !default;
18
+ $keystroke-border-width: 1px !default;
19
+ $keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor) !default;
20
+ $keystroke-radius: $global-radius !default;
21
+
22
+ //
23
+ // Keystroke Mixins
24
+ //
25
+
26
+ // We use this mixin to create keystroke styles.
27
+ @mixin keystroke($bg:$keystroke-bg) {
28
+ // This find the lightness percentage of the background color.
29
+ $bg-lightness: lightness($bg);
30
+
31
+ background-color: $bg;
32
+ border-color: darken($bg, $keystroke-function-factor);
33
+
34
+ // We adjust the font color based on the brightness of the background.
35
+ @if $bg-lightness > 70% { color: $keystroke-font-color; }
36
+ @else { color: $keystroke-font-color-alt; }
37
+
38
+ border-style: $keystroke-border-style;
39
+ border-width: $keystroke-border-width;
40
+ margin: 0;
41
+ font-family: $keystroke-font;
42
+ font-size: $keystroke-font-size;
43
+ padding: $keystroke-padding;
44
+ }
45
+
46
+
47
+ @if $include-html-media-classes != false {
48
+
49
+ /* Keystroke Characters */
50
+ .keystroke,
51
+ kbd {
52
+ @include keystroke;
53
+ @include radius($keystroke-radius);
54
+ }
55
+
56
+ }
@@ -0,0 +1,84 @@
1
+ //
2
+ // Label Variables
3
+ //
4
+
5
+ // We use these to style the labels
6
+ $label-padding: emCalc(3px) emCalc(10px) emCalc(4px) !default;
7
+ $label-radius: $global-radius !default;
8
+
9
+ // We use these to style the label text
10
+ $label-font-sizing: emCalc(14px) !default;
11
+ $label-font-weight: bold !default;
12
+ $label-font-color: #333 !default;
13
+ $label-font-color-alt: #fff !default;
14
+
15
+ //
16
+ // Label Mixins
17
+ //
18
+
19
+ // We use this mixin to create a default label base.
20
+ @mixin label-base {
21
+ font-weight: $label-font-weight;
22
+ text-align: center;
23
+ text-decoration: none;
24
+ line-height: 1;
25
+ white-space: nowrap;
26
+ display: inline-block;
27
+ position: relative;
28
+ }
29
+
30
+ // We use this mixin to add label size styles.
31
+ @mixin label-size($padding:$label-padding, $text-size:$label-font-sizing) {
32
+ @if $padding { padding: $padding; }
33
+ @if $text-size { font-size: $text-size; }
34
+ }
35
+
36
+ // We use this mixin to add label styles.
37
+ @mixin label-style($bg:$primary-color, $radius:false) {
38
+
39
+ // We control which background color comes through
40
+ @if $bg {
41
+
42
+ // This find the lightness percentage of the background color.
43
+ $bg-lightness: lightness($bg);
44
+
45
+ background-color: $bg;
46
+
47
+ // We control the text color for you based on the background color.
48
+ @if $bg-lightness < 70% { color: $label-font-color-alt; }
49
+ @else { color: $label-font-color; }
50
+ }
51
+
52
+ // We use this to control the radius on labels.
53
+ @if $radius == true { @include radius($label-radius); }
54
+ @else if $radius { @include radius($radius); }
55
+
56
+ }
57
+
58
+ // We use this to add close buttons to alerts
59
+ @mixin label($padding:$label-padding, $text-size:$label-font-sizing, $bg:$primary-color, $radius:false) {
60
+
61
+ @include label-base;
62
+ @include label-size($padding, $text-size);
63
+ @include label-style($bg, $radius);
64
+ }
65
+
66
+
67
+ @if $include-html-label-classes != false {
68
+
69
+ /* Labels */
70
+ .label {
71
+ @include label-base;
72
+ @include label-size;
73
+ @include label-style;
74
+
75
+
76
+ &.radius { @include label-style(false, true); }
77
+ &.round { @include label-style(false, $radius:1000px); }
78
+
79
+ &.alert { @include label-style($alert-color); }
80
+ &.success { @include label-style($success-color); }
81
+ &.secondary { @include label-style($secondary-color); }
82
+ }
83
+
84
+ }
@@ -0,0 +1,21 @@
1
+ //
2
+ // Magellan Variables
3
+ //
4
+ $magellan-bg: #fff !default;
5
+ $magellan-padding: 10px !default;
6
+
7
+ @if $include-html-magellan-classes != false {
8
+
9
+ [data-magellan-expedition] {
10
+ background: $magellan-bg;
11
+ z-index: 50;
12
+ min-width: 100%;
13
+ padding: $magellan-padding;
14
+
15
+ .sub-nav {
16
+ margin-bottom: 0;
17
+ dd { margin-bottom: 0; }
18
+ }
19
+ }
20
+
21
+ }
@@ -0,0 +1,86 @@
1
+ //
2
+ // Off Canvas Mixins
3
+ //
4
+ @mixin off-canvas($style: false, $main-element: "[role='main']", $complementary-element: "[role='complementary']", $nav-element: "[role='navigation']", $panels: ".page-panel", $main-row: ".row", $nested-rows: ".row", $menu-button: ".menu-button", $sidebar-button: ".sidebar-button", $timing: 0.25s, $main-large-width: 80%, $complementary-large-width: 20%, $panel-count: 5, $use3d: false) {
5
+
6
+ padding: 0;
7
+ margin: 0;
8
+
9
+ #{$main-row} { overflow: hidden; }
10
+ #{$main-row} #{$nested-rows} { overflow: visible; }
11
+
12
+ #{$main-element}:before { content: " "; position: absolute; z-index: -1; top: 0; left: -100%; width: 100%; height: 100%; }
13
+
14
+ #{$complementary-element}, #{$main-element} { width: 100%; padding: 0 15px; display: block; position: relative; z-index: 1; -webkit-transition: $timing all ease-in; -moz-transition: $timing all ease-in; -o-transition: $timing all ease-in; transition: $timing all ease-in; }
15
+
16
+ @if $use3d {
17
+
18
+ #{$complementary-element} { margin-left: -100%; width: $main-large-width; float: left; z-index: 2; }
19
+ #{$main-element} { margin-left: 0; float: right; z-index: 1; position: relative; }
20
+
21
+ &.active #{$complementary-element} {
22
+ -webkit-transform: translate3d(percentage(1 / ($main-large-width/100%)),0,0);
23
+ }
24
+ &.active #{$main-element} {
25
+ -webkit-transform: translate3d($main-large-width,0,0);
26
+ }
27
+
28
+ } @else {
29
+
30
+ #{$complementary-element} { margin-left: -100%; width: $main-large-width; float: left; z-index: 2; }
31
+ #{$main-element} { margin-left: 0; float: right; z-index: 1; position: relative; }
32
+
33
+ &.active #{$complementary-element} { margin-left: 0; }
34
+ &.active #{$main-element} { margin-right: -$main-large-width; }
35
+
36
+ }
37
+
38
+ //Global off canvas styles for screens larger than 768px
39
+ @media #{$small} {
40
+ #{$menu-button} , #{$sidebar-button} { display: none; }
41
+ #{$complementary-element} { width: $complementary-large-width; margin-left: 0; float: left; padding: 0 15px; }
42
+ #{$main-element} { width: $main-large-width; padding: 0 15px; }
43
+
44
+ .hide-extras #{$main-element} { width: 100%; }
45
+ .hide-extras #{$complementary-element} { display: none; }
46
+ }
47
+
48
+ //Top Nav Style
49
+ @if $style == nav-on-top {
50
+ #{$nav-element} { -webkit-transition: $timing all ease-in; -moz-transition: $timing all ease-in; -o-transition: $timing all ease-in; transition: $timing all ease-in; }
51
+
52
+ #{$nav-element} ul { margin-top: 0; }
53
+
54
+ &.active-menu #{$nav-element} { margin-top: 0 !important; }
55
+
56
+ @media #{$small} {
57
+ #{$nav-element} { display: none; }
58
+ }
59
+ }
60
+
61
+ //Paneled Style
62
+ @else if $style == paneled {
63
+
64
+ &> * { overflow: hidden; }
65
+ #{$main-row} { width: 100%; }
66
+
67
+ #{$main-element} { padding: 0; background: #fff; width: percentage($panel-count); overflow: hidden; float: none; position: relative; left: 0; -webkit-transition: 0.15s all ease-in; -moz-transition: 0.15s all ease-in; -o-transition: 0.15s all ease-in; transition: 0.15s all ease-in; }
68
+
69
+ #{$panels} { width: 100%; padding: 0 15px; -webkit-transition: $timing margin ease-in-out; -moz-transition: $timing margin ease-in-out; -o-transition: $timing margin ease-in-out; transition: $timing margin ease-in-out; background: #fff; min-height: 400px; float: left; margin: 0; width: percentage(1 / $panel-count ); }
70
+
71
+ @media #{$small} {
72
+ #{$main-element} { width: 100%; padding: 0; background: #f4f4f4; left: 0 !important; }
73
+ .page-panel { display: block; min-height: 800px; float: none; margin: 0; width: 100%; background: #f4f4f4; }
74
+ }
75
+ }
76
+ }
77
+
78
+
79
+
80
+ //
81
+ // Default CSS Classes
82
+ //
83
+
84
+ body.off-canvas { @include off-canvas($use3d: true); }
85
+ body.off-canvas.paneled { @include off-canvas($style: paneled); }
86
+ body.off-canvas.nav-on-top { @include off-canvas($style: nav-on-top); }