bulma-rails 0.0.17.1 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/stylesheets/bulma/base/content.sass +29 -20
  4. data/app/assets/stylesheets/bulma/base/generic.sass +23 -14
  5. data/app/assets/stylesheets/bulma/base/helpers.sass +6 -9
  6. data/app/assets/stylesheets/bulma/components/card.sass +4 -2
  7. data/app/assets/stylesheets/bulma/components/components.sass +9 -0
  8. data/app/assets/stylesheets/bulma/components/grid.sass +70 -10
  9. data/app/assets/stylesheets/bulma/components/media.sass +3 -0
  10. data/app/assets/stylesheets/bulma/components/menu.sass +6 -4
  11. data/app/assets/stylesheets/bulma/components/modal.sass +2 -0
  12. data/app/assets/stylesheets/bulma/components/navbar.sass +22 -17
  13. data/app/assets/stylesheets/bulma/components/pagination.sass +2 -0
  14. data/app/assets/stylesheets/bulma/components/panel.sass +5 -26
  15. data/app/assets/stylesheets/bulma/components/table.sass +42 -32
  16. data/app/assets/stylesheets/bulma/components/tabs.sass +30 -26
  17. data/app/assets/stylesheets/bulma/config/generated-variables.sass +1 -0
  18. data/app/assets/stylesheets/bulma/elements/buttons.sass +25 -17
  19. data/app/assets/stylesheets/bulma/elements/controls.sass +58 -84
  20. data/app/assets/stylesheets/bulma/elements/elements.sass +27 -31
  21. data/app/assets/stylesheets/bulma/elements/images.sass +2 -0
  22. data/app/assets/stylesheets/bulma/elements/messages.sass +4 -5
  23. data/app/assets/stylesheets/bulma/elements/notifications.sass +8 -8
  24. data/app/assets/stylesheets/bulma/elements/progress.sass +9 -7
  25. data/app/assets/stylesheets/bulma/elements/titles.sass +24 -20
  26. data/app/assets/stylesheets/bulma/layout/header.sass +21 -8
  27. data/app/assets/stylesheets/bulma/layout/hero.sass +24 -17
  28. data/app/assets/stylesheets/bulma/layout/section.sass +2 -0
  29. data/bulma-rails.gemspec +1 -1
  30. metadata +2 -2
@@ -8,6 +8,7 @@
8
8
  overflow: auto
9
9
  position: relative
10
10
  width: 100%
11
+ // Responsiveness
11
12
  +tablet
12
13
  margin: 0 auto
13
14
  max-height: calc(100vh - 40px)
@@ -30,5 +31,6 @@
30
31
  overflow: hidden
31
32
  position: fixed
32
33
  z-index: 1986
34
+ // Modifiers
33
35
  &.is-active
34
36
  display: flex
@@ -2,34 +2,22 @@
2
2
  .title,
3
3
  .subtitle
4
4
  margin-bottom: 0
5
+ // Responsiveness
5
6
  +mobile
6
7
  &:not(:last-child)
7
8
  margin-bottom: 10px
8
9
 
9
- .navbar
10
- @extend .block
11
- code
12
- border-radius: $radius
13
- img
14
- display: inline-block
15
- vertical-align: top
16
- +tablet
17
- align-items: center
18
- display: flex
19
- justify-content: space-between
20
- & > .navbar-item
21
- &:not(.is-narrow)
22
- flex: 1
23
-
24
10
  .navbar-left,
25
11
  .navbar-right
26
12
  .navbar-item
27
- &.is-flexible
28
- flex: 1
29
13
  &:not(:last-child)
30
14
  margin-right: 10px
15
+ // Modifiers
16
+ &.is-flexible
17
+ flex: 1
31
18
 
32
19
  .navbar-left
20
+ // Responsiveness
33
21
  +mobile
34
22
  & + .navbar-right
35
23
  margin-top: 20px
@@ -38,7 +26,24 @@
38
26
  display: flex
39
27
 
40
28
  .navbar-right
29
+ // Responsiveness
41
30
  +tablet
42
31
  align-items: center
43
32
  display: flex
44
33
  justify-content: flex-end
34
+
35
+ .navbar
36
+ @extend .block
37
+ code
38
+ border-radius: $radius
39
+ img
40
+ display: inline-block
41
+ vertical-align: top
42
+ // Responsiveness
43
+ +tablet
44
+ align-items: center
45
+ display: flex
46
+ justify-content: space-between
47
+ & > .navbar-item
48
+ &:not(.is-narrow)
49
+ flex: 1
@@ -8,6 +8,7 @@
8
8
  display: block
9
9
  min-width: 32px
10
10
  padding: 3px 8px
11
+ // Modifiers
11
12
  &.is-active
12
13
  background: $link
13
14
  border-color: $link
@@ -23,6 +24,7 @@
23
24
  display: flex
24
25
  flex: 1
25
26
  justify-content: center
27
+ // Responsiveness
26
28
  +mobile
27
29
  flex-wrap: wrap
28
30
  & > a
@@ -27,47 +27,26 @@
27
27
  font-size: $size-small
28
28
  padding: 5px 10px 0
29
29
  justify-content: center
30
- &:not(:last-child)
31
- border-bottom: 1px solid $border
32
30
  a
33
31
  border-bottom: 1px solid $border
34
32
  margin-bottom: -1px
35
33
  padding: 5px
34
+ // Modifiers
36
35
  &.is-active
37
36
  border-bottom-color: $link-active-border
38
37
  color: $link-active
38
+ &:not(:last-child)
39
+ border-bottom: 1px solid $border
39
40
 
40
41
  .panel-block
41
42
  color: $text-strong
42
43
  display: block
43
44
  line-height: 16px
44
45
  padding: 10px
46
+ &:hover
47
+ background: $background
45
48
  &:not(:last-child)
46
49
  border-bottom: 1px solid $border
47
- .checkbox
48
- border: 1px solid transparent
49
- border-radius: $radius
50
- display: block
51
- padding: 8px
52
- padding-left: 32px
53
- input
54
- left: 9px
55
- top: 9px
56
- &:hover
57
- border-color: $link
58
-
59
- a.panel-block:hover
60
- background: $background
61
-
62
- .panel-checkbox
63
- @extend .checkbox
64
- display: block
65
- padding: 9px 10px 9px 30px
66
- &:not(:last-child)
67
- border-bottom: 1px solid $border
68
- input
69
- left: 8px
70
- top: 10px
71
50
 
72
51
  .panel
73
52
  border: 1px solid $border
@@ -3,15 +3,24 @@
3
3
  color: $text-strong
4
4
  margin-bottom: 20px
5
5
  width: 100%
6
- th,
7
- td
6
+ td,
7
+ th
8
8
  border: 1px solid $border
9
9
  border-width: 0 0 1px
10
10
  padding: 8px 10px
11
11
  vertical-align: top
12
- &.table-narrow
12
+ // Modifiers
13
+ &.table-icon
14
+ padding: 5px
15
+ text-align: center
13
16
  white-space: nowrap
14
17
  width: 1%
18
+ .fa
19
+ +fa(21px, 24px)
20
+ &.table-link
21
+ padding: 0
22
+ & > a
23
+ padding: 5px
15
24
  &.table-link
16
25
  padding: 0
17
26
  & > a
@@ -20,60 +29,61 @@
20
29
  &:hover
21
30
  background: $link
22
31
  color: $link-invert
23
- &.table-icon
24
- padding: 5px
25
- text-align: center
32
+ &.table-narrow
26
33
  white-space: nowrap
27
34
  width: 1%
28
- .fa
29
- +fa(21px, 24px)
30
- &.table-link
31
- padding: 0
32
- & > a
33
- padding: 5px
34
35
  th
35
36
  color: $text-strong
36
37
  text-align: left
37
38
  tr
38
39
  &:hover
39
- background: rgba($background, 0.5)
40
+ background: $background
40
41
  color: $text-strong
41
- &:last-child td
42
- border-bottom-width: 0
43
42
  thead
44
- th,
45
- td
43
+ td,
44
+ th
46
45
  border-width: 0 0 2px
47
46
  color: $text-light
47
+ tbody
48
+ tr
49
+ &:last-child
50
+ td,
51
+ th
52
+ border-bottom-width: 0
48
53
  tfoot
49
- th,
50
- td
54
+ td,
55
+ th
51
56
  border-width: 2px 0 0
52
57
  color: $text-light
58
+ // Modifiers
53
59
  &.is-bordered
54
- th,
55
- td
60
+ td,
61
+ th
56
62
  border-width: 1px
57
63
  tr
58
- &:last-child td
59
- border-bottom-width: 1px
64
+ &:last-child
65
+ td,
66
+ th
67
+ border-bottom-width: 1px
60
68
  &.is-narrow
61
- th,
62
- td
69
+ td,
70
+ th
63
71
  padding: 5px 10px
64
- &.table-link
65
- padding: 0
66
- & > a
67
- padding: 5px 10px
72
+ // Modifiers
68
73
  &.table-icon
69
74
  padding: 2px
70
75
  &.table-link
71
76
  padding: 0
72
77
  & > a
73
78
  padding: 2px
79
+ &.table-link
80
+ padding: 0
81
+ & > a
82
+ padding: 5px 10px
74
83
  &.is-striped
75
84
  tbody
76
- tr:nth-child(2n)
77
- background: rgba($background, 0.5)
78
- &:hover
85
+ tr
86
+ &:nth-child(2n)
79
87
  background: $background
88
+ &:hover
89
+ background: $border
@@ -4,11 +4,6 @@
4
4
  overflow: hidden
5
5
  overflow-x: auto
6
6
  white-space: nowrap
7
- .fa
8
- font-size: 14px
9
- line-height: 20px
10
- margin: 2px -2px
11
- width: 20px
12
7
  a
13
8
  border-bottom: 1px solid $border
14
9
  color: $text
@@ -24,6 +19,7 @@
24
19
  vertical-align: top
25
20
  & + li
26
21
  margin-left: 20px
22
+ // Modifiers
27
23
  &.is-active
28
24
  a
29
25
  border-bottom-color: $link
@@ -31,18 +27,12 @@
31
27
  ul
32
28
  border-bottom: 1px solid $border
33
29
  display: flex
34
- &.is-centered
35
- a
36
- padding: 5px 10px
37
- li
38
- & + li
39
- margin-left: 0
40
- ul
41
- justify-content: center
42
- text-align: center
43
- &.is-right
44
- ul
45
- justify-content: flex-end
30
+ .fa
31
+ font-size: 14px
32
+ line-height: 20px
33
+ margin: 2px -2px
34
+ width: 20px
35
+ // Modifiers
46
36
  &.is-boxed
47
37
  a
48
38
  border: 1px solid transparent
@@ -54,16 +44,38 @@
54
44
  li
55
45
  & + li
56
46
  margin-left: 5px
47
+ // Modifiers
57
48
  &.is-active
58
49
  a
59
50
  background: white
60
51
  border-color: $border
61
52
  border-bottom-color: transparent
53
+ // Modifiers
62
54
  &.is-centered
63
55
  li
64
56
  &,
65
57
  & + li
66
58
  margin: 0 2px
59
+ &.is-centered
60
+ a
61
+ padding: 5px 10px
62
+ li
63
+ & + li
64
+ margin-left: 0
65
+ ul
66
+ justify-content: center
67
+ text-align: center
68
+ &.is-fullwidth
69
+ li
70
+ flex: 1
71
+ & + li
72
+ margin-left: 0
73
+ ul
74
+ justify-content: center
75
+ text-align: center
76
+ &.is-right
77
+ ul
78
+ justify-content: flex-end
67
79
  &.is-toggle
68
80
  a
69
81
  border: 1px solid $border
@@ -81,6 +93,7 @@
81
93
  border-radius: $radius 0 0 $radius
82
94
  &:last-child a
83
95
  border-radius: 0 $radius $radius 0
96
+ // Modifiers
84
97
  &.is-active
85
98
  a
86
99
  background: $primary
@@ -89,12 +102,3 @@
89
102
  z-index: 1
90
103
  ul
91
104
  border-bottom: none
92
- &.is-fullwidth
93
- +tablet
94
- li
95
- flex: 1
96
- & + li
97
- margin-left: 0
98
- ul
99
- justify-content: center
100
- text-align: center
@@ -67,6 +67,7 @@ $control-active-border: $link
67
67
  // Typography
68
68
 
69
69
  $family-primary: $family-sans-serif
70
+ $family-code: $family-monospace
70
71
 
71
72
  $size-small: $size-7
72
73
  $size-normal: $size-6
@@ -27,15 +27,19 @@
27
27
  font-size: $size-small
28
28
  line-height: 1
29
29
  margin-top: 5px
30
- .icon
30
+ .icon,
31
+ .tag
31
32
  &:first-child
33
+ margin-left: -2px
32
34
  margin-right: 4px
33
35
  &:last-child
34
36
  margin-left: 4px
37
+ margin-right: -2px
35
38
  &:hover
36
39
  color: $control-hover
37
40
  &:active
38
41
  box-shadow: inset 0 1px 2px rgba(black, 0.2)
42
+ // Colors
39
43
  @each $name, $pair in $colors
40
44
  $color: nth($pair, 1)
41
45
  $color-invert: nth($pair, 2)
@@ -50,14 +54,6 @@
50
54
  color: $color-invert
51
55
  &:active
52
56
  border-color: transparent
53
- &.is-outlined
54
- background: transparent
55
- border-color: $color
56
- color: $color
57
- &:hover,
58
- &:focus
59
- border-color: darken($color, 10%)
60
- color: darken($color, 10%)
61
57
  &.is-inverted
62
58
  background: $color-invert
63
59
  color: $color
@@ -69,8 +65,19 @@
69
65
  color: $color-invert
70
66
  &:hover
71
67
  background: rgba(black, 0.05)
72
- &.is-loading:after
73
- border-color: transparent transparent $color-invert $color-invert !important
68
+ border-color: $color-invert
69
+ color: $color-invert
70
+ &.is-loading
71
+ &:after
72
+ border-color: transparent transparent $color-invert $color-invert !important
73
+ &.is-outlined
74
+ background: transparent
75
+ border-color: $color
76
+ color: $color
77
+ &:hover,
78
+ &:focus
79
+ border-color: darken($color, 10%)
80
+ color: darken($color, 10%)
74
81
  &.is-link
75
82
  border-color: transparent
76
83
  color: $text
@@ -79,17 +86,22 @@
79
86
  &:focus
80
87
  background: $border
81
88
  color: $text-strong
89
+ // Sizes
82
90
  &.is-small
83
91
  +button-small
84
92
  &.is-medium
85
93
  +button-medium
86
94
  &.is-large
87
95
  +button-large
96
+ // Modifiers
97
+ &[disabled],
98
+ &.is-disabled
99
+ opacity: 0.5
100
+ &.is-flexible
101
+ height: auto
88
102
  &.is-fullwidth
89
103
  display: block
90
104
  width: 100%
91
- &.is-flexible
92
- height: auto
93
105
  &.is-loading
94
106
  color: transparent
95
107
  pointer-events: none
@@ -97,7 +109,3 @@
97
109
  @extend .loader
98
110
  +center(16px)
99
111
  position: absolute !important
100
- &.is-disabled,
101
- &[disabled]
102
- opacity: 0.5
103
- pointer-events: none