captive-admin 0.2.2 → 0.2.3

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: 47a27396c1892618e93b00a44b4094d7cde66d44e0f78beb2e887061d386ab0f
4
- data.tar.gz: a8f35d01b61ba43e0a742483b8feed22cca84ab7f56caa073021dd4b834fade9
3
+ metadata.gz: a29f689e96d0ba9ef088bdc143dba8071e23e508cffdd8fa46aee86641b662ad
4
+ data.tar.gz: 5038655af50b1c97c4bbf08520fcc75976f14b69e43b5887b6ff91aabcd8c310
5
5
  SHA512:
6
- metadata.gz: 5eb581360dc7dd86cd7d4302ce013cda1a3654803db0dbe05c1018a6c8f6d6880110a71ceb09631f379c54cb3ad5be5f99fbefe17e7371e4f0f59fa61fdd13d9
7
- data.tar.gz: 2daa72c05c5af576e59696b27ca1190bdfe31a0536edbe24799623a9fa40dcca4b8fbcc6eeee5f85899c1e740c89a056b72e70e9af454d8485c91f75874deffa
6
+ metadata.gz: 5b3802c0de855bda1e7a450d2efbd8863f638dddb93dffa427329f7ffef31654db8f67bc7af882234a0159c16285236f931887f426874f4cd27edaa720bcfcee
7
+ data.tar.gz: 3fb96174f38732c4f7df708065323b834cf3596911318752b8100130276e061aec68462528e82d35235e1f7eadffd9257187d00c639eac7a65d6ce20508e61e7
@@ -8,6 +8,7 @@
8
8
  @import './forms';
9
9
  @import './components/tables';
10
10
  @import './components/breadcrumbs';
11
+ @import './components/dropdown_menu';
11
12
  @import './components/links';
12
13
  @import './components/panels';
13
14
  @import './components/status_tags';
@@ -17,5 +18,39 @@
17
18
 
18
19
  body {
19
20
  color: $fg-default;
21
+ @include body-medium;
22
+ }
23
+ }
24
+
25
+ .details {
26
+ margin-top: $spacer-1;
27
+ @include body-small;
28
+
29
+ color: $fg-subtle;
30
+ }
31
+
32
+ .col-actions {
33
+ .dropdown_menu_button {
34
+ font-size: 0;
35
+ margin: 0;
36
+ width: $spacer-6;
37
+ height: $spacer-6;
38
+ padding: 0;
39
+
40
+ &::before {
41
+ font-size: $f2;
42
+ content: '···';
43
+ border: 0;
44
+ width: $spacer-6;
45
+ height: $spacer-6;
46
+ left: 0;
47
+ top: 0;
48
+ text-align: center;
49
+ line-height: $spacer-6;
50
+ }
51
+
52
+ &::after {
53
+ border: 0;
54
+ }
20
55
  }
21
56
  }
@@ -43,8 +43,6 @@
43
43
  }
44
44
 
45
45
  & > li {
46
- font-size: $f5;
47
-
48
46
  &.current > a {
49
47
  background: none;
50
48
 
@@ -94,7 +92,7 @@
94
92
  @include rounded-all(12px, 12px, 12px, 12px);
95
93
 
96
94
  text-align: left;
97
- @include shadow-xs;
95
+ box-shadow: $shadow-m;
98
96
 
99
97
  li {
100
98
  a {
@@ -0,0 +1,41 @@
1
+ .dropdown_menu {
2
+ .dropdown_menu_button {
3
+ outline: none;
4
+ box-shadow: none;
5
+ background-color: transparent;
6
+ }
7
+
8
+ .dropdown_menu_nipple {
9
+ display: none;
10
+ }
11
+
12
+ .dropdown_menu_list_wrapper {
13
+ background: none;
14
+ border: none;
15
+ box-shadow: $shadow-m;
16
+ border-radius: 12px;
17
+ padding: 0;
18
+ overflow: hidden;
19
+
20
+ .dropdown_menu_list {
21
+ border: none;
22
+ box-shadow: none;
23
+ padding: $spacer-3 0;
24
+ min-width: 120px;
25
+
26
+ li {
27
+ a {
28
+ padding: $spacer-3 $spacer-4;
29
+ text-align: left;
30
+
31
+ &:hover {
32
+ background-image: none;
33
+ text-shadow: none;
34
+ background-color: $bg-subtle;
35
+ color: $fg-default;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
@@ -1,5 +1,6 @@
1
1
  a,
2
2
  a:link,
3
3
  a:visited {
4
- color: $accent-fg;
4
+ color: unset;
5
+ font-weight: bold;
5
6
  }
@@ -1,8 +1,8 @@
1
1
  .status_tag {
2
2
  border: 1px solid;
3
- border-radius: 12px;
3
+ border-radius: 20px;
4
4
  letter-spacing: 0.5px;
5
- padding: $spacer-1 $spacer-2;
5
+ padding: $spacer-2 $spacer-3;
6
6
 
7
7
  &.yes {
8
8
  background: $success-subtle;
@@ -1,22 +1,25 @@
1
1
  // --------- Index Tables
2
2
 
3
3
  table.index_table {
4
- @include shadow-xs;
5
-
6
- border-radius: $border-radius-s;
7
4
  overflow: hidden;
8
5
 
9
6
  th {
7
+ padding: $spacer-4;
8
+ color: $fg-subtle;
9
+
10
10
  a,
11
11
  a:link,
12
12
  a:visited {
13
- color: $fg-muted;
13
+ color: $fg-subtle;
14
14
  }
15
15
 
16
16
  &.sorted-asc,
17
17
  &.sorted-desc {
18
18
  background: $bg-default;
19
- border-bottom: 2px solid $border-color-emphasis;
19
+
20
+ a {
21
+ color: $fg-default;
22
+ }
20
23
  }
21
24
 
22
25
  &:last-child {
@@ -25,11 +28,12 @@ table.index_table {
25
28
  }
26
29
 
27
30
  tr.even td {
28
- background: $bg-subtle;
31
+ background: $bg-default;
29
32
  }
30
33
 
31
34
  td {
32
- border-bottom: none;
35
+ border-bottom: 1px solid $blue-grey-100;
33
36
  vertical-align: middle;
37
+ padding: $spacer-4;
34
38
  }
35
39
  }
@@ -64,4 +64,10 @@
64
64
 
65
65
  @mixin light-button {
66
66
  @include outline-button;
67
+
68
+ &:not(.disabled) {
69
+ &:hover {
70
+ background-color: $bg-subtle;
71
+ }
72
+ }
67
73
  }
@@ -9,7 +9,7 @@
9
9
  // Fin héritage AA
10
10
  padding: $spacer-2 $spacer-4;
11
11
  color: $fg-muted;
12
- background: $bg-subtle;
12
+ background: $bg-default;
13
13
  border-bottom: 1px solid $border-color;
14
14
 
15
15
  // @include shadow-xs;
@@ -15,6 +15,11 @@
15
15
  line-height: 1.5;
16
16
  }
17
17
 
18
+ @mixin body-small {
19
+ font-size: $f6;
20
+ line-height: 1.5;
21
+ }
22
+
18
23
  @mixin title-large {
19
24
  font-size: $h1;
20
25
  line-height: 1.125;
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.2
4
+ version: 0.2.3
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-16 00:00:00.000000000 Z
12
+ date: 2023-10-18 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.2
34
+ version: 0.2.3
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.2
41
+ version: 0.2.3
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +68,7 @@ files:
68
68
  - app/assets/stylesheets/captive-admin/_mixins.scss
69
69
  - app/assets/stylesheets/captive-admin/_typography.scss
70
70
  - app/assets/stylesheets/captive-admin/components/_breadcrumbs.scss
71
+ - app/assets/stylesheets/captive-admin/components/_dropdown_menu.scss
71
72
  - app/assets/stylesheets/captive-admin/components/_links.scss
72
73
  - app/assets/stylesheets/captive-admin/components/_panels.scss
73
74
  - app/assets/stylesheets/captive-admin/components/_status_tags.scss
@@ -89,7 +90,7 @@ licenses:
89
90
  - MIT
90
91
  metadata:
91
92
  homepage_uri: https://captive.fr/
92
- source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.2.2/captive-admin
93
+ source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.2.3/captive-admin
93
94
  post_install_message:
94
95
  rdoc_options: []
95
96
  require_paths: