madness 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/public/css/main.css +34 -5
- data/app/public/css/main.css.map +1 -1
- data/app/public/fonts/fontello.eot +0 -0
- data/app/public/fonts/fontello.svg +4 -2
- data/app/public/fonts/fontello.ttf +0 -0
- data/app/public/fonts/fontello.woff +0 -0
- data/app/public/fonts/fontello.woff2 +0 -0
- data/app/public/js/clipboard.js +11 -0
- data/app/public/js/vendor/clipboard.min.js +7 -0
- data/app/styles/_coderay.scss +15 -1
- data/app/styles/_icons.scss +29 -9
- data/app/views/layout.slim +8 -1
- data/lib/madness/command_line.rb +1 -0
- data/lib/madness/docopt.txt +4 -0
- data/lib/madness/settings.rb +1 -0
- data/lib/madness/templates/madness.yml +1 -0
- data/lib/madness/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a942959ca388ca3ba0c933fb39013a8375691a52725d7c420b7fcdbe2f2c67f
|
4
|
+
data.tar.gz: 30c2ece18d5b517390fae7467ee21eec79644fd5394ae4f6f05ebbef172b22c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e486f9a9d52b1639a99da8c7f7db0d3538b86f7ce235adc594c0bbdaa80b12e116fdc204285a495b98e73a1af807831fa2eac174cfe43a288db0b50f57e4b4
|
7
|
+
data.tar.gz: c6238c2f117efce820c1b489d88854ae1f2d52e67c2f1580dff6b7fa075bd2d89fc65de8d0d998dad2146d38faf03d3548c0b8178b48cfa3157601c517c90965
|
data/README.md
CHANGED
data/app/public/css/main.css
CHANGED
@@ -145,7 +145,19 @@ pre {
|
|
145
145
|
pre code:after {
|
146
146
|
content: normal; }
|
147
147
|
|
148
|
+
.clipboard-button {
|
149
|
+
position: absolute;
|
150
|
+
right: 0;
|
151
|
+
font-size: 1.25em;
|
152
|
+
opacity: 0.2;
|
153
|
+
transition: opacity 0.3s; }
|
154
|
+
|
155
|
+
table.CodeRay:hover .clipboard-button {
|
156
|
+
opacity: 1;
|
157
|
+
transition: opacity 0.3s; }
|
158
|
+
|
148
159
|
table.CodeRay {
|
160
|
+
position: relative;
|
149
161
|
margin-bottom: 0; }
|
150
162
|
table.CodeRay pre {
|
151
163
|
margin-bottom: 0; }
|
@@ -256,8 +268,8 @@ nav {
|
|
256
268
|
|
257
269
|
@font-face {
|
258
270
|
font-family: 'fontello';
|
259
|
-
src: url("../fonts/fontello.eot?
|
260
|
-
src: url("../fonts/fontello.eot?
|
271
|
+
src: url("../fonts/fontello.eot?68354463");
|
272
|
+
src: url("../fonts/fontello.eot?68354463#iefix") format("embedded-opentype"), url("../fonts/fontello.woff2?68354463") format("woff2"), url("../fonts/fontello.woff?68354463") format("woff"), url("../fonts/fontello.ttf?68354463") format("truetype"), url("../fonts/fontello.svg?68354463#fontello") format("svg");
|
261
273
|
font-weight: normal;
|
262
274
|
font-style: normal; }
|
263
275
|
[class^="icon-"]:before, [class*=" icon-"]:before {
|
@@ -270,15 +282,32 @@ nav {
|
|
270
282
|
width: 1em;
|
271
283
|
margin-right: .2em;
|
272
284
|
text-align: center;
|
285
|
+
/* opacity: .8; */
|
286
|
+
/* For safety - reset parent styles, that can break glyph codes*/
|
273
287
|
font-variant: normal;
|
274
|
-
text-transform: none;
|
275
|
-
|
276
|
-
|
288
|
+
text-transform: none;
|
289
|
+
/* fix buttons height, for twitter bootstrap */
|
290
|
+
line-height: 1em;
|
291
|
+
/* Animation center compensation - margins should be symmetric */
|
292
|
+
/* remove if not needed */
|
293
|
+
margin-left: .2em;
|
294
|
+
/* you can be more comfortable with increased icons size */
|
295
|
+
/* font-size: 120%; */
|
296
|
+
/* Font smoothing. That was taken from TWBS */
|
297
|
+
-webkit-font-smoothing: antialiased;
|
298
|
+
-moz-osx-font-smoothing: grayscale;
|
299
|
+
/* Uncomment for 3D effect */
|
300
|
+
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ }
|
301
|
+
|
302
|
+
.icon-export:before {
|
277
303
|
content: '\e800'; }
|
278
304
|
|
279
305
|
.icon-home:before {
|
280
306
|
content: '\e801'; }
|
281
307
|
|
308
|
+
.icon-search:before {
|
309
|
+
content: '\e802'; }
|
310
|
+
|
282
311
|
.autocomplete-suggestions {
|
283
312
|
border: 1px solid #ccc;
|
284
313
|
background: #fff;
|
data/app/public/css/main.css.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"mappings": "AAAA,IAAK;EACH,oBAAoB,EAAE,IAAI;EAC1B,wBAAwB,EAAE,IAAI;EAC9B,KAAK,EAAE,IAAI;EAEX,WAAW,EAAE,mEAAmE;EAChF,SAAS,EAAE,IAAI;EACf,WAAW,EAAE,GAAG;EAChB,SAAS,EAAE,UAAU;;AAGvB,eAAgB;EACd,WAAW,EAAE,MAAM;;AAGrB,sBAAuB;EACrB,UAAU,EAAE,GAAG;EACf,aAAa,EAAE,IAAI;EACnB,WAAW,EAAE,IAAI;EACjB,WAAW,EAAE,GAAG;;AAGlB,EAAG;EACD,MAAM,EAAE,QAAQ;EAChB,cAAc,EAAE,KAAK;EACrB,SAAS,EAAE,MAAM;EACjB,WAAW,EAAE,GAAG;EAChB,aAAa,EAAE,cAAc;;AAG/B,EAAG;EACD,cAAc,EAAE,KAAK;EACrB,SAAS,EAAE,MAAM;EACjB,WAAW,EAAE,KAAK;EAClB,aAAa,EAAE,cAAc;;AAG/B,EAAG;EACD,SAAS,EAAE,KAAK;EAChB,WAAW,EAAE,IAAI;;AAGnB,EAAG;EACD,SAAS,EAAE,MAAM;;AAGnB,EAAG;EACD,SAAS,EAAE,GAAG;;AAGhB,EAAG;EACD,SAAS,EAAE,GAAG;EACd,KAAK,EAAE,IAAI;;AAGb,cAAe;EACb,WAAW,EAAE,sDAAs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AAa,EAAE,CAAC;;AAIpB,qCAAsC;EACpC,UAAU,EAAE,CAAC;EACb,aAAa,EAAE,IAAI;;AAGrB,MAAO;EACL,KAAK,EAAE,IAAI;;AC5Bb,IAAK;EACH,SAAS,EAAE,MAAM;EACjB,MAAM,EAAE,MAAM;;AAGhB,KAAM;EACJ,OAAO,EAAE,iBAAiB;EAE1B,yBAAkB;IAChB,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,EAAE;EJFd,yCAAgD;IIU7C,kBAAe;MACb,UAAU,EAAE,KAAK;MACjB,WAAW,EAAE,KAAK;EAItB,qBAAkB;IAChB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE,MAAM",
|
4
4
|
"sources": ["../../styles/_typography.scss","../../styles/_table.scss","../../styles/_anchor.scss","../../styles/_list.scss","../../styles/_code.scss","../../styles/_coderay.scss","../../styles/_image.scss","../../styles/_line.scss","../../styles/_keyboard.scss","../../styles/_search.scss","../../styles/_breadcrumbs.scss","../../styles/_nav.scss","../../styles/_mixins.scss","../../styles/_icons.scss","../../styles/_autocomplete.scss","../../styles/_general.scss","../../styles/main.scss"],
|
5
5
|
"names": [],
|
6
6
|
"file": "main.css"
|
Binary file
|
@@ -1,14 +1,16 @@
|
|
1
1
|
<?xml version="1.0" standalone="no"?>
|
2
2
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
3
|
<svg xmlns="http://www.w3.org/2000/svg">
|
4
|
-
<metadata>Copyright (C)
|
4
|
+
<metadata>Copyright (C) 2019 by original authors @ fontello.com</metadata>
|
5
5
|
<defs>
|
6
6
|
<font id="fontello" horiz-adv-x="1000" >
|
7
7
|
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
|
8
8
|
<missing-glyph horiz-adv-x="1000" />
|
9
|
-
<glyph glyph-name="
|
9
|
+
<glyph glyph-name="export" unicode="" d="M750 60l0 56 100 82 0-188q0-20-15-35t-35-15l-750 0q-20 0-35 15t-15 35l0 550q0 22 14 36t36 14l288 0q-32-24-59-49t-39-39l-10-12-130 0 0-450 650 0z m-82 348q-166 0-242-41t-160-181q0 8 1 22t9 56 22 79 44 83 70 79 107 56 149 23l0 156 332-250-332-260 0 178z" horiz-adv-x="1000" />
|
10
10
|
|
11
11
|
<glyph glyph-name="home" unicode="" d="M888 336q16-16 11-27t-27-11l-84 0 0-310q0-14-1-21t-8-13-23-6l-204 0 0 310-204 0 0-310-194 0q-28 0-35 10t-7 30l0 310-84 0q-22 0-27 11t11 27l400 402q16 16 38 16t38-16z" horiz-adv-x="900" />
|
12
|
+
|
13
|
+
<glyph glyph-name="search-1" unicode="" d="M772 78q30-34 6-62l-46-46q-36-32-68 0l-190 190q-74-42-156-42-128 0-223 95t-95 223 90 219 218 91 224-95 96-223q0-88-46-162z m-678 358q0-88 68-156t156-68 151 63 63 153q0 88-68 155t-156 67-151-63-63-151z" horiz-adv-x="789" />
|
12
14
|
</font>
|
13
15
|
</defs>
|
14
16
|
</svg>
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,11 @@
|
|
1
|
+
$(function() {
|
2
|
+
new ClipboardJS('.clipboard-button', {
|
3
|
+
target: function(trigger) {
|
4
|
+
return trigger.parentElement;
|
5
|
+
}
|
6
|
+
});
|
7
|
+
|
8
|
+
html = '<a href="#" class="clipboard-button" data-clipboard-target=".code"><i class="icon-export"></i></a>';
|
9
|
+
|
10
|
+
$('.CodeRay pre').prepend(html);
|
11
|
+
})
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*!
|
2
|
+
* clipboard.js v2.0.4
|
3
|
+
* https://zenorocha.github.io/clipboard.js
|
4
|
+
*
|
5
|
+
* Licensed MIT © Zeno Rocha
|
6
|
+
*/
|
7
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=o(n(1)),c=o(n(3)),u=o(n(4));function o(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function o(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return n.resolveOptions(e),n.listenClick(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,c.default),i(o,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===r(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return s("action",t)}},{key:"defaultTarget",value:function(t){var e=s("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return s("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),o}();function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=l},function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}}(),a=n(2),c=(o=a)&&o.__esModule?o:{default:o};var u=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return i(e,[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,c.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,c.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),e}();t.exports=u},function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var d=n(5),h=n(6);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!d.string(e))throw new TypeError("Second argument must be a String");if(!d.fn(n))throw new TypeError("Third argument must be a Function");if(d.node(t))return s=e,f=n,(l=t).addEventListener(s,f),{destroy:function(){l.removeEventListener(s,f)}};if(d.nodeList(t))return a=t,c=e,u=n,Array.prototype.forEach.call(a,function(t){t.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(a,function(t){t.removeEventListener(c,u)})}};if(d.string(t))return o=t,r=e,i=n,h(document.body,o,r,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,r,i,a,c,u,l,s,f}},function(t,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var a=n(7);function i(t,e,n,o,r){var i=function(e,n,t,o){return function(t){t.delegateTarget=a(t.target,n),t.delegateTarget&&o.call(e,t)}}.apply(this,arguments);return t.addEventListener(n,i,r),{destroy:function(){t.removeEventListener(n,i,r)}}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return i(t,e,n,o,r)}))}},function(t,e){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}}])});
|
data/app/styles/_coderay.scss
CHANGED
@@ -1,4 +1,18 @@
|
|
1
|
+
.clipboard-button {
|
2
|
+
position: absolute;
|
3
|
+
right: 0;
|
4
|
+
font-size: 1.25em;
|
5
|
+
opacity: 0.2;
|
6
|
+
transition: opacity 0.3s;
|
7
|
+
}
|
8
|
+
|
9
|
+
table.CodeRay:hover .clipboard-button {
|
10
|
+
opacity: 1;
|
11
|
+
transition: opacity 0.3s;
|
12
|
+
}
|
13
|
+
|
1
14
|
table.CodeRay {
|
15
|
+
position: relative;
|
2
16
|
margin-bottom: 0;
|
3
17
|
|
4
18
|
pre {
|
@@ -20,4 +34,4 @@ table.CodeRay {
|
|
20
34
|
td.code {
|
21
35
|
}
|
22
36
|
|
23
|
-
}
|
37
|
+
}
|
data/app/styles/_icons.scss
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
-
// Generated with http://fontello.com/ + Entypo font
|
2
1
|
@font-face {
|
3
2
|
font-family: 'fontello';
|
4
|
-
src: url('../fonts/fontello.eot?
|
5
|
-
src: url('../fonts/fontello.eot?
|
6
|
-
url('../fonts/fontello.woff2?
|
7
|
-
url('../fonts/fontello.woff?
|
8
|
-
url('../fonts/fontello.ttf?
|
9
|
-
url('../fonts/fontello.svg?
|
3
|
+
src: url('../fonts/fontello.eot?68354463');
|
4
|
+
src: url('../fonts/fontello.eot?68354463#iefix') format('embedded-opentype'),
|
5
|
+
url('../fonts/fontello.woff2?68354463') format('woff2'),
|
6
|
+
url('../fonts/fontello.woff?68354463') format('woff'),
|
7
|
+
url('../fonts/fontello.ttf?68354463') format('truetype'),
|
8
|
+
url('../fonts/fontello.svg?68354463#fontello') format('svg');
|
10
9
|
font-weight: normal;
|
11
10
|
font-style: normal;
|
12
11
|
}
|
@@ -22,9 +21,30 @@
|
|
22
21
|
width: 1em;
|
23
22
|
margin-right: .2em;
|
24
23
|
text-align: center;
|
24
|
+
/* opacity: .8; */
|
25
25
|
|
26
|
+
/* For safety - reset parent styles, that can break glyph codes*/
|
26
27
|
font-variant: normal;
|
27
28
|
text-transform: none;
|
29
|
+
|
30
|
+
/* fix buttons height, for twitter bootstrap */
|
31
|
+
line-height: 1em;
|
32
|
+
|
33
|
+
/* Animation center compensation - margins should be symmetric */
|
34
|
+
/* remove if not needed */
|
35
|
+
margin-left: .2em;
|
36
|
+
|
37
|
+
/* you can be more comfortable with increased icons size */
|
38
|
+
/* font-size: 120%; */
|
39
|
+
|
40
|
+
/* Font smoothing. That was taken from TWBS */
|
41
|
+
-webkit-font-smoothing: antialiased;
|
42
|
+
-moz-osx-font-smoothing: grayscale;
|
43
|
+
|
44
|
+
/* Uncomment for 3D effect */
|
45
|
+
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
28
46
|
}
|
29
|
-
|
30
|
-
.icon-
|
47
|
+
|
48
|
+
.icon-export:before { content: '\e800'; }
|
49
|
+
.icon-home:before { content: '\e801'; }
|
50
|
+
.icon-search:before { content: '\e802'; }
|
data/app/views/layout.slim
CHANGED
@@ -6,8 +6,15 @@ html
|
|
6
6
|
meta name="HandheldFriendly" content="true"
|
7
7
|
meta name="viewport" content="width=device-width, initial-scale=1"
|
8
8
|
link href='/css/main.css' rel='stylesheet' type='text/css'
|
9
|
-
|
9
|
+
|
10
|
+
- if nav.with_search? or config.copy_code
|
10
11
|
script src="/js/vendor/jquery.min.js"
|
12
|
+
|
13
|
+
- if config.copy_code
|
14
|
+
script src="/js/vendor/clipboard.min.js"
|
15
|
+
script src="/js/clipboard.js"
|
16
|
+
|
17
|
+
- if nav.with_search?
|
11
18
|
script src="/js/vendor/jquery.autocomplete-min.js"
|
12
19
|
script src="/js/autocomplete.js"
|
13
20
|
|
data/lib/madness/command_line.rb
CHANGED
@@ -70,6 +70,7 @@ module Madness
|
|
70
70
|
config.sidebar = false if args['--no-sidebar']
|
71
71
|
config.highlighter = false if args['--no-syntax']
|
72
72
|
config.line_numbers = false if args['--no-line-numbers']
|
73
|
+
config.copy_code = false if args['--no-copy-code']
|
73
74
|
config.index = true if args['--index']
|
74
75
|
config.open = true if args['--open']
|
75
76
|
config.theme = File.expand_path(args['--theme'], config.path) if args['--theme']
|
data/lib/madness/docopt.txt
CHANGED
@@ -42,6 +42,10 @@ Options:
|
|
42
42
|
Disable line numbering for syntax highlighter.
|
43
43
|
(Config option: line_numbers)
|
44
44
|
|
45
|
+
--no-copy-code
|
46
|
+
Disable copy to cliboard icon for code snippets.
|
47
|
+
(Config option: copy_code)
|
48
|
+
|
45
49
|
--no-sidebar
|
46
50
|
Disable sidebar navigation.
|
47
51
|
(Config option: sidebar)
|
data/lib/madness/settings.rb
CHANGED
data/lib/madness/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: madness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderay
|
@@ -263,6 +263,8 @@ files:
|
|
263
263
|
- app/public/fonts/fontello.woff
|
264
264
|
- app/public/fonts/fontello.woff2
|
265
265
|
- app/public/js/autocomplete.js
|
266
|
+
- app/public/js/clipboard.js
|
267
|
+
- app/public/js/vendor/clipboard.min.js
|
266
268
|
- app/public/js/vendor/jquery.autocomplete-min.js
|
267
269
|
- app/public/js/vendor/jquery.min.js
|
268
270
|
- app/styles/_anchor.scss
|