fustrate-rails 0.4.1 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +5 -5
  2. data/config/initializers/jbuilder.rb +13 -0
  3. data/config/initializers/renderers.rb +40 -0
  4. data/config/initializers/sanitize.rb +112 -0
  5. data/config/rubocop/default.yml +96 -0
  6. data/config/rubocop/rails.yml +22 -0
  7. data/lib/fustrate/rails/concerns/clean_attributes.rb +49 -0
  8. data/lib/fustrate/rails/concerns/model.rb +48 -0
  9. data/lib/fustrate/rails/concerns/sanitize_html.rb +34 -0
  10. data/lib/fustrate/rails/engine.rb +14 -7
  11. data/lib/fustrate/rails/services/base.rb +46 -0
  12. data/lib/fustrate/rails/services/generate_csv.rb +35 -0
  13. data/lib/fustrate/rails/services/generate_excel.rb +32 -0
  14. data/lib/fustrate/rails/services/log_edit.rb +132 -0
  15. data/lib/fustrate/rails/spec_helper.rb +62 -0
  16. data/lib/fustrate/rails/version.rb +5 -1
  17. data/lib/fustrate-rails.rb +5 -2
  18. metadata +44 -140
  19. data/vendor/assets/javascripts/awesomplete.js +0 -402
  20. data/vendor/assets/javascripts/fustrate/_module.coffee +0 -140
  21. data/vendor/assets/javascripts/fustrate/components/_module.coffee +0 -3
  22. data/vendor/assets/javascripts/fustrate/components/alert_box.coffee +0 -10
  23. data/vendor/assets/javascripts/fustrate/components/autocomplete.coffee +0 -161
  24. data/vendor/assets/javascripts/fustrate/components/disclosure.coffee +0 -12
  25. data/vendor/assets/javascripts/fustrate/components/drop_zone.coffee +0 -9
  26. data/vendor/assets/javascripts/fustrate/components/dropdown.coffee +0 -48
  27. data/vendor/assets/javascripts/fustrate/components/file_picker.coffee +0 -11
  28. data/vendor/assets/javascripts/fustrate/components/flash.coffee +0 -31
  29. data/vendor/assets/javascripts/fustrate/components/modal.coffee +0 -273
  30. data/vendor/assets/javascripts/fustrate/components/pagination.coffee +0 -84
  31. data/vendor/assets/javascripts/fustrate/components/tabs.coffee +0 -28
  32. data/vendor/assets/javascripts/fustrate/components/tooltip.coffee +0 -72
  33. data/vendor/assets/javascripts/fustrate/generic_form.coffee +0 -30
  34. data/vendor/assets/javascripts/fustrate/generic_page.coffee +0 -40
  35. data/vendor/assets/javascripts/fustrate/generic_table.coffee +0 -57
  36. data/vendor/assets/javascripts/fustrate/listenable.coffee +0 -25
  37. data/vendor/assets/javascripts/fustrate/object.coffee +0 -21
  38. data/vendor/assets/javascripts/fustrate/record.coffee +0 -23
  39. data/vendor/assets/javascripts/fustrate.coffee +0 -6
  40. data/vendor/assets/stylesheets/_fustrate.sass +0 -7
  41. data/vendor/assets/stylesheets/awesomplete.sass +0 -76
  42. data/vendor/assets/stylesheets/fustrate/_colors.sass +0 -12
  43. data/vendor/assets/stylesheets/fustrate/_settings.sass +0 -20
  44. data/vendor/assets/stylesheets/fustrate/components/_components.sass +0 -36
  45. data/vendor/assets/stylesheets/fustrate/components/_functions.sass +0 -41
  46. data/vendor/assets/stylesheets/fustrate/components/alerts.sass +0 -86
  47. data/vendor/assets/stylesheets/fustrate/components/buttons.sass +0 -99
  48. data/vendor/assets/stylesheets/fustrate/components/disclosures.sass +0 -23
  49. data/vendor/assets/stylesheets/fustrate/components/dropdowns.sass +0 -36
  50. data/vendor/assets/stylesheets/fustrate/components/flash.sass +0 -38
  51. data/vendor/assets/stylesheets/fustrate/components/forms.sass +0 -195
  52. data/vendor/assets/stylesheets/fustrate/components/grid.sass +0 -196
  53. data/vendor/assets/stylesheets/fustrate/components/labels.sass +0 -64
  54. data/vendor/assets/stylesheets/fustrate/components/modals.sass +0 -167
  55. data/vendor/assets/stylesheets/fustrate/components/pagination.sass +0 -69
  56. data/vendor/assets/stylesheets/fustrate/components/panels.sass +0 -67
  57. data/vendor/assets/stylesheets/fustrate/components/popovers.sass +0 -19
  58. data/vendor/assets/stylesheets/fustrate/components/tables.sass +0 -62
  59. data/vendor/assets/stylesheets/fustrate/components/tabs.sass +0 -44
  60. data/vendor/assets/stylesheets/fustrate/components/tooltips.sass +0 -28
  61. data/vendor/assets/stylesheets/fustrate/components/typography.sass +0 -391
@@ -1,195 +0,0 @@
1
- // We use this to set the base for lots of form spacing and positioning styles
2
- $form-spacing: rem-calc(16) !default
3
- $label-color: #4d4d4d !default
4
- $label-font-size: rem-calc(14) !default
5
- $input-font-size: rem-calc(14) !default
6
- $form-element-margin: 0 0 ($form-spacing / 2) 0 !default
7
- $form-disabled-color: #777 !default
8
- $form-disabled-bg-color: #ddd !default
9
-
10
- =fustrate-forms
11
- form
12
- margin: 0 0 $form-spacing
13
-
14
- label
15
- color: $label-color
16
- cursor: pointer
17
- display: block
18
- font-size: $label-font-size
19
- font-weight: normal
20
- line-height: 1.5
21
- margin-bottom: 0
22
-
23
- &.inline
24
- display: inline-block
25
- float: none !important
26
- margin: $form-element-margin
27
- padding: $form-spacing / 2 + rem-calc(1px) rem-calc(5px)
28
- text-align: right
29
-
30
- select::-ms-expand
31
- display: none
32
-
33
- .prefix,
34
- .postfix
35
- background: scale-color($white, $lightness: -5%)
36
- border: 1px solid scale-color($white, $lightness: -20%)
37
- color: $label-color
38
- display: block
39
- font-size: $label-font-size
40
- height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1))
41
- line-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1))
42
- overflow: hidden
43
- padding-bottom: 0
44
- padding-top: 0
45
- position: relative
46
- text-align: center
47
- width: 100%
48
- z-index: 2
49
-
50
- .prefix
51
- border-right: 0
52
-
53
- .postfix
54
- border-left: 0
55
-
56
- // We use this to get basic styling on all basic form elements
57
- input[type='date'],
58
- input[type='datetime-local'],
59
- input[type='datetime'],
60
- input[type='email'],
61
- input[type='month'],
62
- input[type='number'],
63
- input[type='password'],
64
- input[type='search'],
65
- input[type='tel'],
66
- input[type='text'],
67
- input[type='time'],
68
- input[type='url'],
69
- input[type='week'],
70
- textarea
71
- -webkit-appearance: none
72
- -webkit-border-radius: 0
73
- background-color: $white
74
- border: 1px solid scale-color($white, $lightness: -20%)
75
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1)
76
- box-sizing: border-box
77
- color: $black
78
- display: block
79
- font-family: inherit
80
- font-size: $input-font-size
81
- height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1))
82
- margin: $form-element-margin
83
- padding: $form-spacing / 2
84
- transition: box-shadow 450ms, border-color 450ms ease-in-out
85
- width: 100%
86
-
87
- &.inline
88
- display: inline-block
89
- width: auto
90
-
91
- &:focus
92
- background: $white
93
- border-color: scale-color($white, $lightness: -40%)
94
- box-shadow: 0 0 5px scale-color($white, $lightness: -40%)
95
- outline: none
96
-
97
- &:disabled,
98
- &[disabled],
99
- &[readonly],
100
- fieldset[disabled] &
101
- background-color: $form-disabled-bg-color
102
- color: $form-disabled-color
103
- cursor: disabled
104
-
105
- td &:only-child,
106
- th &:only-child
107
- margin: 0
108
-
109
- input
110
- &[type='submit']
111
- -webkit-appearance: none
112
- -webkit-border-radius: 0
113
-
114
- textarea
115
- height: auto
116
- min-height: 50px
117
- white-space: pre-line
118
-
119
- // Respect enforced amount of rows for textarea
120
- &[rows]
121
- height: auto
122
-
123
- select
124
- -webkit-appearance: none !important
125
- -webkit-border-radius: 0
126
- background-color: $white
127
-
128
- // The custom arrow have some fake horizontal padding so we can align it
129
- // from the right side of the element without relying on CSS3
130
- background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+)
131
- background-position: 100% center
132
- background-repeat: no-repeat
133
-
134
- border: 1px solid scale-color($white, $lightness: -20%)
135
- border-radius: 0
136
- color: $black
137
- font-size: $input-font-size
138
- // Add height value for select elements to match text input height
139
- height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1))
140
- line-height: normal
141
- padding: $form-spacing / 2
142
- padding-right: 24px
143
- width: 100%
144
-
145
- &.inline
146
- display: inline-block
147
- width: auto
148
-
149
- &:hover
150
- background-color: $white
151
-
152
- &:disabled,
153
- &[disabled],
154
- &[disabled]:hover
155
- background-color: $form-disabled-bg-color
156
- border-color: scale-color($white, $lightness: -20%)
157
- color: $form-disabled-color
158
- cursor: disabled
159
-
160
- &[multiple]
161
- background-image: none
162
- height: auto
163
-
164
- input[type='checkbox'],
165
- input[type='file'],
166
- input[type='radio'],
167
- select
168
- // Adjust margin for form elements below
169
- margin: $form-element-margin
170
-
171
- td &:only-child,
172
- th &:only-child
173
- margin: 0
174
-
175
- input
176
- &[type='checkbox'] + label,
177
- &[type='radio'] + label
178
- display: inline-block
179
- margin-bottom: 0
180
- margin-left: $form-spacing * .5
181
- margin-right: $form-spacing
182
- vertical-align: baseline
183
-
184
- // Normalize file input width
185
- &[type='file']
186
- width: 100%
187
-
188
- input,
189
- select,
190
- textarea
191
- &.error,
192
- &.error:focus,
193
- &.error:focus:hover
194
- background: scale-color($red, $lightness: 90%)
195
- border-color: scale-color($red, $lightness: 20%)
@@ -1,196 +0,0 @@
1
- $row-width: rem-calc(1000)
2
- $total-columns: 12
3
- $column-gutter: rem-calc(30)
4
-
5
- @function grid-calc($col-number, $col-count)
6
- @return percentage($col-number / $col-count)
7
-
8
- // Use +grid-row(nest) to include a nested row
9
- // Use +grid-row(collapse) to collapsed a container row margins
10
- // Use +grid-row(nest-collapse) to collapse outer margins on a nested row
11
- // Use +grid-row to use a container row
12
- =grid-row($behavior: false)
13
- @if $behavior == nest
14
- margin: 0 (-($column-gutter / 2))
15
- max-width: none
16
- width: auto
17
-
18
- @else if $behavior == collapse
19
- margin: 0
20
- max-width: $row-width
21
- width: 100%
22
-
23
- @else if $behavior == nest-collapse
24
- margin: 0
25
- max-width: none
26
- width: auto
27
-
28
- @else
29
- margin-bottom: 0
30
- margin-left: auto
31
- margin-right: auto
32
- margin-top: 0
33
- max-width: $row-width
34
- width: 100%
35
-
36
- // Clearfix for all rows
37
- +clearfix
38
-
39
- // Creates a column, should be used inside of a media query to control layouts
40
- //
41
- // $columns - The number of columns this should be
42
- // $last-column - Is this the last column? Default: false.
43
- // $center - Center these columns? Default: false.
44
- // $offset - # of columns to offset. Default: false.
45
- // $push - # of columns to push. Default: false.
46
- // $pull - # of columns to pull. Default: false.
47
- // $collapse - Get rid of gutter padding on column? Default: false.
48
- // $float - Should this float? Default: true. Options: true, false, left, right.
49
- =grid-column($columns: false, $last-column: false, $center: false, $offset: false, $push: false, $pull: false, $collapse: false, $float: true, $position: false)
50
-
51
- // If positioned for default .column, include relative position
52
- // push and pull require position set
53
- @if $position or $push or $pull
54
- position: relative
55
-
56
- // If collapsed, get rid of gutter padding
57
- @if $collapse
58
- padding-left: 0
59
- padding-right: 0
60
-
61
- @else if $collapse == false
62
- // Gutter padding whenever a column isn't set to collapse
63
- // (use $collapse: null to do nothing)
64
- padding-left: $column-gutter / 2
65
- padding-right: $column-gutter / 2
66
-
67
- // If a column number is given, calculate width
68
- @if $columns
69
- width: grid-calc($columns, $total-columns)
70
-
71
- // If last column, float naturally instead of to the right
72
- @if $last-column
73
- float: right
74
-
75
- // Source Ordering, adds left/right depending on which you use.
76
- @if $push
77
- left: grid-calc($push, $total-columns)
78
- right: auto
79
- @if $pull
80
- left: auto
81
- right: grid-calc($pull, $total-columns)
82
-
83
- @if $float
84
- @if $float == left or $float == true
85
- float: left
86
- @else if $float == right
87
- float: right
88
- @else
89
- float: none
90
-
91
- // If centered, get rid of float and add appropriate margins
92
- @if $center
93
- float: none
94
- margin-left: auto
95
- margin-right: auto
96
-
97
- // If offset, calculate appropriate margins
98
- @if $offset
99
- margin-left: grid-calc($offset, $total-columns) !important
100
-
101
- // Create presentational classes for grid
102
- //
103
- // $size - Name of class to use, i.e. "large" will generate .large-1, .large-2, etc.
104
- =grid-html-classes($size)
105
- @for $i from 0 through $total-columns - 1
106
- .#{$size}-push-#{$i}
107
- +grid-column($push: $i, $collapse: null, $float: false)
108
-
109
- .#{$size}-pull-#{$i}
110
- +grid-column($pull: $i, $collapse: null, $float: false)
111
-
112
- .column,
113
- .columns
114
- +grid-column($columns: false, $position: true)
115
-
116
- @for $i from 1 through $total-columns
117
- .#{$size}-#{$i}
118
- +grid-column($columns: $i, $collapse: null, $float: false)
119
-
120
- @for $i from 0 through $total-columns - 1
121
- .#{$size}-offset-#{$i}
122
- +grid-column($offset: $i, $collapse: null, $float: false)
123
-
124
- .#{$size}-reset-order
125
- float: left
126
- left: auto
127
- margin-left: 0
128
- margin-right: 0
129
- right: auto
130
-
131
- .column.#{$size}-centered,
132
- .columns.#{$size}-centered
133
- +grid-column($center: true, $collapse: null, $float: false)
134
-
135
- .column.#{$size}-uncentered,
136
- .columns.#{$size}-uncentered
137
- float: left
138
- margin-left: 0
139
- margin-right: 0
140
-
141
- // Fighting [class*="column"] + [class*="column"]:last-child
142
- .column.#{$size}-centered:last-child,
143
- .columns.#{$size}-centered:last-child
144
- float: none
145
-
146
- // Fighting .column.<previous-size>-centered:last-child
147
- .column.#{$size}-uncentered:last-child,
148
- .columns.#{$size}-uncentered:last-child
149
- float: left
150
-
151
- .column.#{$size}-uncentered.opposite,
152
- .columns.#{$size}-uncentered.opposite
153
- float: right
154
-
155
- =fustrate-grid
156
- .row
157
- +grid-row
158
-
159
- &.fluid
160
- max-width: 100%
161
- width: 100%
162
-
163
- &.collapse
164
- > .column,
165
- > .columns
166
- +grid-column($collapse: true, $float: false)
167
-
168
- .row
169
- margin-left: 0
170
- margin-right: 0
171
-
172
- .row
173
- +grid-row(nest)
174
-
175
- &.collapse
176
- +grid-row(nest-collapse)
177
-
178
- .column,
179
- .columns
180
- +grid-column($columns: $total-columns)
181
-
182
- & + &:last-child,
183
- & + &.end
184
- float: left
185
-
186
- @media #{$small-up}
187
- +grid-html-classes($size: small)
188
-
189
- @media #{$medium-up}
190
- +grid-html-classes($size: medium)
191
-
192
- @media #{$large-up}
193
- +grid-html-classes($size: large)
194
-
195
- .large-column-count-2
196
- +columns(2)
@@ -1,64 +0,0 @@
1
- $label-padding: rem-calc(6 8)
2
- $label-font-size: rem-calc(12)
3
- $label-font-color: #333
4
- $label-font-color-alt: #fff
5
-
6
- =label-color($bg: $primary-color)
7
- background-color: $bg
8
-
9
- @if lightness($bg) < 70%
10
- color: $label-font-color-alt
11
- text-shadow: 0 1px 1px scale-color($bg, $lightness: -70%)
12
- @else
13
- color: $label-font-color
14
- text-shadow: 0 1px 1px scale-color($bg, $lightness: 70%)
15
-
16
- =fustrate-labels
17
- .label
18
- +label-color
19
- border-radius: 3px
20
- display: inline-block
21
- font-size: $label-font-size
22
- line-height: 1
23
- margin-bottom: inherit
24
- padding: $label-padding
25
- position: relative
26
- text-align: center
27
- text-decoration: none
28
- white-space: nowrap
29
-
30
- td.status:last-child &:only-child,
31
- &.fw
32
- display: block
33
-
34
- &.round
35
- border-radius: 1000px
36
-
37
- &.sharp
38
- border-radius: 0
39
-
40
- &.bad,
41
- &.no,
42
- &.danger,
43
- &.inactive
44
- +label-color($red)
45
-
46
- &.good,
47
- &.yes,
48
- &.success
49
- +label-color($green)
50
-
51
- &.warning
52
- +label-color($orange)
53
-
54
- &.plain
55
- +label-color(#eee)
56
- border: #ddd 1px solid
57
-
58
- // Check Mark
59
- &.yes::before
60
- +font-awesome('\f00c')
61
-
62
- // X
63
- &.no::before
64
- +font-awesome('\f00d')
@@ -1,167 +0,0 @@
1
- $modal-bg-color: #fff !default
2
- $modal-title-color: #fff !default
3
- $modal-border-color: #666 !default
4
- $modal-overlay-color: rgba(0, 0, 0, .45) !default
5
-
6
- =modal-width($width: 80%)
7
- margin-left: -($width / 2)
8
- width: $width
9
-
10
- =fustrate-modals
11
- .modal-overlay
12
- background: $modal-overlay-color
13
- display: none
14
- height: 120%
15
- left: 0
16
- position: fixed
17
- top: 0
18
- width: 100%
19
- z-index: 9500
20
-
21
- .modal
22
- background-color: $modal-bg-color
23
- border: 0
24
- box-shadow: 0 0 10px $modal-overlay-color
25
- display: none
26
- left: 0
27
- margin-bottom: 1rem
28
- padding: 0
29
- position: absolute
30
- top: 0
31
- visibility: hidden
32
- width: 100vw
33
- z-index: 9501
34
-
35
- .column,
36
- .columns
37
- min-width: 0
38
-
39
- & > :first-child
40
- margin-top: 0
41
-
42
- & > :last-child,
43
- .modal-content form
44
- margin-bottom: 0
45
-
46
- .modal-title
47
- background: scale-color($blue, $lightness: -15%)
48
- border: 1px solid scale-color($blue, $lightness: -40%)
49
- color: $modal-title-color
50
- font-weight: bold
51
- margin: 0
52
- padding: rem-calc(6) rem-calc(12)
53
- text-shadow: 0 1px 1px $black
54
-
55
- .modal-close
56
- color: $modal-title-color
57
- cursor: pointer
58
- font-size: rem-calc(24)
59
- font-weight: bold
60
- line-height: 1
61
- position: absolute
62
- right: rem-calc(16)
63
- top: rem-calc(5)
64
-
65
- .modal-content
66
- border: 1px solid $modal-border-color
67
- border-width: 0 1px
68
- margin: 0
69
- padding: rem-calc(12)
70
-
71
- .modal-buttons
72
- background: scale-color($modal-bg-color, $lightness: -7%)
73
- border: 1px solid $modal-border-color
74
- border-top-color: scale-color($modal-border-color, $lightness: 70%)
75
- padding: rem-calc(12)
76
- text-align: right
77
-
78
- &:empty
79
- border-width: 0 0 1px
80
- padding: 0
81
-
82
- // The normal cancel button color is too light on a light grey background
83
- .cancel
84
- +button-style(#dadada)
85
-
86
- &.success
87
- .modal-title
88
- background: scale-color($green, $lightness: -5%)
89
- border: 1px solid scale-color($green, $lightness: -35%)
90
-
91
- &.failure
92
- .modal-title
93
- background: $red
94
- border: 1px solid scale-color($red, $lightness: -30%)
95
-
96
- &.withdraw
97
- .modal-title
98
- background: #444
99
- border: 1px solid scale-color(#444, $lightness: -30%)
100
-
101
- .picker
102
- background: #fafafa
103
- height: 300px
104
- overflow-y: scroll
105
- position: relative
106
-
107
- .section
108
- &:not(:first-child)
109
- margin-top: .5rem
110
-
111
- .title
112
- background: #e3e3e3
113
- border: 1px solid #ccc
114
- cursor: pointer
115
- padding: 2px rem-calc(8)
116
-
117
- .count
118
- float: right
119
- font-size: rem-calc(12)
120
-
121
- .option
122
- border: 1px solid #ccc
123
- cursor: pointer
124
- margin-top: -1px
125
- padding: .5rem
126
-
127
- &:hover
128
- background: $info-color
129
- border-color: scale-color($info-color, $lightness: -20%)
130
- color: scale-color($info-color, $lightness: -65%)
131
- position: relative
132
- z-index: 9999
133
-
134
- .description
135
- color: #555
136
- font-size: .8rem
137
- padding-left: .5rem
138
-
139
- @media #{$small-only}
140
- min-height: 100vh
141
-
142
- @media #{$medium-up}
143
- +modal-width
144
- left: 50%
145
- top: rem-calc(100)
146
-
147
- &.tiny
148
- +modal-width(30%)
149
-
150
- &.small
151
- +modal-width(40%)
152
-
153
- &.medium
154
- +modal-width(60%)
155
-
156
- &.large
157
- +modal-width(70%)
158
-
159
- &.xlarge
160
- +modal-width(95%)
161
-
162
- @media print
163
- .modal-overlay
164
- display: none !important
165
-
166
- .modal
167
- background: $white !important
@@ -1,69 +0,0 @@
1
- $pagination-color: #222 !default
2
- $pagination-link-color: #999 !default
3
- $pagination-active-bg-color: $primary-color !default
4
- $pagination-disabled-color: #999 !default
5
- $pagination-active-color: #fff !default
6
- $pagination-hover-bg-color: rgba(0, 0, 0, .08) !default
7
-
8
- =fustrate-pagination
9
- .pagination
10
- display: block
11
- margin-left: rem-calc(-5)
12
- min-height: rem-calc(24)
13
- text-align: center
14
-
15
- &:empty
16
- display: none
17
-
18
- li
19
- color: $pagination-color
20
- display: inline-block
21
- font-size: rem-calc(14)
22
- height: rem-calc(24)
23
- margin-left: rem-calc(1)
24
-
25
- a,
26
- span
27
- background: none
28
- border-radius: 4px
29
- color: $pagination-link-color
30
- display: block
31
- font-size: 1em
32
- font-weight: normal
33
- line-height: inherit
34
- padding: rem-calc(1 10 1)
35
- transition: background-color .3s ease-out
36
-
37
- &:focus
38
- background: $pagination-hover-bg-color
39
-
40
- &:hover
41
- a,
42
- span
43
- background: $pagination-hover-bg-color
44
-
45
- &.unavailable
46
- a,
47
- span
48
- color: $pagination-disabled-color
49
- cursor: default
50
-
51
- &:focus
52
- background: transparent
53
-
54
- &:hover
55
- a,
56
- button
57
- background: transparent
58
-
59
- &.current
60
- a,
61
- span
62
- background: $pagination-active-bg-color
63
- color: $pagination-active-color
64
- cursor: default
65
- font-weight: bold
66
-
67
- &:hover,
68
- &:focus
69
- background: $pagination-active-bg-color