luca 0.9.1 → 0.9.2
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.
- data/CHANGELOG +9 -0
- data/ROADMAP +15 -3
- data/Rakefile +33 -7
- data/app.rb +0 -1
- data/assets/javascripts/dependencies.coffee +0 -1
- data/assets/javascripts/sandbox/application.coffee +1 -1
- data/assets/javascripts/sandbox/templates/main.luca +52 -34
- data/assets/javascripts/sandbox/templates/sandbox/navigation.luca +3 -1
- data/assets/stylesheets/bootstrap-responsive.min.css +0 -1
- data/assets/stylesheets/bootstrap.min.css +48 -29
- data/assets/stylesheets/sandbox/sandbox.scss +11 -28
- data/lib/luca/rails/version.rb +1 -1
- data/site/assets/dependencies.js +94 -0
- data/site/assets/glyphicons-halflings-white.png +0 -0
- data/site/assets/glyphicons-halflings.png +0 -0
- data/site/assets/luca-ui-bootstrap.css +1313 -0
- data/site/assets/luca-ui-bootstrap.js +9 -0
- data/site/assets/luca-ui-development-tools.css +224 -0
- data/site/assets/luca-ui-development-tools.js +18561 -0
- data/site/assets/sandbox.css +14 -0
- data/site/assets/sandbox.js +131 -0
- data/site/index.html +20 -0
- data/spec/core/collection_spec.coffee +6 -6
- data/spec/core/view_spec.coffee +1 -0
- data/spec/framework_spec.coffee +7 -0
- data/spec/managers/collection_manager_spec.coffee +2 -1
- data/src/components/application.coffee +8 -4
- data/src/components/collection_view.coffee +8 -2
- data/src/components/fields/checkbox_array.coffee +3 -1
- data/src/components/form_view.coffee +46 -21
- data/src/components/grid_view.coffee +2 -4
- data/src/components/nav_bar.coffee +3 -7
- data/src/containers/tab_view.coffee +15 -2
- data/src/containers/viewport.coffee +13 -4
- data/src/core/collection.coffee +68 -53
- data/src/core/core.coffee +7 -2
- data/src/core/panel.coffee +32 -17
- data/src/core/registry.coffee +11 -3
- data/src/core/util.coffee +17 -1
- data/src/core/view.coffee +6 -5
- data/src/framework.coffee +46 -2
- data/src/managers/collection_manager.coffee +22 -81
- data/src/stylesheets/components/checkbox_array.scss +5 -0
- data/src/templates/components/form_alert +0 -0
- data/src/templates/components/form_alert.luca +3 -0
- data/src/templates/containers/tab_view.luca +1 -1
- data/src/tools/console.coffee +3 -0
- data/vendor/assets/javascripts/luca-ui-base.js +266 -128
- data/vendor/assets/javascripts/luca-ui-development-tools.js +3 -161
- data/vendor/assets/javascripts/luca-ui-development-tools.min.js +15 -0
- data/vendor/assets/javascripts/luca-ui-spec.js +380 -176
- data/vendor/assets/javascripts/luca-ui.js +348 -166
- data/vendor/assets/javascripts/luca-ui.min.js +4 -3
- data/vendor/assets/stylesheets/luca-ui-bootstrap.css +50 -29
- data/vendor/assets/stylesheets/luca-ui-spec.css +2 -0
- data/vendor/assets/stylesheets/luca-ui.css +2 -0
- metadata +16 -4
- data/src/templates/components/form_view.luca +0 -4
- data/src/tools/development_console.coffee +0 -147
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Bootstrap.js by @fat & @mdo
|
3
|
+
* plugins: bootstrap-transition.js, bootstrap-modal.js, bootstrap-dropdown.js, bootstrap-tooltip.js, bootstrap-popover.js, bootstrap-alert.js, bootstrap-button.js, bootstrap-collapse.js, bootstrap-typeahead.js
|
4
|
+
* Copyright 2012 Twitter, Inc.
|
5
|
+
* http://www.apache.org/licenses/LICENSE-2.0.txt
|
6
|
+
*/
|
7
|
+
|
8
|
+
!function(a){a(function(){a.support.transition=function(){var a=function(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"},c;for(c in b)if(a.style[c]!==undefined)return b[c]}();return a&&{end:a}}()})}(window.jQuery),!function(a){function c(){var b=this,c=setTimeout(function(){b.$element.off(a.support.transition.end),d.call(b)},500);this.$element.one(a.support.transition.end,function(){clearTimeout(c),d.call(b)})}function d(a){this.$element.hide().trigger("hidden"),e.call(this)}function e(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(a.proxy(this.hide,this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,b):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,a.proxy(f,this)):f.call(this)):b&&b()}function f(){this.$backdrop.remove(),this.$backdrop=null}function g(){var b=this;this.isShown&&this.options.keyboard?a(document).on("keyup.dismiss.modal",function(a){a.which==27&&b.hide()}):this.isShown||a(document).off("keyup.dismiss.modal")}var b=function(b,c){this.options=c,this.$element=a(b).delegate('[data-dismiss="modal"]',"click.dismiss.modal",a.proxy(this.hide,this))};b.prototype={constructor:b,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var b=this,c=a.Event("show");this.$element.trigger(c);if(this.isShown||c.isDefaultPrevented())return;a("body").addClass("modal-open"),this.isShown=!0,g.call(this),e.call(this,function(){var c=a.support.transition&&b.$element.hasClass("fade");b.$element.parent().length||b.$element.appendTo(document.body),b.$element.show(),c&&b.$element[0].offsetWidth,b.$element.addClass("in"),c?b.$element.one(a.support.transition.end,function(){b.$element.trigger("shown")}):b.$element.trigger("shown")})},hide:function(b){b&&b.preventDefault();var e=this;b=a.Event("hide"),this.$element.trigger(b);if(!this.isShown||b.isDefaultPrevented())return;this.isShown=!1,a("body").removeClass("modal-open"),g.call(this),this.$element.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?c.call(this):d.call(this)}},a.fn.modal=function(c){return this.each(function(){var d=a(this),e=d.data("modal"),f=a.extend({},a.fn.modal.defaults,d.data(),typeof c=="object"&&c);e||d.data("modal",e=new b(this,f)),typeof c=="string"?e[c]():f.show&&e.show()})},a.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},a.fn.modal.Constructor=b,a(function(){a("body").on("click.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d,e=a(c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({},e.data(),c.data());b.preventDefault(),e.modal(f)})})}(window.jQuery),!function(a){function d(){a(b).parent().removeClass("open")}var b='[data-toggle="dropdown"]',c=function(b){var c=a(b).on("click.dropdown.data-api",this.toggle);a("html").on("click.dropdown.data-api",function(){c.parent().removeClass("open")})};c.prototype={constructor:c,toggle:function(b){var c=a(this),e,f,g;if(c.is(".disabled, :disabled"))return;return f=c.attr("data-target"),f||(f=c.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,"")),e=a(f),e.length||(e=c.parent()),g=e.hasClass("open"),d(),g||e.toggleClass("open"),!1}},a.fn.dropdown=function(b){return this.each(function(){var d=a(this),e=d.data("dropdown");e||d.data("dropdown",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.dropdown.Constructor=c,a(function(){a("html").on("click.dropdown.data-api",d),a("body").on("click.dropdown",".dropdown form",function(a){a.stopPropagation()}).on("click.dropdown.data-api",b,c.prototype.toggle)})}(window.jQuery),!function(a){var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,this.options.trigger!="manual"&&(e=this.options.trigger=="hover"?"mouseenter":"focus",f=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(e,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.show)return c.show();clearTimeout(this.timeout),c.hoverState="in",this.timeout=setTimeout(function(){c.hoverState=="in"&&c.show()},c.options.delay.show)},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);if(!c.options.delay||!c.options.delay.hide)return c.hide();clearTimeout(this.timeout),c.hoverState="out",this.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.remove().css({top:0,left:0,display:"block"}).appendTo(b?this.$element:document.body),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight;switch(b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.css(g).addClass(f).addClass("in")}},isHTML:function(a){return typeof a!="string"||a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3||/^(?:[^<]*<[\w\W]+>[^>]*$)/.exec(a)},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.isHTML(b)?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){function d(){var b=setTimeout(function(){c.off(a.support.transition.end).remove()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.remove()})}var b=this,c=this.tip();c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d():c.remove()},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0}}(window.jQuery),!function(a){var b=function(a,b){this.init("popover",a,b)};b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype,{constructor:b,setContent:function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.isHTML(b)?"html":"text"](b),a.find(".popover-content > *")[this.isHTML(c)?"html":"text"](c),a.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-content")||(typeof c.content=="function"?c.content.call(b[0]):c.content),a},tip:function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip}}),a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("popover"),f=typeof c=="object"&&c;e||d.data("popover",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.defaults=a.extend({},a.fn.tooltip.defaults,{placement:"right",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'})}(window.jQuery),!function(a){var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function f(){e.trigger("closed").remove()}var c=a(this),d=c.attr("data-target"),e;d||(d=c.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),e=a(d),b&&b.preventDefault(),e.length||(e=c.hasClass("alert")?c:c.parent()),e.trigger(b=a.Event("close"));if(b.isDefaultPrevented())return;e.removeClass("in"),a.support.transition&&e.hasClass("fade")?e.on(a.support.transition.end,f):f()},a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("alert");e||d.data("alert",e=new c(this)),typeof b=="string"&&e[b].call(d)})},a.fn.alert.Constructor=c,a(function(){a("body").on("click.alert.data-api",b,c.prototype.close)})}(window.jQuery),!function(a){var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.button.defaults,c)};b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.data(),e=c.is("input")?"val":"html";a+="Text",d.resetText||c.data("resetText",c[e]()),c[e](d[a]||this.options[a]),setTimeout(function(){a=="loadingText"?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.parent('[data-toggle="buttons-radio"]');a&&a.find(".active").removeClass("active"),this.$element.toggleClass("active")},a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("button"),f=typeof c=="object"&&c;e||d.data("button",e=new b(this,f)),c=="toggle"?e.toggle():c&&e.setState(c)})},a.fn.button.defaults={loadingText:"loading..."},a.fn.button.Constructor=b,a(function(){a("body").on("click.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle")})})}(window.jQuery),!function(a){var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.collapse.defaults,c),this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.prototype={constructor:b,dimension:function(){var a=this.$element.hasClass("width");return a?"width":"height"},show:function(){var b,c,d,e;if(this.transitioning)return;b=this.dimension(),c=a.camelCase(["scroll",b].join("-")),d=this.$parent&&this.$parent.find("> .accordion-group > .in");if(d&&d.length){e=d.data("collapse");if(e&&e.transitioning)return;d.collapse("hide"),e||d.data("collapse",null)}this.$element[b](0),this.transition("addClass",a.Event("show"),"shown"),this.$element[b](this.$element[0][c])},hide:function(){var b;if(this.transitioning)return;b=this.dimension(),this.reset(this.$element[b]()),this.transition("removeClass",a.Event("hide"),"hidden"),this.$element[b](0)},reset:function(a){var b=this.dimension();return this.$element.removeClass("collapse")[b](a||"auto")[0].offsetWidth,this.$element[a!==null?"addClass":"removeClass"]("collapse"),this},transition:function(b,c,d){var e=this,f=function(){c.type=="show"&&e.reset(),e.transitioning=0,e.$element.trigger(d)};this.$element.trigger(c);if(c.isDefaultPrevented())return;this.transitioning=1,this.$element[b]("in"),a.support.transition&&this.$element.hasClass("collapse")?this.$element.one(a.support.transition.end,f):f()},toggle:function(){this[this.$element.hasClass("in")?"hide":"show"]()}},a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("collapse"),f=typeof c=="object"&&c;e||d.data("collapse",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.collapse.defaults={toggle:!0},a.fn.collapse.Constructor=b,a(function(){a("body").on("click.collapse.data-api","[data-toggle=collapse]",function(b){var c=a(this),d,e=c.attr("data-target")||b.preventDefault()||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),f=a(e).data("collapse")?"toggle":c.data();a(e).collapse(f)})})}(window.jQuery),!function(a){var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.typeahead.defaults,c),this.matcher=this.options.matcher||this.matcher,this.sorter=this.options.sorter||this.sorter,this.highlighter=this.options.highlighter||this.highlighter,this.updater=this.options.updater||this.updater,this.$menu=a(this.options.menu).appendTo("body"),this.source=this.options.source,this.shown=!1,this.listen()};b.prototype={constructor:b,select:function(){var a=this.$menu.find(".active").attr("data-value");return this.$element.val(this.updater(a)).change(),this.hide()},updater:function(a){return a},show:function(){var b=a.extend({},this.$element.offset(),{height:this.$element[0].offsetHeight});return this.$menu.css({top:b.top+b.height,left:b.left}),this.$menu.show(),this.shown=!0,this},hide:function(){return this.$menu.hide(),this.shown=!1,this},lookup:function(b){var c=this,d,e;return this.query=this.$element.val(),this.query?(d=a.grep(this.source,function(a){return c.matcher(a)}),d=this.sorter(d),d.length?this.render(d.slice(0,this.options.items)).show():this.shown?this.hide():this):this.shown?this.hide():this},matcher:function(a){return~a.toLowerCase().indexOf(this.query.toLowerCase())},sorter:function(a){var b=[],c=[],d=[],e;while(e=a.shift())e.toLowerCase().indexOf(this.query.toLowerCase())?~e.indexOf(this.query)?c.push(e):d.push(e):b.push(e);return b.concat(c,d)},highlighter:function(a){var b=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return a.replace(new RegExp("("+b+")","ig"),function(a,b){return"<strong>"+b+"</strong>"})},render:function(b){var c=this;return b=a(b).map(function(b,d){return b=a(c.options.item).attr("data-value",d),b.find("a").html(c.highlighter(d)),b[0]}),b.first().addClass("active"),this.$menu.html(b),this},next:function(b){var c=this.$menu.find(".active").removeClass("active"),d=c.next();d.length||(d=a(this.$menu.find("li")[0])),d.addClass("active")},prev:function(a){var b=this.$menu.find(".active").removeClass("active"),c=b.prev();c.length||(c=this.$menu.find("li").last()),c.addClass("active")},listen:function(){this.$element.on("blur",a.proxy(this.blur,this)).on("keypress",a.proxy(this.keypress,this)).on("keyup",a.proxy(this.keyup,this)),(a.browser.webkit||a.browser.msie)&&this.$element.on("keydown",a.proxy(this.keypress,this)),this.$menu.on("click",a.proxy(this.click,this)).on("mouseenter","li",a.proxy(this.mouseenter,this))},keyup:function(a){switch(a.keyCode){case 40:case 38:break;case 9:case 13:if(!this.shown)return;this.select();break;case 27:if(!this.shown)return;this.hide();break;default:this.lookup()}a.stopPropagation(),a.preventDefault()},keypress:function(a){if(!this.shown)return;switch(a.keyCode){case 9:case 13:case 27:a.preventDefault();break;case 38:if(a.type!="keydown")break;a.preventDefault(),this.prev();break;case 40:if(a.type!="keydown")break;a.preventDefault(),this.next()}a.stopPropagation()},blur:function(a){var b=this;setTimeout(function(){b.hide()},150)},click:function(a){a.stopPropagation(),a.preventDefault(),this.select()},mouseenter:function(b){this.$menu.find(".active").removeClass("active"),a(b.currentTarget).addClass("active")}},a.fn.typeahead=function(c){return this.each(function(){var d=a(this),e=d.data("typeahead"),f=typeof c=="object"&&c;e||d.data("typeahead",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.typeahead.defaults={source:[],items:8,menu:'<ul class="typeahead dropdown-menu"></ul>',item:'<li><a href="#"></a></li>'},a.fn.typeahead.Constructor=b,a(function(){a("body").on("focus.typeahead.data-api",'[data-provide="typeahead"]',function(b){var c=a(this);if(c.data("typeahead"))return;b.preventDefault(),c.typeahead(c.data())})})}(window.jQuery)
|
9
|
+
;
|
@@ -0,0 +1,224 @@
|
|
1
|
+
.CodeMirror {
|
2
|
+
line-height: 1em;
|
3
|
+
font-family: monospace;
|
4
|
+
}
|
5
|
+
|
6
|
+
.CodeMirror-scroll {
|
7
|
+
overflow: auto;
|
8
|
+
height: 300px;
|
9
|
+
/* This is needed to prevent an IE[67] bug where the scrolled content
|
10
|
+
is visible outside of the scrolling box. */
|
11
|
+
position: relative;
|
12
|
+
outline: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
.CodeMirror-gutter {
|
16
|
+
position: absolute; left: 0; top: 0;
|
17
|
+
z-index: 10;
|
18
|
+
background-color: #f7f7f7;
|
19
|
+
border-right: 1px solid #eee;
|
20
|
+
min-width: 2em;
|
21
|
+
height: 100%;
|
22
|
+
}
|
23
|
+
.CodeMirror-gutter-text {
|
24
|
+
color: #aaa;
|
25
|
+
text-align: right;
|
26
|
+
padding: .4em .2em .4em .4em;
|
27
|
+
white-space: pre !important;
|
28
|
+
}
|
29
|
+
.CodeMirror-lines {
|
30
|
+
padding: .4em;
|
31
|
+
white-space: pre;
|
32
|
+
}
|
33
|
+
|
34
|
+
.CodeMirror pre {
|
35
|
+
-moz-border-radius: 0;
|
36
|
+
-webkit-border-radius: 0;
|
37
|
+
-o-border-radius: 0;
|
38
|
+
border-radius: 0;
|
39
|
+
border-width: 0; margin: 0; padding: 0; background: transparent;
|
40
|
+
font-family: inherit;
|
41
|
+
font-size: inherit;
|
42
|
+
padding: 0; margin: 0;
|
43
|
+
white-space: pre;
|
44
|
+
word-wrap: normal;
|
45
|
+
line-height: inherit;
|
46
|
+
color: inherit;
|
47
|
+
}
|
48
|
+
|
49
|
+
.CodeMirror-wrap pre {
|
50
|
+
word-wrap: break-word;
|
51
|
+
white-space: pre-wrap;
|
52
|
+
word-break: normal;
|
53
|
+
}
|
54
|
+
.CodeMirror-wrap .CodeMirror-scroll {
|
55
|
+
overflow-x: hidden;
|
56
|
+
}
|
57
|
+
|
58
|
+
.CodeMirror textarea {
|
59
|
+
outline: none !important;
|
60
|
+
}
|
61
|
+
|
62
|
+
.CodeMirror pre.CodeMirror-cursor {
|
63
|
+
z-index: 10;
|
64
|
+
position: absolute;
|
65
|
+
visibility: hidden;
|
66
|
+
border-left: 1px solid black;
|
67
|
+
border-right: none;
|
68
|
+
width: 0;
|
69
|
+
}
|
70
|
+
.cm-keymap-fat-cursor pre.CodeMirror-cursor {
|
71
|
+
width: auto;
|
72
|
+
border: 0;
|
73
|
+
background: transparent;
|
74
|
+
background: rgba(0, 200, 0, .4);
|
75
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
|
76
|
+
}
|
77
|
+
/* Kludge to turn off filter in ie9+, which also accepts rgba */
|
78
|
+
.cm-keymap-fat-cursor pre.CodeMirror-cursor:not(#nonsense_id) {
|
79
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
80
|
+
}
|
81
|
+
.CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
|
82
|
+
.CodeMirror-focused pre.CodeMirror-cursor {
|
83
|
+
visibility: visible;
|
84
|
+
}
|
85
|
+
|
86
|
+
div.CodeMirror-selected { background: #d9d9d9; }
|
87
|
+
.CodeMirror-focused div.CodeMirror-selected { background: #d7d4f0; }
|
88
|
+
|
89
|
+
.CodeMirror-searching {
|
90
|
+
background: #ffa;
|
91
|
+
background: rgba(255, 255, 0, .4);
|
92
|
+
}
|
93
|
+
|
94
|
+
/* Default theme */
|
95
|
+
|
96
|
+
.cm-s-default span.cm-keyword {color: #708;}
|
97
|
+
.cm-s-default span.cm-atom {color: #219;}
|
98
|
+
.cm-s-default span.cm-number {color: #164;}
|
99
|
+
.cm-s-default span.cm-def {color: #00f;}
|
100
|
+
.cm-s-default span.cm-variable {color: black;}
|
101
|
+
.cm-s-default span.cm-variable-2 {color: #05a;}
|
102
|
+
.cm-s-default span.cm-variable-3 {color: #085;}
|
103
|
+
.cm-s-default span.cm-property {color: black;}
|
104
|
+
.cm-s-default span.cm-operator {color: black;}
|
105
|
+
.cm-s-default span.cm-comment {color: #a50;}
|
106
|
+
.cm-s-default span.cm-string {color: #a11;}
|
107
|
+
.cm-s-default span.cm-string-2 {color: #f50;}
|
108
|
+
.cm-s-default span.cm-meta {color: #555;}
|
109
|
+
.cm-s-default span.cm-error {color: #f00;}
|
110
|
+
.cm-s-default span.cm-qualifier {color: #555;}
|
111
|
+
.cm-s-default span.cm-builtin {color: #30a;}
|
112
|
+
.cm-s-default span.cm-bracket {color: #cc7;}
|
113
|
+
.cm-s-default span.cm-tag {color: #170;}
|
114
|
+
.cm-s-default span.cm-attribute {color: #00c;}
|
115
|
+
.cm-s-default span.cm-header {color: blue;}
|
116
|
+
.cm-s-default span.cm-quote {color: #090;}
|
117
|
+
.cm-s-default span.cm-hr {color: #999;}
|
118
|
+
.cm-s-default span.cm-link {color: #00c;}
|
119
|
+
|
120
|
+
span.cm-header, span.cm-strong {font-weight: bold;}
|
121
|
+
span.cm-em {font-style: italic;}
|
122
|
+
span.cm-emstrong {font-style: italic; font-weight: bold;}
|
123
|
+
span.cm-link {text-decoration: underline;}
|
124
|
+
|
125
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
126
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
127
|
+
/* Based on Sublime Text's Monokai theme */
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
.CodeMirror {
|
132
|
+
font-family: "Monaco";
|
133
|
+
}
|
134
|
+
|
135
|
+
.cm-s-monokai {background: #272822; color: #f8f8f2;}
|
136
|
+
.cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
|
137
|
+
.cm-s-monokai .CodeMirror-gutter {background: #272822; border-right: 0px;}
|
138
|
+
.cm-s-monokai .CodeMirror-gutter-text {color: #d0d0d0;}
|
139
|
+
.cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
|
140
|
+
|
141
|
+
.cm-s-monokai span.cm-comment {color: #75715e;}
|
142
|
+
.cm-s-monokai span.cm-atom {color: #ae81ff;}
|
143
|
+
.cm-s-monokai span.cm-number {color: #ae81ff;}
|
144
|
+
|
145
|
+
.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
|
146
|
+
.cm-s-monokai span.cm-keyword {color: #f92672;}
|
147
|
+
.cm-s-monokai span.cm-string {color: #e6db74;}
|
148
|
+
|
149
|
+
.cm-s-monokai span.cm-variable {color: #a6e22e;}
|
150
|
+
.cm-s-monokai span.cm-variable-2 {color: #9effff;}
|
151
|
+
.cm-s-monokai span.cm-def {color: #fd971f;}
|
152
|
+
.cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
|
153
|
+
.cm-s-monokai span.cm-bracket {color: #f8f8f2;}
|
154
|
+
.cm-s-monokai span.cm-tag {color: #f92672;}
|
155
|
+
.cm-s-monokai span.cm-link {color: #ae81ff;}
|
156
|
+
|
157
|
+
.cm-s-monokai .CodeMirror-matchingbracket {
|
158
|
+
text-decoration: underline;
|
159
|
+
color: white !important;
|
160
|
+
}
|
161
|
+
.luca-class-browser .class-browser-list {
|
162
|
+
min-height: 600px;
|
163
|
+
height: auto !important;
|
164
|
+
height: 600px; }
|
165
|
+
.luca-class-browser .class-browser-list ul.namespace a, .luca-class-browser .class-browser-list ul.classList a {
|
166
|
+
cursor: pointer; }
|
167
|
+
.luca-class-browser .class-browser-list ul.namespace, .luca-class-browser .class-browser-list ul.namespace ul.classList {
|
168
|
+
margin: 0px;
|
169
|
+
padding: 0px; }
|
170
|
+
.luca-class-browser .class-browser-list ul.namespace {
|
171
|
+
padding-left: 10px; }
|
172
|
+
.luca-class-browser .class-browser-list ul.namespace li ul.classList {
|
173
|
+
padding-left: 20px; }
|
174
|
+
.luca-class-browser .class-browser-list ul.namespace li, .luca-class-browser .class-browser-list ul.namespace .classList li {
|
175
|
+
list-style-type: none;
|
176
|
+
margin: 0px;
|
177
|
+
padding: 0px; }
|
178
|
+
.font-large .CodeMirror {
|
179
|
+
font-size: 1.3em;
|
180
|
+
line-height: 1.5em; }
|
181
|
+
|
182
|
+
.font-small .CodeMirror {
|
183
|
+
font-size: 1.0em;
|
184
|
+
line-height: 1.2em; }
|
185
|
+
|
186
|
+
.fixed-height .CodeMirror-scroll {
|
187
|
+
overflow: auto;
|
188
|
+
height: 350px; }
|
189
|
+
|
190
|
+
.auto-height .CodeMirror-scroll {
|
191
|
+
height: auto;
|
192
|
+
overflow: visible; }
|
193
|
+
ul.typeahead.dropdown-menu {
|
194
|
+
z-index: 13000; }
|
195
|
+
|
196
|
+
.font-large .CodeMirror {
|
197
|
+
font-size: 18px;
|
198
|
+
line-height: 1.7; }
|
199
|
+
.luca-ui-console .CodeMirror {
|
200
|
+
font-family: "Monaco";
|
201
|
+
font-size: 14px;
|
202
|
+
line-height: 1.75; }
|
203
|
+
.luca-ui-console .luca-ui-text-field {
|
204
|
+
width: 100%;
|
205
|
+
background-color: #272822;
|
206
|
+
border-top: 1px solid #ccc;
|
207
|
+
padding-left: 1px; }
|
208
|
+
.luca-ui-console .luca-ui-text-field input:focus {
|
209
|
+
outline: none !important;
|
210
|
+
box-shadow: 0 0 0 0 transparent; }
|
211
|
+
.luca-ui-console .luca-ui-text-field input {
|
212
|
+
outline: none !important;
|
213
|
+
box-shadow: 0 0 0 0 transparent;
|
214
|
+
font-family: "Monaco";
|
215
|
+
color: #fff;
|
216
|
+
border: 0px;
|
217
|
+
width: 90%;
|
218
|
+
background-color: #272822; }
|
219
|
+
/*
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
*/
|
224
|
+
|