promethee 1.11.13 → 1.11.14

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: 0ea9f31873a2f1c6582ef188bc4ce0c70dedaea43e455e8e975fcfe271535e50
4
- data.tar.gz: 5cc5af9df175d9a16cd03f50afe1afdd9914976e728ef8ed80c627af94928eb5
3
+ metadata.gz: 35fda8035377d0ee062b5998245c04033540fa6d78a001c9fa611bb117e00fba
4
+ data.tar.gz: f7414eff8dffe8080ccf4b72d6a3fed61faa70eb66f48ee9a912c2a5fa1d3941
5
5
  SHA512:
6
- metadata.gz: 2404427cfcb2cf8b30654d072605f9c9cc53814828aeed6c897e57bc6d4a5fe5724088125eb073facc356496ae42d477e275fb67f7bfcd88af4a16c09cc78a72
7
- data.tar.gz: 9cebfcf878829b76133a8bb8fb68d5d1d83f8ca40ec1ccd715620bc9b2b97e10f28229e7f8715212fa5f649804ee9f151e51cee74d92b20426418a4cc4b09446
6
+ metadata.gz: 244069464a8b461700b62dcf34fe20192b138d87561f10bba061fad31c381132568f80166e3c8c181bc622b50bad93565dcf279186bad4e39a9225bb7567dc21
7
+ data.tar.gz: a3c79bc3d817a652185781d755521ca9e899b60649ecfa78fed99cf087634b82fb95d29ae92bd25e38ecbef97a93b5fa82869b48d841e75e7e8c3dc027651bf1
@@ -105,3 +105,19 @@
105
105
  &__slider
106
106
  .carousel-item__content
107
107
  text-align: center
108
+
109
+ @media print
110
+ body
111
+ font-size: 125%
112
+ .promethee
113
+ &__component
114
+ &__page > &__aside,
115
+ &__page > &__text,
116
+ &__page > &__faq,
117
+ &__page > &__table,
118
+ &__page > &__video,
119
+ &__page > &__collection,
120
+ &__page > &__row
121
+ max-width: 90% !important
122
+ .container
123
+ max-width: 90% !important
@@ -8,4 +8,21 @@
8
8
  <label class="label-control">Offset: {{promethee.inspected.attributes.offset}}</label>
9
9
  <input ng-model="promethee.inspected.attributes.offset" type="range" min="0" max="{{12-promethee.inspected.attributes.size}}">
10
10
  </div>
11
+
12
+ <%= render 'promethee/edit/inspect.advanced' %>
13
+ <div class="form-group">
14
+ <input id="column_edit_inspect_mobile_enabled" ng-model="promethee.inspected.attributes.mobile.enabled" type="checkbox" />
15
+ <label class="label-control" for="column_edit_inspect_mobile_enabled"> <b>Mobile</b></label>
16
+ </div>
17
+ <div ng-show="promethee.inspected.attributes.mobile.enabled">
18
+ <div class="form-group">
19
+ <label class="label-control">Size: {{promethee.inspected.attributes.mobile.size}}</label>
20
+ <input ng-model="promethee.inspected.attributes.mobile.size" type="range" min="1" max="12">
21
+ </div>
22
+ <div class="form-group">
23
+ <label class="label-control">Offset: {{promethee.inspected.attributes.mobile.offset}}</label>
24
+ <input ng-model="promethee.inspected.attributes.mobile.offset" type="range" min="0" max="{{12-promethee.inspected.attributes.size}}">
25
+ </div>
26
+ </div>
27
+ </div>
11
28
  </script>
@@ -1,7 +1,15 @@
1
1
  <%
2
2
  size = component[:attributes][:size]
3
3
  offset = component[:attributes][:offset]
4
+ classes = "col-md-#{size}"
5
+ classes += " offset-md-#{offset} col-md-offset-#{offset}" if offset > 0
6
+ if component[:attributes][:mobile] && component[:attributes][:mobile][:enabled]
7
+ mobile_size = component[:attributes][:mobile][:size]
8
+ mobile_offset = component[:attributes][:mobile][:offset]
9
+ classes += " col-#{mobile_size} col-xs-#{mobile_size}"
10
+ classes += " offset-#{mobile_offset} col-xs-offset-#{mobile_offset}" if mobile_offset > 0
11
+ end
4
12
  %>
5
- <div class="col-md-<%= size %><%= " offset-md-#{offset} col-md-offset-#{offset}" if offset > 0 %> <%= promethee_class_for component %>">
13
+ <div class="<%= classes %> <%= promethee_class_for component %>">
6
14
  <%= render 'promethee/show/components', components: component[:children] %>
7
15
  </div>
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.11.13'
3
+ VERSION = '1.11.14'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promethee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.13
4
+ version: 1.11.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Gaya
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2018-12-07 00:00:00.000000000 Z
17
+ date: 2018-12-14 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails