captive-admin 0.1.0.alpha → 0.2.2

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: de70928a6c6a5f945fd2e3cb6fc87625ee195df6188760346a8409af948f3dec
4
- data.tar.gz: 5976a7d3d9b960a6c112e0cc78ed56f1a4156cff2fc28e29d12e8c8633ba5620
3
+ metadata.gz: 47a27396c1892618e93b00a44b4094d7cde66d44e0f78beb2e887061d386ab0f
4
+ data.tar.gz: a8f35d01b61ba43e0a742483b8feed22cca84ab7f56caa073021dd4b834fade9
5
5
  SHA512:
6
- metadata.gz: 4dda41f7c744488109b1eb258b051990a9b2715b3274299d7fdea0bd1466174b09f16be5f5c2d474006393a005352ccafa667f4c86b07c7db364b98d43300728
7
- data.tar.gz: 93d3ba75fd9d5cfc5eb653345118d49738b4c50a53f7716382c86a8ad92d8e1708cdc77d1ee862e2ef51ed8afbc3255d831b54719b60f62849a764721a09a3d5
6
+ metadata.gz: 5eb581360dc7dd86cd7d4302ce013cda1a3654803db0dbe05c1018a6c8f6d6880110a71ceb09631f379c54cb3ad5be5f99fbefe17e7371e4f0f59fa61fdd13d9
7
+ data.tar.gz: 2daa72c05c5af576e59696b27ca1190bdfe31a0536edbe24799623a9fa40dcca4b8fbcc6eeee5f85899c1e740c89a056b72e70e9af454d8485c91f75874deffa
@@ -7,10 +7,12 @@
7
7
  @import './header';
8
8
  @import './forms';
9
9
  @import './components/tables';
10
+ @import './components/breadcrumbs';
10
11
  @import './components/links';
11
12
  @import './components/panels';
12
13
  @import './components/status_tags';
13
14
  @import './pages/logged_out';
15
+ @import './structure/main_structure';
14
16
  @import './structure/title_bar';
15
17
 
16
18
  body {
@@ -1,34 +1,121 @@
1
1
  // ----------------------------------- Header
2
+ @mixin down-arrow {
3
+ background-image: url($menu-arrow-light-icon-url);
4
+ background-size: 24px;
5
+ background-position-x: calc(100% - 4px);
6
+ padding-right: 28px;
7
+ }
8
+
2
9
  #header {
3
10
  text-shadow: none;
4
11
  background: $bg-emphasis;
12
+ padding: 0 $spacer-6;
5
13
 
6
14
  h1 {
7
15
  color: $fg-on-emphasis;
16
+ padding-left: 0;
17
+ height: 60px;
18
+ display: flex;
19
+ align-items: center;
20
+
21
+ img {
22
+ top: 0;
23
+ height: 24px;
24
+ }
8
25
  }
9
26
 
10
27
  a,
11
28
  a:link {
12
- color: $fg-on-emphasis;
29
+ color: $blue-grey-100;
30
+ }
31
+
32
+ .header-item {
33
+ top: 0;
13
34
  }
14
35
 
15
36
  ul.tabs {
37
+ li {
38
+ &:hover > ul {
39
+ display: block;
40
+ margin-top: $spacer-2;
41
+ padding: $spacer-3 0;
42
+ }
43
+ }
44
+
16
45
  & > li {
46
+ font-size: $f5;
47
+
17
48
  &.current > a {
18
- background: $accent-subtle;
19
- color: $fg-default;
49
+ background: none;
50
+
51
+ &::before {
52
+ content: '';
53
+ background-color: $primary-emphasis;
54
+ position: absolute;
55
+ bottom: 0;
56
+ width: 19px;
57
+ height: 2px;
58
+ left: 50%;
59
+ margin-left: -9px;
60
+ }
61
+ }
62
+
63
+ &.has_nested > a {
64
+ @include down-arrow;
65
+ }
66
+
67
+ &.has_nested.current > a {
68
+ @include down-arrow;
69
+
70
+ background-color: transparent;
71
+ }
72
+
73
+ a {
74
+ padding: $spacer-2 $spacer-3;
75
+ font-weight: bold;
76
+ border-radius: 20px;
20
77
  }
21
78
 
22
79
  &:hover > a {
23
- background: $accent-subtle;
24
- color: $accent-fg;
80
+ background: $blue-grey-700;
81
+ }
82
+
83
+ &.has_nested:hover > a {
84
+ @include rounded-all(20px, 20px, 20px, 20px);
85
+ @include down-arrow;
86
+
87
+ border-bottom: none;
88
+ background-color: $blue-grey-700;
89
+ }
90
+
91
+ /* Drop down menus */
92
+ ul {
93
+ background: $bg-default;
94
+ @include rounded-all(12px, 12px, 12px, 12px);
95
+
96
+ text-align: left;
97
+ @include shadow-xs;
98
+
99
+ li {
100
+ a {
101
+ color: $fg-default;
102
+
103
+ &:hover {
104
+ background: $bg-subtle;
105
+ color: $fg-default;
106
+ border-radius: 0;
107
+ }
108
+ }
109
+ }
25
110
  }
26
111
  }
27
112
  }
28
113
 
114
+ #tabs {
115
+ text-align: center;
116
+ }
117
+
29
118
  #utility_nav {
30
- a:hover {
31
- color: $accent-fg;
32
- }
119
+ padding-right: 0;
33
120
  }
34
121
  }
@@ -11,6 +11,7 @@ h5,
11
11
  h6 {
12
12
  @include title-family;
13
13
 
14
+ color: $fg-default;
14
15
  letter-spacing: 0.5px;
15
16
  margin-top: 0;
16
17
  }
@@ -0,0 +1,18 @@
1
+ .breadcrumb {
2
+ @include body-medium;
3
+
4
+ text-transform: none;
5
+ margin-bottom: 0;
6
+
7
+ a,
8
+ a:link,
9
+ a:visited,
10
+ a:active {
11
+ color: $fg-subtle;
12
+ }
13
+
14
+ .breadcrumb_sep {
15
+ color: $primary-fg;
16
+ font-weight: bold;
17
+ }
18
+ }
@@ -9,3 +9,13 @@
9
9
  @mixin title-family {
10
10
  font-family: $title-font-family;
11
11
  }
12
+
13
+ @mixin body-medium {
14
+ font-size: $f5;
15
+ line-height: 1.5;
16
+ }
17
+
18
+ @mixin title-large {
19
+ font-size: $h1;
20
+ line-height: 1.125;
21
+ }
@@ -1 +1,3 @@
1
1
  @import 'captive-theme/variables';
2
+
3
+ $menu-arrow-light-icon-url: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgY2xhc3M9InctOCBtci00IGljb24tY2hldmVyb24tZG93biI+PHBhdGggY2xhc3M9InNlY29uZGFyeSIgZmlsbD0iI2ZmZmZmZiIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMTUuMyAxMC4zYTEgMSAwIDAgMSAxLjQgMS40bC00IDRhMSAxIDAgMCAxLTEuNCAwbC00LTRhMSAxIDAgMCAxIDEuNC0xLjRsMy4zIDMuMjkgMy4zLTMuM3oiPjwvcGF0aD48L3N2Zz4=';
@@ -0,0 +1,3 @@
1
+ #active_admin_content {
2
+ padding: $spacer-3 $spacer-6;
3
+ }
@@ -1,4 +1,13 @@
1
1
  #title_bar {
2
+ border-bottom: none;
3
+ background: none;
4
+ box-shadow: none;
5
+ padding: $spacer-3 $spacer-6;
6
+
7
+ h2 {
8
+ @include title-large;
9
+ }
10
+
2
11
  .action_items {
3
12
  span.action_item {
4
13
  & > a,
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.1.0.alpha
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Captive
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 0.1.0.alpha
34
+ version: 0.2.2
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.1.0.alpha
41
+ version: 0.2.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -67,6 +67,7 @@ files:
67
67
  - app/assets/stylesheets/captive-admin/_header.scss
68
68
  - app/assets/stylesheets/captive-admin/_mixins.scss
69
69
  - app/assets/stylesheets/captive-admin/_typography.scss
70
+ - app/assets/stylesheets/captive-admin/components/_breadcrumbs.scss
70
71
  - app/assets/stylesheets/captive-admin/components/_links.scss
71
72
  - app/assets/stylesheets/captive-admin/components/_panels.scss
72
73
  - app/assets/stylesheets/captive-admin/components/_status_tags.scss
@@ -78,6 +79,7 @@ files:
78
79
  - app/assets/stylesheets/captive-admin/mixins/_typography.scss
79
80
  - app/assets/stylesheets/captive-admin/mixins/_variables.scss
80
81
  - app/assets/stylesheets/captive-admin/pages/_logged_out.scss
82
+ - app/assets/stylesheets/captive-admin/structure/_main_structure.scss
81
83
  - app/assets/stylesheets/captive-admin/structure/_title_bar.scss
82
84
  - lib/captive/admin.rb
83
85
  - lib/captive/admin/engine.rb
@@ -87,7 +89,7 @@ licenses:
87
89
  - MIT
88
90
  metadata:
89
91
  homepage_uri: https://captive.fr/
90
- source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.1.0.alpha/captive-admin
92
+ source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.2.2/captive-admin
91
93
  post_install_message:
92
94
  rdoc_options: []
93
95
  require_paths:
@@ -99,9 +101,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
101
  version: 2.6.0
100
102
  required_rubygems_version: !ruby/object:Gem::Requirement
101
103
  requirements:
102
- - - ">"
104
+ - - ">="
103
105
  - !ruby/object:Gem::Version
104
- version: 1.3.1
106
+ version: '0'
105
107
  requirements: []
106
108
  rubygems_version: 3.3.26
107
109
  signing_key: