shibori 1.0.0.beta1 → 1.3.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/README.md +9 -0
  4. data/gulpfile.js +14 -14
  5. data/lib/shibori/version.rb +1 -1
  6. data/lib/shibori.rb +1 -1
  7. data/source/_patterns/00-atoms/02-buttons/00-btn-default.mustache +13 -0
  8. data/source/_patterns/00-atoms/02-buttons/01-btn-primary.mustache +26 -0
  9. data/source/_patterns/00-atoms/02-buttons/02-btn-colors.mustache +24 -0
  10. data/source/_patterns/00-atoms/02-buttons/03-btn-sizes.mustache +7 -0
  11. data/source/_patterns/00-atoms/02-buttons/04-btn-deploy.mustache +1 -1
  12. data/source/_patterns/00-atoms/02-buttons/05-btn-types.mustache +13 -0
  13. data/source/_patterns/00-atoms/02-buttons/06-btn-switch.mustache +6 -0
  14. data/source/_patterns/01-molecules/00-text/01-intro-text.mustache +0 -4
  15. data/source/_patterns/01-molecules/00-text/02-intro-text-light.mustache +1 -0
  16. data/source/_patterns/01-molecules/02-navigation/01-subnav.mustache +8 -7
  17. data/source/_patterns/01-molecules/02-navigation/02-breadcrumbs.mustache +2 -2
  18. data/source/_patterns/01-molecules/02-navigation/03-side-nav.mustache +2 -2
  19. data/source/_patterns/01-molecules/02-navigation/04-side-nav-small.mustache +1 -1
  20. data/source/css/shibori/scss/components/_buttons.scss +302 -0
  21. data/source/css/shibori/scss/components/_spinner.scss +64 -0
  22. data/source/css/{scss → shibori/scss}/globals/_colors.scss +10 -2
  23. data/source/css/shibori/scss/globals/_mixins.scss +183 -0
  24. data/source/css/{scss → shibori/scss}/page-elements/_navigation.scss +28 -17
  25. data/source/css/shibori.scss +46 -45
  26. metadata +55 -52
  27. data/source/_patterns/00-atoms/02-buttons/00-btn-lg.mustache +0 -7
  28. data/source/_patterns/00-atoms/02-buttons/01-btn-sm.mustache +0 -7
  29. data/source/_patterns/00-atoms/02-buttons/02-btn-xs.mustache +0 -7
  30. data/source/_patterns/00-atoms/02-buttons/03-btn-block.mustache +0 -7
  31. data/source/css/scss/components/_buttons.scss +0 -175
  32. data/source/css/scss/components/_spinner.scss +0 -64
  33. data/source/css/scss/globals/_mixins.scss +0 -45
  34. /data/source/css/{hk-icon-rails.scss → _hk-icon-rails.scss} +0 -0
  35. /data/source/css/{scss → shibori/scss}/base/_base.scss +0 -0
  36. /data/source/css/{scss → shibori/scss}/base/_fonts.scss +0 -0
  37. /data/source/css/{scss → shibori/scss}/base/_normalize.scss +0 -0
  38. /data/source/css/{scss → shibori/scss}/base/_type.scss +0 -0
  39. /data/source/css/{scss → shibori/scss}/base/_utilities.scss +0 -0
  40. /data/source/css/{scss → shibori/scss}/components/_alert.scss +0 -0
  41. /data/source/css/{scss → shibori/scss}/components/_animate.scss +0 -0
  42. /data/source/css/{scss → shibori/scss}/components/_animation.scss +0 -0
  43. /data/source/css/{scss → shibori/scss}/components/_code.scss +0 -0
  44. /data/source/css/{scss → shibori/scss}/components/_forms.scss +0 -0
  45. /data/source/css/{scss → shibori/scss}/components/_hero.scss +0 -0
  46. /data/source/css/{scss → shibori/scss}/components/_hr.scss +0 -0
  47. /data/source/css/{scss → shibori/scss}/components/_icons.scss +0 -0
  48. /data/source/css/{scss → shibori/scss}/components/_lists.scss +0 -0
  49. /data/source/css/{scss → shibori/scss}/components/_logos.scss +0 -0
  50. /data/source/css/{scss → shibori/scss}/components/_masonary.scss +0 -0
  51. /data/source/css/{scss → shibori/scss}/components/_modal.scss +0 -0
  52. /data/source/css/{scss → shibori/scss}/components/_owlCarousel.scss +0 -0
  53. /data/source/css/{scss → shibori/scss}/components/_panel.scss +0 -0
  54. /data/source/css/{scss → shibori/scss}/components/_pill-box.scss +0 -0
  55. /data/source/css/{scss → shibori/scss}/components/_quote.scss +0 -0
  56. /data/source/css/{scss → shibori/scss}/components/_readmore.scss +0 -0
  57. /data/source/css/{scss → shibori/scss}/components/_slider.scss +0 -0
  58. /data/source/css/{scss → shibori/scss}/components/_sprites.scss +0 -0
  59. /data/source/css/{scss → shibori/scss}/components/_sr-only.scss +0 -0
  60. /data/source/css/{scss → shibori/scss}/components/_tables.scss +0 -0
  61. /data/source/css/{scss → shibori/scss}/components/_tooltips.scss +0 -0
  62. /data/source/css/{scss → shibori/scss}/components/_users.scss +0 -0
  63. /data/source/css/{scss → shibori/scss}/components/_vertical-tabs.scss +0 -0
  64. /data/source/css/{scss → shibori/scss}/components/_video.scss +0 -0
  65. /data/source/css/{scss → shibori/scss}/ecosystem/_addons-card.scss +0 -0
  66. /data/source/css/{scss → shibori/scss}/ecosystem/_cards.scss +0 -0
  67. /data/source/css/{scss → shibori/scss}/ecosystem/_elements-brand.scss +0 -0
  68. /data/source/css/{scss → shibori/scss}/ecosystem/_elements.scss +0 -0
  69. /data/source/css/{scss → shibori/scss}/globals/_variables.scss +0 -0
  70. /data/source/css/{scss → shibori/scss}/layout/_grid-settings.scss +0 -0
  71. /data/source/css/{scss → shibori/scss}/layout/_layout.scss +0 -0
  72. /data/source/css/{scss → shibori/scss}/page-elements/_headers.scss +0 -0
  73. /data/source/css/{scss → shibori/scss}/page-elements/_sections.scss +0 -0
  74. /data/source/css/{scss → shibori/scss}/page-elements/_sidebar.scss +0 -0
@@ -1,175 +0,0 @@
1
- // ==========================================================================
2
- // Buttons
3
- // ==========================================================================
4
-
5
- .btn,
6
- a.btn {
7
- $bg: $brand-primary;
8
- $bg-alt: $blue;
9
- display: inline-block;
10
- width: auto;
11
- padding: 16px 35px;
12
- margin: $pad-sm 0;
13
- line-height: 1.27;
14
- background: $bg;
15
- border: 1px solid transparent;
16
- border-radius: $border-radius-lg;
17
- color: $white;
18
- font-size: $font-sm;
19
- font-weight: $font-bold;
20
- text-align: center;
21
- text-decoration: none;
22
- text-transform: uppercase;
23
- letter-spacing: 1px;
24
- -webkit-appearance: none;
25
- @include transition(background $transition);
26
-
27
- &:hover,
28
- &:focus {
29
- background: saturate(darken($bg, 10%), 15%);
30
- color: $white;
31
- }
32
-
33
- &:focus {
34
- outline: none;
35
- }
36
-
37
- &:active {
38
- background: saturate(darken($bg, 15%), 15%);
39
- color: fade-out($white, .2);
40
- outline: none;
41
- }
42
-
43
-
44
- //- Colors
45
- &-alt {
46
- $bg: $bg-alt;
47
- background: $bg;
48
-
49
- &:hover,
50
- &:focus {
51
- background: saturate(darken($bg, 10%), 15%);
52
- color: $white;
53
- }
54
-
55
- &:active {
56
- background: saturate(darken($bg, 15%), 15%);
57
- color: fade-out($white, .2);
58
- }
59
- }
60
-
61
- &-default {
62
- background: $white;
63
- color: $brand-primary;
64
- border: 1px solid $brand-primary;
65
- &:hover {
66
- background-color: $gray-lighter;
67
- }
68
- &:active {
69
- background-color: $white;
70
- }
71
- }
72
-
73
- &-white {
74
- background: $white;
75
- color: $brand-primary;
76
- border: 1px solid $brand-primary;
77
-
78
- &:hover,
79
- &:focus {
80
- background: $off-white;
81
- color: $brand-primary;
82
- }
83
-
84
- &:active {
85
- background: darken($off-white, 2%);
86
- }
87
- }
88
-
89
- //- Layouts
90
- &-inline {
91
- display: inline-block;
92
- }
93
-
94
- &-disabled {
95
- background: $gray-lighter;
96
- color: $gray;
97
- cursor: not-allowed;
98
-
99
- &:hover,
100
- &:focus {
101
- background: $gray-lighter;
102
- color: $gray;
103
- }
104
- }
105
-
106
- &-block {
107
- width: 100%;
108
- white-space: nowrap;
109
- overflow: hidden;
110
- text-overflow: ellipsis;
111
- }
112
-
113
- &-no-margin {
114
- margin: 0;
115
- }
116
-
117
- //- Sizes
118
- &-xs {
119
- padding: 6px 8px 5px;
120
- font-size: $font-xs;
121
- font-weight: $font-normal;
122
- text-transform: none;
123
- letter-spacing: 0em;
124
- max-width: none;
125
- border-radius: $border-radius/2;
126
- -webkit-font-smoothing: subpixel-antialiased;
127
- }
128
-
129
- &-sm {
130
- padding: 8px 16px;
131
- font-size: $font-sm;
132
- text-transform: none;
133
- letter-spacing: .01em;
134
- max-width: none;
135
- border-radius: $border-radius;
136
- -webkit-font-smoothing: subpixel-antialiased;
137
- }
138
-
139
- &-lg {
140
- padding: $pad-lg $pad-xl;
141
- font-size: $font-lg;
142
- }
143
-
144
- //- Types
145
- &-text {
146
- background: transparent;
147
- color: $blue;
148
-
149
- &:hover,
150
- &:focus {
151
- color: darken($blue, 5%);
152
- background: transparent;
153
- }
154
-
155
- &:active {
156
- color: $brand-primary;
157
- }
158
- }
159
-
160
- // Special Buttons
161
- &.deploy {
162
- line-height: $font-sm;
163
-
164
- .hk-icon {
165
- line-height: $font-sm;
166
- margin-right: 6px;
167
- color: lighten($brand-primary, 30%);
168
- font-size: $brand-icon-xs;
169
- }
170
-
171
- .to-heroku {
172
- color: lighten($brand-primary, 30%);
173
- }
174
- }
175
- }
@@ -1,64 +0,0 @@
1
- // ==========================================================================
2
- // Spinner
3
- // ==========================================================================
4
-
5
- // Pulled from purple.heroku for most of it
6
-
7
- $spinner-dot-size: 7px;
8
- $spinner-color: $purple;
9
-
10
- .spinner {
11
- position: relative;
12
- display: inline-block;
13
- vertical-align: middle;
14
- width: ($spinner-dot-size * 3) + 10;
15
- height: $spinner-dot-size;
16
- text-align: center;
17
-
18
- > span {
19
- vertical-align: top;
20
- display: inline-block;
21
- width: $spinner-dot-size;
22
- height: $spinner-dot-size;
23
- border-radius: $border-radius-circle;
24
- background: $spinner-color;
25
-
26
- .purple & {
27
- background: $white;
28
- }
29
-
30
- @include animation(pulse 1s infinite ease-in-out);
31
- @include animation-fill-mode(both);
32
-
33
- &:first-child {
34
- float: left;
35
- @include animation-delay(-0.32s);
36
- }
37
-
38
- &:nth-child(1) {
39
- @include animation-delay(-0.16s);
40
- }
41
-
42
- &:nth-child(2) {
43
- float: right;
44
- }
45
- }
46
-
47
- &.spinner-centered {
48
- position: absolute;
49
- top: 50%;
50
- left: 50%;
51
- @include transform(translateX(-50%) translateY(-50%));
52
- }
53
-
54
- .btn-saving & {
55
- width: 15px;
56
- opacity: .6;
57
- margin-right: 8px;
58
-
59
- .spinner > span {
60
- width: 3px;
61
- height: 3px;
62
- }
63
- }
64
- }
@@ -1,45 +0,0 @@
1
- // ==========================================================================
2
- // Mixins (not provided by Bourbon)
3
- // ==========================================================================
4
-
5
- @mixin horizontal-line($position, $from: $white, $to: #ddd, $width: 2px, $inflection: 35%) {
6
- @include background-image(linear-gradient(left, $from, $to 0% + $inflection, $to 100% - $inflection, $from));
7
-
8
- background-position: $position center;
9
- background-repeat: no-repeat;
10
- background-size: 100% $width;
11
- }
12
-
13
- @mixin vertical-line($position, $from: $white, $to: #ddd, $width: 2px, $inflection: 35%) {
14
- @include background-image(linear-gradient(top, $from, $to 0% + $inflection, $to 100% - $inflection, $from));
15
-
16
- background-position: $position center;
17
- background-repeat: no-repeat;
18
- background-size: $width 100%;
19
- }
20
-
21
- .pad-{
22
- &top {
23
- padding-top: $pad;
24
- }
25
- &bottom {
26
- padding-bottom: $pad;
27
- }
28
- &top-bottom {
29
- padding-top: $pad;
30
- padding-bottom: $pad;
31
- }
32
- }
33
-
34
- .space-{
35
- &top {
36
- padding-top: $space;
37
- }
38
- &bottom {
39
- padding-bottom: $space;
40
- }
41
- &top-bottom {
42
- padding-top: $space;
43
- padding-bottom: $space;
44
- }
45
- }
File without changes
File without changes
File without changes