fortitude-sass 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.npmignore +9 -0
  4. data/.scss-lint.yml +13 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +48 -0
  7. data/README.md +19 -0
  8. data/app/assets/javascripts/fortitude/jquery/blocks/flashbar.js +13 -0
  9. data/app/assets/javascripts/fortitude/jquery/blocks/select-input.js +26 -0
  10. data/app/assets/javascripts/fortitude/jquery/blocks/shade.js +48 -0
  11. data/app/assets/javascripts/fortitude/jquery/generic/transition-end.js +50 -0
  12. data/app/assets/javascripts/fortitude/jquery/generic/viewport.js +7 -0
  13. data/app/assets/javascripts/fortitude/jquery/index.js +3 -0
  14. data/app/assets/javascripts/fortitude.jquery.js +45 -0
  15. data/app/assets/stylesheets/fortitude/base/_hr.scss +10 -0
  16. data/app/assets/stylesheets/fortitude/base/_images.scss +32 -0
  17. data/app/assets/stylesheets/fortitude/base/_lists.scss +15 -0
  18. data/app/assets/stylesheets/fortitude/base/_page.scss +28 -0
  19. data/app/assets/stylesheets/fortitude/blocks/_badge.scss +141 -0
  20. data/app/assets/stylesheets/fortitude/blocks/_bare-list.scss +17 -0
  21. data/app/assets/stylesheets/fortitude/blocks/_block-list.scss +83 -0
  22. data/app/assets/stylesheets/fortitude/blocks/_box.scss +23 -0
  23. data/app/assets/stylesheets/fortitude/blocks/_button.scss +229 -0
  24. data/app/assets/stylesheets/fortitude/blocks/_container.scss +67 -0
  25. data/app/assets/stylesheets/fortitude/blocks/_flag.scss +426 -0
  26. data/app/assets/stylesheets/fortitude/blocks/_flashbar.scss +22 -0
  27. data/app/assets/stylesheets/fortitude/blocks/_fluid-container.scss +12 -0
  28. data/app/assets/stylesheets/fortitude/blocks/_inline-list.scss +19 -0
  29. data/app/assets/stylesheets/fortitude/blocks/_input.scss +377 -0
  30. data/app/assets/stylesheets/fortitude/blocks/_layout.scss +288 -0
  31. data/app/assets/stylesheets/fortitude/blocks/_list-navigation.scss +34 -0
  32. data/app/assets/stylesheets/fortitude/blocks/_media.scss +289 -0
  33. data/app/assets/stylesheets/fortitude/blocks/_shade.scss +51 -0
  34. data/app/assets/stylesheets/fortitude/blocks/_table.scss +31 -0
  35. data/app/assets/stylesheets/fortitude/blocks/_tabs-navigation.scss +58 -0
  36. data/app/assets/stylesheets/fortitude/blocks/_tabs.scss +19 -0
  37. data/app/assets/stylesheets/fortitude/blocks/_text.scss +67 -0
  38. data/app/assets/stylesheets/fortitude/blocks/_ui-list.scss +97 -0
  39. data/app/assets/stylesheets/fortitude/generic/_box-sizing.scss +23 -0
  40. data/app/assets/stylesheets/fortitude/generic/_clearfix.scss +3 -0
  41. data/app/assets/stylesheets/fortitude/generic/_normalize.scss +200 -0
  42. data/app/assets/stylesheets/fortitude/generic/_reset.scss +53 -0
  43. data/app/assets/stylesheets/fortitude/settings/_defaults.scss +58 -0
  44. data/app/assets/stylesheets/fortitude/tools/_functions.scss +115 -0
  45. data/app/assets/stylesheets/fortitude/tools/_mixins.scss +58 -0
  46. data/app/assets/stylesheets/fortitude/trumps/_responsive-border.scss +35 -0
  47. data/app/assets/stylesheets/fortitude/trumps/_responsive-column.scss +37 -0
  48. data/app/assets/stylesheets/fortitude/trumps/_responsive-display.scss +35 -0
  49. data/app/assets/stylesheets/fortitude/trumps/_responsive-float.scss +13 -0
  50. data/app/assets/stylesheets/fortitude/trumps/_responsive-font.scss +13 -0
  51. data/app/assets/stylesheets/fortitude/trumps/_responsive-height.scss +13 -0
  52. data/app/assets/stylesheets/fortitude/trumps/_responsive-line-height.scss +13 -0
  53. data/app/assets/stylesheets/fortitude/trumps/_responsive-margin.scss +129 -0
  54. data/app/assets/stylesheets/fortitude/trumps/_responsive-padding.scss +65 -0
  55. data/app/assets/stylesheets/fortitude/trumps/_responsive-text.scss +17 -0
  56. data/app/assets/stylesheets/fortitude.scss +40 -0
  57. data/bin/fortitude +6 -0
  58. data/bower.json +43 -0
  59. data/config.rb +36 -0
  60. data/dist/fortitude.css +5242 -0
  61. data/dist/fortitude.css.map +7 -0
  62. data/dist/fortitude.jquery.js +45 -0
  63. data/fortitude-black.png +0 -0
  64. data/fortitude.gemspec +32 -0
  65. data/fortitude.png +0 -0
  66. data/lib/fortitude-sass/engine.rb +5 -0
  67. data/lib/fortitude-sass/generator.rb +80 -0
  68. data/lib/fortitude-sass/version.rb +3 -0
  69. data/lib/fortitude-sass.rb +27 -0
  70. data/lib/tasks/install.rake +20 -0
  71. data/package.json +24 -0
  72. metadata +187 -0
@@ -0,0 +1,19 @@
1
+ /*------------------------------------*\
2
+ #TABS
3
+ \*------------------------------------*/
4
+
5
+ @mixin fortitude-tabs__target {
6
+ display: none;
7
+ }
8
+
9
+ @mixin fortitude-tabs__target--is-selected {
10
+ display: block;
11
+ }
12
+
13
+ .#{$fortitude-namespace}tabs__target {
14
+ @include fortitude-tabs__target;
15
+ }
16
+
17
+ .#{$fortitude-namespace}tabs__target--is-selected {
18
+ @include fortitude-tabs__target--is-selected;
19
+ }
@@ -0,0 +1,67 @@
1
+ /*------------------------------------*\
2
+ #TEXT
3
+ \*------------------------------------*/
4
+
5
+ @mixin fortitude-text-italic {
6
+ font-style: italic;
7
+ }
8
+
9
+ @mixin fortitude-text-underline {
10
+ text-decoration: underline;
11
+ }
12
+
13
+ @mixin fortitude-text-line-through {
14
+ text-decoration: line-through;
15
+ }
16
+
17
+ @mixin fortitude-text-lowercase {
18
+ text-transform: lowercase;
19
+ }
20
+
21
+ @mixin fortitude-text-uppercase {
22
+ text-transform: uppercase;
23
+ }
24
+
25
+ @mixin fortitude-text-capitalize {
26
+ text-transform: capitalize;
27
+ }
28
+
29
+ @mixin fortitude-text($extension: null) {
30
+ @if ($extension == italic) {
31
+ @include fortitude-text-italic;
32
+ } @else if ($extension == underline) {
33
+ @include fortitude-text-underline;
34
+ } @else if ($extension == line-through) {
35
+ @include fortitude-text-line-through;
36
+ } @else if ($extension == lowercase) {
37
+ @include fortitude-text-lowercase;
38
+ } @else if ($extension == uppercase) {
39
+ @include fortitude-text-uppercase;
40
+ } @else if ($extension == capitalize) {
41
+ @include fortitude-text-capitalize;
42
+ }
43
+ }
44
+
45
+ .#{$fortitude-namespace}fortitude-text-italic {
46
+ @include fortitude-text-italic;
47
+ }
48
+
49
+ .#{$fortitude-namespace}fortitude-text-underline {
50
+ @include fortitude-text-underline;
51
+ }
52
+
53
+ .#{$fortitude-namespace}fortitude-text-line-through {
54
+ @include fortitude-text-line-through;
55
+ }
56
+
57
+ .#{$fortitude-namespace}fortitude-text-lowercase {
58
+ @include fortitude-text-lowercase;
59
+ }
60
+
61
+ .#{$fortitude-namespace}fortitude-text-uppercase {
62
+ @include fortitude-text-uppercase;
63
+ }
64
+
65
+ .#{$fortitude-namespace}fortitude-text-capitalize {
66
+ @include fortitude-text-capitalize;
67
+ }
@@ -0,0 +1,97 @@
1
+ /*------------------------------------*\
2
+ #UI-LIST
3
+ \*------------------------------------*/
4
+
5
+ /**
6
+ * The UI list object creates blocky list items with a keyline separator out of
7
+ * a `ul` or `ol`.
8
+ */
9
+
10
+ // Predefine the variables below in order to alter and enable specific features.
11
+ $fortitude-ui-list-padding: $fortitude-base-spacing-unit !default;
12
+ $fortitude-ui-list-padding--small: halve($fortitude-ui-list-padding) !default;
13
+ $fortitude-ui-list-padding--large: double($fortitude-ui-list-padding) !default;
14
+
15
+ $fortitude-ui-list-border-width: 0.1rem !default;
16
+ $fortitude-ui-list-border-style: solid !default;
17
+ $fortitude-ui-list-border-color: #ccc !default;
18
+
19
+ $fortitude-enable-ui-list--small: false !default;
20
+ $fortitude-enable-ui-list--large: false !default;
21
+
22
+ @mixin fortitude-ui-list {
23
+ border: 0 $fortitude-ui-list-border-style $fortitude-ui-list-border-color;
24
+ margin: 0;
25
+ padding: 0;
26
+ list-style: none;
27
+ border-top-width: $fortitude-ui-list-border-width;
28
+ }
29
+
30
+ @mixin fortitude-ui-list__item($extension: null) {
31
+ border: 0 $fortitude-ui-list-border-style $fortitude-ui-list-border-color;
32
+ border-bottom-width: $fortitude-ui-list-border-width;
33
+
34
+ @if ($extension == small) {
35
+ @include fortitude-ui-list--small__item;
36
+ } @else if ($extension == large) {
37
+ @include fortitude-ui-list--large__item;
38
+ } @else {
39
+ padding: $fortitude-ui-list-padding;
40
+ }
41
+ }
42
+
43
+ @mixin fortitude-ui-list--small__item {
44
+ padding: $fortitude-ui-list-padding--small;
45
+ }
46
+
47
+ @mixin fortitude-ui-list--large__item {
48
+ padding: $fortitude-ui-list-padding--large;
49
+ }
50
+
51
+
52
+ .#{$fortitude-namespace}ui-list {
53
+ @include fortitude-ui-list;
54
+ }
55
+
56
+ .#{$fortitude-namespace}ui-list__item {
57
+ @include fortitude-ui-list__item;
58
+ }
59
+
60
+
61
+
62
+
63
+
64
+ @if ($fortitude-enable-ui-list--small == true) {
65
+
66
+ /**
67
+ * Small ui-lists.
68
+ */
69
+
70
+ .#{$fortitude-namespace}ui-list--small {
71
+
72
+ > .#{$fortitude-namespace}ui-list__item {
73
+ @include fortitude-ui-list--small__item;
74
+ }
75
+
76
+ }
77
+
78
+ }
79
+
80
+
81
+
82
+
83
+
84
+ @if ($fortitude-enable-ui-list--large == true) {
85
+
86
+ /**
87
+ * Large ui-lists.
88
+ */
89
+
90
+ .#{$fortitude-namespace}ui-list--large {
91
+
92
+ > .#{$fortitude-namespace}ui-list__item {
93
+ @include fortitude-ui-list--large__item;
94
+ }
95
+
96
+ }
97
+ }
@@ -0,0 +1,23 @@
1
+ /*------------------------------------*\
2
+ #BOX-SIZING
3
+ \*------------------------------------*/
4
+
5
+ /**
6
+ * Set the global `box-sizing` state to `border-box`.
7
+ */
8
+ * {
9
+ &,
10
+ &:before,
11
+ &:after {
12
+ -webkit-box-sizing: border-box;
13
+ -moz-box-sizing: border-box;
14
+ box-sizing: border-box;
15
+ }
16
+ }
17
+
18
+
19
+
20
+
21
+ // If we have included this file, set a variable to tell the rest of the
22
+ // framework that global `box-sizing: border-box` has been set.
23
+ $fortitude-global-border-box: true;
@@ -0,0 +1,3 @@
1
+ %#{$fortitude-namespace}clearfix {
2
+ @include fortitude-clearfix;
3
+ }
@@ -0,0 +1,200 @@
1
+ html {
2
+ font-family: sans-serif;
3
+ -ms-text-size-adjust: 100%;
4
+ -webkit-text-size-adjust: 100%;
5
+ }
6
+
7
+ body {
8
+ margin: 0;
9
+ }
10
+
11
+ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
12
+ display: block;
13
+ }
14
+
15
+ audio, canvas, progress, video {
16
+ display: inline-block;
17
+ vertical-align: baseline;
18
+ }
19
+
20
+ audio:not([controls]) {
21
+ display: none;
22
+ height: 0;
23
+ }
24
+
25
+ [hidden], template {
26
+ display: none;
27
+ }
28
+
29
+ a {
30
+ background: transparent;
31
+ &:active, &:hover {
32
+ outline: 0;
33
+ }
34
+ }
35
+
36
+ abbr[title] {
37
+ border-bottom: 1px dotted;
38
+ }
39
+
40
+ b, strong {
41
+ font-weight: bold;
42
+ }
43
+
44
+ dfn {
45
+ font-style: italic;
46
+ }
47
+
48
+ h1 {
49
+ font-size: 2em;
50
+ margin: 0.67em 0;
51
+ }
52
+
53
+ mark {
54
+ background: #ff0;
55
+ color: #000;
56
+ }
57
+
58
+ small {
59
+ font-size: 80%;
60
+ }
61
+
62
+ sub {
63
+ font-size: 75%;
64
+ line-height: 0;
65
+ position: relative;
66
+ vertical-align: baseline;
67
+ }
68
+
69
+ sup {
70
+ font-size: 75%;
71
+ line-height: 0;
72
+ position: relative;
73
+ vertical-align: baseline;
74
+ top: -0.5em;
75
+ }
76
+
77
+ sub {
78
+ bottom: -0.25em;
79
+ }
80
+
81
+ img {
82
+ border: 0;
83
+ }
84
+
85
+ svg:not(:root) {
86
+ overflow: hidden;
87
+ }
88
+
89
+ figure {
90
+ margin: 1em 40px;
91
+ }
92
+
93
+ hr {
94
+ -moz-box-sizing: content-box;
95
+ box-sizing: content-box;
96
+ height: 0;
97
+ }
98
+
99
+ pre {
100
+ overflow: auto;
101
+ }
102
+
103
+ code, kbd, pre, samp {
104
+ font-family: monospace, monospace;
105
+ font-size: 1em;
106
+ }
107
+
108
+ button, input, optgroup, select, textarea {
109
+ color: inherit;
110
+ font: inherit;
111
+ margin: 0;
112
+ }
113
+
114
+ button {
115
+ overflow: visible;
116
+ text-transform: none;
117
+ }
118
+
119
+ select {
120
+ text-transform: none;
121
+ }
122
+
123
+ button, html input[type="button"] {
124
+ -webkit-appearance: button;
125
+ cursor: pointer;
126
+ }
127
+
128
+ input {
129
+ &[type="reset"], &[type="submit"] {
130
+ -webkit-appearance: button;
131
+ cursor: pointer;
132
+ }
133
+ }
134
+
135
+ button[disabled], html input[disabled] {
136
+ cursor: default;
137
+ }
138
+
139
+ button::-moz-focus-inner {
140
+ border: 0;
141
+ padding: 0;
142
+ }
143
+
144
+ input {
145
+ &::-moz-focus-inner {
146
+ border: 0;
147
+ padding: 0;
148
+ }
149
+ line-height: normal;
150
+ &[type="checkbox"], &[type="radio"] {
151
+ -moz-box-sizing: border-box;
152
+ box-sizing: border-box;
153
+ padding: 0;
154
+ }
155
+ &[type="number"] {
156
+ &::-webkit-inner-spin-button, &::-webkit-outer-spin-button {
157
+ height: auto;
158
+ }
159
+ }
160
+ &[type="search"] {
161
+
162
+ @if ($fortitude-global-border-box == false) {
163
+ -webkit-appearance: textfield;
164
+ -moz-box-sizing: content-box;
165
+ box-sizing: content-box;
166
+ }
167
+
168
+ &::-webkit-search-cancel-button, &::-webkit-search-decoration {
169
+ -webkit-appearance: none;
170
+ }
171
+ }
172
+ }
173
+
174
+ fieldset {
175
+ border: 1px solid #c0c0c0;
176
+ margin: 0 2px;
177
+ padding: 0.35em 0.625em 0.75em;
178
+ }
179
+
180
+ legend {
181
+ border: 0;
182
+ padding: 0;
183
+ }
184
+
185
+ textarea {
186
+ overflow: auto;
187
+ }
188
+
189
+ optgroup {
190
+ font-weight: bold;
191
+ }
192
+
193
+ table {
194
+ border-collapse: collapse;
195
+ border-spacing: 0;
196
+ }
197
+
198
+ td, th {
199
+ padding: 0;
200
+ }
@@ -0,0 +1,53 @@
1
+ /*------------------------------------*\
2
+ #RESET
3
+ \*------------------------------------*/
4
+
5
+ /**
6
+ * As well as using normalize.css, it is often advantageous to remove all
7
+ * margins from certain elements.
8
+ */
9
+ body,
10
+ h1, h2, h3, h4, h5, h6,
11
+ p, blockquote, pre,
12
+ dl, dd, ol, ul,
13
+ form, fieldset, legend,
14
+ table, th, td, caption,
15
+ hr, figure {
16
+ margin: 0;
17
+ padding: 0;
18
+ }
19
+
20
+
21
+
22
+
23
+
24
+ /**
25
+ * Give a help cursor to elements that give extra info on `:hover`.
26
+ */
27
+ abbr[title],
28
+ dfn[title] {
29
+ cursor: help;
30
+ }
31
+
32
+
33
+
34
+
35
+
36
+ /**
37
+ * Remove underlines from potentially troublesome elements.
38
+ */
39
+ // u,
40
+ // ins {
41
+ // text-decoration: none;
42
+ // }
43
+
44
+
45
+
46
+
47
+
48
+ /**
49
+ * Apply faux underlines to inserted text via `border-bottom`.
50
+ */
51
+ // ins {
52
+ // border-bottom: 0.1rem solid;
53
+ // }