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,99 +0,0 @@
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-weight: $weight-bold !default
7
- $message-header-padding: 0.75em 1em !default
8
- $message-header-radius: $radius !default
9
-
10
- $message-body-border-color: $border !default
11
- $message-body-border-width: 0 0 0 4px !default
12
- $message-body-color: $text !default
13
- $message-body-padding: 1.25em 1.5em !default
14
- $message-body-radius: $radius !default
15
-
16
- $message-body-pre-background-color: $scheme-main !default
17
- $message-body-pre-code-background-color: transparent !default
18
-
19
- $message-header-body-border-width: 0 !default
20
- $message-colors: $colors !default
21
-
22
- .message
23
- @extend %block
24
- background-color: $message-background-color
25
- border-radius: $message-radius
26
- font-size: $size-normal
27
- strong
28
- color: currentColor
29
- a:not(.button):not(.tag):not(.dropdown-item)
30
- color: currentColor
31
- text-decoration: underline
32
- // Sizes
33
- &.is-small
34
- font-size: $size-small
35
- &.is-medium
36
- font-size: $size-medium
37
- &.is-large
38
- font-size: $size-large
39
- // Colors
40
- @each $name, $components in $message-colors
41
- $color: nth($components, 1)
42
- $color-invert: nth($components, 2)
43
- $color-light: null
44
- $color-dark: null
45
-
46
- @if length($components) >= 3
47
- $color-light: nth($components, 3)
48
- @if length($components) >= 4
49
- $color-dark: nth($components, 4)
50
- @else
51
- $color-luminance: colorLuminance($color)
52
- $darken-percentage: $color-luminance * 70%
53
- $desaturate-percentage: $color-luminance * 30%
54
- $color-dark: desaturate(darken($color, $darken-percentage), $desaturate-percentage)
55
- @else
56
- $color-lightning: max((100% - lightness($color)) - 2%, 0%)
57
- $color-light: lighten($color, $color-lightning)
58
-
59
- &.is-#{$name}
60
- background-color: $color-light
61
- .message-header
62
- background-color: $color
63
- color: $color-invert
64
- .message-body
65
- border-color: $color
66
- color: $color-dark
67
-
68
- .message-header
69
- align-items: center
70
- background-color: $message-header-background-color
71
- border-radius: $message-header-radius $message-header-radius 0 0
72
- color: $message-header-color
73
- display: flex
74
- font-weight: $message-header-weight
75
- justify-content: space-between
76
- line-height: 1.25
77
- padding: $message-header-padding
78
- position: relative
79
- .delete
80
- flex-grow: 0
81
- flex-shrink: 0
82
- +ltr-property("margin", 0.75em, false)
83
- & + .message-body
84
- border-width: $message-header-body-border-width
85
- border-top-left-radius: 0
86
- border-top-right-radius: 0
87
-
88
- .message-body
89
- border-color: $message-body-border-color
90
- border-radius: $message-body-radius
91
- border-style: solid
92
- border-width: $message-body-border-width
93
- color: $message-body-color
94
- padding: $message-body-padding
95
- code,
96
- pre
97
- background-color: $message-body-pre-background-color
98
- pre code
99
- background-color: $message-body-pre-code-background-color
@@ -1,113 +0,0 @@
1
- $modal-z: 40 !default
2
-
3
- $modal-background-background-color: bulmaRgba($scheme-invert, 0.86) !default
4
-
5
- $modal-content-width: 640px !default
6
- $modal-content-margin-mobile: 20px !default
7
- $modal-content-spacing-mobile: 160px !default
8
- $modal-content-spacing-tablet: 40px !default
9
-
10
- $modal-close-dimensions: 40px !default
11
- $modal-close-right: 20px !default
12
- $modal-close-top: 20px !default
13
-
14
- $modal-card-spacing: 40px !default
15
-
16
- $modal-card-head-background-color: $background !default
17
- $modal-card-head-border-bottom: 1px solid $border !default
18
- $modal-card-head-padding: 20px !default
19
- $modal-card-head-radius: $radius-large !default
20
-
21
- $modal-card-title-color: $text-strong !default
22
- $modal-card-title-line-height: 1 !default
23
- $modal-card-title-size: $size-4 !default
24
-
25
- $modal-card-foot-radius: $radius-large !default
26
- $modal-card-foot-border-top: 1px solid $border !default
27
-
28
- $modal-card-body-background-color: $scheme-main !default
29
- $modal-card-body-padding: 20px !default
30
-
31
- .modal
32
- @extend %overlay
33
- align-items: center
34
- display: none
35
- flex-direction: column
36
- justify-content: center
37
- overflow: hidden
38
- position: fixed
39
- z-index: $modal-z
40
- // Modifiers
41
- &.is-active
42
- display: flex
43
-
44
- .modal-background
45
- @extend %overlay
46
- background-color: $modal-background-background-color
47
-
48
- .modal-content,
49
- .modal-card
50
- margin: 0 $modal-content-margin-mobile
51
- max-height: calc(100vh - #{$modal-content-spacing-mobile})
52
- overflow: auto
53
- position: relative
54
- width: 100%
55
- // Responsiveness
56
- +tablet
57
- margin: 0 auto
58
- max-height: calc(100vh - #{$modal-content-spacing-tablet})
59
- width: $modal-content-width
60
-
61
- .modal-close
62
- @extend %delete
63
- background: none
64
- height: $modal-close-dimensions
65
- position: fixed
66
- +ltr-position($modal-close-right)
67
- top: $modal-close-top
68
- width: $modal-close-dimensions
69
-
70
- .modal-card
71
- display: flex
72
- flex-direction: column
73
- max-height: calc(100vh - #{$modal-card-spacing})
74
- overflow: hidden
75
- -ms-overflow-y: visible
76
-
77
- .modal-card-head,
78
- .modal-card-foot
79
- align-items: center
80
- background-color: $modal-card-head-background-color
81
- display: flex
82
- flex-shrink: 0
83
- justify-content: flex-start
84
- padding: $modal-card-head-padding
85
- position: relative
86
-
87
- .modal-card-head
88
- border-bottom: $modal-card-head-border-bottom
89
- border-top-left-radius: $modal-card-head-radius
90
- border-top-right-radius: $modal-card-head-radius
91
-
92
- .modal-card-title
93
- color: $modal-card-title-color
94
- flex-grow: 1
95
- flex-shrink: 0
96
- font-size: $modal-card-title-size
97
- line-height: $modal-card-title-line-height
98
-
99
- .modal-card-foot
100
- border-bottom-left-radius: $modal-card-foot-radius
101
- border-bottom-right-radius: $modal-card-foot-radius
102
- border-top: $modal-card-foot-border-top
103
- .button
104
- &:not(:last-child)
105
- +ltr-property("margin", 0.5em)
106
-
107
- .modal-card-body
108
- +overflow-touch
109
- background-color: $modal-card-body-background-color
110
- flex-grow: 1
111
- flex-shrink: 1
112
- overflow: auto
113
- padding: $modal-card-body-padding
@@ -1,441 +0,0 @@
1
- $navbar-background-color: $scheme-main !default
2
- $navbar-box-shadow-size: 0 2px 0 0 !default
3
- $navbar-box-shadow-color: $background !default
4
- $navbar-height: 3.25rem !default
5
- $navbar-padding-vertical: 1rem !default
6
- $navbar-padding-horizontal: 2rem !default
7
- $navbar-z: 30 !default
8
- $navbar-fixed-z: 30 !default
9
-
10
- $navbar-item-color: $text !default
11
- $navbar-item-hover-color: $link !default
12
- $navbar-item-hover-background-color: $scheme-main-bis !default
13
- $navbar-item-active-color: $scheme-invert !default
14
- $navbar-item-active-background-color: transparent !default
15
- $navbar-item-img-max-height: 1.75rem !default
16
-
17
- $navbar-burger-color: $navbar-item-color !default
18
-
19
- $navbar-tab-hover-background-color: transparent !default
20
- $navbar-tab-hover-border-bottom-color: $link !default
21
- $navbar-tab-active-color: $link !default
22
- $navbar-tab-active-background-color: transparent !default
23
- $navbar-tab-active-border-bottom-color: $link !default
24
- $navbar-tab-active-border-bottom-style: solid !default
25
- $navbar-tab-active-border-bottom-width: 3px !default
26
-
27
- $navbar-dropdown-background-color: $scheme-main !default
28
- $navbar-dropdown-border-top: 2px solid $border !default
29
- $navbar-dropdown-offset: -4px !default
30
- $navbar-dropdown-arrow: $link !default
31
- $navbar-dropdown-radius: $radius-large !default
32
- $navbar-dropdown-z: 20 !default
33
-
34
- $navbar-dropdown-boxed-radius: $radius-large !default
35
- $navbar-dropdown-boxed-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1), 0 0 0 1px bulmaRgba($scheme-invert, 0.1) !default
36
-
37
- $navbar-dropdown-item-hover-color: $scheme-invert !default
38
- $navbar-dropdown-item-hover-background-color: $background !default
39
- $navbar-dropdown-item-active-color: $link !default
40
- $navbar-dropdown-item-active-background-color: $background !default
41
-
42
- $navbar-divider-background-color: $background !default
43
- $navbar-divider-height: 2px !default
44
-
45
- $navbar-bottom-box-shadow-size: 0 -2px 0 0 !default
46
-
47
- $navbar-breakpoint: $desktop !default
48
-
49
- =navbar-fixed
50
- left: 0
51
- position: fixed
52
- right: 0
53
- z-index: $navbar-fixed-z
54
-
55
- .navbar
56
- background-color: $navbar-background-color
57
- min-height: $navbar-height
58
- position: relative
59
- z-index: $navbar-z
60
- @each $name, $pair in $colors
61
- $color: nth($pair, 1)
62
- $color-invert: nth($pair, 2)
63
- &.is-#{$name}
64
- background-color: $color
65
- color: $color-invert
66
- .navbar-brand
67
- & > .navbar-item,
68
- .navbar-link
69
- color: $color-invert
70
- & > a.navbar-item,
71
- .navbar-link
72
- &:focus,
73
- &:hover,
74
- &.is-active
75
- background-color: bulmaDarken($color, 5%)
76
- color: $color-invert
77
- .navbar-link
78
- &::after
79
- border-color: $color-invert
80
- .navbar-burger
81
- color: $color-invert
82
- +from($navbar-breakpoint)
83
- .navbar-start,
84
- .navbar-end
85
- & > .navbar-item,
86
- .navbar-link
87
- color: $color-invert
88
- & > a.navbar-item,
89
- .navbar-link
90
- &:focus,
91
- &:hover,
92
- &.is-active
93
- background-color: bulmaDarken($color, 5%)
94
- color: $color-invert
95
- .navbar-link
96
- &::after
97
- border-color: $color-invert
98
- .navbar-item.has-dropdown:focus .navbar-link,
99
- .navbar-item.has-dropdown:hover .navbar-link,
100
- .navbar-item.has-dropdown.is-active .navbar-link
101
- background-color: bulmaDarken($color, 5%)
102
- color: $color-invert
103
- .navbar-dropdown
104
- a.navbar-item
105
- &.is-active
106
- background-color: $color
107
- color: $color-invert
108
- & > .container
109
- align-items: stretch
110
- display: flex
111
- min-height: $navbar-height
112
- width: 100%
113
- &.has-shadow
114
- box-shadow: $navbar-box-shadow-size $navbar-box-shadow-color
115
- &.is-fixed-bottom,
116
- &.is-fixed-top
117
- +navbar-fixed
118
- &.is-fixed-bottom
119
- bottom: 0
120
- &.has-shadow
121
- box-shadow: $navbar-bottom-box-shadow-size $navbar-box-shadow-color
122
- &.is-fixed-top
123
- top: 0
124
-
125
- html,
126
- body
127
- &.has-navbar-fixed-top
128
- padding-top: $navbar-height
129
- &.has-navbar-fixed-bottom
130
- padding-bottom: $navbar-height
131
-
132
- .navbar-brand,
133
- .navbar-tabs
134
- align-items: stretch
135
- display: flex
136
- flex-shrink: 0
137
- min-height: $navbar-height
138
-
139
- .navbar-brand
140
- a.navbar-item
141
- &:focus,
142
- &:hover
143
- background-color: transparent
144
-
145
- .navbar-tabs
146
- +overflow-touch
147
- max-width: 100vw
148
- overflow-x: auto
149
- overflow-y: hidden
150
-
151
- .navbar-burger
152
- color: $navbar-burger-color
153
- +hamburger($navbar-height)
154
- +ltr-property("margin", auto, false)
155
-
156
- .navbar-menu
157
- display: none
158
-
159
- .navbar-item,
160
- .navbar-link
161
- color: $navbar-item-color
162
- display: block
163
- line-height: 1.5
164
- padding: 0.5rem 0.75rem
165
- position: relative
166
- .icon
167
- &:only-child
168
- margin-left: -0.25rem
169
- margin-right: -0.25rem
170
-
171
- a.navbar-item,
172
- .navbar-link
173
- cursor: pointer
174
- &:focus,
175
- &:focus-within,
176
- &:hover,
177
- &.is-active
178
- background-color: $navbar-item-hover-background-color
179
- color: $navbar-item-hover-color
180
-
181
- .navbar-item
182
- flex-grow: 0
183
- flex-shrink: 0
184
- img
185
- max-height: $navbar-item-img-max-height
186
- &.has-dropdown
187
- padding: 0
188
- &.is-expanded
189
- flex-grow: 1
190
- flex-shrink: 1
191
- &.is-tab
192
- border-bottom: 1px solid transparent
193
- min-height: $navbar-height
194
- padding-bottom: calc(0.5rem - 1px)
195
- &:focus,
196
- &:hover
197
- background-color: $navbar-tab-hover-background-color
198
- border-bottom-color: $navbar-tab-hover-border-bottom-color
199
- &.is-active
200
- background-color: $navbar-tab-active-background-color
201
- border-bottom-color: $navbar-tab-active-border-bottom-color
202
- border-bottom-style: $navbar-tab-active-border-bottom-style
203
- border-bottom-width: $navbar-tab-active-border-bottom-width
204
- color: $navbar-tab-active-color
205
- padding-bottom: calc(0.5rem - #{$navbar-tab-active-border-bottom-width})
206
-
207
- .navbar-content
208
- flex-grow: 1
209
- flex-shrink: 1
210
-
211
- .navbar-link:not(.is-arrowless)
212
- +ltr-property("padding", 2.5em)
213
- &::after
214
- @extend %arrow
215
- border-color: $navbar-dropdown-arrow
216
- margin-top: -0.375em
217
- +ltr-position(1.125em)
218
-
219
- .navbar-dropdown
220
- font-size: 0.875rem
221
- padding-bottom: 0.5rem
222
- padding-top: 0.5rem
223
- .navbar-item
224
- padding-left: 1.5rem
225
- padding-right: 1.5rem
226
-
227
- .navbar-divider
228
- background-color: $navbar-divider-background-color
229
- border: none
230
- display: none
231
- height: $navbar-divider-height
232
- margin: 0.5rem 0
233
-
234
- +until($navbar-breakpoint)
235
- .navbar > .container
236
- display: block
237
- .navbar-brand,
238
- .navbar-tabs
239
- .navbar-item
240
- align-items: center
241
- display: flex
242
- .navbar-link
243
- &::after
244
- display: none
245
- .navbar-menu
246
- background-color: $navbar-background-color
247
- box-shadow: 0 8px 16px bulmaRgba($scheme-invert, 0.1)
248
- padding: 0.5rem 0
249
- &.is-active
250
- display: block
251
- // Fixed navbar
252
- .navbar
253
- &.is-fixed-bottom-touch,
254
- &.is-fixed-top-touch
255
- +navbar-fixed
256
- &.is-fixed-bottom-touch
257
- bottom: 0
258
- &.has-shadow
259
- box-shadow: 0 -2px 3px bulmaRgba($scheme-invert, 0.1)
260
- &.is-fixed-top-touch
261
- top: 0
262
- &.is-fixed-top,
263
- &.is-fixed-top-touch
264
- .navbar-menu
265
- +overflow-touch
266
- max-height: calc(100vh - #{$navbar-height})
267
- overflow: auto
268
- html,
269
- body
270
- &.has-navbar-fixed-top-touch
271
- padding-top: $navbar-height
272
- &.has-navbar-fixed-bottom-touch
273
- padding-bottom: $navbar-height
274
-
275
- +from($navbar-breakpoint)
276
- .navbar,
277
- .navbar-menu,
278
- .navbar-start,
279
- .navbar-end
280
- align-items: stretch
281
- display: flex
282
- .navbar
283
- min-height: $navbar-height
284
- &.is-spaced
285
- padding: $navbar-padding-vertical $navbar-padding-horizontal
286
- .navbar-start,
287
- .navbar-end
288
- align-items: center
289
- a.navbar-item,
290
- .navbar-link
291
- border-radius: $radius
292
- &.is-transparent
293
- a.navbar-item,
294
- .navbar-link
295
- &:focus,
296
- &:hover,
297
- &.is-active
298
- background-color: transparent !important
299
- .navbar-item.has-dropdown
300
- &.is-active,
301
- &.is-hoverable:focus,
302
- &.is-hoverable:focus-within,
303
- &.is-hoverable:hover
304
- .navbar-link
305
- background-color: transparent !important
306
- .navbar-dropdown
307
- a.navbar-item
308
- &:focus,
309
- &:hover
310
- background-color: $navbar-dropdown-item-hover-background-color
311
- color: $navbar-dropdown-item-hover-color
312
- &.is-active
313
- background-color: $navbar-dropdown-item-active-background-color
314
- color: $navbar-dropdown-item-active-color
315
- .navbar-burger
316
- display: none
317
- .navbar-item,
318
- .navbar-link
319
- align-items: center
320
- display: flex
321
- .navbar-item
322
- &.has-dropdown
323
- align-items: stretch
324
- &.has-dropdown-up
325
- .navbar-link::after
326
- transform: rotate(135deg) translate(0.25em, -0.25em)
327
- .navbar-dropdown
328
- border-bottom: $navbar-dropdown-border-top
329
- border-radius: $navbar-dropdown-radius $navbar-dropdown-radius 0 0
330
- border-top: none
331
- bottom: 100%
332
- box-shadow: 0 -8px 8px bulmaRgba($scheme-invert, 0.1)
333
- top: auto
334
- &.is-active,
335
- &.is-hoverable:focus,
336
- &.is-hoverable:focus-within,
337
- &.is-hoverable:hover
338
- .navbar-dropdown
339
- display: block
340
- .navbar.is-spaced &,
341
- &.is-boxed
342
- opacity: 1
343
- pointer-events: auto
344
- transform: translateY(0)
345
- .navbar-menu
346
- flex-grow: 1
347
- flex-shrink: 0
348
- .navbar-start
349
- justify-content: flex-start
350
- +ltr-property("margin", auto)
351
- .navbar-end
352
- justify-content: flex-end
353
- +ltr-property("margin", auto, false)
354
- .navbar-dropdown
355
- background-color: $navbar-dropdown-background-color
356
- border-bottom-left-radius: $navbar-dropdown-radius
357
- border-bottom-right-radius: $navbar-dropdown-radius
358
- border-top: $navbar-dropdown-border-top
359
- box-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1)
360
- display: none
361
- font-size: 0.875rem
362
- +ltr-position(0, false)
363
- min-width: 100%
364
- position: absolute
365
- top: 100%
366
- z-index: $navbar-dropdown-z
367
- .navbar-item
368
- padding: 0.375rem 1rem
369
- white-space: nowrap
370
- a.navbar-item
371
- +ltr-property("padding", 3rem)
372
- &:focus,
373
- &:hover
374
- background-color: $navbar-dropdown-item-hover-background-color
375
- color: $navbar-dropdown-item-hover-color
376
- &.is-active
377
- background-color: $navbar-dropdown-item-active-background-color
378
- color: $navbar-dropdown-item-active-color
379
- .navbar.is-spaced &,
380
- &.is-boxed
381
- border-radius: $navbar-dropdown-boxed-radius
382
- border-top: none
383
- box-shadow: $navbar-dropdown-boxed-shadow
384
- display: block
385
- opacity: 0
386
- pointer-events: none
387
- top: calc(100% + (#{$navbar-dropdown-offset}))
388
- transform: translateY(-5px)
389
- transition-duration: $speed
390
- transition-property: opacity, transform
391
- &.is-right
392
- left: auto
393
- right: 0
394
- .navbar-divider
395
- display: block
396
- .navbar > .container,
397
- .container > .navbar
398
- .navbar-brand
399
- +ltr-property("margin", -.75rem, false)
400
- .navbar-menu
401
- +ltr-property("margin", -.75rem)
402
- // Fixed navbar
403
- .navbar
404
- &.is-fixed-bottom-desktop,
405
- &.is-fixed-top-desktop
406
- +navbar-fixed
407
- &.is-fixed-bottom-desktop
408
- bottom: 0
409
- &.has-shadow
410
- box-shadow: 0 -2px 3px bulmaRgba($scheme-invert, 0.1)
411
- &.is-fixed-top-desktop
412
- top: 0
413
- html,
414
- body
415
- &.has-navbar-fixed-top-desktop
416
- padding-top: $navbar-height
417
- &.has-navbar-fixed-bottom-desktop
418
- padding-bottom: $navbar-height
419
- &.has-spaced-navbar-fixed-top
420
- padding-top: $navbar-height + ($navbar-padding-vertical * 2)
421
- &.has-spaced-navbar-fixed-bottom
422
- padding-bottom: $navbar-height + ($navbar-padding-vertical * 2)
423
- // Hover/Active states
424
- a.navbar-item,
425
- .navbar-link
426
- &.is-active
427
- color: $navbar-item-active-color
428
- &.is-active:not(:focus):not(:hover)
429
- background-color: $navbar-item-active-background-color
430
- .navbar-item.has-dropdown
431
- &:focus,
432
- &:hover,
433
- &.is-active
434
- .navbar-link
435
- background-color: $navbar-item-hover-background-color
436
-
437
- // Combination
438
-
439
- .hero
440
- &.is-fullheight-with-navbar
441
- min-height: calc(100vh - #{$navbar-height})