my-simon 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -20
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/my-simon.gemspec +3 -78
- metadata +2 -77
- data/DOC/Launch Check List.docx +0 -0
- data/DOC/Launch Check List.pdf +0 -0
- data/build/rakefile.rb +0 -12
- data/config.rb +0 -24
- data/scaffolding/simon/controller.tpl +0 -9
- data/scaffolding/simon/model.tpl +0 -10
- data/scaffolding/simon/view.tpl +0 -5
- data/scaffolding/standards/html_template.html +0 -44
- data/scaffolding/standards/html_template.php +0 -44
- data/scaffolding/standards/jquery_plugin_template.js +0 -45
- data/scaffolding/standards/js_template.js +0 -43
- data/www/.htaccess +0 -488
- data/www/404.html +0 -32
- data/www/crossdomain.xml +0 -25
- data/www/favicon.ico +0 -0
- data/www/index.php +0 -17
- data/www/lib/js/homePage.js +0 -43
- data/www/lib/js/jquery/JQbook.js +0 -809
- data/www/lib/js/jquery/jquery-1.8.0.min.js +0 -27
- data/www/lib/js/jquery/jquery.alphanumeric.js +0 -82
- data/www/lib/js/jquery/jquery.cookie.js +0 -96
- data/www/lib/js/jquery/jquery.easing.1.3.js +0 -207
- data/www/lib/js/main.js +0 -117
- data/www/lib/js/master.js +0 -6
- data/www/lib/js/plugins/handlebars-1.0.rc.1.js +0 -1920
- data/www/lib/js/plugins/modernizr-1.7.min.js +0 -2
- data/www/lib/js/plugins/swfobject.js +0 -777
- data/www/lib/js/plugins_mod/README.txt +0 -3
- data/www/lib/php/app.php +0 -53
- data/www/lib/php/controller/index.php +0 -10
- data/www/lib/php/controller/regex.php +0 -23
- data/www/lib/php/model/Book.php +0 -8
- data/www/lib/php/model/Model.php +0 -8
- data/www/lib/php/plugins/php-activerecord/ActiveRecord.php +0 -44
- data/www/lib/php/plugins/php-activerecord/lib/CallBack.php +0 -226
- data/www/lib/php/plugins/php-activerecord/lib/Column.php +0 -155
- data/www/lib/php/plugins/php-activerecord/lib/Config.php +0 -288
- data/www/lib/php/plugins/php-activerecord/lib/Connection.php +0 -456
- data/www/lib/php/plugins/php-activerecord/lib/ConnectionManager.php +0 -38
- data/www/lib/php/plugins/php-activerecord/lib/DateTime.php +0 -45
- data/www/lib/php/plugins/php-activerecord/lib/Exceptions.php +0 -137
- data/www/lib/php/plugins/php-activerecord/lib/Expressions.php +0 -183
- data/www/lib/php/plugins/php-activerecord/lib/Inflector.php +0 -115
- data/www/lib/php/plugins/php-activerecord/lib/Model.php +0 -1673
- data/www/lib/php/plugins/php-activerecord/lib/Reflections.php +0 -86
- data/www/lib/php/plugins/php-activerecord/lib/Relationship.php +0 -637
- data/www/lib/php/plugins/php-activerecord/lib/SQLBuilder.php +0 -396
- data/www/lib/php/plugins/php-activerecord/lib/Serialization.php +0 -302
- data/www/lib/php/plugins/php-activerecord/lib/Singleton.php +0 -57
- data/www/lib/php/plugins/php-activerecord/lib/Table.php +0 -547
- data/www/lib/php/plugins/php-activerecord/lib/Utils.php +0 -351
- data/www/lib/php/plugins/php-activerecord/lib/Validations.php +0 -833
- data/www/lib/php/plugins/php-activerecord/lib/adapters/MysqlAdapter.php +0 -73
- data/www/lib/php/plugins/php-activerecord/lib/adapters/OciAdapter.php +0 -121
- data/www/lib/php/plugins/php-activerecord/lib/adapters/PgsqlAdapter.php +0 -104
- data/www/lib/php/plugins/php-activerecord/lib/adapters/SqliteAdapter.php +0 -81
- data/www/lib/php/system/Config.php +0 -174
- data/www/lib/php/system/config.routes.php +0 -29
- data/www/lib/php/system/router.php +0 -220
- data/www/lib/php/template/footer.php +0 -59
- data/www/lib/php/template/header.php +0 -74
- data/www/lib/php/view/index.php +0 -5
- data/www/media/images/facebook_share.jpg +0 -0
- data/www/robots.txt +0 -5
- data/www/sandbox/readme.txt +0 -3
- data/www/sass/javascript.scss +0 -1
- data/www/sass/layout.scss +0 -128
- data/www/sass/master.scss +0 -4
- data/www/sass/reset.scss +0 -47
- data/www/sass/typography.scss +0 -24
- data/www/styles/javascript.css +0 -1
- data/www/styles/layout.css +0 -186
- data/www/styles/master.css +0 -4
- data/www/styles/reset.css +0 -60
- data/www/styles/typography.css +0 -24
@@ -1,29 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
|
3
|
-
Router::add('/', DIR_CTRL.'/index.php');
|
4
|
-
Router::add('#^/regex/(test1|test2|test3)/$#', DIR_CTRL.'/regex.php', Router::ROUTE_PCRE);
|
5
|
-
|
6
|
-
/**
|
7
|
-
* Routes are added with the static method Router::add($pattern, $replacement)
|
8
|
-
* It is processed as preg_replace($pattern, $replace) in the router class, so
|
9
|
-
* use any style for $pattern. Though it would be best to use # for pattern
|
10
|
-
* delimiters and ${n} for the replacement string variables. To carry a string
|
11
|
-
* from the pattern, just put them in parentheses (). These are run in order,
|
12
|
-
* and first one that matches and has a readable controller file is used.
|
13
|
-
*
|
14
|
-
* PHP's preg_replace: http://php.net/preg_replace/
|
15
|
-
*
|
16
|
-
* examples:
|
17
|
-
*
|
18
|
-
* Router::add('#/#', DIR_CTRL.'index.php', Router::ROUTE_PCRE);
|
19
|
-
* sends index page to the index.php contoller
|
20
|
-
*
|
21
|
-
* Router::add('#/news/(archive|latest)/#', DIR_CTRL.'news.${1}.php', Router::ROUTE_PCRE);
|
22
|
-
* /news/archive/ goes to news.archive.php
|
23
|
-
*
|
24
|
-
* you can also do this
|
25
|
-
*
|
26
|
-
* Router::add('#/news/(archive|latest)/#', DIR_CTRL.'news/${1}.php', Router::ROUTE_PCRE);
|
27
|
-
* /news/archive/ goes to news/archive.php
|
28
|
-
*/
|
29
|
-
?>
|
@@ -1,220 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
/**
|
3
|
-
* Router manager class
|
4
|
-
* Statically stores all routes. The router manager is responsible for applying
|
5
|
-
* consistent URI patterns such as having a slash at the end as well as
|
6
|
-
* redirecting the client. If the routes don't match or it does but the
|
7
|
-
* controller doesn't exist, it looks for the slash at the end of the path. If
|
8
|
-
* it does not exist, it redirects with the slash appended and tries one more
|
9
|
-
* time. The reason why the non-slash is tried is some scripts and files behave
|
10
|
-
* differently to certain URIs (ex. javascript files which include others).
|
11
|
-
*
|
12
|
-
* @package router
|
13
|
-
*/
|
14
|
-
class Router
|
15
|
-
{
|
16
|
-
//{{{ properties
|
17
|
-
/**
|
18
|
-
* Array of routes
|
19
|
-
*/
|
20
|
-
private static $routes = array(self::PRIORITY_HIGH => array(),
|
21
|
-
self::PRIORITY_NORMAL => array(),
|
22
|
-
self::PRIORITY_LOW => array());
|
23
|
-
/**
|
24
|
-
* Matching pattern method (ROUTE/REDIRECT constant)
|
25
|
-
*/
|
26
|
-
private static $method;
|
27
|
-
/**
|
28
|
-
* Source that provided the route scanned. This is recorded along with
|
29
|
-
* router::add() when the route is passed in hook_routes().
|
30
|
-
*/
|
31
|
-
private static $source;
|
32
|
-
/**
|
33
|
-
* Matching pattern
|
34
|
-
*/
|
35
|
-
private static $pattern;
|
36
|
-
/**
|
37
|
-
* Matching controller after preg_replace()
|
38
|
-
*/
|
39
|
-
private static $ctrl;
|
40
|
-
/**
|
41
|
-
* Flag for scanning routes
|
42
|
-
*/
|
43
|
-
private static $scanned = FALSE;
|
44
|
-
|
45
|
-
//}}}
|
46
|
-
//{{{ constants
|
47
|
-
/**
|
48
|
-
* Route uses PCRE
|
49
|
-
*/
|
50
|
-
const ROUTE_PCRE = 0;
|
51
|
-
/**
|
52
|
-
* Route is static
|
53
|
-
*/
|
54
|
-
const ROUTE_STATIC = 1;
|
55
|
-
/**
|
56
|
-
* Redirect using PCRE
|
57
|
-
*/
|
58
|
-
const REDIRECT_PCRE = 2;
|
59
|
-
/**
|
60
|
-
* Redirect with literal strings
|
61
|
-
*/
|
62
|
-
const REDIRECT_STATIC = 3;
|
63
|
-
/**
|
64
|
-
* High priority route, used for "emergency" pages or redirects
|
65
|
-
*/
|
66
|
-
const PRIORITY_HIGH = 0;
|
67
|
-
/**
|
68
|
-
* Normal priority route, this is the most common
|
69
|
-
*/
|
70
|
-
const PRIORITY_NORMAL = 1;
|
71
|
-
/**
|
72
|
-
* Low priority route, used for special 404s or very generic routes (pages)
|
73
|
-
*/
|
74
|
-
const PRIORITY_LOW = 2;
|
75
|
-
|
76
|
-
//}}}
|
77
|
-
//{{{ private static function scan($force = FALSE)
|
78
|
-
private static function scan($force = FALSE)
|
79
|
-
{
|
80
|
-
$found = FALSE;
|
81
|
-
if (!self::$scanned || $force)
|
82
|
-
{
|
83
|
-
foreach (self::$routes as $priority => $routes)
|
84
|
-
{
|
85
|
-
if ($found)
|
86
|
-
{
|
87
|
-
break;
|
88
|
-
}
|
89
|
-
foreach ($routes as $route)
|
90
|
-
{
|
91
|
-
if ($found)
|
92
|
-
{
|
93
|
-
break;
|
94
|
-
}
|
95
|
-
unset($ctrl, $redirect);
|
96
|
-
list($pattern, $replacement, $method, $source) = $route;
|
97
|
-
switch ($method)
|
98
|
-
{
|
99
|
-
case self::ROUTE_STATIC:
|
100
|
-
if (URI_PATH === $pattern)
|
101
|
-
{
|
102
|
-
$ctrl = $replacement;
|
103
|
-
}
|
104
|
-
break;
|
105
|
-
case self::ROUTE_PCRE:
|
106
|
-
if (preg_match($pattern, URI_PATH))
|
107
|
-
{
|
108
|
-
$ctrl = preg_replace($pattern, $replacement, URI_PATH);
|
109
|
-
}
|
110
|
-
break;
|
111
|
-
case self::REDIRECT_STATIC:
|
112
|
-
if (URI_PATH === $pattern)
|
113
|
-
{
|
114
|
-
$redirect = $replacement;
|
115
|
-
}
|
116
|
-
break;
|
117
|
-
case self::REDIRECT_PCRE:
|
118
|
-
if (preg_match($pattern, URI_PATH))
|
119
|
-
{
|
120
|
-
$redirect = preg_replace($pattern, $replacement, URI_PATH);
|
121
|
-
}
|
122
|
-
break;
|
123
|
-
}
|
124
|
-
if (isset($ctrl) || isset($redirect))
|
125
|
-
{
|
126
|
-
if (isset($ctrl) && is_readable($ctrl))
|
127
|
-
{
|
128
|
-
self::$pattern = $pattern;
|
129
|
-
self::$ctrl = $ctrl;
|
130
|
-
self::$method = $method;
|
131
|
-
self::$source = $source;
|
132
|
-
$found = TRUE;
|
133
|
-
}
|
134
|
-
}
|
135
|
-
}
|
136
|
-
}
|
137
|
-
if (!self::$ctrl && !isset($redirect) && substr(URI_PATH, -1) !== '/')
|
138
|
-
{
|
139
|
-
$redirect = URI_PATH.'/';
|
140
|
-
if (strlen(URI_PARAM))
|
141
|
-
{
|
142
|
-
$redirect .= '?'.URI_PARAM;
|
143
|
-
}
|
144
|
-
}
|
145
|
-
if (isset($redirect))
|
146
|
-
{
|
147
|
-
header('Location: '.$redirect);
|
148
|
-
exit;
|
149
|
-
}
|
150
|
-
self::$scanned = !$force;
|
151
|
-
}
|
152
|
-
}
|
153
|
-
|
154
|
-
//}}}
|
155
|
-
//{{{ public static function controller($scan = FALSE)
|
156
|
-
/**
|
157
|
-
* Controller called for the matching route
|
158
|
-
* @return string
|
159
|
-
*/
|
160
|
-
public static function controller($scan = FALSE)
|
161
|
-
{
|
162
|
-
self::scan($scan);
|
163
|
-
return self::$ctrl;
|
164
|
-
}
|
165
|
-
|
166
|
-
//}}}
|
167
|
-
//{{{ public static function pattern($scan = FALSE)
|
168
|
-
/**
|
169
|
-
* Pattern of the matching route
|
170
|
-
* @return string
|
171
|
-
*/
|
172
|
-
public static function pattern($scan = FALSE)
|
173
|
-
{
|
174
|
-
self::scan($scan);
|
175
|
-
return self::$pattern;
|
176
|
-
}
|
177
|
-
|
178
|
-
//}}}
|
179
|
-
//{{{ public static function method($scan = FALSE)
|
180
|
-
/**
|
181
|
-
* @return int
|
182
|
-
*/
|
183
|
-
public static function method($scan = FALSE)
|
184
|
-
{
|
185
|
-
self::scan($scan);
|
186
|
-
return self::$method;
|
187
|
-
}
|
188
|
-
|
189
|
-
//}}}
|
190
|
-
//{{{ public static function source($scan = FALSE)
|
191
|
-
/**
|
192
|
-
* Gets the source that provided the matching route
|
193
|
-
* @return string|NULL
|
194
|
-
*/
|
195
|
-
public static function source($scan = FALSE)
|
196
|
-
{
|
197
|
-
self::scan($scan);
|
198
|
-
return self::$source;
|
199
|
-
}
|
200
|
-
|
201
|
-
//}}}
|
202
|
-
//{{{ public static function add($pattern, $ctrl, $route = Router::ROUTE_STATIC, $priority = Router::PRIORITY_NORMAL, $source = NULL)
|
203
|
-
/**
|
204
|
-
* Register a single route for the system
|
205
|
-
* If $route is router::ROUTE_PCRE, both $pattern and $ctrl can be in PCRE
|
206
|
-
* string format for pcre_replace(). if $route is router::ROUTE_STATIC then
|
207
|
-
* it will do a fast string compare to URI_PATH. $ctrl must always be an
|
208
|
-
* absolute filename.
|
209
|
-
*
|
210
|
-
* @return void
|
211
|
-
*/
|
212
|
-
public static function add($pattern, $ctrl, $route = Router::ROUTE_STATIC, $priority = Router::PRIORITY_NORMAL, $source = NULL)
|
213
|
-
{
|
214
|
-
self::$routes[$priority][] = array($pattern, $ctrl, $route, $source);
|
215
|
-
}
|
216
|
-
|
217
|
-
//}}}
|
218
|
-
}
|
219
|
-
|
220
|
-
?>
|
@@ -1,59 +0,0 @@
|
|
1
|
-
</div><!-- eof #MainContent -->
|
2
|
-
|
3
|
-
<footer>
|
4
|
-
|
5
|
-
</footer>
|
6
|
-
</div>
|
7
|
-
<!--[if lt IE 7 ]>
|
8
|
-
<script src="lib/js/plugins/dd_belatedpng.js"></script>
|
9
|
-
<script> DD_belatedPNG.fix('img, .png_bg');</script>
|
10
|
-
<![endif]-->
|
11
|
-
<script type="text/javascript"> window._app_vars = <?= $settings->app_vars_JSON() ?>; </script>
|
12
|
-
|
13
|
-
<?php
|
14
|
-
|
15
|
-
if($settings->environment == PROD){
|
16
|
-
|
17
|
-
?>
|
18
|
-
<!-- BEGIN PROD: javascript -->
|
19
|
-
<script src="/lib/js/evbmaster-min.js" type="text/javascript" charset="utf-8"></script>
|
20
|
-
<!-- END: javascript -->
|
21
|
-
<?php
|
22
|
-
|
23
|
-
}else{
|
24
|
-
|
25
|
-
?>
|
26
|
-
<!-- BEGIN <?= $settings->environment ?>: javascript -->
|
27
|
-
<script src="/lib/js/jquery/jquery-1.8.0.min.js" type="text/javascript" charset="utf-8"></script>
|
28
|
-
<script src="/lib/js/master.js" type="text/javascript" charset="utf-8"></script>
|
29
|
-
<script src="/lib/js/main.js" type="text/javascript" charset="utf-8"></script>
|
30
|
-
<script src="/lib/js/homePage.js" type="text/javascript" charset="utf-8"></script>
|
31
|
-
<!-- END_DEV: javascript -->
|
32
|
-
<?php
|
33
|
-
}
|
34
|
-
?>
|
35
|
-
<script type="text/javascript">
|
36
|
-
|
37
|
-
<?php
|
38
|
-
if(defined('URI_PART_0')){
|
39
|
-
echo "CHANGE_ME.main.queue(CHANGE_ME.".URI_PART_0.".init);";
|
40
|
-
}else{
|
41
|
-
echo "CHANGE_ME.main.queue(CHANGE_ME.homePage.init);";
|
42
|
-
}
|
43
|
-
?>
|
44
|
-
</script>
|
45
|
-
<script type="text/javascript">
|
46
|
-
|
47
|
-
var _gaq = _gaq || [];
|
48
|
-
_gaq.push(['_setAccount', '<?= $settings->analytics_id ?>']);
|
49
|
-
_gaq.push(['_trackPageview']);
|
50
|
-
|
51
|
-
(function() {
|
52
|
-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
53
|
-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
54
|
-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
55
|
-
})();
|
56
|
-
|
57
|
-
</script>
|
58
|
-
</body>
|
59
|
-
</html>
|
@@ -1,74 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
|
3
|
-
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
|
4
|
-
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
5
|
-
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
6
|
-
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
|
7
|
-
<head>
|
8
|
-
<title><?= $settings->getPageTitle() ?></title>
|
9
|
-
|
10
|
-
<!-- BEGIN: meta tags -->
|
11
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
12
|
-
<meta name="description" content=""/>
|
13
|
-
<meta name="keywords" content=""/>
|
14
|
-
<link rel="shortcut icon" href="favicon.ico"/>
|
15
|
-
<meta name="description" content="">
|
16
|
-
<meta name="author" content="">
|
17
|
-
<meta charset="UTF-8">
|
18
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
19
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
20
|
-
<!-- END: meta tags -->
|
21
|
-
<!-- BEGIN: OG FBook meta tags -->
|
22
|
-
<meta property="fb:admins" content=""/>
|
23
|
-
<meta property="og:type" content="website"/>
|
24
|
-
<meta property="og:url" content=""/>
|
25
|
-
<meta property="og:title" content="" />
|
26
|
-
<meta property="og:site_name" content=""/>
|
27
|
-
<meta property="og:description" content=""/>
|
28
|
-
<meta property="og:image" content="<?= $settings->protocol ?>://<?= $settings->server_name ?>/media/images/facebook_share.jpg" />
|
29
|
-
<!-- END: OG FBook meta tags -->
|
30
|
-
<?php
|
31
|
-
|
32
|
-
if($settings->environment == PROD){
|
33
|
-
|
34
|
-
?>
|
35
|
-
<!-- BEGIN PROD: styles -->
|
36
|
-
<link rel="stylesheet" href="styles/evbmaster-min.css" type="text/css" />
|
37
|
-
<script type="text/javascript">
|
38
|
-
document.write('<link rel="stylesheet" href="styles/javascript.css" />');
|
39
|
-
</script>
|
40
|
-
<!-- END: styles -->
|
41
|
-
<?php
|
42
|
-
|
43
|
-
}else{
|
44
|
-
|
45
|
-
?>
|
46
|
-
<!-- BEGIN <?php echo $settings->environment ?>: styles -->
|
47
|
-
<link rel="stylesheet" type="text/css" href="styles/master.css" />
|
48
|
-
<script type="text/javascript">
|
49
|
-
document.write('<link rel="stylesheet" href="styles/javascript.css" />');
|
50
|
-
</script>
|
51
|
-
<!-- END: styles -->
|
52
|
-
<?php
|
53
|
-
}
|
54
|
-
?>
|
55
|
-
<script>
|
56
|
-
/*<![CDATA[*/
|
57
|
-
document.createElement('header');
|
58
|
-
document.createElement('hgroup');
|
59
|
-
document.createElement('nav');
|
60
|
-
document.createElement('footer');
|
61
|
-
document.createElement('article');
|
62
|
-
document.createElement('section');
|
63
|
-
/*]]>*/
|
64
|
-
</script>
|
65
|
-
</head>
|
66
|
-
<body class="<?php if(isset($class)) echo $class; ?>">
|
67
|
-
<div id="PageWrapper">
|
68
|
-
<header>
|
69
|
-
<h1>
|
70
|
-
<a href="#">CHANGE_ME</a>
|
71
|
-
</h1>
|
72
|
-
</header>
|
73
|
-
|
74
|
-
<div id="MainContent" role="main">
|
data/www/lib/php/view/index.php
DELETED
Binary file
|
data/www/robots.txt
DELETED
data/www/sandbox/readme.txt
DELETED
data/www/sass/javascript.scss
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
/* javascript.css */
|
data/www/sass/layout.scss
DELETED
@@ -1,128 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Global
|
3
|
-
*/
|
4
|
-
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
|
5
|
-
.hidden { display: none; visibility: hidden; }
|
6
|
-
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
|
7
|
-
.visuallyhidden.focusable:active,
|
8
|
-
.visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
|
9
|
-
.invisible { visibility: hidden; }
|
10
|
-
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
|
11
|
-
.clearfix:after { clear: both; }
|
12
|
-
.clearfix { zoom: 1; }
|
13
|
-
a { color: black; }
|
14
|
-
|
15
|
-
|
16
|
-
/*
|
17
|
-
Body
|
18
|
-
*/
|
19
|
-
body { }
|
20
|
-
|
21
|
-
/*
|
22
|
-
PageWrapper
|
23
|
-
*/
|
24
|
-
div#PageWrapper { }
|
25
|
-
|
26
|
-
/*
|
27
|
-
Header
|
28
|
-
*/
|
29
|
-
header {
|
30
|
-
h1 {
|
31
|
-
a {
|
32
|
-
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
/*
|
38
|
-
Content MainContent
|
39
|
-
*/
|
40
|
-
div#MainContent { }
|
41
|
-
|
42
|
-
|
43
|
-
/*
|
44
|
-
Footer
|
45
|
-
*/
|
46
|
-
footer { }
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
/* Smartphones (portrait and landscape) ----------- */
|
52
|
-
@media only screen
|
53
|
-
and (min-device-width : 320px)
|
54
|
-
and (max-device-width : 480px) {
|
55
|
-
/* Styles */
|
56
|
-
}
|
57
|
-
|
58
|
-
/* Smartphones (landscape) ----------- */
|
59
|
-
@media only screen
|
60
|
-
and (min-width : 321px) {
|
61
|
-
/* Styles */
|
62
|
-
}
|
63
|
-
|
64
|
-
/* Smartphones (portrait) ----------- */
|
65
|
-
@media only screen
|
66
|
-
and (max-width : 320px) {
|
67
|
-
/* Styles */
|
68
|
-
}
|
69
|
-
|
70
|
-
/* iPads (portrait and landscape) ----------- */
|
71
|
-
@media only screen
|
72
|
-
and (min-device-width : 768px)
|
73
|
-
and (max-device-width : 1024px) {
|
74
|
-
/* Styles */
|
75
|
-
}
|
76
|
-
|
77
|
-
/* iPads (landscape) ----------- */
|
78
|
-
@media only screen
|
79
|
-
and (min-device-width : 768px)
|
80
|
-
and (max-device-width : 1024px)
|
81
|
-
and (orientation : landscape) {
|
82
|
-
/* Styles */
|
83
|
-
}
|
84
|
-
|
85
|
-
/* iPads (portrait) ----------- */
|
86
|
-
@media only screen
|
87
|
-
and (min-device-width : 768px)
|
88
|
-
and (max-device-width : 1024px)
|
89
|
-
and (orientation : portrait) {
|
90
|
-
/* Styles */
|
91
|
-
}
|
92
|
-
|
93
|
-
/* Desktops and laptops ----------- */
|
94
|
-
@media only screen
|
95
|
-
and (min-width : 1224px) {
|
96
|
-
/* Styles */
|
97
|
-
}
|
98
|
-
|
99
|
-
/* Large screens ----------- */
|
100
|
-
@media only screen
|
101
|
-
and (min-width : 1824px) {
|
102
|
-
/* Styles */
|
103
|
-
}
|
104
|
-
|
105
|
-
/* iPhone 4 ----------- */
|
106
|
-
@media
|
107
|
-
only screen and (-webkit-min-device-pixel-ratio : 1.5),
|
108
|
-
only screen and (min-device-pixel-ratio : 1.5) {
|
109
|
-
/* Styles */
|
110
|
-
}
|
111
|
-
|
112
|
-
/*
|
113
|
-
For Printing support
|
114
|
-
*/
|
115
|
-
@media print {
|
116
|
-
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
|
117
|
-
-ms-filter: none !important; }
|
118
|
-
a, a:visited { color: #444 !important; text-decoration: underline; }
|
119
|
-
a[href]:after { content: " (" attr(href) ")"; }
|
120
|
-
abbr[title]:after { content: " (" attr(title) ")"; }
|
121
|
-
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
|
122
|
-
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
123
|
-
thead { display: table-header-group; }
|
124
|
-
tr, img { page-break-inside: avoid; }
|
125
|
-
@page { margin: 0.5cm; }
|
126
|
-
p, h2, h3 { orphans: 3; widows: 3; }
|
127
|
-
h2, h3{ page-break-after: avoid; }
|
128
|
-
}
|