captive-admin 0.2.7 → 0.2.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89649c205f5ff1804160164693cd7f79cca27794f25c1bd98af8054d93ab99e9
4
- data.tar.gz: bc42df23fbbb9759d56943d03b6c93fafbd6f8b6f07c3dd7cf8f75b6348a7a47
3
+ metadata.gz: 78cf79f7e8d9678815c6de9cc52a48a1662aaa80c77afa2fba3ddf8660badcf0
4
+ data.tar.gz: f83914d79a292887b381032bff6e8062c219b9fe31a57609be3295ba4b04fbcc
5
5
  SHA512:
6
- metadata.gz: 518cf3a8eeaec10248d831e905d4ae2990f29b9305195976bb7bc8f259ab16bdec47c24f9d707fb6e80561f5fbaa31aa651e186c38ba20bb97cb9f95ba2d7fc1
7
- data.tar.gz: 67f4e1c2d7a6e80a3b81634c0bcfe9e37bda919d8ee350897f5af4ea1e7081823fe95e931268f5f1f993e5a734d9c6aac345395da03e25588f396b4fe4a137a8
6
+ metadata.gz: 76a2582bedd5a5f59e8eaedc256ba965e95a08daf8f06f9aca24f7db99550ee11a714ecf47eab756acdf152d657e4130643ccb763f01d12d133a12589ba92b79
7
+ data.tar.gz: e600806b4f39d90d7d4b9dc548fc97b7286e1706d33f7be593817690382f9037ce5465522595830bc01643ebfecdf629a44a4d961daa869ab7707f39ad6b739a
@@ -107,7 +107,14 @@ form {
107
107
 
108
108
  .buttons,
109
109
  .actions {
110
- margin-top: $spacer-5;
110
+ padding: $spacer-5 0;
111
+ margin-top: 0;
112
+
113
+ input[type='submit'],
114
+ input[type='button'],
115
+ button {
116
+ margin-right: 0;
117
+ }
111
118
  }
112
119
 
113
120
  fieldset.buttons li,
@@ -116,15 +123,7 @@ form {
116
123
  margin-bottom: 0;
117
124
 
118
125
  &.cancel a {
119
- outline: 0;
120
- box-shadow: none;
121
- text-decoration: underline;
122
- padding-left: 0;
123
- color: $fg-muted;
124
-
125
- &:hover {
126
- text-decoration: none;
127
- }
126
+ @include cancel-link;
128
127
  }
129
128
  }
130
129
 
@@ -137,3 +136,71 @@ form {
137
136
  }
138
137
  }
139
138
  }
139
+
140
+ // -------------------------------------- Sidebar Forms
141
+
142
+ .sidebar_section {
143
+ label {
144
+ text-transform: none;
145
+ color: $form-label-color;
146
+ @include body-medium;
147
+
148
+ margin-bottom: $spacer-4;
149
+ width: 100%;
150
+ font-weight: normal;
151
+ }
152
+
153
+ input[type='text'],
154
+ input[type='password'],
155
+ input[type='email'],
156
+ input[type='url'],
157
+ input[type='tel'],
158
+ textarea {
159
+ @include body-medium;
160
+ }
161
+
162
+ .buttons {
163
+ display: flex;
164
+ flex-direction: row-reverse;
165
+ justify-content: space-between;
166
+ align-items: center;
167
+ }
168
+ }
169
+
170
+ // -------------------------------------- Filter Forms
171
+
172
+ form.filter_form {
173
+ .filter_form_field {
174
+ padding: $spacer-5 0;
175
+ margin: 0;
176
+ border-bottom: 1px solid $border-color;
177
+ display: flex;
178
+ flex-wrap: wrap;
179
+ justify-content: space-between;
180
+
181
+ &:first-child {
182
+ border-top: 1px solid $border-color;
183
+ }
184
+
185
+ &.select_and_search {
186
+ input[type='text'] {
187
+ flex: 1;
188
+ margin-left: 0;
189
+ }
190
+ }
191
+
192
+ &.filter_date_range {
193
+ input[type='text'] {
194
+ flex: 1;
195
+
196
+ + input {
197
+ margin-left: $spacer-4;
198
+ }
199
+ }
200
+ }
201
+ }
202
+
203
+ a.clear_filters_btn {
204
+ @include cancel-link;
205
+ }
206
+ }
@@ -1,17 +1,101 @@
1
+ .filter_form_field {
2
+ .select2-container {
3
+ margin-bottom: $spacer-4;
4
+
5
+ &:last-child {
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ &--default {
10
+ .select2-selection {
11
+ &--single,
12
+ &--multiple {
13
+ @include body-medium;
14
+
15
+ min-height: $spacer-4;
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }
21
+
1
22
  .select2-container {
2
23
  width: 100% !important;
3
- }
4
24
 
5
- .select2-container--default .select2-selection--single {
6
- padding: $spacer-3;
7
- box-sizing: content-box;
8
- border-color: $border-color;
9
- border-radius: $border-radius-s;
10
- height: $spacer-5;
25
+ &--default {
26
+ .select2-selection {
27
+ &--single,
28
+ &--multiple {
29
+ padding: $spacer-3;
30
+ box-sizing: content-box;
31
+ border-color: $border-color;
32
+ border-radius: $border-radius-s;
33
+ height: auto;
34
+
35
+ @include body-large;
36
+
37
+ .select2-selection {
38
+ &__rendered {
39
+ padding: 0;
40
+ line-height: inherit;
11
41
 
12
- @include body-large;
42
+ li {
43
+ margin-top: 0;
44
+ }
45
+ }
13
46
 
14
- .select2-selection__rendered {
15
- padding: 0;
47
+ &__clear {
48
+ margin-top: 0;
49
+ margin-right: $spacer-4;
50
+ }
51
+
52
+ &__arrow {
53
+ top: 50%;
54
+ margin-top: -$spacer-3;
55
+ right: $spacer-2;
56
+ }
57
+ }
58
+ }
59
+
60
+ &--multiple {
61
+ padding-right: $spacer-5;
62
+
63
+ .select2-selection {
64
+ &__rendered {
65
+ display: flex;
66
+ flex-wrap: wrap;
67
+ }
68
+
69
+ &__clear {
70
+ position: absolute;
71
+ right: $spacer-3;
72
+ margin-right: 0;
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ &.select2-container--focus {
79
+ .select2-selection {
80
+ &--single,
81
+ &--multiple {
82
+ border: 2px solid $border-color-emphasis;
83
+ }
84
+ }
85
+ }
86
+
87
+ .select2-search {
88
+ &--inline {
89
+ .select2-search {
90
+ &__field {
91
+ margin-top: 0;
92
+ }
93
+ }
94
+ }
95
+ }
16
96
  }
17
97
  }
98
+
99
+ .select2-search__field {
100
+ @include body-medium;
101
+ }
@@ -74,3 +74,17 @@
74
74
  }
75
75
  }
76
76
  }
77
+
78
+ @mixin cancel-link {
79
+ outline: 0;
80
+ box-shadow: none;
81
+ text-decoration: underline;
82
+ padding-left: 0;
83
+ color: $fg-muted;
84
+ background: transparent;
85
+
86
+ &:hover {
87
+ text-decoration: none;
88
+ background-color: transparent !important;
89
+ }
90
+ }
@@ -11,14 +11,40 @@
11
11
  color: $fg-muted;
12
12
  background: $bg-default;
13
13
  border-bottom: 1px solid $border-color;
14
-
15
- // @include shadow-xs;
16
14
  }
17
15
 
18
16
  @mixin section-background {
19
- background: $bg-subtle;
20
- @include rounded($border-radius-s);
21
- @include shadow-xs;
22
-
17
+ background: $bg-default;
18
+ border-radius: 0;
23
19
  overflow: hidden;
24
20
  }
21
+
22
+ @mixin section {
23
+ // héritage AA
24
+ @include section-background;
25
+
26
+ margin-bottom: 20px;
27
+
28
+ > h3 {
29
+ @include title-small;
30
+
31
+ margin: 0;
32
+ padding-bottom: $spacer-4;
33
+
34
+ .header_action {
35
+ float: right;
36
+ }
37
+ }
38
+
39
+ > div {
40
+ padding: 0;
41
+ }
42
+
43
+ hr {
44
+ border: none;
45
+ border-bottom: 1px solid #e8e8e8;
46
+ }
47
+
48
+ // Fin héritage AA
49
+ margin-bottom: $spacer-8;
50
+ }
@@ -25,7 +25,28 @@
25
25
  line-height: 1.5;
26
26
  }
27
27
 
28
+ @mixin title {
29
+ font-family: $title-font-family;
30
+ font-weight: bold;
31
+ }
32
+
28
33
  @mixin title-large {
34
+ @include title;
35
+
29
36
  font-size: $h1;
30
37
  line-height: 1.125;
31
38
  }
39
+
40
+ @mixin title-medium {
41
+ @include title;
42
+
43
+ font-size: $h2;
44
+ line-height: 1.5;
45
+ }
46
+
47
+ @mixin title-small {
48
+ @include title;
49
+
50
+ font-size: $f4;
51
+ line-height: 1.5;
52
+ }
@@ -2,3 +2,4 @@
2
2
 
3
3
  $menu-arrow-light-icon-url: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgY2xhc3M9InctOCBtci00IGljb24tY2hldmVyb24tZG93biI+PHBhdGggY2xhc3M9InNlY29uZGFyeSIgZmlsbD0iI2ZmZmZmZiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTUuMyAxMC4zYTEgMSAwIDAgMSAxLjQgMS40bC00IDRhMSAxIDAgMCAxLTEuNCAwbC00LTRhMSAxIDAgMCAxIDEuNC0xLjRsMy4zIDMuMjkgMy4zLTMuM3oiPjwvcGF0aD48L3N2Zz4=';
4
4
  $error-color: $danger-fg;
5
+ $form-label-color: $fg-muted;
@@ -2,13 +2,23 @@
2
2
  padding: 0;
3
3
 
4
4
  &.with_sidebar {
5
- padding-right: $spacer-6;
5
+ display: flex;
6
+ flex-direction: row-reverse;
6
7
  }
7
8
 
8
9
  #main_content_wrapper {
9
10
  #main_content {
10
11
  padding: $spacer-4 $spacer-6;
11
12
  background: $bg-subtle;
13
+ margin-right: 0;
12
14
  }
13
15
  }
16
+
17
+ #sidebar {
18
+ float: none;
19
+ width: 350px;
20
+ margin-left: 0;
21
+ flex-shrink: 0;
22
+ padding: $spacer-4 $spacer-6;
23
+ }
14
24
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: captive-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Captive
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-25 00:00:00.000000000 Z
12
+ date: 2023-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 0.2.7
34
+ version: 0.2.8
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 0.2.7
41
+ version: 0.2.8
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +97,7 @@ licenses:
97
97
  - MIT
98
98
  metadata:
99
99
  homepage_uri: https://captive.fr/
100
- source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.2.7/captive-admin
100
+ source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.2.8/captive-admin
101
101
  post_install_message:
102
102
  rdoc_options: []
103
103
  require_paths: