bulma-sass-rails 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/README.md +43 -0
  4. data/app/assets/stylesheets/bulma-rtl.sass +3 -0
  5. data/app/assets/stylesheets/bulma.sass +10 -0
  6. data/app/assets/stylesheets/sass/base/_all.sass +6 -0
  7. data/app/assets/stylesheets/sass/base/animations.sass +5 -0
  8. data/app/assets/stylesheets/sass/base/generic.sass +145 -0
  9. data/app/assets/stylesheets/sass/base/helpers.sass +1 -0
  10. data/app/assets/stylesheets/sass/base/minireset.sass +79 -0
  11. data/app/assets/stylesheets/sass/components/_all.sass +15 -0
  12. data/app/assets/stylesheets/sass/components/breadcrumb.sass +77 -0
  13. data/app/assets/stylesheets/sass/components/card.sass +103 -0
  14. data/app/assets/stylesheets/sass/components/dropdown.sass +83 -0
  15. data/app/assets/stylesheets/sass/components/level.sass +79 -0
  16. data/app/assets/stylesheets/sass/components/media.sass +59 -0
  17. data/app/assets/stylesheets/sass/components/menu.sass +59 -0
  18. data/app/assets/stylesheets/sass/components/message.sass +101 -0
  19. data/app/assets/stylesheets/sass/components/modal.sass +117 -0
  20. data/app/assets/stylesheets/sass/components/navbar.sass +446 -0
  21. data/app/assets/stylesheets/sass/components/pagination.sass +167 -0
  22. data/app/assets/stylesheets/sass/components/panel.sass +121 -0
  23. data/app/assets/stylesheets/sass/components/tabs.sass +176 -0
  24. data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
  25. data/app/assets/stylesheets/sass/elements/box.sass +26 -0
  26. data/app/assets/stylesheets/sass/elements/button.sass +345 -0
  27. data/app/assets/stylesheets/sass/elements/container.sass +29 -0
  28. data/app/assets/stylesheets/sass/elements/content.sass +159 -0
  29. data/app/assets/stylesheets/sass/elements/form.sass +1 -0
  30. data/app/assets/stylesheets/sass/elements/icon.sass +46 -0
  31. data/app/assets/stylesheets/sass/elements/image.sass +73 -0
  32. data/app/assets/stylesheets/sass/elements/notification.sass +52 -0
  33. data/app/assets/stylesheets/sass/elements/other.sass +31 -0
  34. data/app/assets/stylesheets/sass/elements/progress.sass +73 -0
  35. data/app/assets/stylesheets/sass/elements/table.sass +133 -0
  36. data/app/assets/stylesheets/sass/elements/tag.sass +140 -0
  37. data/app/assets/stylesheets/sass/elements/title.sass +70 -0
  38. data/app/assets/stylesheets/sass/form/_all.sass +9 -0
  39. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +22 -0
  40. data/app/assets/stylesheets/sass/form/file.sass +184 -0
  41. data/app/assets/stylesheets/sass/form/input-textarea.sass +66 -0
  42. data/app/assets/stylesheets/sass/form/select.sass +87 -0
  43. data/app/assets/stylesheets/sass/form/shared.sass +60 -0
  44. data/app/assets/stylesheets/sass/form/tools.sass +215 -0
  45. data/app/assets/stylesheets/sass/grid/_all.sass +5 -0
  46. data/app/assets/stylesheets/sass/grid/columns.sass +513 -0
  47. data/app/assets/stylesheets/sass/grid/tiles.sass +36 -0
  48. data/app/assets/stylesheets/sass/helpers/_all.sass +12 -0
  49. data/app/assets/stylesheets/sass/helpers/color.sass +39 -0
  50. data/app/assets/stylesheets/sass/helpers/flexbox.sass +35 -0
  51. data/app/assets/stylesheets/sass/helpers/float.sass +10 -0
  52. data/app/assets/stylesheets/sass/helpers/other.sass +14 -0
  53. data/app/assets/stylesheets/sass/helpers/overflow.sass +2 -0
  54. data/app/assets/stylesheets/sass/helpers/position.sass +7 -0
  55. data/app/assets/stylesheets/sass/helpers/spacing.sass +31 -0
  56. data/app/assets/stylesheets/sass/helpers/typography.sass +103 -0
  57. data/app/assets/stylesheets/sass/helpers/visibility.sass +122 -0
  58. data/app/assets/stylesheets/sass/layout/_all.sass +6 -0
  59. data/app/assets/stylesheets/sass/layout/footer.sass +11 -0
  60. data/app/assets/stylesheets/sass/layout/hero.sass +153 -0
  61. data/app/assets/stylesheets/sass/layout/section.sass +17 -0
  62. data/app/assets/stylesheets/sass/utilities/_all.sass +9 -0
  63. data/app/assets/stylesheets/sass/utilities/animations.sass +1 -0
  64. data/app/assets/stylesheets/sass/utilities/controls.sass +49 -0
  65. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +114 -0
  66. data/app/assets/stylesheets/sass/utilities/extends.sass +25 -0
  67. data/app/assets/stylesheets/sass/utilities/functions.sass +135 -0
  68. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +78 -0
  69. data/app/assets/stylesheets/sass/utilities/mixins.sass +284 -0
  70. data/bulma-sass-rails.gemspec +18 -0
  71. data/lib/bulma/engine.rb +4 -0
  72. data/lib/bulma/version.rb +3 -0
  73. data/lib/bulma-sass-rails.rb +5 -0
  74. metadata +130 -0
@@ -0,0 +1,59 @@
1
+ @import "../utilities/mixins"
2
+
3
+ $media-border-color: bulmaRgba($border, 0.5) !default
4
+ $media-border-size: 1px !default
5
+ $media-spacing: 1rem !default
6
+ $media-spacing-large: 1.5rem !default
7
+ $media-content-spacing: 0.75rem !default
8
+ $media-level-1-spacing: 0.75rem !default
9
+ $media-level-1-content-spacing: 0.5rem !default
10
+ $media-level-2-spacing: 0.5rem !default
11
+
12
+ .media
13
+ align-items: flex-start
14
+ display: flex
15
+ text-align: inherit
16
+ .content:not(:last-child)
17
+ margin-bottom: $media-content-spacing
18
+ .media
19
+ border-top: $media-border-size solid $media-border-color
20
+ display: flex
21
+ padding-top: $media-level-1-spacing
22
+ .content:not(:last-child),
23
+ .control:not(:last-child)
24
+ margin-bottom: $media-level-1-content-spacing
25
+ .media
26
+ padding-top: $media-level-2-spacing
27
+ & + .media
28
+ margin-top: $media-level-2-spacing
29
+ & + .media
30
+ border-top: $media-border-size solid $media-border-color
31
+ margin-top: $media-spacing
32
+ padding-top: $media-spacing
33
+ // Sizes
34
+ &.is-large
35
+ & + .media
36
+ margin-top: $media-spacing-large
37
+ padding-top: $media-spacing-large
38
+
39
+ .media-left,
40
+ .media-right
41
+ flex-basis: auto
42
+ flex-grow: 0
43
+ flex-shrink: 0
44
+
45
+ .media-left
46
+ +ltr-property("margin", $media-spacing)
47
+
48
+ .media-right
49
+ +ltr-property("margin", $media-spacing, false)
50
+
51
+ .media-content
52
+ flex-basis: auto
53
+ flex-grow: 1
54
+ flex-shrink: 1
55
+ text-align: inherit
56
+
57
+ +mobile
58
+ .media-content
59
+ overflow-x: auto
@@ -0,0 +1,59 @@
1
+ @import "../utilities/mixins"
2
+
3
+ $menu-item-color: $text !default
4
+ $menu-item-radius: $radius-small !default
5
+ $menu-item-hover-color: $text-strong !default
6
+ $menu-item-hover-background-color: $background !default
7
+ $menu-item-active-color: $link-invert !default
8
+ $menu-item-active-background-color: $link !default
9
+
10
+ $menu-list-border-left: 1px solid $border !default
11
+ $menu-list-line-height: 1.25 !default
12
+ $menu-list-link-padding: 0.5em 0.75em !default
13
+ $menu-nested-list-margin: 0.75em !default
14
+ $menu-nested-list-padding-left: 0.75em !default
15
+
16
+ $menu-label-color: $text-light !default
17
+ $menu-label-font-size: 0.75em !default
18
+ $menu-label-letter-spacing: 0.1em !default
19
+ $menu-label-spacing: 1em !default
20
+
21
+ .menu
22
+ font-size: $size-normal
23
+ // Sizes
24
+ &.is-small
25
+ font-size: $size-small
26
+ &.is-medium
27
+ font-size: $size-medium
28
+ &.is-large
29
+ font-size: $size-large
30
+
31
+ .menu-list
32
+ line-height: $menu-list-line-height
33
+ a
34
+ border-radius: $menu-item-radius
35
+ color: $menu-item-color
36
+ display: block
37
+ padding: $menu-list-link-padding
38
+ &:hover
39
+ background-color: $menu-item-hover-background-color
40
+ color: $menu-item-hover-color
41
+ // Modifiers
42
+ &.is-active
43
+ background-color: $menu-item-active-background-color
44
+ color: $menu-item-active-color
45
+ li
46
+ ul
47
+ +ltr-property("border", $menu-list-border-left, false)
48
+ margin: $menu-nested-list-margin
49
+ +ltr-property("padding", $menu-nested-list-padding-left, false)
50
+
51
+ .menu-label
52
+ color: $menu-label-color
53
+ font-size: $menu-label-font-size
54
+ letter-spacing: $menu-label-letter-spacing
55
+ text-transform: uppercase
56
+ &:not(:first-child)
57
+ margin-top: $menu-label-spacing
58
+ &:not(:last-child)
59
+ margin-bottom: $menu-label-spacing
@@ -0,0 +1,101 @@
1
+ @import "../utilities/mixins"
2
+
3
+ $message-background-color: $background !default
4
+ $message-radius: $radius !default
5
+
6
+ $message-header-background-color: $text !default
7
+ $message-header-color: $text-invert !default
8
+ $message-header-weight: $weight-bold !default
9
+ $message-header-padding: 0.75em 1em !default
10
+ $message-header-radius: $radius !default
11
+
12
+ $message-body-border-color: $border !default
13
+ $message-body-border-width: 0 0 0 4px !default
14
+ $message-body-color: $text !default
15
+ $message-body-padding: 1.25em 1.5em !default
16
+ $message-body-radius: $radius !default
17
+
18
+ $message-body-pre-background-color: $scheme-main !default
19
+ $message-body-pre-code-background-color: transparent !default
20
+
21
+ $message-header-body-border-width: 0 !default
22
+ $message-colors: $colors !default
23
+
24
+ .message
25
+ @extend %block
26
+ background-color: $message-background-color
27
+ border-radius: $message-radius
28
+ font-size: $size-normal
29
+ strong
30
+ color: currentColor
31
+ a:not(.button):not(.tag):not(.dropdown-item)
32
+ color: currentColor
33
+ text-decoration: underline
34
+ // Sizes
35
+ &.is-small
36
+ font-size: $size-small
37
+ &.is-medium
38
+ font-size: $size-medium
39
+ &.is-large
40
+ font-size: $size-large
41
+ // Colors
42
+ @each $name, $components in $message-colors
43
+ $color: nth($components, 1)
44
+ $color-invert: nth($components, 2)
45
+ $color-light: null
46
+ $color-dark: null
47
+
48
+ @if length($components) >= 3
49
+ $color-light: nth($components, 3)
50
+ @if length($components) >= 4
51
+ $color-dark: nth($components, 4)
52
+ @else
53
+ $color-luminance: colorLuminance($color)
54
+ $darken-percentage: $color-luminance * 70%
55
+ $desaturate-percentage: $color-luminance * 30%
56
+ $color-dark: desaturate(darken($color, $darken-percentage), $desaturate-percentage)
57
+ @else
58
+ $color-lightning: max((100% - lightness($color)) - 2%, 0%)
59
+ $color-light: lighten($color, $color-lightning)
60
+
61
+ &.is-#{$name}
62
+ background-color: $color-light
63
+ .message-header
64
+ background-color: $color
65
+ color: $color-invert
66
+ .message-body
67
+ border-color: $color
68
+ color: $color-dark
69
+
70
+ .message-header
71
+ align-items: center
72
+ background-color: $message-header-background-color
73
+ border-radius: $message-header-radius $message-header-radius 0 0
74
+ color: $message-header-color
75
+ display: flex
76
+ font-weight: $message-header-weight
77
+ justify-content: space-between
78
+ line-height: 1.25
79
+ padding: $message-header-padding
80
+ position: relative
81
+ .delete
82
+ flex-grow: 0
83
+ flex-shrink: 0
84
+ +ltr-property("margin", 0.75em, false)
85
+ & + .message-body
86
+ border-width: $message-header-body-border-width
87
+ border-top-left-radius: 0
88
+ border-top-right-radius: 0
89
+
90
+ .message-body
91
+ border-color: $message-body-border-color
92
+ border-radius: $message-body-radius
93
+ border-style: solid
94
+ border-width: $message-body-border-width
95
+ color: $message-body-color
96
+ padding: $message-body-padding
97
+ code,
98
+ pre
99
+ background-color: $message-body-pre-background-color
100
+ pre code
101
+ background-color: $message-body-pre-code-background-color
@@ -0,0 +1,117 @@
1
+ @import "../utilities/mixins"
2
+
3
+ $modal-z: 40 !default
4
+
5
+ $modal-background-background-color: bulmaRgba($scheme-invert, 0.86) !default
6
+
7
+ $modal-content-width: 640px !default
8
+ $modal-content-margin-mobile: 20px !default
9
+ $modal-content-spacing-mobile: 160px !default
10
+ $modal-content-spacing-tablet: 40px !default
11
+
12
+ $modal-close-dimensions: 40px !default
13
+ $modal-close-right: 20px !default
14
+ $modal-close-top: 20px !default
15
+
16
+ $modal-card-spacing: 40px !default
17
+
18
+ $modal-card-head-background-color: $background !default
19
+ $modal-card-head-border-bottom: 1px solid $border !default
20
+ $modal-card-head-padding: 20px !default
21
+ $modal-card-head-radius: $radius-large !default
22
+
23
+ $modal-card-title-color: $text-strong !default
24
+ $modal-card-title-line-height: 1 !default
25
+ $modal-card-title-size: $size-4 !default
26
+
27
+ $modal-card-foot-radius: $radius-large !default
28
+ $modal-card-foot-border-top: 1px solid $border !default
29
+
30
+ $modal-card-body-background-color: $scheme-main !default
31
+ $modal-card-body-padding: 20px !default
32
+
33
+ $modal-breakpoint: $tablet !default
34
+
35
+ .modal
36
+ @extend %overlay
37
+ align-items: center
38
+ display: none
39
+ flex-direction: column
40
+ justify-content: center
41
+ overflow: hidden
42
+ position: fixed
43
+ z-index: $modal-z
44
+ // Modifiers
45
+ &.is-active
46
+ display: flex
47
+
48
+ .modal-background
49
+ @extend %overlay
50
+ background-color: $modal-background-background-color
51
+
52
+ .modal-content,
53
+ .modal-card
54
+ margin: 0 $modal-content-margin-mobile
55
+ max-height: calc(100vh - #{$modal-content-spacing-mobile})
56
+ overflow: auto
57
+ position: relative
58
+ width: 100%
59
+ // Responsiveness
60
+ +from($modal-breakpoint)
61
+ margin: 0 auto
62
+ max-height: calc(100vh - #{$modal-content-spacing-tablet})
63
+ width: $modal-content-width
64
+
65
+ .modal-close
66
+ @extend %delete
67
+ background: none
68
+ height: $modal-close-dimensions
69
+ position: fixed
70
+ +ltr-position($modal-close-right)
71
+ top: $modal-close-top
72
+ width: $modal-close-dimensions
73
+
74
+ .modal-card
75
+ display: flex
76
+ flex-direction: column
77
+ max-height: calc(100vh - #{$modal-card-spacing})
78
+ overflow: hidden
79
+ -ms-overflow-y: visible
80
+
81
+ .modal-card-head,
82
+ .modal-card-foot
83
+ align-items: center
84
+ background-color: $modal-card-head-background-color
85
+ display: flex
86
+ flex-shrink: 0
87
+ justify-content: flex-start
88
+ padding: $modal-card-head-padding
89
+ position: relative
90
+
91
+ .modal-card-head
92
+ border-bottom: $modal-card-head-border-bottom
93
+ border-top-left-radius: $modal-card-head-radius
94
+ border-top-right-radius: $modal-card-head-radius
95
+
96
+ .modal-card-title
97
+ color: $modal-card-title-color
98
+ flex-grow: 1
99
+ flex-shrink: 0
100
+ font-size: $modal-card-title-size
101
+ line-height: $modal-card-title-line-height
102
+
103
+ .modal-card-foot
104
+ border-bottom-left-radius: $modal-card-foot-radius
105
+ border-bottom-right-radius: $modal-card-foot-radius
106
+ border-top: $modal-card-foot-border-top
107
+ .button
108
+ &:not(:last-child)
109
+ +ltr-property("margin", 0.5em)
110
+
111
+ .modal-card-body
112
+ +overflow-touch
113
+ background-color: $modal-card-body-background-color
114
+ flex-grow: 1
115
+ flex-shrink: 1
116
+ overflow: auto
117
+ padding: $modal-card-body-padding