intia-theme 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_sass/_main.scss +13 -11
- data/favicon.png +0 -0
- data/node_modules/bulma/CHANGELOG.md +1558 -0
- data/node_modules/bulma/LICENSE +21 -0
- data/node_modules/bulma/README.md +134 -0
- data/node_modules/bulma/bulma.sass +10 -0
- data/node_modules/bulma/css/bulma-rtl.css +11811 -0
- data/node_modules/bulma/css/bulma-rtl.css.map +1 -0
- data/node_modules/bulma/css/bulma-rtl.min.css +1 -0
- data/node_modules/bulma/css/bulma.css +11811 -0
- data/node_modules/bulma/css/bulma.css.map +1 -0
- data/node_modules/bulma/css/bulma.min.css +1 -0
- data/node_modules/bulma/package.json +82 -0
- data/node_modules/bulma/sass/base/_all.sass +6 -0
- data/node_modules/bulma/sass/base/animations.sass +5 -0
- data/node_modules/bulma/sass/base/generic.sass +145 -0
- data/node_modules/bulma/sass/base/helpers.sass +1 -0
- data/node_modules/bulma/sass/base/minireset.sass +79 -0
- data/node_modules/bulma/sass/components/_all.sass +15 -0
- data/node_modules/bulma/sass/components/breadcrumb.sass +77 -0
- data/node_modules/bulma/sass/components/card.sass +103 -0
- data/node_modules/bulma/sass/components/dropdown.sass +83 -0
- data/node_modules/bulma/sass/components/level.sass +79 -0
- data/node_modules/bulma/sass/components/media.sass +59 -0
- data/node_modules/bulma/sass/components/menu.sass +59 -0
- data/node_modules/bulma/sass/components/message.sass +101 -0
- data/node_modules/bulma/sass/components/modal.sass +117 -0
- data/node_modules/bulma/sass/components/navbar.sass +446 -0
- data/node_modules/bulma/sass/components/pagination.sass +166 -0
- data/node_modules/bulma/sass/components/panel.sass +121 -0
- data/node_modules/bulma/sass/components/tabs.sass +176 -0
- data/node_modules/bulma/sass/elements/_all.sass +16 -0
- data/node_modules/bulma/sass/elements/box.sass +26 -0
- data/node_modules/bulma/sass/elements/button.sass +345 -0
- data/node_modules/bulma/sass/elements/container.sass +29 -0
- data/node_modules/bulma/sass/elements/content.sass +159 -0
- data/node_modules/bulma/sass/elements/form.sass +1 -0
- data/node_modules/bulma/sass/elements/icon.sass +46 -0
- data/node_modules/bulma/sass/elements/image.sass +73 -0
- data/node_modules/bulma/sass/elements/notification.sass +52 -0
- data/node_modules/bulma/sass/elements/other.sass +31 -0
- data/node_modules/bulma/sass/elements/progress.sass +73 -0
- data/node_modules/bulma/sass/elements/table.sass +133 -0
- data/node_modules/bulma/sass/elements/tag.sass +140 -0
- data/node_modules/bulma/sass/elements/title.sass +70 -0
- data/node_modules/bulma/sass/form/_all.sass +9 -0
- data/node_modules/bulma/sass/form/checkbox-radio.sass +22 -0
- data/node_modules/bulma/sass/form/file.sass +184 -0
- data/node_modules/bulma/sass/form/input-textarea.sass +66 -0
- data/node_modules/bulma/sass/form/select.sass +87 -0
- data/node_modules/bulma/sass/form/shared.sass +60 -0
- data/node_modules/bulma/sass/form/tools.sass +215 -0
- data/node_modules/bulma/sass/grid/_all.sass +5 -0
- data/node_modules/bulma/sass/grid/columns.sass +513 -0
- data/node_modules/bulma/sass/grid/tiles.sass +36 -0
- data/node_modules/bulma/sass/helpers/_all.sass +12 -0
- data/node_modules/bulma/sass/helpers/color.sass +39 -0
- data/node_modules/bulma/sass/helpers/flexbox.sass +35 -0
- data/node_modules/bulma/sass/helpers/float.sass +10 -0
- data/node_modules/bulma/sass/helpers/other.sass +14 -0
- data/node_modules/bulma/sass/helpers/overflow.sass +2 -0
- data/node_modules/bulma/sass/helpers/position.sass +7 -0
- data/node_modules/bulma/sass/helpers/spacing.sass +31 -0
- data/node_modules/bulma/sass/helpers/typography.sass +103 -0
- data/node_modules/bulma/sass/helpers/visibility.sass +122 -0
- data/node_modules/bulma/sass/layout/_all.sass +6 -0
- data/node_modules/bulma/sass/layout/footer.sass +11 -0
- data/node_modules/bulma/sass/layout/hero.sass +153 -0
- data/node_modules/bulma/sass/layout/section.sass +17 -0
- data/node_modules/bulma/sass/utilities/_all.sass +9 -0
- data/node_modules/bulma/sass/utilities/animations.sass +1 -0
- data/node_modules/bulma/sass/utilities/controls.sass +49 -0
- data/node_modules/bulma/sass/utilities/derived-variables.sass +114 -0
- data/node_modules/bulma/sass/utilities/extends.sass +25 -0
- data/node_modules/bulma/sass/utilities/functions.sass +136 -0
- data/node_modules/bulma/sass/utilities/initial-variables.sass +78 -0
- data/node_modules/bulma/sass/utilities/mixins.sass +280 -0
- data/node_modules/bulma-block-list/LICENSE.txt +21 -0
- data/node_modules/bulma-block-list/README.md +32 -0
- data/node_modules/bulma-block-list/node_modules/bulma/CHANGELOG.md +1390 -0
- data/node_modules/bulma-block-list/node_modules/bulma/LICENSE +21 -0
- data/node_modules/bulma-block-list/node_modules/bulma/README.md +130 -0
- data/node_modules/bulma-block-list/node_modules/bulma/bulma.sass +9 -0
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css +10855 -0
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.css.map +1 -0
- data/node_modules/bulma-block-list/node_modules/bulma/css/bulma.min.css +1 -0
- data/node_modules/bulma-block-list/node_modules/bulma/package.json +80 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/_all.sass +5 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/generic.sass +142 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/helpers.sass +281 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/base/minireset.sass +79 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/_all.sass +15 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/breadcrumb.sass +75 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/card.sass +79 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/dropdown.sass +81 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/level.sass +77 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/list.sass +39 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/media.sass +50 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/menu.sass +57 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/message.sass +99 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/modal.sass +113 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/navbar.sass +441 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/pagination.sass +150 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/panel.sass +119 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/components/tabs.sass +151 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/_all.sass +15 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/box.sass +24 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/button.sass +323 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/container.sass +24 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/content.sass +155 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/form.sass +1 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/icon.sass +21 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/image.sass +71 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/notification.sass +43 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/other.sass +39 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/progress.sass +67 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/table.sass +127 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/tag.sass +128 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/elements/title.sass +70 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/_all.sass +8 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/checkbox-radio.sass +21 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/file.sass +180 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/input-textarea.sass +64 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/select.sass +85 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/shared.sass +55 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/form/tools.sass +205 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/_all.sass +4 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/columns.sass +504 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/grid/tiles.sass +34 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/_all.sass +5 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/footer.sass +9 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/hero.sass +145 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/layout/section.sass +13 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/_all.sass +8 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/animations.sass +5 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/controls.sass +50 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/derived-variables.sass +106 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/functions.sass +110 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/initial-variables.sass +77 -0
- data/node_modules/bulma-block-list/node_modules/bulma/sass/utilities/mixins.sass +261 -0
- data/node_modules/bulma-block-list/package.json +59 -0
- data/node_modules/bulma-block-list/src/block-list.scss +109 -0
- data/node_modules/bulma-block-list/src/demo.scss +3 -0
- data/node_modules/bulma-carousel/CHANGELOG.md +307 -0
- data/node_modules/bulma-carousel/LICENSE +21 -0
- data/node_modules/bulma-carousel/README.md +13 -0
- data/node_modules/bulma-carousel/dist/css/bulma-carousel.min.css +1 -0
- data/node_modules/bulma-carousel/dist/js/bulma-carousel.js +2371 -0
- data/node_modules/bulma-carousel/package.json +108 -0
- data/node_modules/bulma-carousel/src/demo/_data/events.yml +15 -0
- data/node_modules/bulma-carousel/src/demo/_data/getters.yml +26 -0
- data/node_modules/bulma-carousel/src/demo/_data/menu.yml +26 -0
- data/node_modules/bulma-carousel/src/demo/_data/methods.yml +57 -0
- data/node_modules/bulma-carousel/src/demo/_data/options.yml +79 -0
- data/node_modules/bulma-carousel/src/demo/_data/setters.yml +0 -0
- data/node_modules/bulma-carousel/src/demo/_data/tree.yml +30 -0
- data/node_modules/bulma-carousel/src/demo/_includes/anchor.html +3 -0
- data/node_modules/bulma-carousel/src/demo/_includes/breadcrumb.html +5 -0
- data/node_modules/bulma-carousel/src/demo/_includes/events.html +33 -0
- data/node_modules/bulma-carousel/src/demo/_includes/getters.html +28 -0
- data/node_modules/bulma-carousel/src/demo/_includes/head.html +22 -0
- data/node_modules/bulma-carousel/src/demo/_includes/menu.html +22 -0
- data/node_modules/bulma-carousel/src/demo/_includes/methods.html +49 -0
- data/node_modules/bulma-carousel/src/demo/_includes/options.html +33 -0
- data/node_modules/bulma-carousel/src/demo/_includes/setters.html +28 -0
- data/node_modules/bulma-carousel/src/demo/_includes/tree.html +25 -0
- data/node_modules/bulma-carousel/src/demo/_includes/variables.html +28 -0
- data/node_modules/bulma-carousel/src/demo/_layouts/default.html +47 -0
- data/node_modules/bulma-carousel/src/demo/assets/css/bulma-carousel.min.css +1 -0
- data/node_modules/bulma-carousel/src/demo/assets/css/documentation.min.css +1 -0
- data/node_modules/bulma-carousel/src/demo/assets/css/highlight.css +78 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/1.jpg +0 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/2.jpg +0 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/3.jpg +0 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/4.jpg +0 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/5.jpg +0 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/6.jpg +0 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/left.svg +3 -0
- data/node_modules/bulma-carousel/src/demo/assets/images/right.svg +3 -0
- data/node_modules/bulma-carousel/src/demo/assets/js/bulma-carousel.min.js +1 -0
- data/node_modules/bulma-carousel/src/demo/assets/js/doc.js +111 -0
- data/node_modules/bulma-carousel/src/demo/assets/js/main.js +23 -0
- data/node_modules/bulma-carousel/src/demo/changelog.html +17 -0
- data/node_modules/bulma-carousel/src/demo/customization.html +78 -0
- data/node_modules/bulma-carousel/src/demo/demonstration/index.html +402 -0
- data/node_modules/bulma-carousel/src/demo/index.html +396 -0
- data/node_modules/bulma-carousel/src/js/components/Media.js +129 -0
- data/node_modules/bulma-carousel/src/js/components/autoplay.js +111 -0
- data/node_modules/bulma-carousel/src/js/components/breakpoint.js +91 -0
- data/node_modules/bulma-carousel/src/js/components/infinite.js +60 -0
- data/node_modules/bulma-carousel/src/js/components/loop.js +35 -0
- data/node_modules/bulma-carousel/src/js/components/navigation.js +107 -0
- data/node_modules/bulma-carousel/src/js/components/pagination.js +103 -0
- data/node_modules/bulma-carousel/src/js/components/swipe.js +106 -0
- data/node_modules/bulma-carousel/src/js/components/transitioner.js +74 -0
- data/node_modules/bulma-carousel/src/js/components/transitions/fade.js +90 -0
- data/node_modules/bulma-carousel/src/js/components/transitions/translate.js +98 -0
- data/node_modules/bulma-carousel/src/js/defaultOptions.js +50 -0
- data/node_modules/bulma-carousel/src/js/index.js +428 -0
- data/node_modules/bulma-carousel/src/js/templates/index.js +5 -0
- data/node_modules/bulma-carousel/src/js/templates/item.js +3 -0
- data/node_modules/bulma-carousel/src/js/templates/navigation.js +4 -0
- data/node_modules/bulma-carousel/src/js/templates/pagination-page.js +3 -0
- data/node_modules/bulma-carousel/src/js/templates/pagination.js +3 -0
- data/node_modules/bulma-carousel/src/js/utils/coordinate.js +98 -0
- data/node_modules/bulma-carousel/src/js/utils/css.js +84 -0
- data/node_modules/bulma-carousel/src/js/utils/detect-prefixes.js +50 -0
- data/node_modules/bulma-carousel/src/js/utils/detect-supportsPassive.js +16 -0
- data/node_modules/bulma-carousel/src/js/utils/device.js +17 -0
- data/node_modules/bulma-carousel/src/js/utils/dom.js +10 -0
- data/node_modules/bulma-carousel/src/js/utils/eventEmitter.js +19 -0
- data/node_modules/bulma-carousel/src/js/utils/events.js +65 -0
- data/node_modules/bulma-carousel/src/js/utils/index.js +16 -0
- data/node_modules/bulma-carousel/src/js/utils/type.js +21 -0
- data/node_modules/bulma-carousel/src/sass/index.sass +145 -0
- data/package-lock.json +32 -0
- data/package.json +10 -0
- metadata +217 -2
- data/_config.yml +0 -72
@@ -0,0 +1,66 @@
|
|
1
|
+
$textarea-padding: $control-padding-horizontal !default
|
2
|
+
$textarea-max-height: 40em !default
|
3
|
+
$textarea-min-height: 8em !default
|
4
|
+
|
5
|
+
$textarea-colors: $form-colors !default
|
6
|
+
|
7
|
+
%input-textarea
|
8
|
+
@extend %input
|
9
|
+
box-shadow: $input-shadow
|
10
|
+
max-width: 100%
|
11
|
+
width: 100%
|
12
|
+
&[readonly]
|
13
|
+
box-shadow: none
|
14
|
+
// Colors
|
15
|
+
@each $name, $pair in $textarea-colors
|
16
|
+
$color: nth($pair, 1)
|
17
|
+
&.is-#{$name}
|
18
|
+
border-color: $color
|
19
|
+
&:focus,
|
20
|
+
&.is-focused,
|
21
|
+
&:active,
|
22
|
+
&.is-active
|
23
|
+
box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
|
24
|
+
// Sizes
|
25
|
+
&.is-small
|
26
|
+
+control-small
|
27
|
+
&.is-medium
|
28
|
+
+control-medium
|
29
|
+
&.is-large
|
30
|
+
+control-large
|
31
|
+
// Modifiers
|
32
|
+
&.is-fullwidth
|
33
|
+
display: block
|
34
|
+
width: 100%
|
35
|
+
&.is-inline
|
36
|
+
display: inline
|
37
|
+
width: auto
|
38
|
+
|
39
|
+
.input
|
40
|
+
@extend %input-textarea
|
41
|
+
&.is-rounded
|
42
|
+
border-radius: $radius-rounded
|
43
|
+
padding-left: calc(#{$control-padding-horizontal} + 0.375em)
|
44
|
+
padding-right: calc(#{$control-padding-horizontal} + 0.375em)
|
45
|
+
&.is-static
|
46
|
+
background-color: transparent
|
47
|
+
border-color: transparent
|
48
|
+
box-shadow: none
|
49
|
+
padding-left: 0
|
50
|
+
padding-right: 0
|
51
|
+
|
52
|
+
.textarea
|
53
|
+
@extend %input-textarea
|
54
|
+
display: block
|
55
|
+
max-width: 100%
|
56
|
+
min-width: 100%
|
57
|
+
padding: $textarea-padding
|
58
|
+
resize: vertical
|
59
|
+
&:not([rows])
|
60
|
+
max-height: $textarea-max-height
|
61
|
+
min-height: $textarea-min-height
|
62
|
+
&[rows]
|
63
|
+
height: initial
|
64
|
+
// Modifiers
|
65
|
+
&.has-fixed-size
|
66
|
+
resize: none
|
@@ -0,0 +1,87 @@
|
|
1
|
+
$select-colors: $form-colors !default
|
2
|
+
|
3
|
+
.select
|
4
|
+
display: inline-block
|
5
|
+
max-width: 100%
|
6
|
+
position: relative
|
7
|
+
vertical-align: top
|
8
|
+
&:not(.is-multiple)
|
9
|
+
height: $input-height
|
10
|
+
&:not(.is-multiple):not(.is-loading)
|
11
|
+
&::after
|
12
|
+
@extend %arrow
|
13
|
+
border-color: $input-arrow
|
14
|
+
+ltr-position(1.125em)
|
15
|
+
z-index: 4
|
16
|
+
&.is-rounded
|
17
|
+
select
|
18
|
+
border-radius: $radius-rounded
|
19
|
+
+ltr-property("padding", 1em, false)
|
20
|
+
select
|
21
|
+
@extend %input
|
22
|
+
cursor: pointer
|
23
|
+
display: block
|
24
|
+
font-size: 1em
|
25
|
+
max-width: 100%
|
26
|
+
outline: none
|
27
|
+
&::-ms-expand
|
28
|
+
display: none
|
29
|
+
&[disabled]:hover,
|
30
|
+
fieldset[disabled] &:hover
|
31
|
+
border-color: $input-disabled-border-color
|
32
|
+
&:not([multiple])
|
33
|
+
+ltr-property("padding", 2.5em)
|
34
|
+
&[multiple]
|
35
|
+
height: auto
|
36
|
+
padding: 0
|
37
|
+
option
|
38
|
+
padding: 0.5em 1em
|
39
|
+
// States
|
40
|
+
&:not(.is-multiple):not(.is-loading):hover
|
41
|
+
&::after
|
42
|
+
border-color: $input-hover-color
|
43
|
+
// Colors
|
44
|
+
@each $name, $pair in $select-colors
|
45
|
+
$color: nth($pair, 1)
|
46
|
+
&.is-#{$name}
|
47
|
+
&:not(:hover)::after
|
48
|
+
border-color: $color
|
49
|
+
select
|
50
|
+
border-color: $color
|
51
|
+
&:hover,
|
52
|
+
&.is-hovered
|
53
|
+
border-color: bulmaDarken($color, 5%)
|
54
|
+
&:focus,
|
55
|
+
&.is-focused,
|
56
|
+
&:active,
|
57
|
+
&.is-active
|
58
|
+
box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
|
59
|
+
// Sizes
|
60
|
+
&.is-small
|
61
|
+
+control-small
|
62
|
+
&.is-medium
|
63
|
+
+control-medium
|
64
|
+
&.is-large
|
65
|
+
+control-large
|
66
|
+
// Modifiers
|
67
|
+
&.is-disabled
|
68
|
+
&::after
|
69
|
+
border-color: $input-disabled-color
|
70
|
+
&.is-fullwidth
|
71
|
+
width: 100%
|
72
|
+
select
|
73
|
+
width: 100%
|
74
|
+
&.is-loading
|
75
|
+
&::after
|
76
|
+
@extend %loader
|
77
|
+
margin-top: 0
|
78
|
+
position: absolute
|
79
|
+
+ltr-position(0.625em)
|
80
|
+
top: 0.625em
|
81
|
+
transform: none
|
82
|
+
&.is-small:after
|
83
|
+
font-size: $size-small
|
84
|
+
&.is-medium:after
|
85
|
+
font-size: $size-medium
|
86
|
+
&.is-large:after
|
87
|
+
font-size: $size-large
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@import "../utilities/controls"
|
2
|
+
@import "../utilities/mixins"
|
3
|
+
|
4
|
+
$form-colors: $colors !default
|
5
|
+
|
6
|
+
$input-color: $text-strong !default
|
7
|
+
$input-background-color: $scheme-main !default
|
8
|
+
$input-border-color: $border !default
|
9
|
+
$input-height: $control-height !default
|
10
|
+
$input-shadow: inset 0 0.0625em 0.125em rgba($scheme-invert, 0.05) !default
|
11
|
+
$input-placeholder-color: bulmaRgba($input-color, 0.3) !default
|
12
|
+
|
13
|
+
$input-hover-color: $text-strong !default
|
14
|
+
$input-hover-border-color: $border-hover !default
|
15
|
+
|
16
|
+
$input-focus-color: $text-strong !default
|
17
|
+
$input-focus-border-color: $link !default
|
18
|
+
$input-focus-box-shadow-size: 0 0 0 0.125em !default
|
19
|
+
$input-focus-box-shadow-color: bulmaRgba($link, 0.25) !default
|
20
|
+
|
21
|
+
$input-disabled-color: $text-light !default
|
22
|
+
$input-disabled-background-color: $background !default
|
23
|
+
$input-disabled-border-color: $background !default
|
24
|
+
$input-disabled-placeholder-color: bulmaRgba($input-disabled-color, 0.3) !default
|
25
|
+
|
26
|
+
$input-arrow: $link !default
|
27
|
+
|
28
|
+
$input-icon-color: $border !default
|
29
|
+
$input-icon-active-color: $text !default
|
30
|
+
|
31
|
+
$input-radius: $radius !default
|
32
|
+
|
33
|
+
=input
|
34
|
+
@extend %control
|
35
|
+
background-color: $input-background-color
|
36
|
+
border-color: $input-border-color
|
37
|
+
border-radius: $input-radius
|
38
|
+
color: $input-color
|
39
|
+
+placeholder
|
40
|
+
color: $input-placeholder-color
|
41
|
+
&:hover,
|
42
|
+
&.is-hovered
|
43
|
+
border-color: $input-hover-border-color
|
44
|
+
&:focus,
|
45
|
+
&.is-focused,
|
46
|
+
&:active,
|
47
|
+
&.is-active
|
48
|
+
border-color: $input-focus-border-color
|
49
|
+
box-shadow: $input-focus-box-shadow-size $input-focus-box-shadow-color
|
50
|
+
&[disabled],
|
51
|
+
fieldset[disabled] &
|
52
|
+
background-color: $input-disabled-background-color
|
53
|
+
border-color: $input-disabled-border-color
|
54
|
+
box-shadow: none
|
55
|
+
color: $input-disabled-color
|
56
|
+
+placeholder
|
57
|
+
color: $input-disabled-placeholder-color
|
58
|
+
|
59
|
+
%input
|
60
|
+
+input
|
@@ -0,0 +1,215 @@
|
|
1
|
+
$label-color: $text-strong !default
|
2
|
+
$label-weight: $weight-bold !default
|
3
|
+
|
4
|
+
$help-size: $size-small !default
|
5
|
+
|
6
|
+
$label-colors: $form-colors !default
|
7
|
+
|
8
|
+
.label
|
9
|
+
color: $label-color
|
10
|
+
display: block
|
11
|
+
font-size: $size-normal
|
12
|
+
font-weight: $label-weight
|
13
|
+
&:not(:last-child)
|
14
|
+
margin-bottom: 0.5em
|
15
|
+
// Sizes
|
16
|
+
&.is-small
|
17
|
+
font-size: $size-small
|
18
|
+
&.is-medium
|
19
|
+
font-size: $size-medium
|
20
|
+
&.is-large
|
21
|
+
font-size: $size-large
|
22
|
+
|
23
|
+
.help
|
24
|
+
display: block
|
25
|
+
font-size: $help-size
|
26
|
+
margin-top: 0.25rem
|
27
|
+
@each $name, $pair in $label-colors
|
28
|
+
$color: nth($pair, 1)
|
29
|
+
&.is-#{$name}
|
30
|
+
color: $color
|
31
|
+
|
32
|
+
// Containers
|
33
|
+
|
34
|
+
.field
|
35
|
+
&:not(:last-child)
|
36
|
+
margin-bottom: 0.75rem
|
37
|
+
// Modifiers
|
38
|
+
&.has-addons
|
39
|
+
display: flex
|
40
|
+
justify-content: flex-start
|
41
|
+
.control
|
42
|
+
&:not(:last-child)
|
43
|
+
+ltr-property("margin", -1px)
|
44
|
+
&:not(:first-child):not(:last-child)
|
45
|
+
.button,
|
46
|
+
.input,
|
47
|
+
.select select
|
48
|
+
border-radius: 0
|
49
|
+
&:first-child:not(:only-child)
|
50
|
+
.button,
|
51
|
+
.input,
|
52
|
+
.select select
|
53
|
+
+ltr
|
54
|
+
border-bottom-right-radius: 0
|
55
|
+
border-top-right-radius: 0
|
56
|
+
+rtl
|
57
|
+
border-bottom-left-radius: 0
|
58
|
+
border-top-left-radius: 0
|
59
|
+
&:last-child:not(:only-child)
|
60
|
+
.button,
|
61
|
+
.input,
|
62
|
+
.select select
|
63
|
+
+ltr
|
64
|
+
border-bottom-left-radius: 0
|
65
|
+
border-top-left-radius: 0
|
66
|
+
+rtl
|
67
|
+
border-bottom-right-radius: 0
|
68
|
+
border-top-right-radius: 0
|
69
|
+
.button,
|
70
|
+
.input,
|
71
|
+
.select select
|
72
|
+
&:not([disabled])
|
73
|
+
&:hover,
|
74
|
+
&.is-hovered
|
75
|
+
z-index: 2
|
76
|
+
&:focus,
|
77
|
+
&.is-focused,
|
78
|
+
&:active,
|
79
|
+
&.is-active
|
80
|
+
z-index: 3
|
81
|
+
&:hover
|
82
|
+
z-index: 4
|
83
|
+
&.is-expanded
|
84
|
+
flex-grow: 1
|
85
|
+
flex-shrink: 1
|
86
|
+
&.has-addons-centered
|
87
|
+
justify-content: center
|
88
|
+
&.has-addons-right
|
89
|
+
justify-content: flex-end
|
90
|
+
&.has-addons-fullwidth
|
91
|
+
.control
|
92
|
+
flex-grow: 1
|
93
|
+
flex-shrink: 0
|
94
|
+
&.is-grouped
|
95
|
+
display: flex
|
96
|
+
justify-content: flex-start
|
97
|
+
& > .control
|
98
|
+
flex-shrink: 0
|
99
|
+
&:not(:last-child)
|
100
|
+
margin-bottom: 0
|
101
|
+
+ltr-property("margin", 0.75rem)
|
102
|
+
&.is-expanded
|
103
|
+
flex-grow: 1
|
104
|
+
flex-shrink: 1
|
105
|
+
&.is-grouped-centered
|
106
|
+
justify-content: center
|
107
|
+
&.is-grouped-right
|
108
|
+
justify-content: flex-end
|
109
|
+
&.is-grouped-multiline
|
110
|
+
flex-wrap: wrap
|
111
|
+
& > .control
|
112
|
+
&:last-child,
|
113
|
+
&:not(:last-child)
|
114
|
+
margin-bottom: 0.75rem
|
115
|
+
&:last-child
|
116
|
+
margin-bottom: -0.75rem
|
117
|
+
&:not(:last-child)
|
118
|
+
margin-bottom: 0
|
119
|
+
&.is-horizontal
|
120
|
+
+tablet
|
121
|
+
display: flex
|
122
|
+
|
123
|
+
.field-label
|
124
|
+
.label
|
125
|
+
font-size: inherit
|
126
|
+
+mobile
|
127
|
+
margin-bottom: 0.5rem
|
128
|
+
+tablet
|
129
|
+
flex-basis: 0
|
130
|
+
flex-grow: 1
|
131
|
+
flex-shrink: 0
|
132
|
+
+ltr-property("margin", 1.5rem)
|
133
|
+
text-align: right
|
134
|
+
&.is-small
|
135
|
+
font-size: $size-small
|
136
|
+
padding-top: 0.375em
|
137
|
+
&.is-normal
|
138
|
+
padding-top: 0.375em
|
139
|
+
&.is-medium
|
140
|
+
font-size: $size-medium
|
141
|
+
padding-top: 0.375em
|
142
|
+
&.is-large
|
143
|
+
font-size: $size-large
|
144
|
+
padding-top: 0.375em
|
145
|
+
|
146
|
+
.field-body
|
147
|
+
.field .field
|
148
|
+
margin-bottom: 0
|
149
|
+
+tablet
|
150
|
+
display: flex
|
151
|
+
flex-basis: 0
|
152
|
+
flex-grow: 5
|
153
|
+
flex-shrink: 1
|
154
|
+
.field
|
155
|
+
margin-bottom: 0
|
156
|
+
& > .field
|
157
|
+
flex-shrink: 1
|
158
|
+
&:not(.is-narrow)
|
159
|
+
flex-grow: 1
|
160
|
+
&:not(:last-child)
|
161
|
+
+ltr-property("margin", 0.75rem)
|
162
|
+
|
163
|
+
.control
|
164
|
+
box-sizing: border-box
|
165
|
+
clear: both
|
166
|
+
font-size: $size-normal
|
167
|
+
position: relative
|
168
|
+
text-align: inherit
|
169
|
+
// Modifiers
|
170
|
+
&.has-icons-left,
|
171
|
+
&.has-icons-right
|
172
|
+
.input,
|
173
|
+
.select
|
174
|
+
&:focus
|
175
|
+
& ~ .icon
|
176
|
+
color: $input-icon-active-color
|
177
|
+
&.is-small ~ .icon
|
178
|
+
font-size: $size-small
|
179
|
+
&.is-medium ~ .icon
|
180
|
+
font-size: $size-medium
|
181
|
+
&.is-large ~ .icon
|
182
|
+
font-size: $size-large
|
183
|
+
.icon
|
184
|
+
color: $input-icon-color
|
185
|
+
height: $input-height
|
186
|
+
pointer-events: none
|
187
|
+
position: absolute
|
188
|
+
top: 0
|
189
|
+
width: $input-height
|
190
|
+
z-index: 4
|
191
|
+
&.has-icons-left
|
192
|
+
.input,
|
193
|
+
.select select
|
194
|
+
padding-left: $input-height
|
195
|
+
.icon.is-left
|
196
|
+
left: 0
|
197
|
+
&.has-icons-right
|
198
|
+
.input,
|
199
|
+
.select select
|
200
|
+
padding-right: $input-height
|
201
|
+
.icon.is-right
|
202
|
+
right: 0
|
203
|
+
&.is-loading
|
204
|
+
&::after
|
205
|
+
@extend %loader
|
206
|
+
position: absolute !important
|
207
|
+
+ltr-position(0.625em)
|
208
|
+
top: 0.625em
|
209
|
+
z-index: 4
|
210
|
+
&.is-small:after
|
211
|
+
font-size: $size-small
|
212
|
+
&.is-medium:after
|
213
|
+
font-size: $size-medium
|
214
|
+
&.is-large:after
|
215
|
+
font-size: $size-large
|