bulma-rails 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -14
  3. data/app/assets/stylesheets/bulma.scss +4 -0
  4. data/app/assets/stylesheets/sass/_index.scss +10 -0
  5. data/app/assets/stylesheets/sass/base/_index.scss +6 -0
  6. data/app/assets/stylesheets/sass/base/animations.scss +15 -0
  7. data/app/assets/stylesheets/sass/base/generic.scss +239 -0
  8. data/app/assets/stylesheets/sass/base/minireset.scss +92 -0
  9. data/app/assets/stylesheets/sass/base/skeleton.scss +126 -0
  10. data/app/assets/stylesheets/sass/components/_index.scss +13 -0
  11. data/app/assets/stylesheets/sass/components/breadcrumb.scss +139 -0
  12. data/app/assets/stylesheets/sass/components/card.scss +162 -0
  13. data/app/assets/stylesheets/sass/components/dropdown.scss +188 -0
  14. data/app/assets/stylesheets/sass/components/menu.scss +165 -0
  15. data/app/assets/stylesheets/sass/components/message.scss +183 -0
  16. data/app/assets/stylesheets/sass/components/modal.scss +164 -0
  17. data/app/assets/stylesheets/sass/components/navbar.scss +788 -0
  18. data/app/assets/stylesheets/sass/components/pagination.scss +379 -0
  19. data/app/assets/stylesheets/sass/components/panel.scss +218 -0
  20. data/app/assets/stylesheets/sass/components/tabs.scss +273 -0
  21. data/app/assets/stylesheets/sass/elements/_index.scss +16 -0
  22. data/app/assets/stylesheets/sass/elements/block.scss +6 -0
  23. data/app/assets/stylesheets/sass/elements/box.scss +59 -0
  24. data/app/assets/stylesheets/sass/elements/button.scss +640 -0
  25. data/app/assets/stylesheets/sass/elements/content.scss +283 -0
  26. data/app/assets/stylesheets/sass/elements/delete.scss +6 -0
  27. data/app/assets/stylesheets/sass/elements/icon.scss +67 -0
  28. data/app/assets/stylesheets/sass/elements/image.scss +62 -0
  29. data/app/assets/stylesheets/sass/elements/loader.scss +15 -0
  30. data/app/assets/stylesheets/sass/elements/notification.scss +105 -0
  31. data/app/assets/stylesheets/sass/elements/progress.scss +115 -0
  32. data/app/assets/stylesheets/sass/elements/table.scss +261 -0
  33. data/app/assets/stylesheets/sass/elements/tag.scss +219 -0
  34. data/app/assets/stylesheets/sass/elements/title.scss +128 -0
  35. data/app/assets/stylesheets/sass/form/_index.scss +9 -0
  36. data/app/assets/stylesheets/sass/form/checkbox-radio.scss +32 -0
  37. data/app/assets/stylesheets/sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/sass/form/input-textarea.scss +123 -0
  39. data/app/assets/stylesheets/sass/form/select.scss +143 -0
  40. data/app/assets/stylesheets/sass/form/shared.scss +172 -0
  41. data/app/assets/stylesheets/sass/form/tools.scss +341 -0
  42. data/app/assets/stylesheets/sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/sass/grid/columns-v2.scss +957 -0
  44. data/app/assets/stylesheets/sass/grid/columns.scss +877 -0
  45. data/app/assets/stylesheets/sass/grid/grid.scss +209 -0
  46. data/app/assets/stylesheets/sass/helpers/_index.scss +15 -0
  47. data/app/assets/stylesheets/sass/helpers/aspect-ratio.scss +10 -0
  48. data/app/assets/stylesheets/sass/helpers/border.scss +15 -0
  49. data/app/assets/stylesheets/sass/helpers/color.scss +364 -0
  50. data/app/assets/stylesheets/sass/helpers/flexbox.scss +62 -0
  51. data/app/assets/stylesheets/sass/helpers/float.scss +28 -0
  52. data/app/assets/stylesheets/sass/helpers/gap.scss +24 -0
  53. data/app/assets/stylesheets/sass/helpers/other.scss +19 -0
  54. data/app/assets/stylesheets/sass/helpers/overflow.scss +21 -0
  55. data/app/assets/stylesheets/sass/helpers/position.scss +19 -0
  56. data/app/assets/stylesheets/sass/helpers/spacing.scss +64 -0
  57. data/app/assets/stylesheets/sass/helpers/typography.scss +168 -0
  58. data/app/assets/stylesheets/sass/helpers/visibility.scss +221 -0
  59. data/app/assets/stylesheets/sass/layout/_index.scss +9 -0
  60. data/app/assets/stylesheets/sass/layout/container.scss +51 -0
  61. data/app/assets/stylesheets/sass/layout/footer.scss +23 -0
  62. data/app/assets/stylesheets/sass/layout/hero.scss +270 -0
  63. data/app/assets/stylesheets/sass/layout/level.scss +107 -0
  64. data/app/assets/stylesheets/sass/layout/media.scss +106 -0
  65. data/app/assets/stylesheets/sass/layout/section.scss +34 -0
  66. data/app/assets/stylesheets/sass/themes/_index.scss +35 -0
  67. data/app/assets/stylesheets/sass/themes/dark.scss +56 -0
  68. data/app/assets/stylesheets/sass/themes/light.scss +145 -0
  69. data/app/assets/stylesheets/sass/themes/setup.scss +174 -0
  70. data/app/assets/stylesheets/sass/utilities/_index.scss +7 -0
  71. data/app/assets/stylesheets/sass/utilities/controls.scss +85 -0
  72. data/app/assets/stylesheets/sass/utilities/css-variables.scss +425 -0
  73. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +86 -106
  74. data/app/assets/stylesheets/sass/utilities/extends.scss +34 -0
  75. data/app/assets/stylesheets/sass/utilities/functions.scss +258 -0
  76. data/app/assets/stylesheets/sass/utilities/initial-variables.scss +155 -0
  77. data/app/assets/stylesheets/sass/utilities/mixins.scss +460 -0
  78. data/bulma-rails.gemspec +4 -6
  79. metadata +80 -67
  80. data/app/assets/stylesheets/bulma.sass +0 -10
  81. data/app/assets/stylesheets/sass/base/_all.sass +0 -4
  82. data/app/assets/stylesheets/sass/base/generic.sass +0 -142
  83. data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
  84. data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
  85. data/app/assets/stylesheets/sass/components/_all.sass +0 -14
  86. data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -75
  87. data/app/assets/stylesheets/sass/components/card.sass +0 -79
  88. data/app/assets/stylesheets/sass/components/dropdown.sass +0 -81
  89. data/app/assets/stylesheets/sass/components/level.sass +0 -77
  90. data/app/assets/stylesheets/sass/components/media.sass +0 -52
  91. data/app/assets/stylesheets/sass/components/menu.sass +0 -57
  92. data/app/assets/stylesheets/sass/components/message.sass +0 -99
  93. data/app/assets/stylesheets/sass/components/modal.sass +0 -113
  94. data/app/assets/stylesheets/sass/components/navbar.sass +0 -441
  95. data/app/assets/stylesheets/sass/components/pagination.sass +0 -150
  96. data/app/assets/stylesheets/sass/components/panel.sass +0 -119
  97. data/app/assets/stylesheets/sass/components/tabs.sass +0 -174
  98. data/app/assets/stylesheets/sass/elements/_all.sass +0 -15
  99. data/app/assets/stylesheets/sass/elements/box.sass +0 -24
  100. data/app/assets/stylesheets/sass/elements/button.sass +0 -323
  101. data/app/assets/stylesheets/sass/elements/container.sass +0 -24
  102. data/app/assets/stylesheets/sass/elements/content.sass +0 -155
  103. data/app/assets/stylesheets/sass/elements/form.sass +0 -1
  104. data/app/assets/stylesheets/sass/elements/icon.sass +0 -21
  105. data/app/assets/stylesheets/sass/elements/image.sass +0 -71
  106. data/app/assets/stylesheets/sass/elements/notification.sass +0 -48
  107. data/app/assets/stylesheets/sass/elements/other.sass +0 -39
  108. data/app/assets/stylesheets/sass/elements/progress.sass +0 -67
  109. data/app/assets/stylesheets/sass/elements/table.sass +0 -129
  110. data/app/assets/stylesheets/sass/elements/tag.sass +0 -136
  111. data/app/assets/stylesheets/sass/elements/title.sass +0 -70
  112. data/app/assets/stylesheets/sass/form/_all.sass +0 -8
  113. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -21
  114. data/app/assets/stylesheets/sass/form/file.sass +0 -180
  115. data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -64
  116. data/app/assets/stylesheets/sass/form/select.sass +0 -85
  117. data/app/assets/stylesheets/sass/form/shared.sass +0 -55
  118. data/app/assets/stylesheets/sass/form/tools.sass +0 -213
  119. data/app/assets/stylesheets/sass/grid/_all.sass +0 -4
  120. data/app/assets/stylesheets/sass/grid/columns.sass +0 -504
  121. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -34
  122. data/app/assets/stylesheets/sass/helpers/_all.sass +0 -10
  123. data/app/assets/stylesheets/sass/helpers/color.sass +0 -37
  124. data/app/assets/stylesheets/sass/helpers/float.sass +0 -8
  125. data/app/assets/stylesheets/sass/helpers/other.sass +0 -8
  126. data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
  127. data/app/assets/stylesheets/sass/helpers/position.sass +0 -5
  128. data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -28
  129. data/app/assets/stylesheets/sass/helpers/typography.sass +0 -98
  130. data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
  131. data/app/assets/stylesheets/sass/layout/_all.sass +0 -5
  132. data/app/assets/stylesheets/sass/layout/footer.sass +0 -9
  133. data/app/assets/stylesheets/sass/layout/hero.sass +0 -145
  134. data/app/assets/stylesheets/sass/layout/section.sass +0 -13
  135. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -8
  136. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -5
  137. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -50
  138. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -115
  139. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -78
  140. data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -285
@@ -1,67 +0,0 @@
1
- $progress-bar-background-color: $border-light !default
2
- $progress-value-background-color: $text !default
3
- $progress-border-radius: $radius-rounded !default
4
-
5
- $progress-indeterminate-duration: 1.5s !default
6
-
7
- .progress
8
- @extend %block
9
- -moz-appearance: none
10
- -webkit-appearance: none
11
- border: none
12
- border-radius: $progress-border-radius
13
- display: block
14
- height: $size-normal
15
- overflow: hidden
16
- padding: 0
17
- width: 100%
18
- &::-webkit-progress-bar
19
- background-color: $progress-bar-background-color
20
- &::-webkit-progress-value
21
- background-color: $progress-value-background-color
22
- &::-moz-progress-bar
23
- background-color: $progress-value-background-color
24
- &::-ms-fill
25
- background-color: $progress-value-background-color
26
- border: none
27
- // Colors
28
- @each $name, $pair in $colors
29
- $color: nth($pair, 1)
30
- &.is-#{$name}
31
- &::-webkit-progress-value
32
- background-color: $color
33
- &::-moz-progress-bar
34
- background-color: $color
35
- &::-ms-fill
36
- background-color: $color
37
- &:indeterminate
38
- background-image: linear-gradient(to right, $color 30%, $progress-bar-background-color 30%)
39
-
40
- &:indeterminate
41
- animation-duration: $progress-indeterminate-duration
42
- animation-iteration-count: infinite
43
- animation-name: moveIndeterminate
44
- animation-timing-function: linear
45
- background-color: $progress-bar-background-color
46
- background-image: linear-gradient(to right, $text 30%, $progress-bar-background-color 30%)
47
- background-position: top left
48
- background-repeat: no-repeat
49
- background-size: 150% 150%
50
- &::-webkit-progress-bar
51
- background-color: transparent
52
- &::-moz-progress-bar
53
- background-color: transparent
54
-
55
- // Sizes
56
- &.is-small
57
- height: $size-small
58
- &.is-medium
59
- height: $size-medium
60
- &.is-large
61
- height: $size-large
62
-
63
- @keyframes moveIndeterminate
64
- from
65
- background-position: 200% 0
66
- to
67
- background-position: -200% 0
@@ -1,129 +0,0 @@
1
- $table-color: $text-strong !default
2
- $table-background-color: $scheme-main !default
3
-
4
- $table-cell-border: 1px solid $border !default
5
- $table-cell-border-width: 0 0 1px !default
6
- $table-cell-padding: 0.5em 0.75em !default
7
- $table-cell-heading-color: $text-strong !default
8
-
9
- $table-head-cell-border-width: 0 0 2px !default
10
- $table-head-cell-color: $text-strong !default
11
- $table-foot-cell-border-width: 2px 0 0 !default
12
- $table-foot-cell-color: $text-strong !default
13
-
14
- $table-head-background-color: transparent !default
15
- $table-body-background-color: transparent !default
16
- $table-foot-background-color: transparent !default
17
-
18
- $table-row-hover-background-color: $scheme-main-bis !default
19
-
20
- $table-row-active-background-color: $primary !default
21
- $table-row-active-color: $primary-invert !default
22
-
23
- $table-striped-row-even-background-color: $scheme-main-bis !default
24
- $table-striped-row-even-hover-background-color: $scheme-main-ter !default
25
-
26
- .table
27
- @extend %block
28
- background-color: $table-background-color
29
- color: $table-color
30
- td,
31
- th
32
- border: $table-cell-border
33
- border-width: $table-cell-border-width
34
- padding: $table-cell-padding
35
- vertical-align: top
36
- // Colors
37
- @each $name, $pair in $colors
38
- $color: nth($pair, 1)
39
- $color-invert: nth($pair, 2)
40
- &.is-#{$name}
41
- background-color: $color
42
- border-color: $color
43
- color: $color-invert
44
- // Modifiers
45
- &.is-narrow
46
- white-space: nowrap
47
- width: 1%
48
- &.is-selected
49
- background-color: $table-row-active-background-color
50
- color: $table-row-active-color
51
- a,
52
- strong
53
- color: currentColor
54
- &.is-vcentered
55
- vertical-align: middle
56
- th
57
- color: $table-cell-heading-color
58
- &:not([align])
59
- text-align: inherit
60
- tr
61
- &.is-selected
62
- background-color: $table-row-active-background-color
63
- color: $table-row-active-color
64
- a,
65
- strong
66
- color: currentColor
67
- td,
68
- th
69
- border-color: $table-row-active-color
70
- color: currentColor
71
- thead
72
- background-color: $table-head-background-color
73
- td,
74
- th
75
- border-width: $table-head-cell-border-width
76
- color: $table-head-cell-color
77
- tfoot
78
- background-color: $table-foot-background-color
79
- td,
80
- th
81
- border-width: $table-foot-cell-border-width
82
- color: $table-foot-cell-color
83
- tbody
84
- background-color: $table-body-background-color
85
- tr
86
- &:last-child
87
- td,
88
- th
89
- border-bottom-width: 0
90
- // Modifiers
91
- &.is-bordered
92
- td,
93
- th
94
- border-width: 1px
95
- tr
96
- &:last-child
97
- td,
98
- th
99
- border-bottom-width: 1px
100
- &.is-fullwidth
101
- width: 100%
102
- &.is-hoverable
103
- tbody
104
- tr:not(.is-selected)
105
- &:hover
106
- background-color: $table-row-hover-background-color
107
- &.is-striped
108
- tbody
109
- tr:not(.is-selected)
110
- &:hover
111
- background-color: $table-row-hover-background-color
112
- &:nth-child(even)
113
- background-color: $table-striped-row-even-hover-background-color
114
- &.is-narrow
115
- td,
116
- th
117
- padding: 0.25em 0.5em
118
- &.is-striped
119
- tbody
120
- tr:not(.is-selected)
121
- &:nth-child(even)
122
- background-color: $table-striped-row-even-background-color
123
-
124
- .table-container
125
- @extend %block
126
- +overflow-touch
127
- overflow: auto
128
- overflow-y: hidden
129
- max-width: 100%
@@ -1,136 +0,0 @@
1
- $tag-background-color: $background !default
2
- $tag-color: $text !default
3
- $tag-radius: $radius !default
4
- $tag-delete-margin: 1px !default
5
-
6
- .tags
7
- align-items: center
8
- display: flex
9
- flex-wrap: wrap
10
- justify-content: flex-start
11
- .tag
12
- margin-bottom: 0.5rem
13
- &:not(:last-child)
14
- +ltr-property("margin", 0.5rem)
15
- &:last-child
16
- margin-bottom: -0.5rem
17
- &:not(:last-child)
18
- margin-bottom: 1rem
19
- // Sizes
20
- &.are-medium
21
- .tag:not(.is-normal):not(.is-large)
22
- font-size: $size-normal
23
- &.are-large
24
- .tag:not(.is-normal):not(.is-medium)
25
- font-size: $size-medium
26
- &.is-centered
27
- justify-content: center
28
- .tag
29
- margin-right: 0.25rem
30
- margin-left: 0.25rem
31
- &.is-right
32
- justify-content: flex-end
33
- .tag
34
- &:not(:first-child)
35
- margin-left: 0.5rem
36
- &:not(:last-child)
37
- margin-right: 0
38
- &.has-addons
39
- .tag
40
- +ltr-property("margin", 0)
41
- &:not(:first-child)
42
- +ltr-property("margin", 0, false)
43
- +ltr
44
- border-top-left-radius: 0
45
- border-bottom-left-radius: 0
46
- +rtl
47
- border-top-right-radius: 0
48
- border-bottom-right-radius: 0
49
- &:not(:last-child)
50
- +ltr
51
- border-top-right-radius: 0
52
- border-bottom-right-radius: 0
53
- +rtl
54
- border-top-left-radius: 0
55
- border-bottom-left-radius: 0
56
-
57
- .tag:not(body)
58
- align-items: center
59
- background-color: $tag-background-color
60
- border-radius: $tag-radius
61
- color: $tag-color
62
- display: inline-flex
63
- font-size: $size-small
64
- height: 2em
65
- justify-content: center
66
- line-height: 1.5
67
- padding-left: 0.75em
68
- padding-right: 0.75em
69
- white-space: nowrap
70
- .delete
71
- +ltr-property("margin", 0.25rem, false)
72
- +ltr-property("margin", -0.375rem)
73
- // Colors
74
- @each $name, $pair in $colors
75
- $color: nth($pair, 1)
76
- $color-invert: nth($pair, 2)
77
- &.is-#{$name}
78
- background-color: $color
79
- color: $color-invert
80
- // If a light and dark colors are provided
81
- @if length($pair) > 3
82
- $color-light: nth($pair, 3)
83
- $color-dark: nth($pair, 4)
84
- &.is-light
85
- background-color: $color-light
86
- color: $color-dark
87
- // Sizes
88
- &.is-normal
89
- font-size: $size-small
90
- &.is-medium
91
- font-size: $size-normal
92
- &.is-large
93
- font-size: $size-medium
94
- .icon
95
- &:first-child:not(:last-child)
96
- +ltr-property("margin", -0.375em, false)
97
- +ltr-property("margin", 0.1875em)
98
- &:last-child:not(:first-child)
99
- +ltr-property("margin", 0.1875em, false)
100
- +ltr-property("margin", -0.375em)
101
- &:first-child:last-child
102
- +ltr-property("margin", -0.375em, false)
103
- +ltr-property("margin", -0.375em)
104
- // Modifiers
105
- &.is-delete
106
- +ltr-property("margin", $tag-delete-margin, false)
107
- padding: 0
108
- position: relative
109
- width: 2em
110
- &::before,
111
- &::after
112
- background-color: currentColor
113
- content: ""
114
- display: block
115
- left: 50%
116
- position: absolute
117
- top: 50%
118
- transform: translateX(-50%) translateY(-50%) rotate(45deg)
119
- transform-origin: center center
120
- &::before
121
- height: 1px
122
- width: 50%
123
- &::after
124
- height: 50%
125
- width: 1px
126
- &:hover,
127
- &:focus
128
- background-color: darken($tag-background-color, 5%)
129
- &:active
130
- background-color: darken($tag-background-color, 10%)
131
- &.is-rounded
132
- border-radius: $radius-rounded
133
-
134
- a.tag
135
- &:hover
136
- text-decoration: underline
@@ -1,70 +0,0 @@
1
- $title-color: $text-strong !default
2
- $title-family: false !default
3
- $title-size: $size-3 !default
4
- $title-weight: $weight-semibold !default
5
- $title-line-height: 1.125 !default
6
- $title-strong-color: inherit !default
7
- $title-strong-weight: inherit !default
8
- $title-sub-size: 0.75em !default
9
- $title-sup-size: 0.75em !default
10
-
11
- $subtitle-color: $text !default
12
- $subtitle-family: false !default
13
- $subtitle-size: $size-5 !default
14
- $subtitle-weight: $weight-normal !default
15
- $subtitle-line-height: 1.25 !default
16
- $subtitle-strong-color: $text-strong !default
17
- $subtitle-strong-weight: $weight-semibold !default
18
- $subtitle-negative-margin: -1.25rem !default
19
-
20
- .title,
21
- .subtitle
22
- @extend %block
23
- word-break: break-word
24
- em,
25
- span
26
- font-weight: inherit
27
- sub
28
- font-size: $title-sub-size
29
- sup
30
- font-size: $title-sup-size
31
- .tag
32
- vertical-align: middle
33
-
34
- .title
35
- color: $title-color
36
- @if $title-family
37
- font-family: $title-family
38
- font-size: $title-size
39
- font-weight: $title-weight
40
- line-height: $title-line-height
41
- strong
42
- color: $title-strong-color
43
- font-weight: $title-strong-weight
44
- & + .highlight
45
- margin-top: -0.75rem
46
- &:not(.is-spaced) + .subtitle
47
- margin-top: $subtitle-negative-margin
48
- // Sizes
49
- @each $size in $sizes
50
- $i: index($sizes, $size)
51
- &.is-#{$i}
52
- font-size: $size
53
-
54
- .subtitle
55
- color: $subtitle-color
56
- @if $subtitle-family
57
- font-family: $subtitle-family
58
- font-size: $subtitle-size
59
- font-weight: $subtitle-weight
60
- line-height: $subtitle-line-height
61
- strong
62
- color: $subtitle-strong-color
63
- font-weight: $subtitle-strong-weight
64
- &:not(.is-spaced) + .title
65
- margin-top: $subtitle-negative-margin
66
- // Sizes
67
- @each $size in $sizes
68
- $i: index($sizes, $size)
69
- &.is-#{$i}
70
- font-size: $size
@@ -1,8 +0,0 @@
1
- @charset "utf-8"
2
-
3
- @import "shared.sass"
4
- @import "input-textarea.sass"
5
- @import "checkbox-radio.sass"
6
- @import "select.sass"
7
- @import "file.sass"
8
- @import "tools.sass"
@@ -1,21 +0,0 @@
1
- %checkbox-radio
2
- cursor: pointer
3
- display: inline-block
4
- line-height: 1.25
5
- position: relative
6
- input
7
- cursor: pointer
8
- &:hover
9
- color: $input-hover-color
10
- &[disabled],
11
- fieldset[disabled] &
12
- color: $input-disabled-color
13
- cursor: not-allowed
14
-
15
- .checkbox
16
- @extend %checkbox-radio
17
-
18
- .radio
19
- @extend %checkbox-radio
20
- & + .radio
21
- +ltr-property("margin", 0.5em, false)
@@ -1,180 +0,0 @@
1
- $file-border-color: $border !default
2
- $file-radius: $radius !default
3
-
4
- $file-cta-background-color: $scheme-main-ter !default
5
- $file-cta-color: $text !default
6
- $file-cta-hover-color: $text-strong !default
7
- $file-cta-active-color: $text-strong !default
8
-
9
- $file-name-border-color: $border !default
10
- $file-name-border-style: solid !default
11
- $file-name-border-width: 1px 1px 1px 0 !default
12
- $file-name-max-width: 16em !default
13
-
14
- .file
15
- @extend %unselectable
16
- align-items: stretch
17
- display: flex
18
- justify-content: flex-start
19
- position: relative
20
- // Colors
21
- @each $name, $pair in $colors
22
- $color: nth($pair, 1)
23
- $color-invert: nth($pair, 2)
24
- &.is-#{$name}
25
- .file-cta
26
- background-color: $color
27
- border-color: transparent
28
- color: $color-invert
29
- &:hover,
30
- &.is-hovered
31
- .file-cta
32
- background-color: bulmaDarken($color, 2.5%)
33
- border-color: transparent
34
- color: $color-invert
35
- &:focus,
36
- &.is-focused
37
- .file-cta
38
- border-color: transparent
39
- box-shadow: 0 0 0.5em bulmaRgba($color, 0.25)
40
- color: $color-invert
41
- &:active,
42
- &.is-active
43
- .file-cta
44
- background-color: bulmaDarken($color, 5%)
45
- border-color: transparent
46
- color: $color-invert
47
- // Sizes
48
- &.is-small
49
- font-size: $size-small
50
- &.is-medium
51
- font-size: $size-medium
52
- .file-icon
53
- .fa
54
- font-size: 21px
55
- &.is-large
56
- font-size: $size-large
57
- .file-icon
58
- .fa
59
- font-size: 28px
60
- // Modifiers
61
- &.has-name
62
- .file-cta
63
- border-bottom-right-radius: 0
64
- border-top-right-radius: 0
65
- .file-name
66
- border-bottom-left-radius: 0
67
- border-top-left-radius: 0
68
- &.is-empty
69
- .file-cta
70
- border-radius: $file-radius
71
- .file-name
72
- display: none
73
- &.is-boxed
74
- .file-label
75
- flex-direction: column
76
- .file-cta
77
- flex-direction: column
78
- height: auto
79
- padding: 1em 3em
80
- .file-name
81
- border-width: 0 1px 1px
82
- .file-icon
83
- height: 1.5em
84
- width: 1.5em
85
- .fa
86
- font-size: 21px
87
- &.is-small
88
- .file-icon .fa
89
- font-size: 14px
90
- &.is-medium
91
- .file-icon .fa
92
- font-size: 28px
93
- &.is-large
94
- .file-icon .fa
95
- font-size: 35px
96
- &.has-name
97
- .file-cta
98
- border-radius: $file-radius $file-radius 0 0
99
- .file-name
100
- border-radius: 0 0 $file-radius $file-radius
101
- border-width: 0 1px 1px
102
- &.is-centered
103
- justify-content: center
104
- &.is-fullwidth
105
- .file-label
106
- width: 100%
107
- .file-name
108
- flex-grow: 1
109
- max-width: none
110
- &.is-right
111
- justify-content: flex-end
112
- .file-cta
113
- border-radius: 0 $file-radius $file-radius 0
114
- .file-name
115
- border-radius: $file-radius 0 0 $file-radius
116
- border-width: 1px 0 1px 1px
117
- order: -1
118
-
119
- .file-label
120
- align-items: stretch
121
- display: flex
122
- cursor: pointer
123
- justify-content: flex-start
124
- overflow: hidden
125
- position: relative
126
- &:hover
127
- .file-cta
128
- background-color: bulmaDarken($file-cta-background-color, 2.5%)
129
- color: $file-cta-hover-color
130
- .file-name
131
- border-color: bulmaDarken($file-name-border-color, 2.5%)
132
- &:active
133
- .file-cta
134
- background-color: bulmaDarken($file-cta-background-color, 5%)
135
- color: $file-cta-active-color
136
- .file-name
137
- border-color: bulmaDarken($file-name-border-color, 5%)
138
-
139
- .file-input
140
- height: 100%
141
- left: 0
142
- opacity: 0
143
- outline: none
144
- position: absolute
145
- top: 0
146
- width: 100%
147
-
148
- .file-cta,
149
- .file-name
150
- @extend %control
151
- border-color: $file-border-color
152
- border-radius: $file-radius
153
- font-size: 1em
154
- padding-left: 1em
155
- padding-right: 1em
156
- white-space: nowrap
157
-
158
- .file-cta
159
- background-color: $file-cta-background-color
160
- color: $file-cta-color
161
-
162
- .file-name
163
- border-color: $file-name-border-color
164
- border-style: $file-name-border-style
165
- border-width: $file-name-border-width
166
- display: block
167
- max-width: $file-name-max-width
168
- overflow: hidden
169
- text-align: inherit
170
- text-overflow: ellipsis
171
-
172
- .file-icon
173
- align-items: center
174
- display: flex
175
- height: 1em
176
- justify-content: center
177
- +ltr-property("margin", 0.5em)
178
- width: 1em
179
- .fa
180
- font-size: 14px
@@ -1,64 +0,0 @@
1
- $textarea-padding: $control-padding-horizontal !default
2
- $textarea-max-height: 40em !default
3
- $textarea-min-height: 8em !default
4
-
5
- %input-textarea
6
- @extend %input
7
- box-shadow: $input-shadow
8
- max-width: 100%
9
- width: 100%
10
- &[readonly]
11
- box-shadow: none
12
- // Colors
13
- @each $name, $pair in $colors
14
- $color: nth($pair, 1)
15
- &.is-#{$name}
16
- border-color: $color
17
- &:focus,
18
- &.is-focused,
19
- &:active,
20
- &.is-active
21
- box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
22
- // Sizes
23
- &.is-small
24
- +control-small
25
- &.is-medium
26
- +control-medium
27
- &.is-large
28
- +control-large
29
- // Modifiers
30
- &.is-fullwidth
31
- display: block
32
- width: 100%
33
- &.is-inline
34
- display: inline
35
- width: auto
36
-
37
- .input
38
- @extend %input-textarea
39
- &.is-rounded
40
- border-radius: $radius-rounded
41
- padding-left: calc(#{$control-padding-horizontal} + 0.375em)
42
- padding-right: calc(#{$control-padding-horizontal} + 0.375em)
43
- &.is-static
44
- background-color: transparent
45
- border-color: transparent
46
- box-shadow: none
47
- padding-left: 0
48
- padding-right: 0
49
-
50
- .textarea
51
- @extend %input-textarea
52
- display: block
53
- max-width: 100%
54
- min-width: 100%
55
- padding: $textarea-padding
56
- resize: vertical
57
- &:not([rows])
58
- max-height: $textarea-max-height
59
- min-height: $textarea-min-height
60
- &[rows]
61
- height: initial
62
- // Modifiers
63
- &.has-fixed-size
64
- resize: none