1.0
This commit is contained in:
302
css/formalize.css
Normal file
302
css/formalize.css
Normal file
@@ -0,0 +1,302 @@
|
|||||||
|
/* `Widths
|
||||||
|
----------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
.input_tiny {
|
||||||
|
width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input_small {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input_medium {
|
||||||
|
width: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input_large {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input_xlarge {
|
||||||
|
width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input_xxlarge {
|
||||||
|
width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input_full {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Added via JS to <textarea> and class="input_full".
|
||||||
|
Applies only to IE7. Other browsers don't need it.
|
||||||
|
*/
|
||||||
|
.input_full_wrap {
|
||||||
|
display: block;
|
||||||
|
padding-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* `UI Consistency
|
||||||
|
----------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="search"]::-webkit-search-decoration {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
-webkit-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
margin: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
button,
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="button"] {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-border-radius: 11px;
|
||||||
|
-webkit-border-radius: 11px;
|
||||||
|
border-radius: 11px;
|
||||||
|
background: #ddd url(../img/button.png) repeat-x;
|
||||||
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #ddd));
|
||||||
|
background: -moz-linear-gradient(top center, #fff 0%, #ddd 100%);
|
||||||
|
border: 1px solid;
|
||||||
|
border-color: #ddd #bbb #999;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #333;
|
||||||
|
font: bold 12px/1.2 Arial, sans-serif;
|
||||||
|
outline: 0;
|
||||||
|
overflow: visible;
|
||||||
|
padding: 3px 10px 4px;
|
||||||
|
text-shadow: #fff 0 1px 1px;
|
||||||
|
width: auto;
|
||||||
|
|
||||||
|
/* IE7 */
|
||||||
|
*padding-top: 2px;
|
||||||
|
*padding-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
/* IE7 */
|
||||||
|
*padding-top: 1px;
|
||||||
|
*padding-bottom: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
button[disabled],
|
||||||
|
input[type="reset"][disabled],
|
||||||
|
input[type="submit"][disabled],
|
||||||
|
input[type="button"][disabled] {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
input[type="date"],
|
||||||
|
input[type="datetime"],
|
||||||
|
input[type="datetime-local"],
|
||||||
|
input[type="email"],
|
||||||
|
input[type="month"],
|
||||||
|
input[type="number"],
|
||||||
|
input[type="password"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="text"],
|
||||||
|
input[type="time"],
|
||||||
|
input[type="url"],
|
||||||
|
input[type="week"] {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-moz-border-radius: 0;
|
||||||
|
-webkit-border-radius: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
-moz-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid;
|
||||||
|
border-color: #848484 #c1c1c1 #e1e1e1;
|
||||||
|
color: #000;
|
||||||
|
outline: 0;
|
||||||
|
padding: 2px 3px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
height: 1.8em;
|
||||||
|
|
||||||
|
/* IE7 */
|
||||||
|
*padding-top: 2px;
|
||||||
|
*padding-bottom: 1px;
|
||||||
|
*height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Separate rule for Firefox.
|
||||||
|
Cannot stack with WebKit's.
|
||||||
|
*/
|
||||||
|
input.placeholder_text,
|
||||||
|
textarea.placeholder_text,
|
||||||
|
input:-moz-placeholder,
|
||||||
|
textarea:-moz-placeholder {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-input-placeholder {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea[disabled],
|
||||||
|
select[disabled],
|
||||||
|
input[type="date"][disabled],
|
||||||
|
input[type="datetime"][disabled],
|
||||||
|
input[type="datetime-local"][disabled],
|
||||||
|
input[type="email"][disabled],
|
||||||
|
input[type="month"][disabled],
|
||||||
|
input[type="number"][disabled],
|
||||||
|
input[type="password"][disabled],
|
||||||
|
input[type="search"][disabled],
|
||||||
|
input[type="tel"][disabled],
|
||||||
|
input[type="text"][disabled],
|
||||||
|
input[type="time"][disabled],
|
||||||
|
input[type="url"][disabled],
|
||||||
|
input[type="week"][disabled] {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:focus,
|
||||||
|
button:active,
|
||||||
|
input:focus,
|
||||||
|
input:active,
|
||||||
|
select:focus,
|
||||||
|
select:active,
|
||||||
|
textarea:focus,
|
||||||
|
textarea:active {
|
||||||
|
-moz-box-shadow: #06f 0 0 7px;
|
||||||
|
-webkit-box-shadow: #06f 0 0 7px;
|
||||||
|
box-shadow: #06f 0 0 7px;
|
||||||
|
|
||||||
|
/* for Opera */
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="file"]:focus,
|
||||||
|
input[type="file"]:active,
|
||||||
|
input[type="radio"]:focus,
|
||||||
|
input[type="radio"]:active,
|
||||||
|
input[type="checkbox"]:focus,
|
||||||
|
input[type="checkbox"]:active {
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.is_webkit select {
|
||||||
|
/* Tweaks for Safari + Chrome. */
|
||||||
|
background-image: url(../img/select_arrow.gif);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: right center;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea,
|
||||||
|
select[multiple] {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
select[multiple],
|
||||||
|
.is_webkit select[multiple] {
|
||||||
|
background-image: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
min-height: 40px;
|
||||||
|
overflow: auto;
|
||||||
|
resize: vertical;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
optgroup {
|
||||||
|
color: #000;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* `IE6
|
||||||
|
----------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Everything below this line is for IE6.
|
||||||
|
Delete it if you don't support it! :)
|
||||||
|
|
||||||
|
Classes are added dynamically via JS,
|
||||||
|
because IE6 doesn't support attribute
|
||||||
|
selectors: .ie6_button, .ie6_input, etc.
|
||||||
|
|
||||||
|
Note: These style rules are somewhat
|
||||||
|
duplicated because IE6 bombs out when
|
||||||
|
it sees attribute selectors. Example:
|
||||||
|
|
||||||
|
.ie6_button {
|
||||||
|
This works in IE6.
|
||||||
|
}
|
||||||
|
|
||||||
|
.ie6_button,
|
||||||
|
input[type=submit] {
|
||||||
|
This doesn't work.
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
.ie6_button,
|
||||||
|
* html button {
|
||||||
|
background: #ddd url(../img/button.png) repeat-x;
|
||||||
|
border: 1px solid;
|
||||||
|
border-color: #ddd #bbb #999;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #333;
|
||||||
|
font: bold 12px/1.2 Arial, sans-serif;
|
||||||
|
padding: 2px 10px 0px;
|
||||||
|
overflow: visible;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html button {
|
||||||
|
padding-top: 1px;
|
||||||
|
padding-bottom: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ie6_input,
|
||||||
|
* html textarea,
|
||||||
|
* html select {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid;
|
||||||
|
border-color: #848484 #c1c1c1 #e1e1e1;
|
||||||
|
color: #000;
|
||||||
|
padding: 2px 3px 1px;
|
||||||
|
font-size: 13px;
|
||||||
|
font-family: Arial, sans-serif;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
* html select {
|
||||||
|
margin-top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.placeholder_text,
|
||||||
|
.ie6_input_disabled,
|
||||||
|
.ie6_button_disabled {
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ie6_input_disabled {
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
BIN
img/button.png
Normal file
BIN
img/button.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 B |
BIN
img/noise.png
Normal file
BIN
img/noise.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
BIN
img/select_arrow.gif
Normal file
BIN
img/select_arrow.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 B |
104
index.php
Normal file
104
index.php
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
<?php
|
||||||
|
// Start YOURLS engine
|
||||||
|
require_once( dirname(__FILE__).'/includes/load-yourls.php' );
|
||||||
|
?>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>kwl.me</title>
|
||||||
|
<link rel="stylesheet" href="<?php echo YOURLS_SITE; ?>/css/share.css?v=<?php echo YOURLS_VERSION; ?>" type="text/css" media="screen" />
|
||||||
|
<link rel="stylesheet" href="<?php echo YOURLS_SITE; ?>/public.css" type="text/css" media="screen" />
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Ubuntu:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
|
||||||
|
<script src="<?php echo YOURLS_SITE; ?>/js/jquery-1.3.2.min.js" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo YOURLS_SITE; ?>/js/ZeroClipboard.js?v=<?php echo YOURLS_VERSION; ?>" type="text/javascript"></script>
|
||||||
|
<script type="text/javascript">ZeroClipboard.setMoviePath( '<?php echo YOURLS_SITE; ?>/js/ZeroClipboard.swf' );</script>
|
||||||
|
<script src="<?php echo YOURLS_SITE; ?>/js/share.js?v=<?php echo YOURLS_VERSION; ?>" type="text/javascript"></script>
|
||||||
|
<!-- Formalize -->
|
||||||
|
<link rel="stylesheet" href="css/formalize.css" />
|
||||||
|
<script src="js/jquery.formalize.min.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id="container">
|
||||||
|
<h1><a href="<?php echo YOURLS_SITE; ?>">kwl.me</a></h1>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><a href="http://tomslominski.net/">Blog</a></li>
|
||||||
|
<li><a href="http://local.tomslominski.net/">Local</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// Part to be executed if FORM has been submitted
|
||||||
|
if ( isset($_REQUEST['url']) ) {
|
||||||
|
|
||||||
|
$url = yourls_sanitize_url( $_REQUEST['url'] );
|
||||||
|
$keyword = isset( $_REQUEST['keyword'] ) ? yourls_sanitize_keyword( $_REQUEST['keyword'] ): '' ;
|
||||||
|
$title = isset( $_REQUEST['title'] ) ? yourls_sanitize_title( $_REQUEST['title'] ) : '' ;
|
||||||
|
|
||||||
|
// Mr. Tech- URL Sanitizing
|
||||||
|
function valid_url($str) {
|
||||||
|
return ( ! preg_match('/^(http|https|ftp):\/\/([A-Z0-9][A-Z0-9_-]*(?:\.[A-Z0-9][A-Z0-9_-]*)+):?(\d+)?\/?/i', $str))
|
||||||
|
? FALSE : TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
$url = yourls_sanitize_url($_REQUEST['url']);
|
||||||
|
|
||||||
|
if (!valid_url($url)) {
|
||||||
|
die( 'Invalid url, go back and try again' );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mr. Tech- Bans
|
||||||
|
$url = $_REQUEST['url'];
|
||||||
|
|
||||||
|
foreach ($yourls_banned_URL as $banned_url) {
|
||||||
|
if (stristr($url, $banned_url)) {
|
||||||
|
die( 'Banned site' );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$return = yourls_add_new_link( $url, $keyword, $title );
|
||||||
|
|
||||||
|
$shorturl = isset( $return['shorturl'] ) ? $return['shorturl'] : '';
|
||||||
|
$message = isset( $return['message'] ) ? $return['message'] : '';
|
||||||
|
$title = isset( $return['title'] ) ? $return['title'] : '';
|
||||||
|
|
||||||
|
echo <<<RESULT
|
||||||
|
<h2>URL has been shortened</h2>
|
||||||
|
<p>Original URL: <code><a href="$url">$url</a></code></p>
|
||||||
|
<p>Short URL: <code><a href="$shorturl">$shorturl</a></code></p>
|
||||||
|
<p><strong>$message</strong></p>
|
||||||
|
RESULT;
|
||||||
|
|
||||||
|
// Include the Copy box and the Quick Share box
|
||||||
|
yourls_share_box( $url, $shorturl, $title );
|
||||||
|
|
||||||
|
// Part to be executed when no form has been submitted
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$site = YOURLS_SITE;
|
||||||
|
|
||||||
|
echo <<<HTML
|
||||||
|
<h2>Enter a new URL to shorten</h2>
|
||||||
|
<form method="post" action="">
|
||||||
|
<p><label>URL (required):</label> <input type="text" name="url" value="Paste the long URL here" onfocus="if(this.value == this.defaultValue) this.value = ''" class="right" /></p>
|
||||||
|
<p><label>Custom keyword:</label> <input type="text" name="keyword" value="A keyword replaces the default short string" onfocus="if(this.value == this.defaultValue) this.value = ''" class="right" /></p>
|
||||||
|
<p><label>Optional title:</label> <input type="text" name="title" value="Optional title used when sharing a link from YOURLS" onfocus="if(this.value == this.defaultValue) this.value = ''" class="right" /></p>
|
||||||
|
<p><input type="submit" value="Shorten" /></p>
|
||||||
|
</form>
|
||||||
|
HTML;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<h2>The bookmarklets</h2>
|
||||||
|
<p>To use the bookmarklets drag them to your bookmark bar or simply right click on them and select the appropriate option.</p>
|
||||||
|
<p><a href="javascript:(function()%7Bvar%20d=document,s=d.createElement('script');window.yourls_callback=function(r)%7Bif(r.short_url)%7Bprompt(r.message,r.short_url);%7Delse%7Balert('An%20error%20occured:%20'+r.message);%7D%7D;s.src='http://kwl.me/admin/index.php?u='+encodeURIComponent(d.location.href)+'&jsonp=yourls';void(d.body.appendChild(s));%7D)();" class="bookmarklet">Instant Shorten</a></p>
|
||||||
|
<p><a href="javascript:(function()%7Bvar%20d=document,k=prompt('Custom%20URL'),s=d.createElement('script');if(k!=null){window.yourls_callback=function(r)%7Bif(r.short_url)%7Bprompt(r.message,r.short_url);%7Delse%7Balert('An%20error%20occured:%20'+r.message);%7D%7D;s.src='http://kwl.me/admin/index.php?u='+encodeURIComponent(d.location.href)+'&k='+k+'&jsonp=yourls';void(d.body.appendChild(s));%7D%7D)();" class="bookmarklet">Custom Keyword Shorten</a></p>
|
||||||
|
|
||||||
|
<div class="footer">
|
||||||
|
<p>Powered by <a href="http://yourls.org/" title="YOURLS">YOURLS</a>. Design by <a href="http://tomslominski.net/">Tom Slominski</a>.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1
js/jquery.formalize.min.js
vendored
Normal file
1
js/jquery.formalize.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
var FORMALIZE=(function(b,e,f,a){var h="placeholder" in f.createElement("input");var i="autofocus" in f.createElement("input");var g="webkitAppearance" in f.createElement("select").style;var d=!!(b.browser.msie&&parseInt(b.browser.version,10)===6);var c=!!(b.browser.msie&&parseInt(b.browser.version,10)===7);return{go:function(){for(var j in FORMALIZE.init){FORMALIZE.init[j]();}},init:{detect_webkit:function(){if(!g){return;}b("html").addClass("is_webkit");},full_input_size:function(){if(!c||!b("textarea, input.input_full").length){return;}b("textarea, input.input_full").wrap('<span class="input_full_wrap"></span>');},ie6_skin_inputs:function(){if(!d||!b("input, select, textarea").length){return;}var j=/button|submit|reset/;var k=/date|datetime|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/;b("input").each(function(){var l=b(this);if(this.getAttribute("type").match(j)){l.addClass("ie6_button");if(this.disabled){l.addClass("ie6_button_disabled");}}else{if(this.getAttribute("type").match(k)){l.addClass("ie6_input");if(this.disabled){l.addClass("ie6_input_disabled");}}}});b("textarea, select").each(function(){if(this.disabled){b(this).addClass("ie6_input_disabled");}});},autofocus:function(){if(i||!b(":input[autofocus]").length){return;}b(":input[autofocus]:visible:first").focus();},placeholder:function(){if(h||!b(":input[placeholder]").length){return;}FORMALIZE.misc.add_placeholder();b(":input[placeholder]").each(function(){var j=b(this);var k=j.attr("placeholder");j.focus(function(){if(j.val()===k){j.val("").removeClass("placeholder_text");}}).blur(function(){FORMALIZE.misc.add_placeholder();});j.closest("form").submit(function(){if(j.val()===k){j.val("").removeClass("placeholder_text");}}).bind("reset",function(){setTimeout(FORMALIZE.misc.add_placeholder,50);});});}},misc:{add_placeholder:function(){if(h||!b(":input[placeholder]").length){return;}b(":input[placeholder]").each(function(){var j=b(this);var k=j.attr("placeholder");if(!j.val()||j.val()===k){j.val(k).addClass("placeholder_text");}});}}};})(jQuery,this,this.document);jQuery(document).ready(function(){FORMALIZE.go();});
|
||||||
130
public.css
Normal file
130
public.css
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
/* Main */
|
||||||
|
body {
|
||||||
|
background:#F1F1F1;
|
||||||
|
color:#000;
|
||||||
|
font-family:'Ubuntu', sans-serif, Helvetica, Arial;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
color:#000;
|
||||||
|
margin-bottom:-8px;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color:#013F6D;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
a:visited {
|
||||||
|
color:#013F6D;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
/* Header */
|
||||||
|
h1 {
|
||||||
|
background: url(img/noise.png) #013F6D;
|
||||||
|
width:100%;
|
||||||
|
text-align:center;
|
||||||
|
color:#FFFFFF;
|
||||||
|
font-size:60px;
|
||||||
|
border-top:4px #000 solid;
|
||||||
|
margin-top:0;
|
||||||
|
margin-bottom:-6px;
|
||||||
|
}
|
||||||
|
h1 a {
|
||||||
|
color:#FFF;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
h1 a:hover {
|
||||||
|
border-bottom: #FFF 1px dashed;
|
||||||
|
}
|
||||||
|
h1 a:visited {
|
||||||
|
color:#FFF;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
.menu {
|
||||||
|
background: #000;
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 750px;
|
||||||
|
color:#FFF;
|
||||||
|
padding: 0 15px 0 15px;
|
||||||
|
margin-bottom:30px;
|
||||||
|
}
|
||||||
|
.menu a {
|
||||||
|
color: #FFF;
|
||||||
|
text-decoration: none;
|
||||||
|
line-height:38px;
|
||||||
|
display: block;
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
.menu a:hover {
|
||||||
|
background:#292929;
|
||||||
|
}
|
||||||
|
.menu li {
|
||||||
|
list-style: none;
|
||||||
|
float: left;
|
||||||
|
line-height:38px;
|
||||||
|
background:#000;
|
||||||
|
width:auto;
|
||||||
|
}
|
||||||
|
/* Container */
|
||||||
|
#container {
|
||||||
|
width: 780px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
background-color: #FFF;
|
||||||
|
padding: 20px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
.right {
|
||||||
|
width: 400px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.bookmarklet {
|
||||||
|
-moz-border-radius: 11px;
|
||||||
|
-webkit-border-radius: 11px;
|
||||||
|
border-radius: 11px;
|
||||||
|
background: #ddd url(../img/button.png) repeat-x;
|
||||||
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #ddd));
|
||||||
|
background: -moz-linear-gradient(top center, #fff 0%, #ddd 100%);
|
||||||
|
border: 1px solid;
|
||||||
|
border-color: #ddd #bbb #999;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #333;
|
||||||
|
font: bold 12px/1.2 Arial, sans-serif;
|
||||||
|
outline: 0;
|
||||||
|
overflow: visible;
|
||||||
|
padding: 3px 10px 4px;
|
||||||
|
text-shadow: #fff 0 1px 1px;
|
||||||
|
width: auto;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
/* Footer */
|
||||||
|
.footer {
|
||||||
|
text-align:center;
|
||||||
|
border-top:3px solid #000;
|
||||||
|
margin-top:30px;
|
||||||
|
}
|
||||||
|
.footer p {
|
||||||
|
padding-top:20px;
|
||||||
|
margin:0 auto;
|
||||||
|
}
|
||||||
|
.footer a {
|
||||||
|
color:#013F6D;
|
||||||
|
}
|
||||||
|
.footer a:hover {
|
||||||
|
text-decoration:none;
|
||||||
|
border-bottom:dashed 1px #013F6D;
|
||||||
|
}
|
||||||
|
.footer a:visited {
|
||||||
|
color:#013F6D;
|
||||||
|
}
|
||||||
|
/* Other */
|
||||||
|
div#copybox {
|
||||||
|
width:600px;
|
||||||
|
height:auto;
|
||||||
|
}
|
||||||
|
div#sharebox {
|
||||||
|
height:auto;
|
||||||
|
width:600px;
|
||||||
|
margin-top: 20px
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user