tranzito_utils 1.1.2 → 1.1.4

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.
@@ -0,0 +1,54 @@
1
+ // Styles are duplicated in organized/dashboard - make sure to update there too!
2
+ #timeSelectionBtnGroup {
3
+ .period-select-standard {
4
+ transition: opacity 0.5s ease-in-out;
5
+ }
6
+ &.custom-period-selected .period-select-standard {
7
+ opacity: 0.6;
8
+ }
9
+ }
10
+
11
+ .custom-time-selection {
12
+ @extend .row;
13
+ justify-content: flex-end;
14
+ // We always want the form to be inline, so style manually
15
+ .form-group {
16
+ display: flex;
17
+ flex: 0 0 auto;
18
+ flex-flow: row wrap;
19
+ align-items: center;
20
+ margin-bottom: 0;
21
+ }
22
+ label {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ margin-bottom: 0;
27
+ }
28
+ .form-control {
29
+ display: inline-block;
30
+ width: auto;
31
+ max-width: 100%;
32
+ vertical-align: middle;
33
+ }
34
+ .btn-success {
35
+ margin-right: 15px;
36
+ }
37
+ .end-time-control {
38
+ margin-left: 0;
39
+ }
40
+
41
+ @include media-breakpoint-down(sm) {
42
+ justify-content: flex-start;
43
+ .form-group {
44
+ margin-top: 8px;
45
+ flex: 0 0 75%;
46
+ max-width: 75%;
47
+ position: relative;
48
+ padding-left: 15px;
49
+ }
50
+ .end-time-control {
51
+ margin-left: 0;
52
+ }
53
+ }
54
+ }
@@ -6,6 +6,7 @@
6
6
  // Utilities
7
7
  @import "tranzito_utils/utils";
8
8
  @import "tranzito_utils/pagination";
9
+ @import "tranzito_utils/period_selection";
9
10
  @import "tranzito_utils/table_extensions";
10
11
 
11
12
  // Sections
@@ -3,7 +3,7 @@
3
3
  - flash.each do |type, message|
4
4
  - next unless message.present?
5
5
  .alert.alert-dismissible.fade.show{class: "alert-#{type}"}
6
- %button.btn-close{"data-bs-dismiss" => "alert", "aria-label" => "Close"}
6
+ %button.close{ 'data-dismiss' => 'alert' } ×
7
7
  = message
8
8
  - if flash[:link]
9
9
  %br
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TranzitoUtils
4
- VERSION = "1.1.2"
4
+ VERSION = "1.1.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tranzito_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - willbarrettdev
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-10-12 00:00:00.000000000 Z
13
+ date: 2022-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -56,6 +56,7 @@ files:
56
56
  - app/assets/stylesheets/tranzito_utils/_admin_header.scss
57
57
  - app/assets/stylesheets/tranzito_utils/_alerts.scss
58
58
  - app/assets/stylesheets/tranzito_utils/_pagination.scss
59
+ - app/assets/stylesheets/tranzito_utils/_period_selection.scss
59
60
  - app/assets/stylesheets/tranzito_utils/_table_extensions.scss
60
61
  - app/assets/stylesheets/tranzito_utils/_utils.scss
61
62
  - app/assets/stylesheets/tranzito_utils/_variables.scss