captive-admin 0.2.2 → 0.2.4

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: 47a27396c1892618e93b00a44b4094d7cde66d44e0f78beb2e887061d386ab0f
4
- data.tar.gz: a8f35d01b61ba43e0a742483b8feed22cca84ab7f56caa073021dd4b834fade9
3
+ metadata.gz: 3cb69c5212bc8b24a346a9dee1a3b71049d36f5f5966517fd8b54e51d1187709
4
+ data.tar.gz: de71ec596ddb70dcb249a41759942122cff6d6c76f16f2f0360179ea4a593ae0
5
5
  SHA512:
6
- metadata.gz: 5eb581360dc7dd86cd7d4302ce013cda1a3654803db0dbe05c1018a6c8f6d6880110a71ceb09631f379c54cb3ad5be5f99fbefe17e7371e4f0f59fa61fdd13d9
7
- data.tar.gz: 2daa72c05c5af576e59696b27ca1190bdfe31a0536edbe24799623a9fa40dcca4b8fbcc6eeee5f85899c1e740c89a056b72e70e9af454d8485c91f75874deffa
6
+ metadata.gz: 9b18b5c1dc109b04ec304e505d92bcc6d0c8004b77b169a54a281933fcb6b85f1b1e1866c20382f0cf6f780dd2b8bbfe524cf78531ad5b60c9faa2da16585cb3
7
+ data.tar.gz: 951f456a11a7b28d123e389ebc503377633b55c7daf14ffad7f70b89cab2fa5e1119a9daf1e96337f410daf93838a02aec8f761598565d2d4c30ebcf9d389977
@@ -8,14 +8,57 @@
8
8
  @import './forms';
9
9
  @import './components/tables';
10
10
  @import './components/breadcrumbs';
11
+ @import './components/dropdown_menu';
11
12
  @import './components/links';
13
+ @import './components/pagination';
12
14
  @import './components/panels';
15
+ @import './components/scopes';
13
16
  @import './components/status_tags';
17
+ @import './components/table_tools';
14
18
  @import './pages/logged_out';
19
+ @import './structure/footer';
15
20
  @import './structure/main_structure';
16
21
  @import './structure/title_bar';
17
22
 
18
23
  body {
19
24
  color: $fg-default;
25
+ @include body-medium;
20
26
  }
21
27
  }
28
+
29
+ .details {
30
+ margin-top: $spacer-1;
31
+ @include body-small;
32
+
33
+ color: $fg-subtle;
34
+ }
35
+
36
+ .col-actions {
37
+ .dropdown_menu_button {
38
+ font-size: 0;
39
+ margin: 0;
40
+ width: $spacer-6;
41
+ height: $spacer-6;
42
+ padding: 0;
43
+
44
+ &::before {
45
+ font-size: $f2;
46
+ content: '···';
47
+ border: 0;
48
+ width: $spacer-6;
49
+ height: $spacer-6;
50
+ left: 0;
51
+ top: 0;
52
+ text-align: center;
53
+ line-height: $spacer-6;
54
+ }
55
+
56
+ &::after {
57
+ border: 0;
58
+ }
59
+ }
60
+ }
61
+
62
+ * {
63
+ @include transition;
64
+ }
@@ -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 {
@@ -15,3 +15,7 @@ h6 {
15
15
  letter-spacing: 0.5px;
16
16
  margin-top: 0;
17
17
  }
18
+
19
+ p {
20
+ margin-bottom: $spacer-4;
21
+ }
@@ -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
  }
@@ -0,0 +1,7 @@
1
+ .pagination_information {
2
+ color: $fg-subtle;
3
+
4
+ b {
5
+ color: $fg-default;
6
+ }
7
+ }
@@ -0,0 +1,11 @@
1
+ .scopes {
2
+ li {
3
+ .count {
4
+ color: $fg-default;
5
+ }
6
+
7
+ &:first-child a {
8
+ margin-left: 0;
9
+ }
10
+ }
11
+ }
@@ -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;
@@ -0,0 +1,60 @@
1
+ .table_tools {
2
+ display: flex;
3
+ align-items: center;
4
+ margin-bottom: $spacer-2;
5
+ }
6
+
7
+ a.table_tools_button,
8
+ .table_tools .dropdown_menu_button {
9
+ @include body-medium;
10
+
11
+ font-weight: normal;
12
+ outline: none;
13
+ padding: $spacer-2 $spacer-4;
14
+ box-shadow: none;
15
+ background: none;
16
+ @include transition;
17
+
18
+ &:not(.disabled) {
19
+ &:hover {
20
+ background: none;
21
+ border-color: $border-color-emphasis;
22
+ }
23
+
24
+ &:active {
25
+ transform: scale(0.925);
26
+ box-shadow: none;
27
+ background: none;
28
+ border-color: $border-color-emphasis;
29
+ color: $fg-default;
30
+ }
31
+ }
32
+ }
33
+
34
+ .table_tools_segmented_control {
35
+ li {
36
+ a {
37
+ border: 1px solid $border-color;
38
+ border-radius: 20px;
39
+ margin-right: $spacer-2;
40
+ }
41
+
42
+ &:first-child a {
43
+ border-radius: 20px;
44
+ }
45
+
46
+ &:last-child a {
47
+ border-radius: 20px;
48
+ }
49
+
50
+ &.selected a {
51
+ background: $bg-subtle;
52
+ box-shadow: none;
53
+ border: 2px solid $border-color-emphasis;
54
+
55
+ &:hover {
56
+ background: $bg-subtle;
57
+ }
58
+ }
59
+ }
60
+ }
@@ -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 $border-color;
33
36
  vertical-align: middle;
37
+ padding: $spacer-4;
34
38
  }
35
39
  }
@@ -2,4 +2,5 @@
2
2
  @import './shadows';
3
3
  @import './buttons';
4
4
  @import './sections';
5
+ @import './transitions';
5
6
  @import './typography';
@@ -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;
@@ -0,0 +1,4 @@
1
+ @mixin transition {
2
+ transition-property: transform, background-color, border-color;
3
+ transition-duration: 0.2s;
4
+ }
@@ -12,6 +12,11 @@
12
12
 
13
13
  @mixin body-medium {
14
14
  font-size: $f5;
15
+ line-height: 18px;
16
+ }
17
+
18
+ @mixin body-small {
19
+ font-size: $f6;
15
20
  line-height: 1.5;
16
21
  }
17
22
 
@@ -0,0 +1,19 @@
1
+ #footer {
2
+ background: $bg-subtle;
3
+ padding: $spacer-4 $spacer-6;
4
+ @include body-medium;
5
+
6
+ clear: both;
7
+
8
+ p {
9
+ padding-top: $spacer-4;
10
+ }
11
+ }
12
+
13
+ #index_footer {
14
+ padding-top: $spacer-1;
15
+ text-align: right;
16
+ @include body-small;
17
+
18
+ margin-bottom: $spacer-6;
19
+ }
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.4
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-19 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.4
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.4
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -68,17 +68,23 @@ 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
73
+ - app/assets/stylesheets/captive-admin/components/_pagination.scss
72
74
  - app/assets/stylesheets/captive-admin/components/_panels.scss
75
+ - app/assets/stylesheets/captive-admin/components/_scopes.scss
73
76
  - app/assets/stylesheets/captive-admin/components/_status_tags.scss
77
+ - app/assets/stylesheets/captive-admin/components/_table_tools.scss
74
78
  - app/assets/stylesheets/captive-admin/components/_tables.scss
75
79
  - app/assets/stylesheets/captive-admin/mixins/_all.scss
76
80
  - app/assets/stylesheets/captive-admin/mixins/_buttons.scss
77
81
  - app/assets/stylesheets/captive-admin/mixins/_sections.scss
78
82
  - app/assets/stylesheets/captive-admin/mixins/_shadows.scss
83
+ - app/assets/stylesheets/captive-admin/mixins/_transitions.scss
79
84
  - app/assets/stylesheets/captive-admin/mixins/_typography.scss
80
85
  - app/assets/stylesheets/captive-admin/mixins/_variables.scss
81
86
  - app/assets/stylesheets/captive-admin/pages/_logged_out.scss
87
+ - app/assets/stylesheets/captive-admin/structure/_footer.scss
82
88
  - app/assets/stylesheets/captive-admin/structure/_main_structure.scss
83
89
  - app/assets/stylesheets/captive-admin/structure/_title_bar.scss
84
90
  - lib/captive/admin.rb
@@ -89,7 +95,7 @@ licenses:
89
95
  - MIT
90
96
  metadata:
91
97
  homepage_uri: https://captive.fr/
92
- source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.2.2/captive-admin
98
+ source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.2.4/captive-admin
93
99
  post_install_message:
94
100
  rdoc_options: []
95
101
  require_paths: