flammarion 0.0.11 → 0.0.12

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.
@@ -41,19 +41,22 @@ class WSClient
41
41
  target = $('#panes')
42
42
 
43
43
  allPanes = target.find('> .pane')
44
- height = (100.0 / allPanes.size()).toFixed(0) + "%"
45
44
  if target.hasClass('horizontal')
46
45
  orientation = 'horizontal'
47
46
  else
48
47
  orientation = 'vertical'
49
48
 
50
- console.log target, allPanes.size(), 100.0 / allPanes.size(), height, orientation
49
+ total_weight = ((parseFloat($(i).attr('pane-weight') || 1.0)) for i in allPanes).reduce (t,s) -> t + s
50
+ # total_weight = (allPanes.map((i) -> parseFloat(i[].attr('pane-weight')))).reduce (t, s) -> t + s
51
+
52
+ p_height = (pane) -> (parseFloat($(pane).attr('pane-weight') || 1.0) / total_weight * 100).toFixed(0) + "%"
53
+ console.log target, allPanes.size(), 100.0 / allPanes.size(), total_weight, orientation
51
54
  for pane in allPanes
52
55
  if orientation is 'horizontal'
53
- $(pane).css "width", height
56
+ $(pane).css "width", p_height(pane)
54
57
  $(pane).css "height", '100%'
55
58
  else
56
- $(pane).css "height", height
59
+ $(pane).css "height", p_height(pane)
57
60
  $(pane).css "width", '100%'
58
61
 
59
62
  escape: (text, input_options) ->
@@ -38,8 +38,7 @@ buttony(raised = false)
38
38
  text-align left
39
39
  box-sizing border-box
40
40
  width 100%
41
- if $enable-gradients
42
- box-shadow inset 0px 0px 2px 2px darken($bg-color, 20%)
41
+ box-shadow-inset()
43
42
  &.unclicked
44
43
  color darken($fg-color, 50%)
45
44
  textarea&
@@ -80,3 +80,8 @@ html
80
80
  background-color rgba(0, 3, 10, 0.75)
81
81
  pointer-events none
82
82
  border 1px solid #012
83
+
84
+ hr
85
+ width 95%
86
+ background-color $fg-color
87
+ border 1px solid activate($bg-color, 10%)
@@ -0,0 +1,16 @@
1
+ @import 'colors.styl'
2
+ @import 'mixins.styl'
3
+
4
+ #searchbar
5
+ position absolute
6
+ right 10%
7
+ top 0px
8
+ padding 5px
9
+ padding-top 0px
10
+ background-color $bg-color
11
+ border $normal-border
12
+ border-top 0px
13
+ border-radius 0 0 4px 4px
14
+ drop-shadow()
15
+ & > input
16
+ margin-left 1em
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flammarion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -199,6 +199,7 @@ files:
199
199
  - lib/html/source/stylesheets/markdown.styl
200
200
  - lib/html/source/stylesheets/table.styl
201
201
  - lib/html/source/stylesheets/map.styl
202
+ - lib/html/source/stylesheets/searchbar.styl
202
203
  - lib/html/source/images/marker-shadow.png
203
204
  - lib/html/source/images/layers-2x.png
204
205
  - lib/html/source/images/marker-icon-2x.png
@@ -218,6 +219,8 @@ files:
218
219
  - lib/html/source/javascripts/vendor/highlight.pack.js
219
220
  - lib/html/source/javascripts/websocket.coffee
220
221
  - lib/html/source/javascripts/plot.coffee
222
+ - lib/html/source/javascripts/searchbar.coffee
223
+ - lib/html/source/javascripts/input.coffee
221
224
  - lib/html/source/javascripts/status.coffee
222
225
  - lib/html/source/javascripts/map.coffee
223
226
  - lib/html/source/javascripts/querystring.coffee
@@ -232,6 +235,7 @@ files:
232
235
  - lib/html/build/stylesheets/scrollbar.css
233
236
  - lib/html/build/stylesheets/leaflet.css
234
237
  - lib/html/build/stylesheets/dialog.css
238
+ - lib/html/build/stylesheets/searchbar.css
235
239
  - lib/html/build/stylesheets/colors.css
236
240
  - lib/html/build/stylesheets/frontend.css
237
241
  - lib/html/build/stylesheets/markdown.css
@@ -265,9 +269,11 @@ files:
265
269
  - lib/html/build/javascripts/vendor/leaflet.js
266
270
  - lib/html/build/javascripts/vendor/ansi_up.js
267
271
  - lib/html/build/javascripts/vendor/highlight.pack.js
272
+ - lib/html/build/javascripts/searchbar.js
268
273
  - lib/html/build/javascripts/status.js
269
274
  - lib/html/build/javascripts/map.js
270
275
  - lib/html/build/javascripts/actions.js
276
+ - lib/html/build/javascripts/input.js
271
277
  - lib/html/build/javascripts/querystring.js
272
278
  - lib/html/build/fonts/fontawesome-webfont.eot
273
279
  - lib/html/build/fonts/fontawesome-webfont.woff2