catcher theme
@ -59,7 +59,7 @@ PYGMENTS_RST_OPTIONS = {"linenos": "table"}
|
||||
# have to be in caps
|
||||
# foobar = "barbaz"
|
||||
|
||||
THEME = "themes/stone"
|
||||
THEME = "themes/catcher"
|
||||
OUTPUT_PATH = "output"
|
||||
PATH = "content"
|
||||
|
||||
|
132
themes/catcher/static/css/catcher.css
Normal file
@ -0,0 +1,132 @@
|
||||
@font-face {
|
||||
font-family: 'Fantasque Sans Mono';
|
||||
src: url('/theme/fonts/FantasqueSansMono-Regular.eot'); /* IE 9 Compatibility Mode */
|
||||
src: url('/theme/fonts/FantasqueSansMono-Regular.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
|
||||
url('/theme/fonts/FantasqueSansMono-Regular.woff2') format('woff2'),
|
||||
url('/theme/fonts/FantasqueSansMono-Regular.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
|
||||
url('/theme/fonts/FantasqueSansMono-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||
url('/theme/fonts/FantasqueSansMono-Regular.svg#FantasqueSansMono-Regular') format('svg'); /* Chrome < 4, Legacy iOS */
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
body {
|
||||
background: #f8f8f2;
|
||||
height: 100%;
|
||||
font-family: 'Fantasque Sans Mono';
|
||||
font-style: normal;
|
||||
font-size: 1.5em;
|
||||
color: #282a36;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #6272a4;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #bd93f9;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #6272a4;
|
||||
margin-top: 75px;
|
||||
font-family: 'Fantasque Sans Mono';
|
||||
}
|
||||
|
||||
h1 a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #6272a4;
|
||||
font-family: 'Fantasque Sans Mono';
|
||||
}
|
||||
|
||||
hr {
|
||||
border: solid #44475a 1px;
|
||||
}
|
||||
|
||||
p.post-meta {
|
||||
color: #44475a;
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
color: #44475a;
|
||||
font-size: 75%;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
figure {
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
max-width: 90%;
|
||||
font-size: small;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content pre {
|
||||
padding: 20px;
|
||||
font-family: "Fantasque Sans Mono";
|
||||
}
|
||||
|
||||
.content blockquote {
|
||||
font-family: "Fantasque Sans Mono";
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.content img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#tipue_search_input {
|
||||
font-family: 'Fantasque Sans Mono';
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#tipue_search_results_count, .tipue_search_content_title a, .tipue_search_content_url a, .tipue_search_content_text, #tipue_search_warning {
|
||||
font-family: 'Fantasque Sans Mono';
|
||||
}
|
||||
|
||||
.tipue_search_content_title a, .tipue_search_content_url a {
|
||||
color: #44475a;
|
||||
}
|
||||
|
||||
.tipue_search_content_title a:hover {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.tipue_search_content_url a:hover {
|
||||
color: #000000;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background-image: url(/theme/images/background.gif);
|
||||
position: absolute;
|
||||
height: 65px;
|
||||
}
|
||||
|
||||
@media (min-width: 550px) {
|
||||
|
||||
.sidebar {
|
||||
background-image: url(/theme/images/background.gif);
|
||||
background-size: cover;
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.highlight.hl-ipython3 pre {
|
||||
color: #000000;
|
||||
}
|
427
themes/catcher/static/css/normalize.css
vendored
Normal file
@ -0,0 +1,427 @@
|
||||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
||||
|
||||
/**
|
||||
* 1. Set default font family to sans-serif.
|
||||
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
||||
* user zoom.
|
||||
*/
|
||||
|
||||
html {
|
||||
font-family: sans-serif; /* 1 */
|
||||
-ms-text-size-adjust: 100%; /* 2 */
|
||||
-webkit-text-size-adjust: 100%; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default margin.
|
||||
*/
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* HTML5 display definitions
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
||||
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
||||
* and Firefox.
|
||||
* Correct `block` display not defined for `main` in IE 11.
|
||||
*/
|
||||
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
menu,
|
||||
nav,
|
||||
section,
|
||||
summary {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `inline-block` display not defined in IE 8/9.
|
||||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
||||
*/
|
||||
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {
|
||||
display: inline-block; /* 1 */
|
||||
vertical-align: baseline; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent modern browsers from displaying `audio` without controls.
|
||||
* Remove excess height in iOS 5 devices.
|
||||
*/
|
||||
|
||||
audio:not([controls]) {
|
||||
display: none;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `[hidden]` styling not present in IE 8/9/10.
|
||||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
||||
*/
|
||||
|
||||
[hidden],
|
||||
template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Links
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove the gray background color from active links in IE 10.
|
||||
*/
|
||||
|
||||
a {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve readability when focused and also mouse hovered in all browsers.
|
||||
*/
|
||||
|
||||
a:active,
|
||||
a:hover {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* Text-level semantics
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
abbr[title] {
|
||||
border-bottom: 1px dotted;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in Safari and Chrome.
|
||||
*/
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address variable `h1` font-size and margin within `section` and `article`
|
||||
* contexts in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address styling not present in IE 8/9.
|
||||
*/
|
||||
|
||||
mark {
|
||||
background: #ff0;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent and variable font size in all browsers.
|
||||
*/
|
||||
|
||||
small {
|
||||
font-size: 80%;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
||||
*/
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 75%;
|
||||
line-height: 0;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
/* Embedded content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove border when inside `a` element in IE 8/9/10.
|
||||
*/
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Correct overflow not hidden in IE 9/10/11.
|
||||
*/
|
||||
|
||||
svg:not(:root) {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Grouping content
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Address margin not present in IE 8/9 and Safari.
|
||||
*/
|
||||
|
||||
figure {
|
||||
margin: 1em 40px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address differences between Firefox and other browsers.
|
||||
*/
|
||||
|
||||
hr {
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Contain overflow in all browsers.
|
||||
*/
|
||||
|
||||
pre {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address odd `em`-unit font size rendering in all browsers.
|
||||
*/
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: monospace, monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
/* Forms
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Known limitation: by default, Chrome and Safari on OS X allow very limited
|
||||
* styling of `select`, unless a `border` property is set.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 1. Correct color not being inherited.
|
||||
* Known issue: affects color of disabled elements.
|
||||
* 2. Correct font properties not being inherited.
|
||||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
||||
*/
|
||||
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {
|
||||
color: inherit; /* 1 */
|
||||
font: inherit; /* 2 */
|
||||
margin: 0; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
button {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
||||
* All other form control elements do not inherit `text-transform` values.
|
||||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
||||
* Correct `select` style inheritance in Firefox.
|
||||
*/
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
||||
* and `video` controls.
|
||||
* 2. Correct inability to style clickable `input` types in iOS.
|
||||
* 3. Improve usability and consistency of cursor style between image-type
|
||||
* `input` and others.
|
||||
*/
|
||||
|
||||
button,
|
||||
html input[type="button"], /* 1 */
|
||||
input[type="reset"],
|
||||
input[type="submit"] {
|
||||
-webkit-appearance: button; /* 2 */
|
||||
cursor: pointer; /* 3 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-set default cursor for disabled elements.
|
||||
*/
|
||||
|
||||
button[disabled],
|
||||
html input[disabled] {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and border in Firefox 4+.
|
||||
*/
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
||||
* the UA stylesheet.
|
||||
*/
|
||||
|
||||
input {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/**
|
||||
* It's recommended that you don't attempt to style these elements.
|
||||
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
||||
*
|
||||
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
||||
* 2. Remove excess padding in IE 8/9/10.
|
||||
*/
|
||||
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
box-sizing: border-box; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
||||
* `font-size` values of the `input`, it causes the cursor style of the
|
||||
* decrement button to change from `default` to `text`.
|
||||
*/
|
||||
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
||||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
||||
* (include `-moz` to future-proof).
|
||||
*/
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* 1 */
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box; /* 2 */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
||||
* Safari (but not Chrome) clips the cancel button when the search input has
|
||||
* padding (and `textfield` appearance).
|
||||
*/
|
||||
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Define consistent border, margin, and padding.
|
||||
*/
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #c0c0c0;
|
||||
margin: 0 2px;
|
||||
padding: 0.35em 0.625em 0.75em;
|
||||
}
|
||||
|
||||
/**
|
||||
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
||||
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
||||
*/
|
||||
|
||||
legend {
|
||||
border: 0; /* 1 */
|
||||
padding: 0; /* 2 */
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove default vertical scrollbar in IE 8/9/10/11.
|
||||
*/
|
||||
|
||||
textarea {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Don't inherit the `font-weight` (applied by a rule above).
|
||||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
||||
*/
|
||||
|
||||
optgroup {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Tables
|
||||
========================================================================== */
|
||||
|
||||
/**
|
||||
* Remove most spacing between table cells.
|
||||
*/
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
td,
|
||||
th {
|
||||
padding: 0;
|
||||
}
|
91
themes/catcher/static/css/pygment.css
Normal file
@ -0,0 +1,91 @@
|
||||
/* Dracula Theme v1.2.5
|
||||
*
|
||||
* https://github.com/zenorocha/dracula-theme
|
||||
*
|
||||
* Copyright 2016, All rights reserved
|
||||
*
|
||||
* Code licensed under the MIT license
|
||||
* http://zenorocha.mit-license.org
|
||||
*
|
||||
* @author Rob G <wowmotty@gmail.com>
|
||||
* @author Chris Bracco <chris@cbracco.me>
|
||||
* @author Zeno Rocha <hi@zenorocha.com>
|
||||
*/
|
||||
|
||||
.highlight .hll { background-color: #f1fa8c }
|
||||
.highlight { background: #282a36; color: #f8f8f2 }
|
||||
.highlight .c { color: #6272a4 } /* Comment */
|
||||
.highlight .err { color: #f8f8f2 } /* Error */
|
||||
.highlight .g { color: #f8f8f2 } /* Generic */
|
||||
.highlight .k { color: #ff79c6 } /* Keyword */
|
||||
.highlight .l { color: #f8f8f2 } /* Literal */
|
||||
.highlight .n { color: #f8f8f2 } /* Name */
|
||||
.highlight .o { color: #ff79c6 } /* Operator */
|
||||
.highlight .x { color: #f8f8f2 } /* Other */
|
||||
.highlight .p { color: #f8f8f2 } /* Punctuation */
|
||||
.highlight .ch { color: #6272a4 } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #6272a4 } /* Comment.Multiline */
|
||||
.highlight .cp { color: #ff79c6 } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #6272a4 } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #6272a4 } /* Comment.Single */
|
||||
.highlight .cs { color: #6272a4 } /* Comment.Special */
|
||||
.highlight .gd { color: #8b080b } /* Generic.Deleted */
|
||||
.highlight .ge { color: #f8f8f2; text-decoration: underline } /* Generic.Emph */
|
||||
.highlight .gr { color: #f8f8f2 } /* Generic.Error */
|
||||
.highlight .gh { color: #f8f8f2; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #f8f8f2; font-weight: bold } /* Generic.Inserted */
|
||||
.highlight .go { color: #44475a } /* Generic.Output */
|
||||
.highlight .gp { color: #f8f8f2 } /* Generic.Prompt */
|
||||
.highlight .gs { color: #f8f8f2 } /* Generic.Strong */
|
||||
.highlight .gu { color: #f8f8f2; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #f8f8f2 } /* Generic.Traceback */
|
||||
.highlight .kc { color: #ff79c6 } /* Keyword.Constant */
|
||||
.highlight .kd { color: #8be9fd; font-style: italic } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #ff79c6 } /* Keyword.Namespace */
|
||||
.highlight .kp { color: #ff79c6 } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: #ff79c6 } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #8be9fd } /* Keyword.Type */
|
||||
.highlight .ld { color: #f8f8f2 } /* Literal.Date */
|
||||
.highlight .m { color: #bd93f9 } /* Literal.Number */
|
||||
.highlight .s { color: #f1fa8c } /* Literal.String */
|
||||
.highlight .na { color: #50fa7b } /* Name.Attribute */
|
||||
.highlight .nb { color: #8be9fd; font-style: italic } /* Name.Builtin */
|
||||
.highlight .nc { color: #50fa7b } /* Name.Class */
|
||||
.highlight .no { color: #f8f8f2 } /* Name.Constant */
|
||||
.highlight .nd { color: #f8f8f2 } /* Name.Decorator */
|
||||
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
|
||||
.highlight .ne { color: #f8f8f2 } /* Name.Exception */
|
||||
.highlight .nf { color: #50fa7b } /* Name.Function */
|
||||
.highlight .nl { color: #8be9fd; font-style: italic } /* Name.Label */
|
||||
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
|
||||
.highlight .nx { color: #f8f8f2 } /* Name.Other */
|
||||
.highlight .py { color: #f8f8f2 } /* Name.Property */
|
||||
.highlight .nt { color: #ff79c6 } /* Name.Tag */
|
||||
.highlight .nv { color: #8be9fd; font-style: italic } /* Name.Variable */
|
||||
.highlight .ow { color: #ff79c6 } /* Operator.Word */
|
||||
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
|
||||
.highlight .mb { color: #bd93f9 } /* Literal.Number.Bin */
|
||||
.highlight .mf { color: #bd93f9 } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #bd93f9 } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #bd93f9 } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #bd93f9 } /* Literal.Number.Oct */
|
||||
.highlight .sa { color: #f1fa8c } /* Literal.String.Affix */
|
||||
.highlight .sb { color: #f1fa8c } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #f1fa8c } /* Literal.String.Char */
|
||||
.highlight .dl { color: #f1fa8c } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #f1fa8c } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #f1fa8c } /* Literal.String.Double */
|
||||
.highlight .se { color: #f1fa8c } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #f1fa8c } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #f1fa8c } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #f1fa8c } /* Literal.String.Other */
|
||||
.highlight .sr { color: #f1fa8c } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #f1fa8c } /* Literal.String.Single */
|
||||
.highlight .ss { color: #f1fa8c } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #f8f8f2; font-style: italic } /* Name.Builtin.Pseudo */
|
||||
.highlight .fm { color: #50fa7b } /* Name.Function.Magic */
|
||||
.highlight .vc { color: #8be9fd; font-style: italic } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #8be9fd; font-style: italic } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #8be9fd; font-style: italic } /* Name.Variable.Instance */
|
||||
.highlight .vm { color: #8be9fd; font-style: italic } /* Name.Variable.Magic */
|
||||
.highlight .il { color: #bd93f9 } /* Literal.Number.Integer.Long */
|
418
themes/catcher/static/css/skeleton.css
vendored
Normal file
@ -0,0 +1,418 @@
|
||||
/*
|
||||
* Skeleton V2.0.4
|
||||
* Copyright 2014, Dave Gamache
|
||||
* www.getskeleton.com
|
||||
* Free to use under the MIT license.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* 12/29/2014
|
||||
*/
|
||||
|
||||
|
||||
/* Table of contents
|
||||
––––––––––––––––––––––––––––––––––––––––––––––––––
|
||||
- Grid
|
||||
- Base Styles
|
||||
- Typography
|
||||
- Links
|
||||
- Buttons
|
||||
- Forms
|
||||
- Lists
|
||||
- Code
|
||||
- Tables
|
||||
- Spacing
|
||||
- Utilities
|
||||
- Clearing
|
||||
- Media Queries
|
||||
*/
|
||||
|
||||
|
||||
/* Grid
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box; }
|
||||
.column,
|
||||
.columns {
|
||||
width: 100%;
|
||||
float: left;
|
||||
box-sizing: border-box; }
|
||||
|
||||
/* For devices larger than 400px */
|
||||
@media (min-width: 400px) {
|
||||
.container {
|
||||
width: 85%;
|
||||
padding: 0; }
|
||||
}
|
||||
|
||||
/* For devices larger than 550px */
|
||||
@media (min-width: 550px) {
|
||||
.container {
|
||||
width: 80%; }
|
||||
.column,
|
||||
.columns {
|
||||
margin-left: 4%; }
|
||||
.column:first-child,
|
||||
.columns:first-child {
|
||||
margin-left: 0; }
|
||||
|
||||
.one.column,
|
||||
.one.columns { width: 4.66666666667%; }
|
||||
.two.columns { width: 13.3333333333%; }
|
||||
.three.columns { width: 22%; }
|
||||
.four.columns { width: 30.6666666667%; }
|
||||
.five.columns { width: 39.3333333333%; }
|
||||
.six.columns { width: 48%; }
|
||||
.seven.columns { width: 56.6666666667%; }
|
||||
.eight.columns { width: 65.3333333333%; }
|
||||
.nine.columns { width: 74.0%; }
|
||||
.ten.columns { width: 82.6666666667%; }
|
||||
.eleven.columns { width: 91.3333333333%; }
|
||||
.twelve.columns { width: 100%; margin-left: 0; }
|
||||
|
||||
.one-third.column { width: 30.6666666667%; }
|
||||
.two-thirds.column { width: 65.3333333333%; }
|
||||
|
||||
.one-half.column { width: 48%; }
|
||||
|
||||
/* Offsets */
|
||||
.offset-by-one.column,
|
||||
.offset-by-one.columns { margin-left: 8.66666666667%; }
|
||||
.offset-by-two.column,
|
||||
.offset-by-two.columns { margin-left: 17.3333333333%; }
|
||||
.offset-by-three.column,
|
||||
.offset-by-three.columns { margin-left: 26%; }
|
||||
.offset-by-four.column,
|
||||
.offset-by-four.columns { margin-left: 34.6666666667%; }
|
||||
.offset-by-five.column,
|
||||
.offset-by-five.columns { margin-left: 43.3333333333%; }
|
||||
.offset-by-six.column,
|
||||
.offset-by-six.columns { margin-left: 52%; }
|
||||
.offset-by-seven.column,
|
||||
.offset-by-seven.columns { margin-left: 60.6666666667%; }
|
||||
.offset-by-eight.column,
|
||||
.offset-by-eight.columns { margin-left: 69.3333333333%; }
|
||||
.offset-by-nine.column,
|
||||
.offset-by-nine.columns { margin-left: 78.0%; }
|
||||
.offset-by-ten.column,
|
||||
.offset-by-ten.columns { margin-left: 86.6666666667%; }
|
||||
.offset-by-eleven.column,
|
||||
.offset-by-eleven.columns { margin-left: 95.3333333333%; }
|
||||
|
||||
.offset-by-one-third.column,
|
||||
.offset-by-one-third.columns { margin-left: 34.6666666667%; }
|
||||
.offset-by-two-thirds.column,
|
||||
.offset-by-two-thirds.columns { margin-left: 69.3333333333%; }
|
||||
|
||||
.offset-by-one-half.column,
|
||||
.offset-by-one-half.columns { margin-left: 52%; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* Base Styles
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
/* NOTE
|
||||
html is set to 62.5% so that all the REM measurements throughout Skeleton
|
||||
are based on 10px sizing. So basically 1.5rem = 15px :) */
|
||||
html {
|
||||
font-size: 62.5%; }
|
||||
body {
|
||||
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
|
||||
line-height: 1.6;
|
||||
font-weight: 400;
|
||||
font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: #222; }
|
||||
|
||||
|
||||
/* Typography
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 2rem;
|
||||
font-weight: 300; }
|
||||
h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
|
||||
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
|
||||
h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
|
||||
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
|
||||
h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
|
||||
h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
|
||||
|
||||
/* Larger than phablet */
|
||||
@media (min-width: 550px) {
|
||||
h1 { font-size: 5.0rem; }
|
||||
h2 { font-size: 4.2rem; }
|
||||
h3 { font-size: 3.6rem; }
|
||||
h4 { font-size: 3.0rem; }
|
||||
h5 { font-size: 2.4rem; }
|
||||
h6 { font-size: 1.5rem; }
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0; }
|
||||
|
||||
|
||||
/* Links
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
a {
|
||||
color: #1EAEDB; }
|
||||
a:hover {
|
||||
color: #0FA0CE; }
|
||||
|
||||
|
||||
/* Buttons
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.button,
|
||||
button,
|
||||
input[type="submit"],
|
||||
input[type="reset"],
|
||||
input[type="button"] {
|
||||
display: inline-block;
|
||||
height: 38px;
|
||||
padding: 0 30px;
|
||||
color: #555;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 38px;
|
||||
letter-spacing: .1rem;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
background-color: transparent;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #bbb;
|
||||
cursor: pointer;
|
||||
box-sizing: border-box; }
|
||||
.button:hover,
|
||||
button:hover,
|
||||
input[type="submit"]:hover,
|
||||
input[type="reset"]:hover,
|
||||
input[type="button"]:hover,
|
||||
.button:focus,
|
||||
button:focus,
|
||||
input[type="submit"]:focus,
|
||||
input[type="reset"]:focus,
|
||||
input[type="button"]:focus {
|
||||
color: #333;
|
||||
border-color: #888;
|
||||
outline: 0; }
|
||||
.button.button-primary,
|
||||
button.button-primary,
|
||||
input[type="submit"].button-primary,
|
||||
input[type="reset"].button-primary,
|
||||
input[type="button"].button-primary {
|
||||
color: #FFF;
|
||||
background-color: #33C3F0;
|
||||
border-color: #33C3F0; }
|
||||
.button.button-primary:hover,
|
||||
button.button-primary:hover,
|
||||
input[type="submit"].button-primary:hover,
|
||||
input[type="reset"].button-primary:hover,
|
||||
input[type="button"].button-primary:hover,
|
||||
.button.button-primary:focus,
|
||||
button.button-primary:focus,
|
||||
input[type="submit"].button-primary:focus,
|
||||
input[type="reset"].button-primary:focus,
|
||||
input[type="button"].button-primary:focus {
|
||||
color: #FFF;
|
||||
background-color: #1EAEDB;
|
||||
border-color: #1EAEDB; }
|
||||
|
||||
|
||||
/* Forms
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input[type="text"],
|
||||
input[type="tel"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
textarea,
|
||||
select {
|
||||
height: 38px;
|
||||
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
|
||||
background-color: #fff;
|
||||
border: 1px solid #D1D1D1;
|
||||
border-radius: 4px;
|
||||
box-shadow: none;
|
||||
box-sizing: border-box; }
|
||||
/* Removes awkward default styles on some inputs for iOS */
|
||||
input[type="email"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input[type="text"],
|
||||
input[type="tel"],
|
||||
input[type="url"],
|
||||
input[type="password"],
|
||||
textarea {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none; }
|
||||
textarea {
|
||||
min-height: 65px;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px; }
|
||||
input[type="email"]:focus,
|
||||
input[type="number"]:focus,
|
||||
input[type="search"]:focus,
|
||||
input[type="text"]:focus,
|
||||
input[type="tel"]:focus,
|
||||
input[type="url"]:focus,
|
||||
input[type="password"]:focus,
|
||||
textarea:focus,
|
||||
select:focus {
|
||||
border: 1px solid #33C3F0;
|
||||
outline: 0; }
|
||||
label,
|
||||
legend {
|
||||
display: block;
|
||||
margin-bottom: .5rem;
|
||||
font-weight: 600; }
|
||||
fieldset {
|
||||
padding: 0;
|
||||
border-width: 0; }
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
display: inline; }
|
||||
label > .label-body {
|
||||
display: inline-block;
|
||||
margin-left: .5rem;
|
||||
font-weight: normal; }
|
||||
|
||||
|
||||
/* Lists
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
ul {
|
||||
list-style: circle inside; }
|
||||
ol {
|
||||
list-style: decimal inside; }
|
||||
ol, ul {
|
||||
padding-left: 0;
|
||||
margin-top: 0; }
|
||||
ul ul,
|
||||
ul ol,
|
||||
ol ol,
|
||||
ol ul {
|
||||
margin: 1.5rem 0 1.5rem 3rem;
|
||||
font-size: 90%; }
|
||||
li {
|
||||
margin-bottom: 1rem; }
|
||||
|
||||
|
||||
/* Code
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
code {
|
||||
padding: .2rem .5rem;
|
||||
margin: 0 .2rem;
|
||||
font-size: 90%;
|
||||
white-space: nowrap;
|
||||
background: #F1F1F1;
|
||||
border: 1px solid #E1E1E1;
|
||||
border-radius: 4px; }
|
||||
pre > code {
|
||||
display: block;
|
||||
padding: 1rem 1.5rem;
|
||||
white-space: pre; }
|
||||
|
||||
|
||||
/* Tables
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
th,
|
||||
td {
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #E1E1E1; }
|
||||
th:first-child,
|
||||
td:first-child {
|
||||
padding-left: 0; }
|
||||
th:last-child,
|
||||
td:last-child {
|
||||
padding-right: 0; }
|
||||
|
||||
|
||||
/* Spacing
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
button,
|
||||
.button {
|
||||
margin-bottom: 1rem; }
|
||||
input,
|
||||
textarea,
|
||||
select,
|
||||
fieldset {
|
||||
margin-bottom: 1.5rem; }
|
||||
pre,
|
||||
blockquote,
|
||||
dl,
|
||||
figure,
|
||||
table,
|
||||
p,
|
||||
ul,
|
||||
ol,
|
||||
form {
|
||||
margin-bottom: 2.5rem; }
|
||||
|
||||
|
||||
/* Utilities
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
.u-full-width {
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.u-max-full-width {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.u-pull-right {
|
||||
float: right; }
|
||||
.u-pull-left {
|
||||
float: left; }
|
||||
|
||||
|
||||
/* Misc
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
hr {
|
||||
margin-top: 3rem;
|
||||
margin-bottom: 3.5rem;
|
||||
border-width: 0;
|
||||
border-top: 1px solid #E1E1E1; }
|
||||
|
||||
|
||||
/* Clearing
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
|
||||
/* Self Clearing Goodness */
|
||||
.container:after,
|
||||
.row:after,
|
||||
.u-cf {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both; }
|
||||
|
||||
|
||||
/* Media Queries
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– */
|
||||
/*
|
||||
Note: The best way to structure the use of media queries is to create the queries
|
||||
near the relevant code. For example, if you wanted to change the styles for buttons
|
||||
on small devices, paste the mobile query code up in the buttons section and style it
|
||||
there.
|
||||
*/
|
||||
|
||||
|
||||
/* Larger than mobile */
|
||||
@media (min-width: 400px) {}
|
||||
|
||||
/* Larger than phablet (also point when grid becomes active) */
|
||||
@media (min-width: 550px) {}
|
||||
|
||||
/* Larger than tablet */
|
||||
@media (min-width: 750px) {}
|
||||
|
||||
/* Larger than desktop */
|
||||
@media (min-width: 1000px) {}
|
||||
|
||||
/* Larger than Desktop HD */
|
||||
@media (min-width: 1200px) {}
|
363
themes/catcher/static/css/tipuesearch.css
Normal file
@ -0,0 +1,363 @@
|
||||
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400|Source+Code+Pro');
|
||||
|
||||
|
||||
/*
|
||||
Tipue Search 7.0
|
||||
Copyright (c) 2018 Tipue
|
||||
Tipue Search is released under the MIT License
|
||||
http://www.tipue.com/search
|
||||
*/
|
||||
|
||||
|
||||
/* basics */
|
||||
|
||||
|
||||
.tipue_search_group:after
|
||||
{
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
|
||||
/* fonts, colors */
|
||||
|
||||
|
||||
#tipue_search_input
|
||||
{
|
||||
font: 15px/1 'Open Sans', sans-serif;
|
||||
color: #333;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.tipue_search_icon
|
||||
{
|
||||
font: 300 24px/1 'Open Sans', sans-serif;
|
||||
color: #777;
|
||||
}
|
||||
#tipue_search_results_count, .tipue_search_related, .tipue_search_note
|
||||
{
|
||||
font: 12px/1.3 'Source Code Pro', monospace;
|
||||
text-transform: uppercase;
|
||||
color: #999;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
#tipue_search_replace, #tipue_search_error, .tipue_search_content_text
|
||||
{
|
||||
font: 300 16px/1.6 'Open Sans', sans-serif;
|
||||
color: #666;
|
||||
}
|
||||
#tipue_search_replace a
|
||||
{
|
||||
color: #339e41;
|
||||
text-decoration: none;
|
||||
}
|
||||
#tipue_search_replace a:hover
|
||||
{
|
||||
color: #666;
|
||||
}
|
||||
.tipue_search_related_btn
|
||||
{
|
||||
font: 11px/1 'Source Code Pro', monospace;
|
||||
color: #666;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
background-color: #f7f7f7;
|
||||
}
|
||||
.tipue_search_content_title
|
||||
{
|
||||
font: 300 30px/1.2 'Open Sans', sans-serif;
|
||||
color: #333;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.tipue_search_content_title a
|
||||
{
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
.tipue_search_content_url, .tipue_search_content_debug
|
||||
{
|
||||
font: 300 15px/1.7 'Open Sans', sans-serif;
|
||||
color: #333;
|
||||
}
|
||||
.tipue_search_content_url a
|
||||
{
|
||||
color: #339e41;
|
||||
text-decoration: none;
|
||||
}
|
||||
.tipue_search_content_url a:hover
|
||||
{
|
||||
color: #666;
|
||||
}
|
||||
.tipue_search_content_bold
|
||||
{
|
||||
font-weight: 400;
|
||||
color: #333;
|
||||
}
|
||||
.tipue_search_note a
|
||||
{
|
||||
color: #999;
|
||||
text-decoration: none;
|
||||
}
|
||||
.tipue_search_image_close
|
||||
{
|
||||
font: 22px/1 'Source Code Pro', monospace;
|
||||
color: #ccc;
|
||||
}
|
||||
#tipue_search_zoom_text
|
||||
{
|
||||
font: 11px/1.7 'Source Code Pro', monospace;
|
||||
color: #ccc;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
#tipue_search_zoom_text a
|
||||
{
|
||||
color: #ccc;
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid #f7f7f7;
|
||||
}
|
||||
#tipue_search_zoom_text a:hover
|
||||
{
|
||||
border: 0;
|
||||
}
|
||||
#tipue_search_foot_boxes
|
||||
{
|
||||
font: 13px/1 'Source Code Pro', sans-serif;
|
||||
text-transform: uppercase;
|
||||
color: #333;
|
||||
}
|
||||
#tipue_search_foot_boxes li a
|
||||
{
|
||||
background-color: #f7f7f7;
|
||||
color: #666;
|
||||
}
|
||||
#tipue_search_foot_boxes li.current
|
||||
{
|
||||
background: #252525;
|
||||
color: #ccc;
|
||||
}
|
||||
#tipue_search_foot_boxes li a:hover, .tipue_search_related_btn:hover
|
||||
{
|
||||
background: #252525;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
|
||||
/* search box */
|
||||
|
||||
|
||||
#tipue_search_input
|
||||
{
|
||||
float: left;
|
||||
width: 200px;
|
||||
background-color: #f3f3f3;
|
||||
border: none;
|
||||
padding: 9px 6px 10px 15px;
|
||||
height: 56px;
|
||||
border-radius: 3px;
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
box-sizing: border-box;
|
||||
box-shadow: none;
|
||||
outline: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.tipue_search_button
|
||||
{
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 47px;
|
||||
height: 56px;
|
||||
margin-left: -3px;
|
||||
background-color: #f3f3f3;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
outline: 0;
|
||||
}
|
||||
.tipue_search_icon
|
||||
{
|
||||
float: left;
|
||||
transform: rotate(-45deg);
|
||||
-moz-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
box-sizing: border-box;
|
||||
box-shadow: none;
|
||||
outline: 0;
|
||||
margin: -1px 0 0 8px;
|
||||
}
|
||||
|
||||
|
||||
/* search results */
|
||||
|
||||
|
||||
#tipue_search_content
|
||||
{
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
.tipue_search_result
|
||||
{
|
||||
padding-top: 21px;
|
||||
}
|
||||
#tipue_search_results_count
|
||||
{
|
||||
padding-top: 9px;
|
||||
}
|
||||
.tipue_search_related
|
||||
{
|
||||
padding-top: 13px;
|
||||
}
|
||||
.tipue_search_related_block
|
||||
{
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
#tipue_search_warning
|
||||
{
|
||||
padding-top: 10px;
|
||||
}
|
||||
.tipue_search_related_btn
|
||||
{
|
||||
display: inline-block;
|
||||
padding: 9px 10px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
border-radius: 3px;
|
||||
margin: 9px 9px 0 0;
|
||||
outline: 0;
|
||||
transition: 0.2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
#tipue_search_replace
|
||||
{
|
||||
padding-top: 13px;
|
||||
}
|
||||
#tipue_search_error
|
||||
{
|
||||
padding-top: 13px;
|
||||
}
|
||||
.tipue_search_content_url
|
||||
{
|
||||
padding-top: 3px;
|
||||
word-wrap: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
.tipue_search_content_text
|
||||
{
|
||||
word-wrap: break-word;
|
||||
hyphens: auto;
|
||||
margin-top: 1px;
|
||||
}
|
||||
.tipue_search_note
|
||||
{
|
||||
padding-top: 5px;
|
||||
}
|
||||
.tipue_search_content_debug
|
||||
{
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
|
||||
/* images */
|
||||
|
||||
|
||||
.tipue_search_image
|
||||
{
|
||||
padding: 9px 0 6px 0;
|
||||
}
|
||||
.tipue_search_img
|
||||
{
|
||||
width: 200px;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
transition: 0.5s;
|
||||
border-radius: 1px;
|
||||
}
|
||||
.tipue_search_img:hover
|
||||
{
|
||||
opacity: 0.7;
|
||||
}
|
||||
.tipue_search_image_zoom
|
||||
{
|
||||
cursor: pointer;
|
||||
}
|
||||
#tipue_search_image_modal
|
||||
{
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
background-color: rgba(0, 0, 0, 0.9);
|
||||
}
|
||||
.tipue_search_image_close
|
||||
{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 25px 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.tipue_search_image_block
|
||||
{
|
||||
margin: 0 auto;
|
||||
max-width: 900px;
|
||||
padding: 73px 30px 30px 30px;
|
||||
box-sizing: border-box;
|
||||
color: #fff;
|
||||
}
|
||||
#tipue_search_zoom_img
|
||||
{
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
#tipue_search_zoom_text, .tipue_search_zoom_options
|
||||
{
|
||||
padding-top: 9px;
|
||||
}
|
||||
|
||||
|
||||
/* footer */
|
||||
|
||||
|
||||
#tipue_search_foot
|
||||
{
|
||||
margin: 51px 0 21px 0;
|
||||
}
|
||||
#tipue_search_foot_boxes
|
||||
{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
#tipue_search_foot_boxes li
|
||||
{
|
||||
display: inline;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#tipue_search_foot_boxes li a
|
||||
{
|
||||
padding: 10px 17px 11px 17px;
|
||||
border-radius: 3px;
|
||||
margin-right: 7px;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
transition: 0.2s;
|
||||
}
|
||||
#tipue_search_foot_boxes li.current
|
||||
{
|
||||
padding: 10px 17px 11px 17px;
|
||||
border-radius: 3px;
|
||||
margin-right: 7px;
|
||||
text-align: center;
|
||||
}
|
||||
|
BIN
themes/catcher/static/fonts/FantasqueSansMono-Regular.eot
Normal file
2646
themes/catcher/static/fonts/FantasqueSansMono-Regular.svg
Normal file
After Width: | Height: | Size: 318 KiB |
BIN
themes/catcher/static/fonts/FantasqueSansMono-Regular.ttf
Normal file
BIN
themes/catcher/static/fonts/FantasqueSansMono-Regular.woff
Normal file
BIN
themes/catcher/static/fonts/FantasqueSansMono-Regular.woff2
Normal file
BIN
themes/catcher/static/images/background.gif
Normal file
After Width: | Height: | Size: 165 KiB |
BIN
themes/catcher/static/images/favicon/android-chrome-192x192.png
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
themes/catcher/static/images/favicon/android-chrome-512x512.png
Normal file
After Width: | Height: | Size: 377 KiB |
BIN
themes/catcher/static/images/favicon/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 59 KiB |
9
themes/catcher/static/images/favicon/browserconfig.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="/theme/images/favicon/mstile-150x150.png"/>
|
||||
<TileColor>#da532c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
BIN
themes/catcher/static/images/favicon/favicon-16x16.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
themes/catcher/static/images/favicon/favicon-32x32.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
themes/catcher/static/images/favicon/favicon.ico
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
themes/catcher/static/images/favicon/mstile-150x150.png
Normal file
After Width: | Height: | Size: 34 KiB |
6886
themes/catcher/static/images/favicon/safari-pinned-tab.svg
Normal file
After Width: | Height: | Size: 435 KiB |
19
themes/catcher/static/images/favicon/site.webmanifest
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "",
|
||||
"short_name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/theme/images/favicon/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/theme/images/favicon/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
4
themes/catcher/static/js/jquery-3.2.1.min.js
vendored
Normal file
87
themes/catcher/static/js/jquery.fitvids.js
Normal file
@ -0,0 +1,87 @@
|
||||
/*jshint browser:true */
|
||||
/*!
|
||||
* FitVids 1.1
|
||||
*
|
||||
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
*/
|
||||
|
||||
;(function( $ ){
|
||||
|
||||
'use strict';
|
||||
|
||||
$.fn.fitVids = function( options ) {
|
||||
var settings = {
|
||||
customSelector: null,
|
||||
ignore: null
|
||||
};
|
||||
|
||||
if(!document.getElementById('fit-vids-style')) {
|
||||
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
|
||||
var head = document.head || document.getElementsByTagName('head')[0];
|
||||
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
|
||||
var div = document.createElement("div");
|
||||
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
|
||||
head.appendChild(div.childNodes[1]);
|
||||
}
|
||||
|
||||
if ( options ) {
|
||||
$.extend( settings, options );
|
||||
}
|
||||
|
||||
return this.each(function(){
|
||||
var selectors = [
|
||||
'iframe[src*="player.vimeo.com"]',
|
||||
'iframe[src*="youtube.com"]',
|
||||
'iframe[src*="youtube-nocookie.com"]',
|
||||
'iframe[src*="kickstarter.com"][src*="video.html"]',
|
||||
'object',
|
||||
'embed'
|
||||
];
|
||||
|
||||
if (settings.customSelector) {
|
||||
selectors.push(settings.customSelector);
|
||||
}
|
||||
|
||||
var ignoreList = '.fitvidsignore';
|
||||
|
||||
if(settings.ignore) {
|
||||
ignoreList = ignoreList + ', ' + settings.ignore;
|
||||
}
|
||||
|
||||
var $allVideos = $(this).find(selectors.join(','));
|
||||
$allVideos = $allVideos.not('object object'); // SwfObj conflict patch
|
||||
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.
|
||||
|
||||
$allVideos.each(function(){
|
||||
var $this = $(this);
|
||||
if($this.parents(ignoreList).length > 0) {
|
||||
return; // Disable FitVids on this video.
|
||||
}
|
||||
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
|
||||
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
|
||||
{
|
||||
$this.attr('height', 9);
|
||||
$this.attr('width', 16);
|
||||
}
|
||||
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
|
||||
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
|
||||
aspectRatio = height / width;
|
||||
if(!$this.attr('name')){
|
||||
var videoName = 'fitvid' + $.fn.fitVids._count;
|
||||
$this.attr('name', videoName);
|
||||
$.fn.fitVids._count++;
|
||||
}
|
||||
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
|
||||
$this.removeAttr('height').removeAttr('width');
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
// Internal counter for unique video names.
|
||||
$.fn.fitVids._count = 0;
|
||||
|
||||
// Works with either jQuery or Zepto
|
||||
})( window.jQuery || window.Zepto );
|
181
themes/catcher/static/js/tipuesearch.min.js
vendored
Normal file
@ -0,0 +1,181 @@
|
||||
(function($){$.fn.tipuesearch=function(options){var set=$.extend({'contextBuffer':60,'contextLength':60,'contextStart':90,'debug':false,'descriptiveWords':25,'footerPages':3,'highlightTerms':true,'imageZoom':true,'minimumLength':3,'newWindow':false,'show':10,'showContext':true,'showRelated':true,'showTime':true,'showTitleCount':true,'showURL':true,'wholeWords':true},options);return this.each(function(){var tipuesearch_t_c=0;var tipue_search_w='';if(set.newWindow)
|
||||
{tipue_search_w=' target="_blank"';}
|
||||
function getURLP(name)
|
||||
{var locSearch=location.search;var splitted=(new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(locSearch)||[,""]);var searchString=splitted[1].replace(/\+/g,'%20');try
|
||||
{searchString=decodeURIComponent(searchString);}
|
||||
catch(e)
|
||||
{searchString=unescape(searchString);}
|
||||
return searchString||null;}
|
||||
if(getURLP('q'))
|
||||
{$('#tipue_search_input').val(getURLP('q'));getTipueSearch(0,true);}
|
||||
$(this).keyup(function(event)
|
||||
{if(event.keyCode=='13')
|
||||
{getTipueSearch(0,true);}});function getTipueSearch(start,replace)
|
||||
{window.scrollTo(0,0);var out='';var show_replace=false;var show_stop=false;var standard=true;var c=0;var found=[];var d_o=$('#tipue_search_input').val();d_o=d_o.replace(/\+/g,' ').replace(/\s\s+/g,' ');d_o=$.trim(d_o);var d=d_o.toLowerCase();if((d.match("^\"")&&d.match("\"$"))||(d.match("^'")&&d.match("'$")))
|
||||
{standard=false;}
|
||||
var d_w=d.split(' ');if(standard)
|
||||
{d='';for(var i=0;i<d_w.length;i++)
|
||||
{var a_w=true;for(var f=0;f<tipuesearch_stop_words.length;f++)
|
||||
{if(d_w[i]==tipuesearch_stop_words[f])
|
||||
{a_w=false;show_stop=true;}}
|
||||
if(a_w)
|
||||
{d=d+' '+d_w[i];}}
|
||||
d=$.trim(d);d_w=d.split(' ');}
|
||||
else
|
||||
{d=d.substring(1,d.length-1);}
|
||||
if(d.length>=set.minimumLength)
|
||||
{if(standard)
|
||||
{if(replace)
|
||||
{var d_r=d;for(var i=0;i<d_w.length;i++)
|
||||
{for(var f=0;f<tipuesearch_replace.words.length;f++)
|
||||
{if(d_w[i]==tipuesearch_replace.words[f].word)
|
||||
{d=d.replace(d_w[i],tipuesearch_replace.words[f].replace_with);show_replace=true;}}}
|
||||
d_w=d.split(' ');}
|
||||
var d_t=d;for(var i=0;i<d_w.length;i++)
|
||||
{for(var f=0;f<tipuesearch_stem.words.length;f++)
|
||||
{if(d_w[i]==tipuesearch_stem.words[f].word)
|
||||
{d_t=d_t+' '+tipuesearch_stem.words[f].stem;}}}
|
||||
d_w=d_t.split(' ');for(var i=0;i<tipuesearch.pages.length;i++)
|
||||
{var score=0;var s_t=tipuesearch.pages[i].text;for(var f=0;f<d_w.length;f++)
|
||||
{if(set.wholeWords)
|
||||
{var pat=new RegExp('\\b'+d_w[f]+'\\b','gi');}
|
||||
else
|
||||
{var pat=new RegExp(d_w[f],'gi');}
|
||||
if(tipuesearch.pages[i].title.search(pat)!=-1)
|
||||
{var m_c=tipuesearch.pages[i].title.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch.pages[i].text.search(pat)!=-1)
|
||||
{var m_c=tipuesearch.pages[i].text.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch.pages[i].tags)
|
||||
{if(tipuesearch.pages[i].tags.search(pat)!=-1)
|
||||
{var m_c=tipuesearch.pages[i].tags.match(pat).length;score+=(10*m_c);}}
|
||||
if(tipuesearch.pages[i].url.search(pat)!=-1)
|
||||
{score+=20;}
|
||||
if(score!=0)
|
||||
{for(var e=0;e<tipuesearch_weight.weight.length;e++)
|
||||
{if(tipuesearch.pages[i].url==tipuesearch_weight.weight[e].url)
|
||||
{score+=tipuesearch_weight.weight[e].score;}}}
|
||||
if(d_w[f].match('^-'))
|
||||
{pat=new RegExp(d_w[f].substring(1),'i');if(tipuesearch.pages[i].title.search(pat)!=-1||tipuesearch.pages[i].text.search(pat)!=-1||tipuesearch.pages[i].tags.search(pat)!=-1)
|
||||
{score=0;}}}
|
||||
if(score!=0)
|
||||
{found.push({"score":score,"title":tipuesearch.pages[i].title,"desc":s_t,"img":tipuesearch.pages[i].img,"url":tipuesearch.pages[i].url,"note":tipuesearch.pages[i].note});c++;}}}
|
||||
else
|
||||
{for(var i=0;i<tipuesearch.pages.length;i++)
|
||||
{var score=0;var s_t=tipuesearch.pages[i].text;var pat=new RegExp(d,'gi');if(tipuesearch.pages[i].title.search(pat)!=-1)
|
||||
{var m_c=tipuesearch.pages[i].title.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch.pages[i].text.search(pat)!=-1)
|
||||
{var m_c=tipuesearch.pages[i].text.match(pat).length;score+=(20*m_c);}
|
||||
if(tipuesearch.pages[i].tags)
|
||||
{if(tipuesearch.pages[i].tags.search(pat)!=-1)
|
||||
{var m_c=tipuesearch.pages[i].tags.match(pat).length;score+=(10*m_c);}}
|
||||
if(tipuesearch.pages[i].url.search(pat)!=-1)
|
||||
{score+=20;}
|
||||
if(score!=0)
|
||||
{for(var e=0;e<tipuesearch_weight.weight.length;e++)
|
||||
{if(tipuesearch.pages[i].url==tipuesearch_weight.weight[e].url)
|
||||
{score+=tipuesearch_weight.weight[e].score;}}}
|
||||
if(score!=0)
|
||||
{found.push({"score":score,"title":tipuesearch.pages[i].title,"desc":s_t,"img":tipuesearch.pages[i].img,"url":tipuesearch.pages[i].url,"note":tipuesearch.pages[i].note});c++;}}}
|
||||
if(c!=0)
|
||||
{if(set.showTitleCount&&tipuesearch_t_c==0)
|
||||
{var title=document.title;document.title='('+c+') '+title;tipuesearch_t_c++;}
|
||||
if(c==1)
|
||||
{out+='<div id="tipue_search_results_count">'+tipuesearch_string_4;}
|
||||
else
|
||||
{var c_c=c.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");out+='<div id="tipue_search_results_count">'+c_c+' '+tipuesearch_string_5;}
|
||||
if(set.showTime)
|
||||
{var endTimer=new Date().getTime();var time=(endTimer-startTimer)/ 1000;out+=' ('+time.toFixed(2)+' '+tipuesearch_string_14+')';set.showTime=false;}
|
||||
out+='</div>';if(set.showRelated&&standard)
|
||||
{f=0;for(var i=0;i<tipuesearch_related.Related.length;i++)
|
||||
{if(d==tipuesearch_related.Related[i].search)
|
||||
{if(!f)
|
||||
{out+='<div class="tipue_search_related">'+tipuesearch_string_10+'</div><div class="tipue_search_related_block">';}
|
||||
if(show_replace)
|
||||
{d_o=d;}
|
||||
if(tipuesearch_related.Related[i].include)
|
||||
{var r_d=d_o+' '+tipuesearch_related.Related[i].related;}
|
||||
else
|
||||
{var r_d=tipuesearch_related.Related[i].related;}
|
||||
out+='<a class="tipue_search_related_btn" id="'+r_d+'">'+tipuesearch_related.Related[i].related+'</a>';f++;}}
|
||||
if(f)
|
||||
{out+='</div>';}}
|
||||
if(show_replace)
|
||||
{out+='<div id="tipue_search_replace">'+tipuesearch_string_2+' '+d+'. '+tipuesearch_string_3+' <a id="tipue_search_replaced">'+d_r+'</a></div>';}
|
||||
found.sort(function(a,b){return b.score-a.score});var l_o=0;if(set.imageZoom)
|
||||
{out+='<div id="tipue_search_image_modal"><div class="tipue_search_image_close">✕</div><div class="tipue_search_image_block"><a id="tipue_search_zoom_url"><img id="tipue_search_zoom_img"></a><div id="tipue_search_zoom_text"></div></div></div>';}
|
||||
for(var i=0;i<found.length;i++)
|
||||
{if(l_o>=start&&l_o<set.show+start)
|
||||
{out+='<div class="tipue_search_result">';out+='<div class="tipue_search_content_title"><a href="'+found[i].url+'"'+tipue_search_w+'>'+found[i].title+'</a></div>';if(set.debug)
|
||||
{out+='<div class="tipue_search_content_debug">Score: '+found[i].score+'</div>';}
|
||||
if(set.showURL)
|
||||
{var s_u=found[i].url.toLowerCase();if(s_u.indexOf('http://')==0)
|
||||
{s_u=s_u.slice(7);}
|
||||
out+='<div class="tipue_search_content_url"><a href="'+found[i].url+'"'+tipue_search_w+'>'+s_u+'</a></div>';}
|
||||
if(found[i].img)
|
||||
{if(set.imageZoom)
|
||||
{out+='<div class="tipue_search_image"><img class="tipue_search_img tipue_search_image_zoom" src="'+found[i].img+'" alt="'+found[i].title+'" data-url="'+found[i].url+'"></div>';}
|
||||
else
|
||||
{out+='<div class="tipue_search_image"><a href="'+found[i].url+'"'+tipue_search_w+'><img class="tipue_search_img" src="'+found[i].img+'" alt="'+found[i].title+'"></a></div>';}}
|
||||
if(found[i].desc)
|
||||
{var t=found[i].desc;if(set.showContext)
|
||||
{d_w=d.split(' ');var s_1=found[i].desc.toLowerCase().indexOf(d_w[0]);if(s_1>set.contextStart)
|
||||
{var t_1=t.substr(s_1-set.contextBuffer);var s_2=t_1.indexOf(' ');t_1=t.substr(s_1-set.contextBuffer+s_2);t_1=$.trim(t_1);if(t_1.length>set.contextLength)
|
||||
{t='... '+t_1;}}}
|
||||
if(standard)
|
||||
{d_w=d.split(' ');for(var f=0;f<d_w.length;f++)
|
||||
{if(set.highlightTerms)
|
||||
{var patr=new RegExp('('+d_w[f]+')','gi');t=t.replace(patr,"<h0011>$1<h0012>");}}}
|
||||
else if(set.highlightTerms)
|
||||
{var patr=new RegExp('('+d+')','gi');t=t.replace(patr,"<span class=\"tipue_search_content_bold\">$1</span>");}
|
||||
var t_d='';var t_w=t.split(' ');if(t_w.length<set.descriptiveWords)
|
||||
{t_d=t;}
|
||||
else
|
||||
{for(var f=0;f<set.descriptiveWords;f++)
|
||||
{t_d+=t_w[f]+' ';}}
|
||||
t_d=$.trim(t_d);if(t_d.charAt(t_d.length-1)!='.')
|
||||
{t_d+=' ...';}
|
||||
t_d=t_d.replace(/h0011/g,'span class=\"tipue_search_content_bold\"');t_d=t_d.replace(/h0012/g,'/span');out+='<div class="tipue_search_content_text">'+t_d+'</div>';}
|
||||
if(found[i].note)
|
||||
{out+='<div class="tipue_search_note">'+found[i].note+'</div>';}
|
||||
out+='</div>';}
|
||||
l_o++;}
|
||||
if(c>set.show)
|
||||
{var pages=Math.ceil(c / set.show);var page=(start / set.show);if(set.footerPages<3)
|
||||
{set.footerPages=3;}
|
||||
out+='<div id="tipue_search_foot"><ul id="tipue_search_foot_boxes">';if(start>0)
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" accesskey="b" id="'+(start-set.show)+'_'+replace+'">'+tipuesearch_string_6+'</a></li>';}
|
||||
if(page<=2)
|
||||
{var p_b=pages;if(pages>set.footerPages)
|
||||
{p_b=set.footerPages;}
|
||||
for(var f=0;f<p_b;f++)
|
||||
{if(f==page)
|
||||
{out+='<li class="current" role="navigation">'+(f+1)+'</li>';}
|
||||
else
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" id="'+(f*set.show)+'_'+replace+'">'+(f+1)+'</a></li>';}}}
|
||||
else
|
||||
{var p_b=page+set.footerPages-1;if(p_b>pages)
|
||||
{p_b=pages;}
|
||||
for(var f=page-1;f<p_b;f++)
|
||||
{if(f==page)
|
||||
{out+='<li class="current" role="navigation">'+(f+1)+'</li>';}
|
||||
else
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" id="'+(f*set.show)+'_'+replace+'">'+(f+1)+'</a></li>';}}}
|
||||
if(page+1!=pages)
|
||||
{out+='<li role="navigation"><a class="tipue_search_foot_box" accesskey="m" id="'+(start+set.show)+'_'+replace+'">'+tipuesearch_string_7+'</a></li>';}
|
||||
out+='</ul></div>';}}
|
||||
else
|
||||
{out+='<div id="tipue_search_error">'+tipuesearch_string_8+'</div>';}}
|
||||
else
|
||||
{if(show_stop)
|
||||
{out+='<div id="tipue_search_error">'+tipuesearch_string_8+' '+tipuesearch_string_9+'</div>';}
|
||||
else
|
||||
{if(set.minimumLength==1)
|
||||
{out+='<div id="tipue_search_error">'+tipuesearch_string_11+'</div>';}
|
||||
else
|
||||
{out+='<div id="tipue_search_error">'+tipuesearch_string_12+' '+set.minimumLength+' '+tipuesearch_string_13+'</div>';}}}
|
||||
$('#tipue_search_content').hide().html(out).slideDown(200);$('#tipue_search_replaced').click(function()
|
||||
{getTipueSearch(0,false);});$('.tipue_search_related_btn').click(function()
|
||||
{$('#tipue_search_input').val($(this).attr('id'));getTipueSearch(0,true);});$('.tipue_search_image_zoom').click(function()
|
||||
{$('#tipue_search_image_modal').fadeIn(300);$('#tipue_search_zoom_img').attr('src',this.src);var z_u=$(this).attr('data-url');$('#tipue_search_zoom_url').attr('href',z_u);var z_o=this.alt+'<div class="tipue_search_zoom_options"><a href="'+this.src+'" target="_blank">'+tipuesearch_string_15+'</a> <a href="'+z_u+'">'+tipuesearch_string_16+'</a></div>';$('#tipue_search_zoom_text').html(z_o);});$('.tipue_search_image_close').click(function()
|
||||
{$('#tipue_search_image_modal').fadeOut(300);});$('.tipue_search_foot_box').click(function()
|
||||
{var id_v=$(this).attr('id');var id_a=id_v.split('_');getTipueSearch(parseInt(id_a[0]),id_a[1]);});}});};})(jQuery);
|
84
themes/catcher/static/js/tipuesearch_set.js
Normal file
@ -0,0 +1,84 @@
|
||||
|
||||
/*
|
||||
Tipue Search 7.0
|
||||
Copyright (c) 2018 Tipue
|
||||
Tipue Search is released under the MIT License
|
||||
http://www.tipue.com/search
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
Stop words
|
||||
Stop words list from http://www.ranks.nl/stopwords
|
||||
*/
|
||||
|
||||
var tipuesearch_stop_words = ["a", "above", "after", "again", "against", "all", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "between", "both", "but", "by", "can't", "cannot", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "don't", "down", "during", "each", "few", "for", "from", "further", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "he'd", "he'll", "he's", "her", "here", "here's", "hers", "herself", "him", "himself", "his", "how", "how's", "i", "i'd", "i'll", "i'm", "i've", "if", "in", "into", "is", "isn't", "it", "it's", "its", "itself", "let's", "me", "more", "most", "mustn't", "my", "myself", "no", "nor", "not", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "ours", "ourselves", "out", "over", "own", "same", "shan't", "she", "she'd", "she'll", "she's", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "to", "too", "under", "until", "up", "very", "was", "wasn't", "we", "we'd", "we'll", "we're", "we've", "were", "weren't", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "who's", "whom", "why", "why's", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"];
|
||||
|
||||
|
||||
// Word replace
|
||||
|
||||
var tipuesearch_replace = {'words': [
|
||||
{'word': 'tip', 'replace_with': 'tipue'},
|
||||
{'word': 'javscript', 'replace_with': 'javascript'},
|
||||
{'word': 'jqeury', 'replace_with': 'jquery'}
|
||||
]};
|
||||
|
||||
|
||||
// Weighting
|
||||
|
||||
var tipuesearch_weight = {'weight': [
|
||||
{'url': 'http://www.tipue.com', 'score': 60},
|
||||
{'url': 'http://www.tipue.com/search', 'score': 60},
|
||||
{'url': 'http://www.tipue.com/tipr', 'score': 30},
|
||||
{'url': 'http://www.tipue.com/support', 'score': 20}
|
||||
]};
|
||||
|
||||
|
||||
// Illogical stemming
|
||||
|
||||
var tipuesearch_stem = {'words': [
|
||||
{'word': 'e-mail', 'stem': 'email'},
|
||||
{'word': 'javascript', 'stem': 'jquery'},
|
||||
{'word': 'javascript', 'stem': 'js'}
|
||||
]};
|
||||
|
||||
|
||||
// Related
|
||||
|
||||
var tipuesearch_related = {'Related': [
|
||||
{'search': 'tipue', 'related': 'Search', 'include': 1},
|
||||
{'search': 'tipue', 'related': 'jQuery'},
|
||||
{'search': 'tipue', 'related': 'Features'},
|
||||
{'search': 'tipue', 'related': 'Support'},
|
||||
{'search': 'tipue search', 'related': 'Help', 'include': 1},
|
||||
{'search': 'tipue search', 'related': 'Support'}
|
||||
]};
|
||||
|
||||
|
||||
// Internal strings
|
||||
|
||||
var tipuesearch_string_1 = 'No title';
|
||||
var tipuesearch_string_2 = 'Showing results for';
|
||||
var tipuesearch_string_3 = 'Search instead for';
|
||||
var tipuesearch_string_4 = '1 result';
|
||||
var tipuesearch_string_5 = 'results';
|
||||
var tipuesearch_string_6 = '<';
|
||||
var tipuesearch_string_7 = '>';
|
||||
var tipuesearch_string_8 = 'Nothing found.';
|
||||
var tipuesearch_string_9 = 'Common words are largely ignored.';
|
||||
var tipuesearch_string_10 = 'Related';
|
||||
var tipuesearch_string_11 = 'Search too short. Should be one character or more.';
|
||||
var tipuesearch_string_12 = 'Search too short. Should be';
|
||||
var tipuesearch_string_13 = 'characters or more.';
|
||||
var tipuesearch_string_14 = 'seconds';
|
||||
var tipuesearch_string_15 = 'Open Image';
|
||||
var tipuesearch_string_16 = 'Goto Page';
|
||||
|
||||
|
||||
// Internals
|
||||
|
||||
|
||||
// Timer for showTime
|
||||
|
||||
var startTimer = new Date().getTime();
|
||||
|
17
themes/catcher/templates/article.html
Normal file
@ -0,0 +1,17 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - {{ article.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ article.title }}</h1>
|
||||
<p class="post-meta">
|
||||
Posted on {{ article.locale_date }}
|
||||
{% if article.tags %}
|
||||
• Tagged with
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
{{ article.content }}
|
||||
{% endblock %}
|
73
themes/catcher/templates/base.html
Normal file
@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>{{ SITENAME }}{% block title %}{% endblock %}</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/normalize.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/skeleton.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/catcher.css">
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/pygment.css">
|
||||
{% if CUSTOM_CSS %}
|
||||
<link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet">
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% if FEED_ATOM %}
|
||||
<link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom">
|
||||
{% endif %}
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/theme/images/favicon/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/theme/images/favicon/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/theme/images/favicon/favicon-16x16.png">
|
||||
<link rel="manifest" href="/theme/images/favicon/site.webmanifest">
|
||||
<link rel="mask-icon" href="/theme/images/favicon/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="/theme/images/favicon/favicon.ico">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="msapplication-config" content="/theme/images/favicon/browserconfig.xml">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<a href="{{ SITEURL }}"><div class="four columns sidebar"></div></a>
|
||||
|
||||
<div class="eight columns offset-by-four">
|
||||
<div class="container content">
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<hr>
|
||||
|
||||
<p class="footer">LINKS: {% for name, url in LINKS %}<a href="{{ url }}">{{ name }}</a> {% endfor %}</p>
|
||||
<p class="footer">PAGES: {% for page in pages %}<a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a> {% endfor %}</p>
|
||||
<p class="footer">SOCIAL: {% for name, url in SOCIAL %}<a href="{{ url }}">{{ name }}</a> {% endfor %}</p>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery.fitvids.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$(".content img").each(function() {
|
||||
if($(this).attr("alt"))
|
||||
$(this).wrap('<figure class="image"></figure>')
|
||||
.after('<figcaption>'+$(this).attr("alt")+'</figcaption>');
|
||||
});
|
||||
|
||||
$(".videobox").fitVids();
|
||||
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
</body>
|
23
themes/catcher/templates/index.html
Normal file
@ -0,0 +1,23 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% for article in articles_page.object_list %}
|
||||
<h1><a href="{{ SITEURL }}/{{ article.url }}#{{ article.slug }}">{{ article.title }}</a></h1>
|
||||
<p class="post-meta">
|
||||
Posted on {{ article.locale_date }}
|
||||
{% if article.tags %}
|
||||
• Tagged with
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a>{% if not loop.last %},{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</p>
|
||||
{{ article.content }}
|
||||
{% endfor %}
|
||||
|
||||
{% if articles_page.has_other_pages() %}
|
||||
{% include 'pagination.html' %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
9
themes/catcher/templates/page.html
Normal file
@ -0,0 +1,9 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - {{ page.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page.content }}
|
||||
|
||||
{% endblock %}
|
11
themes/catcher/templates/pagination.html
Normal file
@ -0,0 +1,11 @@
|
||||
{% if DEFAULT_PAGINATION %}
|
||||
<p class="paginator footer">
|
||||
{% if articles_page.has_previous() %}
|
||||
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}">«</a>
|
||||
{% endif %}
|
||||
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
|
||||
{% if articles_page.has_next() %}
|
||||
<a href="{{ SITEURL }}/{{ articles_next_page.url }}">»</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
31
themes/catcher/templates/search.html
Normal file
@ -0,0 +1,31 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - Search{% endblock %}
|
||||
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/tipuesearch.css">
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Search</h1>
|
||||
<form action="{{ SITEURL}}/pages/search.html">
|
||||
<input type="text" value="" placeholder="Suchen" name="q" id="tipue_search_input" autocomplete="on" required>
|
||||
<br>
|
||||
<br><input type="submit"/>
|
||||
</form>
|
||||
|
||||
<div id="tipue_search_content"><div id="tipue_search_loading"></div></div>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{{ super() }}
|
||||
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/tipuesearch_set.js"></script>
|
||||
<script type="text/javascript" src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/tipuesearch.min.js"></script>
|
||||
<script type="text/javascript" src="{{ SITEURL }}/tipuesearch_content.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tipue_search_input').tipuesearch();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
3
themes/catcher/templates/tag.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% extends 'index.html' %}
|
||||
|
||||
{% block title %} - {{ tag }}{% endblock %}
|
10
themes/catcher/templates/tags.html
Normal file
@ -0,0 +1,10 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block title %} - Tags{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Tags for {{ SITENAME }}</h1>
|
||||
{%- for tag, articles in tags|sort %}
|
||||
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> ({{ articles|count }})</li>
|
||||
{% endfor %}
|
||||
{% endblock %}
|