bulma-sass 0.0.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +2 -0
  4. data/app/assets/stylesheets/bulma.sass +7 -8
  5. data/app/assets/stylesheets/sass/base/_all.sass +5 -0
  6. data/app/assets/stylesheets/sass/base/generic.sass +127 -0
  7. data/app/assets/stylesheets/sass/base/helpers.sass +203 -0
  8. data/app/assets/stylesheets/sass/base/minireset.sass +80 -0
  9. data/app/assets/stylesheets/sass/components/_all.sass +14 -0
  10. data/app/assets/stylesheets/sass/components/breadcrumb.sass +74 -0
  11. data/app/assets/stylesheets/sass/components/card.sass +67 -0
  12. data/app/assets/stylesheets/sass/components/dropdown.sass +74 -0
  13. data/app/assets/stylesheets/sass/components/level.sass +75 -0
  14. data/app/assets/stylesheets/sass/components/media.sass +44 -0
  15. data/app/assets/stylesheets/sass/components/menu.sass +50 -0
  16. data/app/assets/stylesheets/sass/components/message.sass +79 -0
  17. data/app/assets/stylesheets/sass/components/modal.sass +111 -0
  18. data/app/assets/stylesheets/sass/components/navbar.sass +301 -0
  19. data/app/assets/stylesheets/sass/components/pagination.sass +134 -0
  20. data/app/assets/stylesheets/sass/components/panel.sass +101 -0
  21. data/app/assets/stylesheets/sass/components/tabs.sass +141 -0
  22. data/app/assets/stylesheets/sass/elements/_all.sass +16 -0
  23. data/app/assets/stylesheets/sass/elements/box.sass +24 -0
  24. data/app/assets/stylesheets/sass/elements/button.sass +201 -0
  25. data/app/assets/stylesheets/sass/elements/container.sass +25 -0
  26. data/app/assets/stylesheets/sass/elements/content.sass +145 -0
  27. data/app/assets/stylesheets/sass/elements/form.sass +605 -0
  28. data/app/assets/stylesheets/sass/elements/icon.sass +21 -0
  29. data/app/assets/stylesheets/sass/elements/image.sass +36 -0
  30. data/app/assets/stylesheets/sass/elements/notification.sass +35 -0
  31. data/app/assets/stylesheets/sass/elements/other.sass +39 -0
  32. data/app/assets/stylesheets/sass/elements/progress.sass +35 -0
  33. data/app/assets/stylesheets/sass/elements/table.sass +104 -0
  34. data/app/assets/stylesheets/sass/elements/tag.sass +89 -0
  35. data/app/assets/stylesheets/sass/elements/title.sass +55 -0
  36. data/app/assets/stylesheets/sass/grid/_all.sass +4 -0
  37. data/app/assets/stylesheets/sass/grid/columns.sass +328 -0
  38. data/app/assets/stylesheets/sass/grid/tiles.sass +32 -0
  39. data/app/assets/stylesheets/sass/layout/_all.sass +5 -0
  40. data/app/assets/stylesheets/sass/layout/footer.sass +5 -0
  41. data/app/assets/stylesheets/sass/layout/hero.sass +155 -0
  42. data/app/assets/stylesheets/sass/layout/section.sass +13 -0
  43. data/app/assets/stylesheets/sass/utilities/_all.sass +8 -0
  44. data/app/assets/stylesheets/{bulma → sass}/utilities/animations.sass +1 -1
  45. data/app/assets/stylesheets/sass/utilities/controls.sass +41 -0
  46. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +82 -0
  47. data/app/assets/stylesheets/{bulma → sass}/utilities/functions.sass +7 -13
  48. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +65 -0
  49. data/app/assets/stylesheets/sass/utilities/mixins.sass +226 -0
  50. data/lib/bulma/sass/version.rb +1 -1
  51. metadata +46 -32
  52. data/app/assets/stylesheets/bulma/base/base.sass +0 -6
  53. data/app/assets/stylesheets/bulma/base/content.sass +0 -51
  54. data/app/assets/stylesheets/bulma/base/generic.sass +0 -101
  55. data/app/assets/stylesheets/bulma/base/helpers.sass +0 -27
  56. data/app/assets/stylesheets/bulma/base/highlight.sass +0 -123
  57. data/app/assets/stylesheets/bulma/components/card.sass +0 -36
  58. data/app/assets/stylesheets/bulma/components/components.sass +0 -11
  59. data/app/assets/stylesheets/bulma/components/grid.sass +0 -48
  60. data/app/assets/stylesheets/bulma/components/media.sass +0 -69
  61. data/app/assets/stylesheets/bulma/components/menu.sass +0 -25
  62. data/app/assets/stylesheets/bulma/components/navbar.sass +0 -45
  63. data/app/assets/stylesheets/bulma/components/table.sass +0 -73
  64. data/app/assets/stylesheets/bulma/components/tabs.sass +0 -84
  65. data/app/assets/stylesheets/bulma/config/generated-variables.sass +0 -74
  66. data/app/assets/stylesheets/bulma/config/variables.sass +0 -41
  67. data/app/assets/stylesheets/bulma/elements/buttons.sass +0 -96
  68. data/app/assets/stylesheets/bulma/elements/controls.sass +0 -213
  69. data/app/assets/stylesheets/bulma/elements/elements.sass +0 -172
  70. data/app/assets/stylesheets/bulma/elements/messages.sass +0 -41
  71. data/app/assets/stylesheets/bulma/elements/notifications.sass +0 -20
  72. data/app/assets/stylesheets/bulma/elements/titles.sass +0 -57
  73. data/app/assets/stylesheets/bulma/layout/footer.sass +0 -11
  74. data/app/assets/stylesheets/bulma/layout/header.sass +0 -149
  75. data/app/assets/stylesheets/bulma/layout/hero.sass +0 -148
  76. data/app/assets/stylesheets/bulma/layout/layout.sass +0 -6
  77. data/app/assets/stylesheets/bulma/layout/section.sass +0 -11
  78. data/app/assets/stylesheets/bulma/utilities/mixins.sass +0 -83
  79. data/app/assets/stylesheets/bulma/utilities/reset.sass +0 -174
  80. data/app/assets/stylesheets/bulma/utilities/utilities.sass +0 -6
@@ -0,0 +1,14 @@
1
+ @charset "utf-8"
2
+
3
+ @import "breadcrumb.sass"
4
+ @import "card.sass"
5
+ @import "dropdown.sass"
6
+ @import "level.sass"
7
+ @import "media.sass"
8
+ @import "menu.sass"
9
+ @import "message.sass"
10
+ @import "modal.sass"
11
+ @import "navbar.sass"
12
+ @import "pagination.sass"
13
+ @import "panel.sass"
14
+ @import "tabs.sass"
@@ -0,0 +1,74 @@
1
+ $breadcrumb-item-color: $link !default
2
+ $breadcrumb-item-hover-color: $link-hover !default
3
+ $breadcrumb-item-active-color: $text-strong !default
4
+
5
+ $breadcrumb-item-separator-color: $text !default
6
+
7
+ .breadcrumb
8
+ +block
9
+ +unselectable
10
+ align-items: stretch
11
+ display: flex
12
+ font-size: $size-normal
13
+ overflow: hidden
14
+ overflow-x: auto
15
+ white-space: nowrap
16
+ a
17
+ align-items: center
18
+ color: $breadcrumb-item-color
19
+ display: flex
20
+ justify-content: center
21
+ padding: 0.5em 0.75em
22
+ &:hover
23
+ color: $breadcrumb-item-hover-color
24
+ li
25
+ align-items: center
26
+ display: flex
27
+ &:first-child a
28
+ padding-left: 0
29
+ &.is-active
30
+ a
31
+ color: $breadcrumb-item-active-color
32
+ cursor: default
33
+ pointer-events: none
34
+ & + li::before
35
+ color: $breadcrumb-item-separator-color
36
+ content: "\0002f"
37
+ ul, ol
38
+ align-items: center
39
+ display: flex
40
+ flex-grow: 1
41
+ flex-shrink: 0
42
+ justify-content: flex-start
43
+ .icon
44
+ &:first-child
45
+ margin-right: 0.5em
46
+ &:last-child
47
+ margin-left: 0.5em
48
+ // Alignment
49
+ &.is-centered
50
+ ol, ul
51
+ justify-content: center
52
+ &.is-right
53
+ ol, ul
54
+ justify-content: flex-end
55
+ // Sizes
56
+ &.is-small
57
+ font-size: $size-small
58
+ &.is-medium
59
+ font-size: $size-medium
60
+ &.is-large
61
+ font-size: $size-large
62
+ // Styles
63
+ &.has-arrow-separator
64
+ li + li::before
65
+ content: "\02192"
66
+ &.has-bullet-separator
67
+ li + li::before
68
+ content: "\02022"
69
+ &.has-dot-separator
70
+ li + li::before
71
+ content: "\000b7"
72
+ &.has-succeeds-separator
73
+ li + li::before
74
+ content: "\0227B"
@@ -0,0 +1,67 @@
1
+ $card-color: $text !default
2
+ $card-background-color: $white !default
3
+ $card-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
4
+
5
+ $card-header-color: $text-strong !default
6
+ $card-header-shadow: 0 1px 2px rgba($black, 0.1) !default
7
+ $card-header-weight: $weight-bold !default
8
+
9
+ $card-footer-border-top: 1px solid $border !default
10
+
11
+ .card
12
+ background-color: $card-background-color
13
+ box-shadow: $card-shadow
14
+ color: $card-color
15
+ max-width: 100%
16
+ position: relative
17
+
18
+ .card-header
19
+ align-items: stretch
20
+ box-shadow: $card-header-shadow
21
+ display: flex
22
+
23
+ .card-header-title
24
+ align-items: center
25
+ color: $card-header-color
26
+ display: flex
27
+ flex-grow: 1
28
+ font-weight: $card-header-weight
29
+ padding: 0.75rem
30
+ &.is-centered
31
+ justify-content: center
32
+
33
+ .card-header-icon
34
+ align-items: center
35
+ cursor: pointer
36
+ display: flex
37
+ justify-content: center
38
+ padding: 0.75rem
39
+
40
+ .card-image
41
+ display: block
42
+ position: relative
43
+
44
+ .card-content
45
+ padding: 1.5rem
46
+
47
+ .card-footer
48
+ border-top: $card-footer-border-top
49
+ align-items: stretch
50
+ display: flex
51
+
52
+ .card-footer-item
53
+ align-items: center
54
+ display: flex
55
+ flex-basis: 0
56
+ flex-grow: 1
57
+ flex-shrink: 0
58
+ justify-content: center
59
+ padding: 0.75rem
60
+ &:not(:last-child)
61
+ border-right: $card-footer-border-top
62
+
63
+ // Combinations
64
+
65
+ .card
66
+ .media:not(:last-child)
67
+ margin-bottom: 0.75rem
@@ -0,0 +1,74 @@
1
+ $dropdown-content-background-color: $white !default
2
+ $dropdown-content-arrow: $link !default
3
+ $dropdown-content-offset: 4px !default
4
+ $dropdown-content-radius: $radius !default
5
+ $dropdown-content-shadow: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1) !default
6
+ $dropdown-content-z: 20 !default
7
+
8
+ $dropdown-item-color: $grey-dark !default
9
+ $dropdown-item-hover-color: $black !default
10
+ $dropdown-item-hover-background-color: $background !default
11
+ $dropdown-item-active-color: $link-invert !default
12
+ $dropdown-item-active-background-color: $link !default
13
+
14
+ $dropdown-divider-background-color: $border !default
15
+
16
+ .dropdown
17
+ display: inline-flex
18
+ position: relative
19
+ vertical-align: top
20
+ &.is-active,
21
+ &.is-hoverable:hover
22
+ .dropdown-menu
23
+ display: block
24
+ &.is-right
25
+ .dropdown-menu
26
+ left: auto
27
+ right: 0
28
+ &.is-up
29
+ .dropdown-menu
30
+ bottom: 100%
31
+ padding-bottom: $dropdown-content-offset
32
+ padding-top: unset
33
+ top: auto
34
+
35
+ .dropdown-menu
36
+ display: none
37
+ left: 0
38
+ min-width: 12rem
39
+ padding-top: $dropdown-content-offset
40
+ position: absolute
41
+ top: 100%
42
+ z-index: $dropdown-content-z
43
+
44
+ .dropdown-content
45
+ background-color: $dropdown-content-background-color
46
+ border-radius: $dropdown-content-radius
47
+ box-shadow: $dropdown-content-shadow
48
+ padding-bottom: 0.5rem
49
+ padding-top: 0.5rem
50
+
51
+ .dropdown-item
52
+ color: $dropdown-item-color
53
+ display: block
54
+ font-size: 0.875rem
55
+ line-height: 1.5
56
+ padding: 0.375rem 1rem
57
+ position: relative
58
+
59
+ a.dropdown-item
60
+ padding-right: 3rem
61
+ white-space: nowrap
62
+ &:hover
63
+ background-color: $dropdown-item-hover-background-color
64
+ color: $dropdown-item-hover-color
65
+ &.is-active
66
+ background-color: $dropdown-item-active-background-color
67
+ color: $dropdown-item-active-color
68
+
69
+ .dropdown-divider
70
+ background-color: $dropdown-divider-background-color
71
+ border: none
72
+ display: block
73
+ height: 1px
74
+ margin: 0.5rem 0
@@ -0,0 +1,75 @@
1
+ .level
2
+ +block
3
+ align-items: center
4
+ justify-content: space-between
5
+ code
6
+ border-radius: $radius
7
+ img
8
+ display: inline-block
9
+ vertical-align: top
10
+ // Modifiers
11
+ &.is-mobile
12
+ display: flex
13
+ .level-left,
14
+ .level-right
15
+ display: flex
16
+ .level-left + .level-right
17
+ margin-top: 0
18
+ .level-item
19
+ &:not(:last-child)
20
+ margin-bottom: 0
21
+ &:not(.is-narrow)
22
+ flex-grow: 1
23
+ margin-right: 0.75rem
24
+ // Responsiveness
25
+ +tablet
26
+ display: flex
27
+ & > .level-item
28
+ &:not(.is-narrow)
29
+ flex-grow: 1
30
+
31
+ .level-item
32
+ align-items: center
33
+ display: flex
34
+ flex-basis: auto
35
+ flex-grow: 0
36
+ flex-shrink: 0
37
+ justify-content: center
38
+ .title,
39
+ .subtitle
40
+ margin-bottom: 0
41
+ // Responsiveness
42
+ +mobile
43
+ &:not(:last-child)
44
+ margin-bottom: 0.75rem
45
+
46
+ .level-left,
47
+ .level-right
48
+ flex-basis: auto
49
+ flex-grow: 0
50
+ flex-shrink: 0
51
+ .level-item
52
+ // Modifiers
53
+ &.is-flexible
54
+ flex-grow: 1
55
+ // Responsiveness
56
+ +tablet
57
+ &:not(:last-child)
58
+ margin-right: 0.75rem
59
+
60
+ .level-left
61
+ align-items: center
62
+ justify-content: flex-start
63
+ // Responsiveness
64
+ +mobile
65
+ & + .level-right
66
+ margin-top: 1.5rem
67
+ +tablet
68
+ display: flex
69
+
70
+ .level-right
71
+ align-items: center
72
+ justify-content: flex-end
73
+ // Responsiveness
74
+ +tablet
75
+ display: flex
@@ -0,0 +1,44 @@
1
+ .media
2
+ align-items: flex-start
3
+ display: flex
4
+ text-align: left
5
+ .content:not(:last-child)
6
+ margin-bottom: 0.75rem
7
+ .media
8
+ border-top: 1px solid rgba($border, 0.5)
9
+ display: flex
10
+ padding-top: 0.75rem
11
+ .content:not(:last-child),
12
+ .control:not(:last-child)
13
+ margin-bottom: 0.5rem
14
+ .media
15
+ padding-top: 0.5rem
16
+ & + .media
17
+ margin-top: 0.5rem
18
+ & + .media
19
+ border-top: 1px solid rgba($border, 0.5)
20
+ margin-top: 1rem
21
+ padding-top: 1rem
22
+ // Sizes
23
+ &.is-large
24
+ & + .media
25
+ margin-top: 1.5rem
26
+ padding-top: 1.5rem
27
+
28
+ .media-left,
29
+ .media-right
30
+ flex-basis: auto
31
+ flex-grow: 0
32
+ flex-shrink: 0
33
+
34
+ .media-left
35
+ margin-right: 1rem
36
+
37
+ .media-right
38
+ margin-left: 1rem
39
+
40
+ .media-content
41
+ flex-basis: auto
42
+ flex-grow: 1
43
+ flex-shrink: 1
44
+ text-align: left
@@ -0,0 +1,50 @@
1
+ $menu-item-color: $text !default
2
+ $menu-item-radius: $radius-small !default
3
+ $menu-item-hover-color: $text-strong !default
4
+ $menu-item-hover-background-color: $background !default
5
+ $menu-item-active-color: $link-invert !default
6
+ $menu-item-active-background-color: $link !default
7
+
8
+ $menu-list-border-left: 1px solid $border !default
9
+
10
+ $menu-label-color: $text-light !default
11
+
12
+ .menu
13
+ font-size: $size-normal
14
+ // Sizes
15
+ &.is-small
16
+ font-size: $size-small
17
+ &.is-medium
18
+ font-size: $size-medium
19
+ &.is-large
20
+ font-size: $size-large
21
+
22
+ .menu-list
23
+ line-height: 1.25
24
+ a
25
+ border-radius: $menu-item-radius
26
+ color: $menu-item-color
27
+ display: block
28
+ padding: 0.5em 0.75em
29
+ &:hover
30
+ background-color: $menu-item-hover-background-color
31
+ color: $menu-item-hover-color
32
+ // Modifiers
33
+ &.is-active
34
+ background-color: $menu-item-active-background-color
35
+ color: $menu-item-active-color
36
+ li
37
+ ul
38
+ border-left: $menu-list-border-left
39
+ margin: 0.75em
40
+ padding-left: 0.75em
41
+
42
+ .menu-label
43
+ color: $menu-label-color
44
+ font-size: 0.75em
45
+ letter-spacing: 0.1em
46
+ text-transform: uppercase
47
+ &:not(:first-child)
48
+ margin-top: 1em
49
+ &:not(:last-child)
50
+ margin-bottom: 1em
@@ -0,0 +1,79 @@
1
+ $message-background-color: $background !default
2
+ $message-radius: $radius !default
3
+
4
+ $message-header-background-color: $text !default
5
+ $message-header-color: $text-invert !default
6
+ $message-header-padding: 0.5em 0.75em !default
7
+ $message-header-radius: $radius !default
8
+
9
+ $message-body-border: 1px solid $border !default
10
+ $message-body-color: $text !default
11
+ $message-body-padding: 1em 1.25em !default
12
+ $message-body-radius: $radius !default
13
+
14
+ $message-body-pre-background-color: $white !default
15
+ $message-body-pre-code-background-color: transparent !default
16
+
17
+ .message
18
+ +block
19
+ background-color: $message-background-color
20
+ border-radius: $message-radius
21
+ font-size: $size-normal
22
+ strong
23
+ color: currentColor
24
+ a:not(.button):not(.tag)
25
+ color: currentColor
26
+ text-decoration: underline
27
+ // Sizes
28
+ &.is-small
29
+ font-size: $size-small
30
+ &.is-medium
31
+ font-size: $size-medium
32
+ &.is-large
33
+ font-size: $size-large
34
+ // Colors
35
+ @each $name, $pair in $colors
36
+ $color: nth($pair, 1)
37
+ $color-invert: nth($pair, 2)
38
+ $color-lightning: max((100% - lightness($color)) - 2%, 0%)
39
+ $color-luminance: colorLuminance($color)
40
+ $darken-percentage: $color-luminance * 70%
41
+ $desaturate-percentage: $color-luminance * 30%
42
+ &.is-#{$name}
43
+ background-color: lighten($color, $color-lightning)
44
+ .message-header
45
+ background-color: $color
46
+ color: $color-invert
47
+ .message-body
48
+ border-color: $color
49
+ color: desaturate(darken($color, $darken-percentage), $desaturate-percentage)
50
+
51
+ .message-header
52
+ align-items: center
53
+ background-color: $message-header-background-color
54
+ border-radius: $message-header-radius $message-header-radius 0 0
55
+ color: $message-header-color
56
+ display: flex
57
+ justify-content: space-between
58
+ line-height: 1.25
59
+ padding: $message-header-padding
60
+ position: relative
61
+ .delete
62
+ flex-grow: 0
63
+ flex-shrink: 0
64
+ margin-left: 0.75em
65
+ & + .message-body
66
+ border-top-left-radius: 0
67
+ border-top-right-radius: 0
68
+ border-top: none
69
+
70
+ .message-body
71
+ border: $message-body-border
72
+ border-radius: $message-body-radius
73
+ color: $message-body-color
74
+ padding: $message-body-padding
75
+ code,
76
+ pre
77
+ background-color: $message-body-pre-background-color
78
+ pre code
79
+ background-color: $message-body-pre-code-background-color