madness 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/app/public/css/main.css +2 -1
- data/app/public/css/main.css.map +44 -5
- data/lib/madness/server_base.rb +1 -15
- data/lib/madness/theme.rb +0 -8
- data/lib/madness/version.rb +1 -1
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '059589d3e91375b3beb52ebdf2865c67df70794ab6af66fa83b78c5920d7c612'
|
4
|
+
data.tar.gz: '09b618f48a2980b7a2cfa83f124aabf04c475a917159aa9a1d54fb187043edbe'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 110284469f241455afa9fd2b9b83fe0c12f2aa6e566a53bd0193000a25c3a8b064eaceec471079bb810918765bab45c42d65e9cd8bd8f452a4058e9281ef7109
|
7
|
+
data.tar.gz: cc2b7df3ed3d8252814822c1dc69e048d8b0c53ff9ed7d7f5ed807e1f07808df0cf28f1a6d534bee2781248da1055fdd8f98f597e7dfb2c3a4b129e49fe1d78c
|
data/README.md
CHANGED
@@ -248,6 +248,14 @@ option.
|
|
248
248
|
$ madness --theme my_theme
|
249
249
|
```
|
250
250
|
|
251
|
+
Note that the generated theme contains the SCSS files in the `styles`
|
252
|
+
subfolder, and the rendered CSS files in the `public/css` subfolder.
|
253
|
+
|
254
|
+
If you wish to use the SCSS files, you will need to render them yourself
|
255
|
+
to the location of your theme styles (e.g. `public/css`) - you can use
|
256
|
+
any tool to do so, or if you do not have a preference, use
|
257
|
+
[SassTool][sasstool].
|
258
|
+
|
251
259
|
|
252
260
|
### Option 2: Change CSS only
|
253
261
|
|
@@ -300,4 +308,5 @@ For more information about the docker image, see:
|
|
300
308
|
[dockerfile]: https://github.com/DannyBen/docker-madness
|
301
309
|
[css]: app/public/css/main.css
|
302
310
|
[app]: app
|
311
|
+
[sasstool]: https://github.com/DannyBen/sasstool
|
303
312
|
|
data/app/public/css/main.css
CHANGED
@@ -273,6 +273,7 @@ nav {
|
|
273
273
|
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");
|
274
274
|
font-weight: normal;
|
275
275
|
font-style: normal; }
|
276
|
+
|
276
277
|
[class^="icon-"]:before, [class*=" icon-"]:before {
|
277
278
|
font-family: "fontello";
|
278
279
|
font-style: normal;
|
@@ -379,4 +380,4 @@ body {
|
|
379
380
|
max-width: 980px;
|
380
381
|
margin: 0 auto; }
|
381
382
|
|
382
|
-
/*# sourceMappingURL=main.css.map */
|
383
|
+
/*# sourceMappingURL=main.css.map */
|
data/app/public/css/main.css.map
CHANGED
@@ -1,7 +1,46 @@
|
|
1
1
|
{
|
2
|
-
"version": 3,
|
3
|
-
"
|
4
|
-
"sources": [
|
5
|
-
"
|
6
|
-
"
|
2
|
+
"version": 3,
|
3
|
+
"file": "main.css",
|
4
|
+
"sources": [
|
5
|
+
"main.scss",
|
6
|
+
"_manifest.scss",
|
7
|
+
"_mixins.scss",
|
8
|
+
"_typography.scss",
|
9
|
+
"_table.scss",
|
10
|
+
"_anchor.scss",
|
11
|
+
"_list.scss",
|
12
|
+
"_code.scss",
|
13
|
+
"_coderay.scss",
|
14
|
+
"_image.scss",
|
15
|
+
"_line.scss",
|
16
|
+
"_keyboard.scss",
|
17
|
+
"_search.scss",
|
18
|
+
"_breadcrumbs.scss",
|
19
|
+
"_nav.scss",
|
20
|
+
"_icons.scss",
|
21
|
+
"_autocomplete.scss",
|
22
|
+
"_general.scss"
|
23
|
+
],
|
24
|
+
"sourcesContent": [
|
25
|
+
"@import \"manifest\";\n\nbody {\n max-width: 1300px;\n margin: 0 auto;\n}\n\n.main {\n padding: 0 20px 100px 20px;\n\n &:before, &:after {\n display: table;\n content: \"\";\n }\n\n &:after {\n // clear: both;\n }\n\n @include desktop {\n &.with-sidebar {\n min-height: 100vh;\n margin-left: 250px;\n }\n }\n \n &.without-sidebar {\n max-width: 980px;\n margin: 0 auto;\n }\n}\n\n",
|
26
|
+
"@import \"mixins\";\n\n@import \"typography\";\n@import \"table\";\n@import \"anchor\";\n@import \"list\";\n@import \"code\";\n@import \"coderay\";\n@import \"image\";\n@import \"line\";\n@import \"keyboard\";\n@import \"search\";\n@import \"breadcrumbs\";\n@import \"nav\";\n@import \"icons\";\n@import \"autocomplete\";\n\n// Last\n@import \"general\";",
|
27
|
+
"// Mixins\n$breakpoint: 768px;\n\n@mixin mobile {\n\t@media only screen and (max-width: $breakpoint - 1) {\n\t\t@content;\n\t}\n}\n\n@mixin desktop {\n\t@media only screen and (min-width: $breakpoint) {\n\t\t@content;\n\t}\n}\n",
|
28
|
+
"body {\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n color: #333;\n // font-family: \"Helvetica Neue\", Helvetica, \"Segoe UI\", Arial, freesans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-family: \"Segoe UI\", \"Helvetica Neue\", Helvetica,Arial, freesans, sans-serif;\n font-size: 16px;\n line-height: 1.6;\n word-wrap: break-word;\n}\n\nstrong, .strong {\n font-weight: bolder;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin-top: 1em;\n margin-bottom: 16px;\n font-weight: bold;\n line-height: 1.4;\n}\n\nh1 {\n margin: 0.67em 0;\n padding-bottom: 0.3em;\n font-size: 2.25em;\n line-height: 1.2;\n border-bottom: 1px solid #eee;\n}\n\nh2 {\n padding-bottom: 0.3em;\n font-size: 1.75em;\n line-height: 1.225;\n border-bottom: 1px solid #eee;\n}\n\nh3 {\n font-size: 1.5em;\n line-height: 1.43;\n}\n\nh4 {\n font-size: 1.25em;\n}\n\nh5 {\n font-size: 1em;\n}\n\nh6 {\n font-size: 1em;\n color: #777;\n}\n\ncode, pre, kbd {\n font-family: Consolas, \"Liberation Mono\", Menlo, Courier, monospace;\n font-size: 1em;\n}\n",
|
29
|
+
"table {\n border-spacing: 0;\n border-collapse: collapse;\n\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n \n th {\n font-weight: bold;\n }\n\n th, td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n }\n\n tr:nth-child(2n) {\n background-color: #f8f8f8;\n }\n}\n",
|
30
|
+
"a {\n -webkit-text-decoration-skip: objects;\n\n color: #4078c0;\n text-decoration: none;\n\n &:active, &:hover {\n outline-width: 0;\n text-decoration: underline;\n }\n\n &:not([href]) {\n color: inherit;\n text-decoration: none;\n }\n}",
|
31
|
+
"ul, ol {\n margin-top: 0;\n margin-bottom: 0;\n\n padding-left: 2em;\n}\n\nol ol, ul ol {\n list-style-type: lower-roman;\n}\n\nul ul ol, ul ol ol, ol ul ol, ol ol ol {\n list-style-type: lower-alpha;\n}\n\nul ul, ul ol, ol ol, ol ul {\n margin-top: 0;\n margin-bottom: 0;\n}\n\ndd {\n margin-left: 0;\n}\n\ndl {\n padding: 0;\n\n dt {\n padding: 0;\n margin-top: 16px;\n font-size: 1em;\n font-style: italic;\n font-weight: bold;\n }\n\n dd {\n padding: 0 16px;\n margin-bottom: 16px;\n }\n}\n\nli>p {\n margin-top: 16px;\n}\n",
|
32
|
+
"code {\n padding: 0;\n padding-top: 0.2em;\n padding-bottom: 0.2em;\n margin: 0;\n // font-size: 85%;\n background-color: #eee;\n border-radius: 3px;\n \n &:before, &:after {\n letter-spacing: -0.2em;\n content: \"\\00a0\";\n }\n}\n\npre {\n margin-left: 20px;\n // margin-top: 0;\n // margin-bottom: 0;\n\n // padding: 16px;\n overflow: auto;\n // font-size: 85%;\n line-height: 1.45;\n // background-color: #f7f7f7;\n // border-radius: 3px;\n word-wrap: normal;\n\n &>code {\n padding: 0;\n margin: 0;\n font-size: 100%;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0;\n }\n\n code {\n display: inline-block;\n max-width: initial;\n // padding: 10px;\n overflow: initial;\n line-height: inherit;\n word-wrap: normal;\n border: 0;\n // background: #eee;\n }\n\n code:before,\n code:after {\n content: normal;\n }\n}\n",
|
33
|
+
".clipboard-button {\n position: absolute;\n right: 0;\n font-size: 1.25em;\n opacity: 0.2;\n transition: opacity 0.3s;\n}\n\ntable.CodeRay:hover .clipboard-button {\n opacity: 1;\n transition: opacity 0.3s;\n}\n\ntable.CodeRay {\n position: relative;\n margin-bottom: 0;\n \n pre {\n margin-bottom: 0;\n }\n \n tr, td {\n border: 0;\n pre {\n margin-left: 0;\n }\n }\n\n td.line-numbers {\n background: #eee;\n padding: 4px; \n }\n\n td.code {\n }\n\n}\n",
|
34
|
+
"img {\n border-style: none;\n\n max-width: 100%;\n box-sizing: content-box;\n background-color: #fff;\n}\n",
|
35
|
+
"hr {\n box-sizing: content-box;\n // height: 0;\n overflow: visible;\n height: 0;\n // margin: 15px 0;\n overflow: hidden;\n // background: transparent;\n border: 0;\n border-bottom: 1px solid #ddd;\n\n height: 4px;\n padding: 0;\n margin: 16px 0;\n background-color: #e7e7e7;\n // border: 0 none;\n\n border-bottom-color: #eee;\n\n &::before {\n display: table;\n content: \"\";\n }\n &::after {\n display: table;\n clear: both;\n content: \"\";\n }\n}",
|
36
|
+
"kbd {\n display: inline-block;\n padding: 3px 5px;\n font-size: 11px;\n line-height: 10px;\n color: #555;\n vertical-align: middle;\n background-color: #fcfcfc;\n border: solid 1px #ccc;\n border-bottom-color: #bbb;\n border-radius: 3px;\n box-shadow: inset 0 -1px 0 #bbb;\n}\n\n",
|
37
|
+
".search-form {\n margin-bottom: 20px;\n margin-top: 20px;\n}\n\n.search-field {\n outline: none;\n padding: 8px 12px;\n font-size: 1.5em;\n width: 50%;\n min-width: 200px;\n width: 100%;\n\n border: #ccc 1px solid;\n border-radius: 3px;\n\n &:focus {\n border-color: #4078c0;\n }\n}\n",
|
38
|
+
".breadcrumbs {\n margin-top: 6px;\n border-bottom: 1px solid #ccc;\n a {\n display: inline-block;\n padding: 7px 0;\n }\n}\n",
|
39
|
+
"nav {\n @media print {\n display: none;\n }\n\n @include mobile {\n display: none;\n }\n\n // background: #eee;\n // border-right: 1px solid #ccc;\n\n height: 100vh;\n width: 250px;\n overflow-y: auto;\n position: fixed;\n\n .icon-bar {\n border-bottom: 1px dotted #ddd;\n }\n\n a.document, span.document, .caption {\n border-bottom: 1px dotted #ddd;\n // &:hover {\n // background: #e4e4e4;\n // }\n\n display: block;\n padding: 5px 20px 5px 30px;\n }\n\n a.icon {\n display: inline-block;\n font-size: 1.5em;\n width: 50%;\n padding: 3px 20px 3px 30px;\n &.wide {\n width: 100%\n }\n // &:hover {\n // background: #e4e4e4;\n // }\n }\n\n\n &:after {\n content: \"\";\n height: 90px;\n display: block;\n }\n}\n\n\n// Nicer sidebar scrollbars\n::-webkit-scrollbar {\n width: 6px;\n}\n::-webkit-scrollbar-thumb {\n background: #ddd;\n -webkit-border-radius: 3px;\n}\n",
|
40
|
+
"@font-face {\n font-family: 'fontello';\n src: url('../fonts/fontello.eot?68354463');\n src: url('../fonts/fontello.eot?68354463#iefix') format('embedded-opentype'),\n url('../fonts/fontello.woff2?68354463') format('woff2'),\n url('../fonts/fontello.woff?68354463') format('woff'),\n url('../fonts/fontello.ttf?68354463') format('truetype'),\n url('../fonts/fontello.svg?68354463#fontello') format('svg');\n font-weight: normal;\n font-style: normal;\n}\n \n[class^=\"icon-\"]:before, [class*=\" icon-\"]:before {\n font-family: \"fontello\";\n font-style: normal;\n font-weight: normal;\n speak: none;\n \n display: inline-block;\n text-decoration: inherit;\n width: 1em;\n margin-right: .2em;\n text-align: center;\n /* opacity: .8; */\n \n /* For safety - reset parent styles, that can break glyph codes*/\n font-variant: normal;\n text-transform: none;\n \n /* fix buttons height, for twitter bootstrap */\n line-height: 1em;\n \n /* Animation center compensation - margins should be symmetric */\n /* remove if not needed */\n margin-left: .2em;\n \n /* you can be more comfortable with increased icons size */\n /* font-size: 120%; */\n \n /* Font smoothing. That was taken from TWBS */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n \n /* Uncomment for 3D effect */\n /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */\n}\n \n.icon-export:before { content: '\\e800'; }\n.icon-home:before { content: '\\e801'; }\n.icon-search:before { content: '\\e802'; }\n",
|
41
|
+
".autocomplete-suggestions { \n border: 1px solid #ccc; \n background: #fff;\n cursor: default; \n overflow: auto; \n}\n.autocomplete-suggestion { \n padding: 5px 10px; \n white-space: nowrap; \n overflow: hidden; \n}\n.autocomplete-no-suggestion { \n padding: 2px 5px;\n}\n.autocomplete-selected { \n background: #ddd;\n}\n.autocomplete-suggestions strong { \n font-weight: bold; \n}\n.autocomplete-group { \n padding: 2px 5px; \n}\n.autocomplete-group strong { \n font-weight: bold; \n color: #000; \n display: block; \n border-bottom: 1px solid #000; \n}\n",
|
42
|
+
"* {\n box-sizing: border-box;\n}\n\np {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\nblockquote {\n margin: 0;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n\n &>:first-child {\n margin-top: 0;\n }\n\n &>:last-child {\n margin-bottom: 0;\n }\n}\n\np, blockquote, ul, ol, dl, table, pre {\n margin-top: 0;\n margin-bottom: 16px;\n}\n\n.quiet {\n color: #777;\n}\n"
|
43
|
+
],
|
44
|
+
"names": [],
|
45
|
+
"mappings": "AGAA,AAAA,IAAI,CAAC;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,GACtB;;AAED,AAAA,MAAM,EAAE,OAAO,CAAC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|
1
1
|
# require 'sinatra/reloader'
|
2
2
|
require 'rack/ssl'
|
3
|
-
require 'sass'
|
4
|
-
require 'sass/plugin/rack'
|
5
3
|
require 'sinatra/base'
|
6
4
|
require 'slim'
|
7
5
|
|
@@ -14,20 +12,10 @@ module Madness
|
|
14
12
|
helpers ServerHelper
|
15
13
|
|
16
14
|
Slim::Engine.set_options pretty: true
|
17
|
-
use Sass::Plugin::Rack
|
18
15
|
use Rack::SSL if ENV['MADNESS_FORCE_SSL']
|
19
16
|
set :root, File.expand_path('../../', __dir__)
|
20
|
-
set :server, :puma
|
21
17
|
set :environment, ENV['MADNESS_ENV'] || :production
|
22
|
-
|
23
|
-
# TODO: Uncomment when the upstream issue is resolved
|
24
|
-
# At this time, we cannot use reloader, since it prints deprecation
|
25
|
-
# warnings in Ruby 2.7
|
26
|
-
# ref: https://github.com/sinatra/sinatra/issues/1590
|
27
|
-
# configure :development do
|
28
|
-
# register Sinatra::Reloader
|
29
|
-
# also_reload "#{__dir__}/*.rb"
|
30
|
-
# end
|
18
|
+
set :server, :puma
|
31
19
|
|
32
20
|
# Since we cannot use any config values in the main body of the class,
|
33
21
|
# since they will be updated later, we need to set anything that relys
|
@@ -48,8 +36,6 @@ module Madness
|
|
48
36
|
|
49
37
|
set :views, theme.views_path
|
50
38
|
set :public_folder, theme.public_path
|
51
|
-
Sass::Plugin.options[:template_location] = theme.css_source_path
|
52
|
-
Sass::Plugin.options[:css_location] = theme.css_target_path
|
53
39
|
end
|
54
40
|
|
55
41
|
def self.set_basic_auth
|
data/lib/madness/theme.rb
CHANGED
@@ -14,14 +14,6 @@ module Madness
|
|
14
14
|
custom? ? "#{path}/public" : File.expand_path('../../app/public', __dir__)
|
15
15
|
end
|
16
16
|
|
17
|
-
def css_source_path
|
18
|
-
custom? ? "#{path}/styles" : 'app/styles'
|
19
|
-
end
|
20
|
-
|
21
|
-
def css_target_path
|
22
|
-
custom? ? "#{path}/public/css" : 'app/public/css'
|
23
|
-
end
|
24
|
-
|
25
17
|
def custom?
|
26
18
|
@custom ||= (path and Dir.exist? path)
|
27
19
|
end
|
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.8.
|
4
|
+
version: 0.8.6
|
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: 2020-12-
|
11
|
+
date: 2020-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderay
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.11'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: json
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '2.1'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '2.1'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: naturally
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -164,20 +150,6 @@ dependencies:
|
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
152
|
version: '0.1'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: sass
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '3.7'
|
174
|
-
type: :runtime
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '3.7'
|
181
153
|
- !ruby/object:Gem::Dependency
|
182
154
|
name: sinatra
|
183
155
|
requirement: !ruby/object:Gem::Requirement
|