itsf_backend 1.1.15 → 1.2.0

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
  SHA1:
3
- metadata.gz: 6b8deeccc76983e98725cfe9db96e5abf34c3d26
4
- data.tar.gz: 9f1166ac19a12792140b36b411d6c675ebe9e30c
3
+ metadata.gz: a080bb609cad7b956b902b5e2120be42af1c63bb
4
+ data.tar.gz: 22cb6c9bb2d4411338cd4d6ea1048acde8803cb2
5
5
  SHA512:
6
- metadata.gz: c729116e6c8e439d27cc8e7a0de8fba66230385a81f1a5d302c502229d590b9c2f3371725bbe6b8dfa83a45b16cb25411ddf35a34c8672b41c8618d35cf8609d
7
- data.tar.gz: 8318ae1bb9d3733396567366f00d3d238921a2f56d1accd18f3999be80ededac8c57b85d8892e0bf93ebf7baf7e8ccba5fd00be2eff81d199da97127398e8650
6
+ metadata.gz: 077504a96e9a2df82d06972406813027a9e0d2b180e04ac3ae487a3cdbefe89d810d5d22d26060bfdebce01ed6e8edb039cc10537259efb0a8e0a5d6e5b99953
7
+ data.tar.gz: 4c9858fdceb4c3c9893be2ab51cf8688d89cfa943f0ae0e29fca15733bc30e70ef0f4695bb160c4d3ee1d3a69fda7a87c3d97c7e400d97ecc4ced940d4034ed8
@@ -13,6 +13,7 @@
13
13
  @import "bootstrap_and_overrides.css.less";
14
14
  @import "application/ace.css.less";
15
15
  @import "application/basic-page.css.less";
16
+ @import "application/bootstrap-vertical-navigation.css.less";
16
17
  @import "application/bottom-margin-extension.css.less";
17
18
  @import "application/button-responsive.css.less";
18
19
  @import "application/check-box-margin-fix.css.less";
@@ -47,4 +47,15 @@
47
47
  .indent-chars-18 { padding-left: 18ch; }
48
48
  .indent-chars-19 { padding-left: 19ch; }
49
49
 
50
- .label a, .badge a { color: white; }
50
+ .label a, .badge a { color: white; }
51
+
52
+ .p-t-1 { padding-top: 1ch; }
53
+ .p-t-2 { padding-top: 2ch; }
54
+ .p-t-3 { padding-top: 3ch; }
55
+ .p-t-4 { padding-top: 4ch; }
56
+ .p-t-5 { padding-top: 5ch; }
57
+ .p-t-6 { padding-top: 6ch; }
58
+ .p-t-7 { padding-top: 7ch; }
59
+ .p-t-8 { padding-top: 8ch; }
60
+ .p-t-9 { padding-top: 9ch; }
61
+ .p-t-10 { padding-top: 10ch; }
@@ -0,0 +1,81 @@
1
+ @media (min-width: 1200px) {
2
+ .sidebar-nav .navbar-brand {
3
+ float: unset;
4
+ }
5
+
6
+ .sidebar-nav .navbar-header {
7
+ width: 100%;
8
+ }
9
+
10
+ .sidebar-nav .navbar-nav {
11
+ width: 100%;
12
+ }
13
+
14
+ .sidebar-nav .navbar-nav li {
15
+ width: 100%;
16
+ border-bottom: 1px solid rgba(0, 0, 0, 0.07);
17
+ }
18
+
19
+ .sidebar-nav .navbar-nav li:last-child {
20
+ width: 100%;
21
+ border-bottom: none;
22
+ }
23
+ .sidebar-nav .dropdown-menu {
24
+ position: unset;
25
+ top: unset;
26
+ left: unset;
27
+ z-index: unset;
28
+ display: unset;
29
+ float: unset;
30
+ min-width: unset;
31
+ padding: unset;
32
+ margin: unset;
33
+ list-style: none;
34
+ font-size: unset;
35
+ text-align: unset;
36
+ background-color: unset;
37
+ border: unset;
38
+ border: unset;
39
+ border-radius: unset;
40
+ -webkit-box-shadow: unset;
41
+ box-shadow: unset;
42
+ background-clip: unset;
43
+ }
44
+
45
+ .sidebar-nav .dropdown-menu > li > a {
46
+ padding: 10px;
47
+ padding-left: 30px;
48
+ }
49
+
50
+ .sidebar-nav .dropdown-menu > li > a:hover, .sidebar-nav .dropdown-menu > li > a:focus {
51
+ background-color: unset;
52
+ color: unset;
53
+ }
54
+
55
+
56
+ .sidebar-nav .dropdown-menu .label {
57
+ float: right;
58
+ }
59
+
60
+ .sidebar-nav .dropdown.open a, .sidebar-nav .dropdown.open a:hover {
61
+ background-color: unset;
62
+ }
63
+
64
+ .sidebar-nav .pull-right {
65
+ float: unset !important;
66
+ }
67
+
68
+ .sidebar-nav .navbar-form {
69
+ width: 100%;
70
+ padding-left: unset;
71
+ padding-right: unset;
72
+ }
73
+
74
+ .sidebar-nav .navbar-form .form-group {
75
+ width: 100%;
76
+ }
77
+
78
+ .sidebar-nav .navbar-form .form-group .form-control {
79
+ width: 100%;
80
+ }
81
+ }
@@ -27,26 +27,27 @@
27
27
  = stylesheet_link_tag engine.name.underscore.gsub('/', '_').gsub('_engine', ''), media: "all"
28
28
 
29
29
  %body
30
- .navbar.navbar-default.navbar-static-top
31
- .container-fluid
32
- %button.navbar-toggle(type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse")
33
- %span.icon-bar
34
- %span.icon-bar
35
- %span.icon-bar
36
- #navigation-logo.pull-left
37
- = render 'layouts/itsf/backend/logo'
38
- = Itsf::Backend::Configuration.title_link.call(self)
39
- .navbar-collapse.collapse.navbar-responsive-collapse
40
- %ul.nav.navbar-nav
41
- = render 'layouts/itsf/backend/main_navigation'
42
- %ul.nav.navbar-nav.pull-right
43
- = render_i18n_navigation
44
- - if respond_to?(:render_user_navigation)
30
+ - if Itsf::Backend::Configuration.main_navigation_style.eql? :horizontal
31
+ .navbar.navbar-default.navbar-static-top
32
+ .container-fluid
33
+ %button.navbar-toggle(type="button" data-toggle="collapse" data-target=".navbar-responsive-collapse")
34
+ %span.icon-bar
35
+ %span.icon-bar
36
+ %span.icon-bar
37
+ #navigation-logo.pull-left
38
+ = render 'layouts/itsf/backend/logo'
39
+ = Itsf::Backend::Configuration.title_link.call(self)
40
+ .navbar-collapse.collapse.navbar-responsive-collapse
41
+ %ul.nav.navbar-nav
42
+ = render 'layouts/itsf/backend/main_navigation'
45
43
  %ul.nav.navbar-nav.pull-right
46
- = render_user_navigation(dropdown: true)
47
- - if Itsf::Backend.features?(:multi_client)
48
- %ul.nav.navbar-nav.pull-right
49
- = render_client_navigation
44
+ = render_i18n_navigation
45
+ - if respond_to?(:render_user_navigation)
46
+ %ul.nav.navbar-nav.pull-right
47
+ = render_user_navigation(dropdown: true)
48
+ - if Itsf::Backend.features?(:multi_client)
49
+ %ul.nav.navbar-nav.pull-right
50
+ = render_client_navigation
50
51
 
51
52
  .container-fluid
52
53
  .row
@@ -98,4 +98,13 @@ Itsf::Backend.configure do |config|
98
98
  # Default config.default_pagination_size = 15
99
99
  #
100
100
  config.default_pagination_size = 15
101
+
102
+ # Sets the main navigation style. By default, there are two styles:
103
+ #
104
+ # * horizontal
105
+ # * vertical
106
+ #
107
+ # Default: config.main_navigation_style = :horizontal
108
+ #
109
+ config.main_navigation_style = :vertical
101
110
  end
@@ -21,6 +21,7 @@ module Itsf
21
21
  { index: [], show: [], edit: [] }
22
22
  end
23
23
  mattr_accessor(:default_pagination_size) { 15 }
24
+ mattr_accessor(:main_navigation_style) { :horizontal }
24
25
 
25
26
  def registered_controllers
26
27
  backend_engines.call.collect do |engine|
@@ -1,5 +1,5 @@
1
1
  module Itsf
2
2
  module Backend
3
- VERSION = '1.1.15'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itsf_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.15
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -473,6 +473,7 @@ files:
473
473
  - app/assets/stylesheets/itsf/backend/application/ace.css.less
474
474
  - app/assets/stylesheets/itsf/backend/application/basic-page.css.less
475
475
  - app/assets/stylesheets/itsf/backend/application/bootstrap-extensions.css.less
476
+ - app/assets/stylesheets/itsf/backend/application/bootstrap-vertical-navigation.css.less
476
477
  - app/assets/stylesheets/itsf/backend/application/bottom-margin-extension.css.less
477
478
  - app/assets/stylesheets/itsf/backend/application/button-responsive.css.less
478
479
  - app/assets/stylesheets/itsf/backend/application/check-box-margin-fix.css.less