fortitude-sass 0.4.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -5
  3. data/Gemfile.lock +1 -1
  4. data/app/assets/stylesheets/fortitude/base/_hr.scss +7 -7
  5. data/app/assets/stylesheets/fortitude/base/_images.scss +10 -12
  6. data/app/assets/stylesheets/fortitude/base/_lists.scss +6 -8
  7. data/app/assets/stylesheets/fortitude/base/_page.scss +14 -10
  8. data/app/assets/stylesheets/fortitude/blocks/_badge.scss +28 -137
  9. data/app/assets/stylesheets/fortitude/blocks/_bare-list.scss +0 -12
  10. data/app/assets/stylesheets/fortitude/blocks/_block-list.scss +20 -74
  11. data/app/assets/stylesheets/fortitude/blocks/_box.scss +1 -27
  12. data/app/assets/stylesheets/fortitude/blocks/_button.scss +38 -219
  13. data/app/assets/stylesheets/fortitude/blocks/_container.scss +2 -50
  14. data/app/assets/stylesheets/fortitude/blocks/_flag.scss +113 -397
  15. data/app/assets/stylesheets/fortitude/blocks/_flashbar.scss +0 -18
  16. data/app/assets/stylesheets/fortitude/blocks/_fluid-container.scss +2 -11
  17. data/app/assets/stylesheets/fortitude/blocks/_inline-list.scss +3 -15
  18. data/app/assets/stylesheets/fortitude/blocks/_input.scss +14 -355
  19. data/app/assets/stylesheets/fortitude/blocks/_layout.scss +77 -263
  20. data/app/assets/stylesheets/fortitude/blocks/_list-navigation.scss +6 -29
  21. data/app/assets/stylesheets/fortitude/blocks/_media.scss +104 -265
  22. data/app/assets/stylesheets/fortitude/blocks/_modal.scss +2 -2
  23. data/app/assets/stylesheets/fortitude/blocks/_navigationbar.scss +26 -43
  24. data/app/assets/stylesheets/fortitude/blocks/_shade.scss +2 -21
  25. data/app/assets/stylesheets/fortitude/blocks/_table.scss +11 -21
  26. data/app/assets/stylesheets/fortitude/blocks/_tabs-navigation.scss +8 -51
  27. data/app/assets/stylesheets/fortitude/blocks/_tabs.scss +1 -13
  28. data/app/assets/stylesheets/fortitude/blocks/_text.scss +7 -7
  29. data/app/assets/stylesheets/fortitude/blocks/_tooltip.scss +1 -171
  30. data/app/assets/stylesheets/fortitude/blocks/_ui-list.scss +20 -88
  31. data/app/assets/stylesheets/fortitude/blocks/_wings.scss +27 -28
  32. data/app/assets/stylesheets/fortitude/generic/_box-sizing.scss +8 -11
  33. data/app/assets/stylesheets/fortitude/generic/_clearfix.scss +1 -1
  34. data/app/assets/stylesheets/fortitude/generic/_normalize.scss +2 -4
  35. data/app/assets/stylesheets/fortitude/generic/_reset.scss +5 -32
  36. data/app/assets/stylesheets/fortitude/settings/_defaults.scss +15 -33
  37. data/app/assets/stylesheets/fortitude/tools/_functions.scss +57 -60
  38. data/app/assets/stylesheets/fortitude/tools/_mixins.scss +38 -35
  39. data/app/assets/stylesheets/fortitude/trumps/_responsive-border.scss +25 -32
  40. data/app/assets/stylesheets/fortitude/trumps/_responsive-column.scss +18 -19
  41. data/app/assets/stylesheets/fortitude/trumps/_responsive-display.scss +2 -9
  42. data/app/assets/stylesheets/fortitude/trumps/_responsive-float.scss +10 -10
  43. data/app/assets/stylesheets/fortitude/trumps/_responsive-font.scss +11 -9
  44. data/app/assets/stylesheets/fortitude/trumps/_responsive-height.scss +8 -6
  45. data/app/assets/stylesheets/fortitude/trumps/_responsive-line-height.scss +11 -10
  46. data/app/assets/stylesheets/fortitude/trumps/_responsive-margin.scss +88 -127
  47. data/app/assets/stylesheets/fortitude/trumps/_responsive-padding.scss +45 -62
  48. data/app/assets/stylesheets/fortitude/trumps/_responsive-text.scss +12 -13
  49. data/app/assets/stylesheets/fortitude/trumps/_screen-lock.scss +1 -1
  50. data/app/assets/stylesheets/fortitude.scss +24 -0
  51. data/bower.json +1 -1
  52. data/lib/fortitude-sass/version.rb +1 -1
  53. metadata +2 -13
  54. data/app/assets/stylesheets/fortitude/theme/base/_page.scss +0 -19
  55. data/app/assets/stylesheets/fortitude/theme/extensions/_badge.scss +0 -7
  56. data/app/assets/stylesheets/fortitude/theme/extensions/_box.scss +0 -13
  57. data/app/assets/stylesheets/fortitude/theme/extensions/_button.scss +0 -7
  58. data/app/assets/stylesheets/fortitude/theme/extensions/_flashbar.scss +0 -6
  59. data/app/assets/stylesheets/fortitude/theme/extensions/_navigationbar.scss +0 -50
  60. data/app/assets/stylesheets/fortitude/theme/extensions/_text.scss +0 -5
  61. data/app/assets/stylesheets/fortitude/theme/extensions/_wings.scss +0 -9
  62. data/app/assets/stylesheets/fortitude/theme/settings/_colors.scss +0 -53
  63. data/app/assets/stylesheets/fortitude/theme/settings/_defaults.scss +0 -5
  64. data/app/assets/stylesheets/fortitude/theme.scss +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7de0d7f813da7fd57b45f55bab8416b173e3b985
4
- data.tar.gz: fc9bf75f9976c5950088c499ecdbc87b56214f6b
3
+ metadata.gz: f621a202068e3e2c8b77bdd9c66bb79b1d908788
4
+ data.tar.gz: d921cb609dd98eca8391c90991e871c0cc4a2959
5
5
  SHA512:
6
- metadata.gz: 6f906e71f5913dcef1d177e431887e7e434cfcf23fa794e567a44b09f3e8ccef9005ac91789225ae1c921e33b85222649b124a71840a949b829ea577b152531e
7
- data.tar.gz: 28bc10b99d5c104c7bf257d4bf15fa987b0ccac977c40b611471105015ba1aa16d7044fbfb07291d0026093dae44eed017f8603685842e706e3a24d17402d3b4
6
+ metadata.gz: 6a631fd01e34c5f51f6aa7bcbdeb1e91ccd305b86c601e3fac39d516aa7dd32f838a3155d3e2b672c42db3549ab58f0b413544e863cbe371a1dda46f1ec92550
7
+ data.tar.gz: be1b69b46f606cca3ec5c1b91d7e0dcc64ae3101c30b01d6cb139c5508bf380a8deb88cc9b097c44beffbc8ae14025a0ad49bf7f5a5d4b00408b63038e53372f
data/.gitignore CHANGED
@@ -1,10 +1,11 @@
1
1
  *swp
2
2
  *gem
3
- .sass-cache/
4
- /fortitude/
5
- demo/
6
- tmp/
3
+ .sass-cache
4
+ fortitude
5
+ demo
6
+ tmp
7
7
  tags
8
8
  .idea
9
9
  *results.css
10
- bower_components/
10
+ bower_components
11
+ node_modules
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fortitude-sass (0.4.9)
4
+ fortitude-sass (0.5.0)
5
5
  autoprefixer-rails
6
6
  sass (~> 3.3)
7
7
  thor
@@ -3,17 +3,17 @@
3
3
  \*------------------------------------*/
4
4
 
5
5
  hr {
6
- border-top: halve($fortitude-base-spacing-unit) - 0.1rem solid transparent;
7
- border-bottom: 0.1rem solid;
8
- border-right-color: transparent;
9
- border-left-color: transparent;
6
+ border-top: (halve($fortitude-base-spacing-unit) - 0.1rem) solid transparent;
7
+ border-bottom: 0.1rem solid;
8
+ border-right-color: transparent;
9
+ border-left-color: transparent;
10
10
  }
11
11
 
12
12
  .hr--top {
13
- border-top: 0.1rem solid;
14
- border-bottom: halve($fortitude-base-spacing-unit) - 0.1rem solid transparent;
13
+ border-top: 0.1rem solid;
14
+ border-bottom: (halve($fortitude-base-spacing-unit) - 0.1rem) solid transparent;
15
15
  }
16
16
 
17
17
  .hr--dashed {
18
- border-style: dashed;
18
+ border-style: dashed;
19
19
  }
@@ -6,27 +6,25 @@
6
6
  * 1. Fluid images for responsive purposes.
7
7
  * 2. Offset `alt` text from surrounding copy.
8
8
  * 3. fix 2px pseudo margin with vertical-align.
9
- */
9
+ **/
10
10
  img {
11
- max-width: 100%; /* [1] */
12
- font-style: italic; /* [2] */
13
- vertical-align: middle; /* [3] */
11
+ max-width: 100%;
12
+ /* [1] */
13
+ font-style: italic;
14
+ /* [2] */
15
+ vertical-align: middle;
16
+ /* [3] */
14
17
  }
15
18
 
16
-
17
-
18
-
19
-
20
19
  /**
21
20
  * If a `width` and/or `height` attribute have been explicitly defined, let’s
22
21
  * not make the image fluid.
23
- */
22
+ **/
24
23
  img[width],
25
24
  img[height] {
26
- max-width: none;
25
+ max-width: none;
27
26
  }
28
27
 
29
-
30
28
  img.responsive {
31
29
  width: 100%;
32
- }
30
+ }
@@ -4,13 +4,11 @@
4
4
 
5
5
  /**
6
6
  * Remove extra vertical spacing when nesting lists.
7
- */
7
+ **/
8
8
  li {
9
-
10
- > ul,
11
- > ol {
12
- margin-bottom: 0;
13
- margin-left: $fortitude-base-spacing-unit;
14
- }
15
-
9
+ > ul,
10
+ > ol {
11
+ margin-bottom: 0;
12
+ margin-left: $fortitude-base-spacing-unit;
13
+ }
16
14
  }
@@ -12,21 +12,25 @@
12
12
  * navigating between pages that do/do not have enough content to produce
13
13
  * scrollbars naturally.
14
14
  * 3. Ensure the page always fills at least the entire height of the viewport.
15
- */
15
+ **/
16
16
  html {
17
- font-size: $fortitude-base-rem-font-size; /* [1] */
18
- line-height: $fortitude-base-line-height / $fortitude-base-font-size; /* [1] */
19
- background-color: $fortitude-base-background-color;
20
- color: $fortitude-base-color;
21
- overflow-y: scroll; /* [2] */
22
- min-height: 100%; /* [3] */
23
- -webkit-tap-highlight-color: rgba(0,0,0,0);
17
+ font-size: $fortitude-base-rem-font-size;
18
+ /* [1] */
19
+ line-height: $fortitude-base-line-height / $fortitude-base-font-size;
20
+ /* [1] */
21
+ background-color: $fortitude-base-background-color;
22
+ color: $fortitude-base-color;
23
+ overflow-y: scroll;
24
+ /* [2] */
25
+ min-height: 100%;
26
+ /* [3] */
27
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
24
28
  }
25
29
 
26
30
  body {
27
- @include fortitude-font-size($fortitude-base-font-size, true);
31
+ @include fortitude-font-size($fortitude-base-font-size, true);
28
32
  }
29
33
 
30
34
  .clearfix {
31
- @include fortitude-clearfix;
35
+ @include fortitude-clearfix;
32
36
  }
@@ -1,139 +1,30 @@
1
- /*------------------------------------*\
2
- #BADGE
3
- \*------------------------------------*/
4
-
5
- /**
6
- * A simple badge object.
7
- */
8
-
9
- // Predefine the variables below in order to alter and enable specific features.
10
- $fortitude-badge-height: $fortitude-base-spacing-unit * 1.3 !default;
11
- $fortitude-badge-height--small: $fortitude-base-spacing-unit !default;
12
- $fortitude-badge-height--large: double($fortitude-base-spacing-unit) !default;
13
- $fortitude-badge-font-size: $fortitude-base-font-size !default;
14
-
15
- $fortitude-badge-border-width: 0 !default;
16
- $fortitude-badge-border-style: solid !default;
17
- $fortitude-badge-border-radius: 0 !default;
18
-
19
- $fortitude-enable-badge--small: false !default;
20
- $fortitude-enable-badge--large: false !default;
21
- $fortitude-enable-badge--pill: false !default;
22
-
23
-
24
-
25
-
26
-
27
- @mixin fortitude-badge($extension: null) {
28
- /**
29
- * 1. Allow us to style box model properties.
30
- * 2. Line different sized badges up a little nicer.
31
- * 3. Make badges inherit font styles (often necessary when styling `input`s as
32
- * badges).
33
- * 4. Reset/normalize some styles.
34
- * 5. Fixes odd inner spacing in IE7.
35
- * 6. Subtract the border size from the padding value so that badges do not
36
- * grow larger as we add borders.
37
- * 7. Set badge text to nowrap.
38
- */
39
- border: $fortitude-badge-border-width $fortitude-badge-border-style transparent;
40
- display: inline-block; /* [1] */
41
- vertical-align: middle; /* [2] */
42
- font: inherit; /* [3] */
43
- background-color: transparent; /* [4] */
44
- text-align: center; /* [4] */
45
- font-size: $fortitude-badge-font-size;
46
- height: $fortitude-badge-height;
47
- overflow: visible; /* [5] */
48
- white-space: nowrap; /* [7] */
49
- line-height: $fortitude-base-line-height;
50
-
51
- @if ($extension == small) {
52
- @include fortitude-badge--small;
53
- } @else if ($extension == large) {
54
- @include fortitude-badge--large;
55
- } @else {
56
- margin: fortitude-block-margin($fortitude-badge-height, $fortitude-badge-border-width) 0; /* [4] */
57
- padding: fortitude-block-padding($fortitude-badge-height, $fortitude-badge-border-width) quarter($fortitude-base-spacing-unit); /* [6] */
58
- }
59
-
60
- @if ($extension == pill) {
61
- @include fortitude-badge--pill;
62
- } @else if($fortitude-badge-border-radius != 0) {
63
- border-radius: $fortitude-badge-border-radius;
64
- }
65
- }
66
-
67
- @mixin fortitude-badge--small {
68
- margin: fortitude-block-margin($fortitude-badge-height--small, $fortitude-badge-border-width) 0; /* [4] */
69
- padding: fortitude-block-padding($fortitude-badge-height--small, $fortitude-badge-border-width) quarter($fortitude-base-spacing-unit); /* [6] */
70
- }
71
-
72
- @mixin fortitude-badge--large {
73
- margin: fortitude-block-margin($fortitude-badge-height--large, $fortitude-badge-border-width) 0; /* [4] */
74
- padding: fortitude-block-padding($fortitude-badge-height--large, $fortitude-badge-border-width) quarter($fortitude-base-spacing-unit); /* [6] */
75
- @if ($fortitude-block-height > $fortitude-block-line-height) {
76
- line-height: ceil($fortitude-block-height / $fortitude-block-line-height) * $fortitude-block-line-height;
77
- }
78
- }
79
-
80
- @mixin fortitude-badge--pill {
81
- /**
82
- * 1. Overly-large value to ensure the radius rounds the whole end of the
83
- * badge.
84
- */
85
-
86
- border-radius: 10rem; /* [1] */
87
- }
88
-
89
1
  .#{$fortitude-namespace}badge {
90
- @include fortitude-badge;
91
- }
92
-
93
-
94
-
95
-
96
-
97
- @if ($fortitude-enable-badge--small == true) {
98
-
99
- /**
100
- * Small badges.
101
- */
102
-
103
- .#{$fortitude-namespace}badge--small {
104
- @include fortitude-badge--small;
105
- }
106
-
107
- }
108
-
109
-
110
-
111
-
112
-
113
- @if ($fortitude-enable-badge--large == true) {
114
-
115
- /**
116
- * Large badges.
117
- */
118
-
119
- .#{$fortitude-namespace}badge--large {
120
- @include fortitude-badge--large;
121
- }
122
-
123
- }
124
-
125
-
126
-
127
-
128
-
129
- @if ($fortitude-enable-badge--pill == true) {
130
-
131
- /**
132
- * Round-ended badges.
133
- */
134
-
135
- .#{$fortitude-namespace}badge--pill {
136
- @include fortitude-badge--pill;
137
- }
138
-
2
+ @include fortitude-badge;
3
+ }
4
+
5
+ @if $fortitude-enable-badge--small == true {
6
+ /**
7
+ * Small badges.
8
+ **/
9
+ .#{$fortitude-namespace}badge--small {
10
+ @include fortitude-badge--small;
11
+ }
12
+ }
13
+
14
+ @if $fortitude-enable-badge--large == true {
15
+ /**
16
+ * Large badges.
17
+ **/
18
+ .#{$fortitude-namespace}badge--large {
19
+ @include fortitude-badge--large;
20
+ }
21
+ }
22
+
23
+ @if $fortitude-enable-badge--pill == true {
24
+ /**
25
+ * Round-ended badges.
26
+ **/
27
+ .#{$fortitude-namespace}badge--pill {
28
+ @include fortitude-badge--pill;
29
+ }
139
30
  }
@@ -1,15 +1,3 @@
1
- /*------------------------------------*\
2
- #BARE-LIST
3
- \*------------------------------------*/
4
-
5
- /**
6
- * The bare-list object simply removes any indents and bullet points from lists.
7
- */
8
-
9
- @mixin fortitude-bare-list {
10
- list-style: none;
11
- }
12
-
13
1
  .#{$fortitude-namespace}bare-list {
14
2
  @include fortitude-bare-list;
15
3
  }
@@ -1,83 +1,29 @@
1
- /*------------------------------------*\
2
- #BLOCK-LIST
3
- \*------------------------------------*/
4
-
5
- /**
6
- * The block list object creates blocky list items out of a `ul` or `ol`.
7
- */
8
-
9
- // Predefine the variables below in order to alter and enable specific features.
10
- $fortitude-block-list-padding: $fortitude-base-spacing-unit !default;
11
- $fortitude-block-list-padding--small: halve($fortitude-block-list-padding) !default;
12
- $fortitude-block-list-padding--large: double($fortitude-block-list-padding) !default;
13
-
14
- $fortitude-enable-block-list--small: false !default;
15
- $fortitude-enable-block-list--large: false !default;
16
-
17
- @mixin fortitude-block-list {
18
- margin: 0;
19
- padding: 0;
20
- list-style: none;
21
- }
22
-
23
- @mixin fortitude-block-list__item($extension: null) {
24
- @if ($extension == small) {
25
- @include fortitude-block-list--small__item;
26
- } @else if ($extension == large) {
27
- @include fortitude-block-list--large__item;
28
- } @else {
29
- padding: $fortitude-block-list-padding;
30
- }
31
- }
32
-
33
- @mixin fortitude-block-list--small__item {
34
- padding: $fortitude-block-list-padding--small;
35
- }
36
-
37
- @mixin fortitude-block-list--large__item {
38
- padding: $fortitude-block-list-padding--large;
39
- }
40
-
41
1
  .#{$fortitude-namespace}block-list {
42
- @include fortitude-block-list;
2
+ @include fortitude-block-list;
43
3
  }
44
4
 
45
- .#{$fortitude-namespace}block-list__item {
46
- @include fortitude-block-list__item;
47
- }
48
-
49
-
50
-
51
-
52
-
53
- @if ($fortitude-enable-block-list--small == true) {
54
-
55
- /**
56
- * Small block-lists.
57
- */
5
+ .#{$fortitude-namespace}block-list__item {
6
+ @include fortitude-block-list__item;
7
+ }
58
8
 
59
- .#{$fortitude-namespace}block-list--small {
60
- > .#{$fortitude-namespace}block-list__item {
61
- @include fortitude-block-list--small__item;
62
- }
9
+ @if $fortitude-enable-block-list--small == true {
10
+ /**
11
+ * Small block-lists.
12
+ **/
13
+ .#{$fortitude-namespace}block-list--small {
14
+ > .#{$fortitude-namespace}block-list__item {
15
+ @include fortitude-block-list--small__item;
63
16
  }
64
-
17
+ }
65
18
  }
66
19
 
67
-
68
-
69
-
70
-
71
- @if ($fortitude-enable-block-list--large == true) {
72
-
73
- /**
74
- * Large block-lists.
75
- */
76
-
77
- .#{$fortitude-namespace}block-list--large {
78
- > .#{$fortitude-namespace}block-list__item {
79
- @include fortitude-block-list--large__item;
80
- }
20
+ @if $fortitude-enable-block-list--large == true {
21
+ /**
22
+ * Large block-lists.
23
+ **/
24
+ .#{$fortitude-namespace}block-list--large {
25
+ > .#{$fortitude-namespace}block-list__item {
26
+ @include fortitude-block-list--large__item;
81
27
  }
82
-
28
+ }
83
29
  }