captive-admin 0.2.7 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89649c205f5ff1804160164693cd7f79cca27794f25c1bd98af8054d93ab99e9
4
- data.tar.gz: bc42df23fbbb9759d56943d03b6c93fafbd6f8b6f07c3dd7cf8f75b6348a7a47
3
+ metadata.gz: 28efe38700cab350ab210400adcfbc3f8351e30e56498f435fa67b8292443876
4
+ data.tar.gz: 676f77870aa5e60da1d22c812c2ebfe7a6228e5cdcd1b830c91c86990a58d528
5
5
  SHA512:
6
- metadata.gz: 518cf3a8eeaec10248d831e905d4ae2990f29b9305195976bb7bc8f259ab16bdec47c24f9d707fb6e80561f5fbaa31aa651e186c38ba20bb97cb9f95ba2d7fc1
7
- data.tar.gz: 67f4e1c2d7a6e80a3b81634c0bcfe9e37bda919d8ee350897f5af4ea1e7081823fe95e931268f5f1f993e5a734d9c6aac345395da03e25588f396b4fe4a137a8
6
+ metadata.gz: 723339b8fcded2c955c817b326c4bc2d596412223b3cc53146d69c4689d45cf0f2f7a3860f2fa183f2753863753813491c1b015b55658a3e3639540b8a4d9456
7
+ data.tar.gz: 3cb7549acf12e634360e6f78b2ad43aab247397841044cd17fabc30b7f76d879e0dce3fbef4fdd022ed1778371b98e6add24864362ec214ec43ad8c3d2f683f3
@@ -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
+ }
@@ -4,6 +4,10 @@
4
4
  @include section;
5
5
  }
6
6
 
7
+ .panel {
8
+ background: $bg-subtle;
9
+ }
10
+
7
11
  // ----------------------------------- Sidebar Sections
8
12
 
9
13
  .sidebar_section {
@@ -1,17 +1,103 @@
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
+ min-height: 24px;
28
+
29
+ &--single,
30
+ &--multiple {
31
+ padding: $spacer-3;
32
+ box-sizing: content-box;
33
+ border-color: $border-color;
34
+ border-radius: $border-radius-xs;
35
+ height: auto;
36
+
37
+ @include body-large;
11
38
 
12
- @include body-large;
39
+ .select2-selection {
40
+ &__rendered {
41
+ padding: 0;
42
+ line-height: inherit;
13
43
 
14
- .select2-selection__rendered {
15
- padding: 0;
44
+ li {
45
+ margin-top: 0;
46
+ }
47
+ }
48
+
49
+ &__clear {
50
+ margin-top: 0;
51
+ margin-right: $spacer-4;
52
+ }
53
+
54
+ &__arrow {
55
+ top: 50%;
56
+ margin-top: -$spacer-3;
57
+ right: $spacer-2;
58
+ }
59
+ }
60
+ }
61
+
62
+ &--multiple {
63
+ padding-right: $spacer-5;
64
+
65
+ .select2-selection {
66
+ &__rendered {
67
+ display: flex;
68
+ flex-wrap: wrap;
69
+ }
70
+
71
+ &__clear {
72
+ position: absolute;
73
+ right: $spacer-3;
74
+ margin-right: 0;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ &.select2-container--focus {
81
+ .select2-selection {
82
+ &--single,
83
+ &--multiple {
84
+ border: 2px solid $border-color-emphasis;
85
+ }
86
+ }
87
+ }
88
+
89
+ .select2-search {
90
+ &--inline {
91
+ .select2-search {
92
+ &__field {
93
+ margin-top: 0;
94
+ }
95
+ }
96
+ }
97
+ }
16
98
  }
17
99
  }
100
+
101
+ .select2-search__field {
102
+ @include body-medium;
103
+ }
@@ -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.9
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-11-06 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.9
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.9
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.9/captive-admin
101
101
  post_install_message:
102
102
  rdoc_options: []
103
103
  require_paths: