FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

added ant build file; added ini based config · HttpErrorPages/HttpErrorPages@b887e8e · GitHub

Commit b887e8e

Browse files
committed
added ant build file; added ini based config
1 parent f3e06d0 commit b887e8e

29 files changed

Lines changed: 222 additions & 205 deletions

‎assets/Layout.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎assets/Layout.less‎

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,60 @@
22

33
/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */
44
html,body {
5-
width: 100%;
6-
height: 100%;
7-
background-color: #21232a;
5+
width: 100%;
6+
height: 100%;
7+
background-color: #21232a;
88
}
99

1010
body {
11-
color: #fff;
12-
text-align: center;
13-
text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
14-
padding: 0px;
15-
min-height: 100%;
16-
-webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, .8);
17-
box-shadow: inset 0 0 100px rgba(0, 0, 0, .8);
18-
display: table;
19-
font-family: "Open Sans", Arial, sans-serif;
11+
color: #fff;
12+
text-align: center;
13+
text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
14+
padding: 0px;
15+
min-height: 100%;
16+
-webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, .8);
17+
box-shadow: inset 0 0 100px rgba(0, 0, 0, .8);
18+
display: table;
19+
font-family: "Open Sans", Arial, sans-serif;
2020
}
2121

2222
h1{
23-
font-family: inherit;
24-
font-weight: 500;
25-
line-height: 1.1;
26-
color: inherit;
27-
font-size: 36px;
23+
font-family: inherit;
24+
font-weight: 500;
25+
line-height: 1.1;
26+
color: inherit;
27+
font-size: 36px;
2828
}
2929

3030
h1 small{
31-
font-size: 68%;
32-
font-weight: 400;
33-
line-height: 1;
34-
color: #777777;
31+
font-size: 68%;
32+
font-weight: 400;
33+
line-height: 1;
34+
color: #777777;
3535
}
3636
a{
37-
text-decoration: none;
38-
color: #ffffff;
39-
font-size: inherit;
40-
border-bottom: dotted 1px #707070;
37+
text-decoration: none;
38+
color: #ffffff;
39+
font-size: inherit;
40+
border-bottom: dotted 1px #707070;
4141
}
4242
.lead {
43-
color: #c0c0c0;
44-
font-size: 21px;
45-
line-height: 1.4;
43+
color: #c0c0c0;
44+
font-size: 21px;
45+
line-height: 1.4;
4646
}
4747
.cover {
48-
display: table-cell;
49-
vertical-align: middle;
50-
padding: 0 20px;
48+
display: table-cell;
49+
vertical-align: middle;
50+
padding: 0 20px;
5151
}
5252

5353
footer{
54-
position: fixed;
55-
width: 100%;
56-
height: 40px;
57-
left: 0px;
58-
bottom: 0px;
59-
color: #a0a0a0;
60-
font-size: 14px;
54+
position: fixed;
55+
width: 100%;
56+
height: 40px;
57+
left: 0px;
58+
bottom: 0px;
59+
color: #a0a0a0;
60+
font-size: 14px;
6161
}

‎build.xml‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project name="HttpErrorPages" default="pages" basedir=".">
4+
<!-- AN-contrib !-->
5+
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
6+
7+
<target name="css">
8+
<!-- Less CSS build (WEB CSS) !-->
9+
<echo message="Building LESS Files.." />
10+
<exec executable="lessc">
11+
<arg line="assets/Layout.less" />
12+
<arg line="assets/Layout.css" />
13+
<arg line="--clean-css" />
14+
</exec>
15+
</target>
16+
17+
<!-- Generate Pages using default config !-->
18+
<target name="pages" depends="css">
19+
<!-- Generate Pages !-->
20+
<exec executable="php">
21+
<arg value="generator.php" />
22+
</exec>
23+
</target>
24+
25+
<!-- Generate Docs Pages !-->
26+
<target name="docs" depends="css">
27+
<!-- Generate Pages !-->
28+
<exec executable="php">
29+
<arg value="generator.php" />
30+
<arg value="docs/config.ini" />
31+
</exec>
32+
</target>
33+
34+
<!-- Full Rebuild !-->
35+
<target name="full" depends="css,docs,pages">
36+
</target>
37+
38+
</project>
39+

‎config.ini‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[global]
2+
3+
; Output dir path
4+
output_dir="dist/"
5+
6+
; Footer content (HTML Allowed)
7+
footer=""

‎dist/HTTP400.html‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,21 @@
33
<head>
44
<!-- Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages -->
55

6-
<meta charset="utf-8">
7-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8-
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<meta charset="utf-8" />
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1" />
99

1010
<title>We've got some trouble | 400 - Bad Request</title>
1111

12-
<style type="text/css">/*! normalize.css v3.0.2 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
12+
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 75pt rgba(0,0,0,.8);box-shadow:inset 0 0 75pt rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
1313
</head>
1414

1515
<body>
16-
1716
<div class="cover">
1817
<h1>Bad Request <small>Error 400</small></h1>
1918
<p class="lead">The server cannot process the request due to something that is perceived to be a client error.</p>
2019
</div>
2120

22-
<footer>
23-
<p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p>
24-
</footer>
2521

2622
</body>
2723
</html>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL