kickstart_rails 0.2.410970240580 → 0.3.411400890669

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails/docs.js +2 -2
  3. data/app/assets/javascripts/kickstart_rails/test.js.REMOVED.git-id +1 -0
  4. data/app/assets/stylesheets/kickstart_rails/components/_alerts.sass +12 -0
  5. data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +30 -11
  6. data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +2 -1
  7. data/app/assets/stylesheets/kickstart_rails/components/_growls.sass +0 -0
  8. data/app/assets/stylesheets/kickstart_rails/components/_images.sass +17 -3
  9. data/app/assets/stylesheets/kickstart_rails/components/_labels.sass +10 -0
  10. data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +1 -1
  11. data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +32 -22
  12. data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +2 -8
  13. data/app/assets/stylesheets/kickstart_rails/components/_progress.sass +2 -2
  14. data/app/assets/stylesheets/kickstart_rails/components/_root-element.sass +1 -1
  15. data/app/assets/stylesheets/kickstart_rails/components/_status.sass +1 -5
  16. data/app/assets/stylesheets/kickstart_rails/components/_tables.sass +5 -5
  17. data/app/assets/stylesheets/kickstart_rails/components/_tabs.sass +0 -0
  18. data/app/assets/stylesheets/kickstart_rails/components/_tiles.sass +4 -4
  19. data/app/assets/stylesheets/kickstart_rails/components/_tooltips.sass +122 -0
  20. data/app/assets/stylesheets/kickstart_rails/components/_typography.sass +12 -3
  21. data/app/assets/stylesheets/kickstart_rails/core/_base_components.sass +17 -0
  22. data/app/assets/stylesheets/kickstart_rails/core/_components.sass +1 -0
  23. data/app/assets/stylesheets/kickstart_rails/core/_dependent_components.sass +12 -0
  24. data/app/assets/stylesheets/kickstart_rails/core/_index.sass +2 -1
  25. data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +5 -78
  26. data/app/assets/stylesheets/kickstart_rails/core/_root-element.sass +16 -0
  27. data/app/assets/stylesheets/kickstart_rails/core/_typography.sass +162 -0
  28. data/app/assets/stylesheets/kickstart_rails/docs.sass +21 -13
  29. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +89 -9
  30. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +128 -105
  31. data/lib/kickstart_rails/version.mustache +1 -1
  32. data/lib/kickstart_rails/version.rb +1 -1
  33. metadata +12 -3
  34. data/app/assets/javascripts/kickstart_rails/test.js +0 -6280
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dab69e77d321ec52b4a3aebe01bb04228715912
4
- data.tar.gz: 0497e45522cef1c983eb9a73803cff0e51cc2e8b
3
+ metadata.gz: ee9bd6808d8b10f2eda8e2e072e0460cbdf461b7
4
+ data.tar.gz: aa6cca083bd3379dad041cdeb1c218ff8165e3ed
5
5
  SHA512:
6
- metadata.gz: 9661a927988e5a0171b9be299814291874f06e043aa26e2e1f70615f86bae28c2ac3f9faa3d815cd906f27ceed46f8bbf26ead040b6ecf28b5ea482722eb6055
7
- data.tar.gz: 7351ed18229744e3544f4332bb6f382f0ea02dc45fe74c887f198f047542def0a0f756147f5ff4ad8fb451570deb9afc9dcea7a95ad2946e33b3d6359a507cf3
6
+ metadata.gz: 1e2953ccb2c81f8dee84c93d4cd9fa12bdd14a2c483ed48b93cf1e6446325959827acf95714949879dddd12de81b4db940454068a24ebe736aa621f1dd6cc610
7
+ data.tar.gz: 640dd0e07da74409e1dc847ee1f91b9aee12657e6b8aa72a5622a06df8fac71062da71d0bd856f2e9eed57a003f4610dfd6973d8b4e603b7e2b9d5be7c9290a1
@@ -41,7 +41,7 @@
41
41
  _ref = $$(".if-" + option);
42
42
  for (_j = 0, _len1 = _ref.length; _j < _len1; _j++) {
43
43
  $container = _ref[_j];
44
- $visibleStyle = $container.nodeName === 'SPAN' ? 'inline-block' : 'block';
44
+ $visibleStyle = $container.nodeName === 'SPAN' ? 'inline' : 'block';
45
45
  $container.style.display = (settings.viewOptions["" + option] ? $visibleStyle : 'none');
46
46
  }
47
47
  _results.push((function() {
@@ -50,7 +50,7 @@
50
50
  _results1 = [];
51
51
  for (_k = 0, _len2 = _ref1.length; _k < _len2; _k++) {
52
52
  $container = _ref1[_k];
53
- $visibleStyle = $container.nodeName === 'SPAN' ? 'inline-block' : 'block';
53
+ $visibleStyle = $container.nodeName === 'SPAN' ? 'inline' : 'block';
54
54
  _results1.push($container.style.display = (settings.viewOptions["" + option] ? 'none' : $visibleStyle));
55
55
  }
56
56
  return _results1;
@@ -0,0 +1 @@
1
+ 8ee80f82d14d3c435a7ac5135b8ee091caec52f0
@@ -0,0 +1,12 @@
1
+ =alert-default
2
+ +root-element
3
+ padding: $space/2
4
+ background: $primary-color
5
+ color: white
6
+ margin:
7
+ bottom: $space
8
+
9
+ > *:last-child
10
+ margin-bottom: 0
11
+
12
+ +alternate-headings
@@ -1,29 +1,48 @@
1
- =button-default($color)
2
- +root-element
1
+ =button-default($color, $size: 1)
2
+ font-size: 0.9rem
3
+ +root-element($size: $size)
4
+ padding:
5
+ left: $size * $size * map-get($rootElement, paddingH)
6
+ right: $size * $size * map-get($rootElement, paddingH)
3
7
  display: inline-block
4
8
  background-color: $color
5
- color: $light-black
9
+ color: map-get($gray, darkest)
6
10
  cursor: pointer
7
11
  text-decoration: none
8
12
  border-color: hsla(0, 0%, 0%, 0.15)
9
- color: $light-black
10
- text-align: center
13
+ color: map-get($black, light)
14
+ text-align: left
11
15
 
12
16
  @if lightness($color) > 75%
13
- color: $lighter-black
17
+ color: map-get($black, lighter)
14
18
  @else
15
- color: $white
19
+ color: white
16
20
 
17
21
  @if $color == $yellow
18
- color: $lighter-black
22
+ color: map-get($black, lighter)
19
23
 
20
24
  @if $color == transparent
21
- color: $lighter-black
25
+ color: map-get($black, lighter)
22
26
 
23
27
  &:hover
24
- +box-shadow(0px -3px 0px 0px rgba(0, 0, 0, 0.1) inset)
28
+ box-shadow: 0px -3px 0px 0px rgba(0, 0, 0, 0.1) inset
25
29
  text-decoration: none
26
30
 
27
31
  &:active
28
- +box-shadow(0px 3px 0px 0px rgba(0, 0, 0, 0.1) inset)
32
+ box-shadow: 0px 3px 0px 0px rgba(0, 0, 0, 0.1) inset
29
33
  text-decoration: none
34
+
35
+ ul
36
+ +list-unstyled
37
+ margin-bottom: 0
38
+ padding-top: $size * $size * map-get($rootElement, paddingV)
39
+
40
+ li
41
+ +root-element($size)
42
+ padding:
43
+ left: 0
44
+ right: 0
45
+ margin-bottom: 0
46
+
47
+ a
48
+ color: inherit
@@ -1,6 +1,7 @@
1
1
  label
2
2
  display: block
3
3
  font-weight: 500
4
+ font-size: 0.85rem
4
5
 
5
6
  form
6
7
  margin-bottom: $space
@@ -11,7 +12,7 @@ textarea
11
12
  margin-bottom: ($space/2)
12
13
  border: 1px solid #CCC
13
14
  display: block
14
- +border-radius(3px)
15
+ border-radius: 3px
15
16
 
16
17
  label + &
17
18
  margin-top: ($space/5)
@@ -4,14 +4,28 @@
4
4
  margin-bottom: $space
5
5
  align-items: flex-start
6
6
 
7
- img
7
+ img, figure
8
8
  flex-grow: 0
9
9
  flex-shrink: 0
10
10
 
11
11
  > :not(img)
12
- + img
12
+ + img, + figure
13
13
  margin-left: $space/2
14
14
 
15
- > img
15
+ +alternate-headings
16
+
17
+ > img, > figure
16
18
  + :not(img)
17
19
  margin-left: $space/2
20
+
21
+ =thumbnail-default
22
+ +root-element
23
+ border: 1px solid map-get($white, darker)
24
+ display: inline-block
25
+
26
+ figcaption
27
+ font-size: 0.85rem
28
+
29
+ figure
30
+ margin: 0
31
+ padding: 0
@@ -0,0 +1,10 @@
1
+ =label-default($background-color: $blue)
2
+ +root-element
3
+ background: $background-color
4
+ font-size: 0.8rem
5
+ color: white
6
+ line-height: normal
7
+ font-weight: bold
8
+
9
+ &:after
10
+ border-top-color: $background-color
@@ -9,7 +9,7 @@
9
9
  margin: 0px auto
10
10
  display: none
11
11
  background: white
12
- border-color: $dark-white
12
+ border-color: map-get($white, dark)
13
13
  animation-duration: 0.25s
14
14
  animation-delay: 0.2s
15
15
  animation-timing-function: ease
@@ -4,23 +4,24 @@
4
4
  @else
5
5
  color: rgba(0, 0, 0, 0.5)
6
6
 
7
- =navbar-default($bleed-container: false, $background: $dark-white)
7
+ =navbar-default($bleed-container: false, $background: map-get($white, dark))
8
8
  background: $background
9
9
  border-top: 1px solid darken($background, 12%)
10
+ font-size: 0.9rem
10
11
 
11
12
  nav
12
- display: inline-flex
13
+ display: flex
13
14
  align-items: flex-start
14
- +flex-wrap
15
+ flex-wrap: wrap
15
16
  justify-content: space-between
16
17
  align-content: space-between
17
18
  width: 100%
18
19
  border-radius: 0
19
20
 
20
21
  @if (lightness($background) < 75%)
21
- color: $white
22
+ color: white
22
23
  @else
23
- color: $lighter-black
24
+ color: map-get($black, lighter)
24
25
 
25
26
  h1
26
27
  margin-bottom: 0
@@ -40,19 +41,22 @@
40
41
  ul
41
42
  margin: 0
42
43
  padding: 0
43
- +flex(inline-flex)
44
- +justify-content(space-between)
45
- +align-content(space-between)
46
- +align-items(center)
47
- +flex-wrap
44
+ display: flex
45
+ justify-content: space-between
46
+ align-content: space-between
47
+ align-items: center
48
+ flex-wrap: wrap
48
49
 
49
50
  li
50
51
  list-style: none
51
52
  +root-element
52
- +border-radius(0)
53
+ margin-bottom: 0
54
+ border-radius: 0
53
55
  padding:
54
56
  top: (map-get($rootElement, paddingV) - 1)
55
57
  bottom: (map-get($rootElement, paddingV) - 1)
58
+ left: map-get($rootElement, paddingH)
59
+ right: map-get($rootElement, paddingH)
56
60
  position: relative
57
61
 
58
62
  &.with-submenu // Added via k$.nav()
@@ -83,25 +87,31 @@
83
87
  &.open
84
88
  color: rgba(0, 0, 0, 0.85)
85
89
  background: white
86
- border-color: $darker-white
90
+ border-color: map-get($white, darker)
87
91
  border-bottom-color: transparent
88
92
 
89
93
  &:hover
90
94
  color: rgba(0, 0, 0, 0.85)
91
- border-color: $darker-white
95
+ border-color: map-get($white, darker)
92
96
  border-bottom-color: transparent
93
97
 
98
+ a[role=button]
99
+ margin-bottom: 0
100
+
94
101
  a:not([role=button])
95
102
  +color($background)
96
103
  text-decoration: none
97
104
  cursor: pointer
98
105
  display: block
99
106
  +root-element
100
- +border-radius(0)
107
+ margin-bottom: 0
108
+ border-radius: 0
101
109
  margin: (-1 * map-get($rootElement, paddingV)) (-1 * map-get($rootElement, paddingH))
102
110
  padding:
103
111
  top: (2 * map-get($rootElement, paddingV))
104
112
  bottom: (2 * map-get($rootElement, paddingV))
113
+ left: map-get($rootElement, paddingH)
114
+ right: map-get($rootElement, paddingH)
105
115
 
106
116
  &:hover
107
117
  @if (lightness($background) < 75%)
@@ -125,9 +135,9 @@
125
135
  left: -1px // Compensate for border
126
136
  min-width: 175px
127
137
  border:
128
- left: 1px solid $darker-white
129
- right: 1px solid $darker-white
130
- bottom: 1px solid $darker-white
138
+ left: 1px solid map-get($white, darker)
139
+ right: 1px solid map-get($white, darker)
140
+ bottom: 1px solid map-get($white, darker)
131
141
 
132
142
  li
133
143
  border: 0px
@@ -136,13 +146,13 @@
136
146
  padding:
137
147
  top: $space/4
138
148
  bottom: $space/4
139
- color: $light-black
149
+ color: map-get($black, light)
140
150
 
141
151
  &:hover
142
152
  color: rgba(0, 0, 0, 0.85)
143
- background: $dark-white
144
- border-color: $dark-white
153
+ background: map-get($white, dark)
154
+ border-color: map-get($white, dark)
145
155
 
146
156
  &:active
147
- background: $darker-white
148
- border-color: $darker-white
157
+ background: map-get($white, darker)
158
+ border-color: map-get($white, darker)
@@ -8,14 +8,9 @@
8
8
  pointer-events: none
9
9
 
10
10
  .status-bar_status
11
- +root-element
12
- background: $yellow
13
- color: $black
14
- border-radius: 3px
15
- border-color: transparent
11
+ +label($yellow)
12
+ color: black
16
13
  text-align: center
17
- font-size: 0.75rem
18
- font-weight: bold
19
14
  margin: 5px auto
20
15
  max-width: 300px
21
16
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15)
@@ -25,7 +20,6 @@
25
20
  animation-fill-mode: both
26
21
  z-index: 1000
27
22
  animation-name: fadeInDown
28
- line-height: normal
29
23
 
30
24
  &[data-type="success"]
31
25
  background-color: $green
@@ -2,11 +2,11 @@ progress
2
2
  width: 100%
3
3
 
4
4
  &::-webkit-progress-bar
5
- +border-radius(($space/5))
5
+ border-radius: ($space/5)
6
6
  min-height: $space
7
7
  -webkit-appearance: none
8
8
  appearance: none
9
9
  -moz-appearance: none
10
10
 
11
11
  &::-webkit-progress-value
12
- +border-radius(($space/5) 0 0 ($space/5))
12
+ border-radius: ($space/5) 0 0 ($space/5)
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  =root-element
9
- padding: map-get($rootElement, paddingV) map-get($rootElement, paddingH)
9
+ padding: map-get($rootElement, paddingV) map-get($rootElement, paddingV)
10
10
  +border-radius(3px)
11
11
  border: 1px solid transparent
12
12
  outline: none
@@ -8,9 +8,5 @@
8
8
  z-index: 999999
9
9
 
10
10
  .status
11
- background: $yellow
12
- color: $black
13
- padding: 5px
14
- border-radius: 3px
11
+ +label($yellow)
15
12
  text-align: center
16
- font-size: 0.75rem
@@ -3,7 +3,7 @@
3
3
  background: white
4
4
  border-spacing: 0
5
5
  empty-cells: show
6
- border: 1px solid $light-gray
6
+ border: 1px solid map-get($gray, light)
7
7
  width: 100%
8
8
  margin-bottom: $space
9
9
 
@@ -11,8 +11,8 @@
11
11
  margin: 0
12
12
 
13
13
  thead
14
- background: $dark-white
15
- color: $black
14
+ background: map-get($white, dark)
15
+ color: black
16
16
  text-align: left
17
17
  vertical-align: bottom
18
18
  th
@@ -20,7 +20,7 @@
20
20
 
21
21
  th, td
22
22
  background-color: transparent
23
- border-left: 1px solid $light-gray
23
+ border-left: 1px solid map-get($gray, light)
24
24
  border-width: 0 0 0 1px
25
25
  font-size: inherit
26
26
  margin: 0
@@ -32,4 +32,4 @@
32
32
  border-left-width: 0
33
33
 
34
34
  tbody tr:nth-child(2n)
35
- background-color: lighten($light-gray, 50%)
35
+ background-color: lighten(map-get($gray, light), 50%)
@@ -1,5 +1,5 @@
1
- =tile-default ($color: $dark-gray)
2
- box-shadow: 0px 0px 3px $gray
1
+ =tile-default ($color: map-get($gray, dark))
2
+ box-shadow: 0px 0px 3px gray
3
3
  background-color: white
4
4
  +root-element
5
5
  display: block
@@ -19,13 +19,13 @@
19
19
  > h1, > h2, > h3, > h4, > h5
20
20
  color: $color
21
21
  @if $color == transparent
22
- color: $black
22
+ color: black
23
23
 
24
24
  h1
25
25
  font-size: 1.15rem
26
26
 
27
27
  .ks-close
28
28
  text-decoration: none
29
- color: $gray
29
+ color: gray
30
30
  font-weight: bold
31
31
  float: right
@@ -0,0 +1,122 @@
1
+ =tooltip_base
2
+ margin-bottom: 0
3
+ position: absolute
4
+ display: block
5
+ opacity: 0
6
+ bottom: 100%
7
+ box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.25)
8
+ pointer-events: none
9
+ max-width: 350px
10
+ min-width: 100px
11
+ text-align: center
12
+ transition: all 0.25s
13
+
14
+ =tooltip_arrow
15
+ border-top-style: solid
16
+ border-top-width: 10px
17
+ border-left: 10px solid transparent
18
+ border-right: 10px solid transparent
19
+ width: 0px
20
+ height: 0px
21
+ content: ' '
22
+ display: block
23
+ background: transparent
24
+ position: absolute
25
+ left: 50%
26
+ margin-left: -8px
27
+ opacity: 0
28
+
29
+ [data-ks-tooltip]
30
+ position: relative
31
+
32
+ &:after
33
+ content: attr(data-ks-tooltip)
34
+ +label($primary-color)
35
+ +tooltip_base
36
+ transform: translateY(0px)
37
+ z-index: 10
38
+
39
+ &:before
40
+ +tooltip_arrow
41
+ border-top-color: $primary-color
42
+ bottom: 100%
43
+ z-index: 100
44
+
45
+ &:hover
46
+ &:after, &:before
47
+ opacity: 1
48
+
49
+ &:after
50
+ transform: translateY(-8px)
51
+ transition: transform 0.25s
52
+
53
+ =tooltip_trigger-default($background-color: $blue)
54
+ position: relative
55
+ display: inline-block
56
+ cursor: pointer
57
+
58
+ .tooltip
59
+ +label($background-color)
60
+ +tooltip_base
61
+ left: -30px
62
+ right: -30px
63
+ margin: 10px auto
64
+ transform: translateY(8px)
65
+ z-index: 10
66
+
67
+ &:after
68
+ +tooltip_arrow
69
+ top: 100%
70
+
71
+ &.tooltip-bottom
72
+ top: 100%
73
+ bottom: auto
74
+
75
+ &:after
76
+ bottom: 100%
77
+ top: auto
78
+ transform: rotate(180deg)
79
+
80
+ &.tooltip-left
81
+ right: 100%
82
+ left: auto
83
+
84
+ &:after
85
+ transform: rotate(-90deg)
86
+ left: 100%
87
+
88
+ &.tooltip-right
89
+ left: 100%
90
+ right: auto
91
+
92
+ &:after
93
+ transform: rotate(90deg)
94
+ left: auto
95
+ right: 100%
96
+ margin:
97
+ left: 0
98
+ right: -8px
99
+
100
+ &.tooltip-right, &.tooltip-left
101
+ top: 0
102
+ bottom: auto
103
+ margin: 0
104
+
105
+ &:after
106
+ top: 8px
107
+
108
+ &:hover
109
+ [data-ks-tooltip]
110
+ &:after, &:before
111
+ opacity: 1
112
+
113
+ &:after
114
+ transform: translateY(-8px)
115
+ transition: transform 0.25s
116
+
117
+ .tooltip
118
+ opacity: 1
119
+ transform: translateY(0px)
120
+
121
+ &:after
122
+ opacity: 1