Skip to content

Commit

Permalink
Format code.
Browse files Browse the repository at this point in the history
  • Loading branch information
qichunren committed Mar 12, 2014
1 parent 9f4824a commit c99dbd5
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 58 deletions.
5 changes: 3 additions & 2 deletions background.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!DOCTYPE html>
<html>
<script type="text/javascript" src="javascripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="javascripts/background.js"></script>
<script type="text/javascript" src="javascripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="javascripts/background.js"></script>
</html>
20 changes: 12 additions & 8 deletions popup.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Ruby China社区</title>
<link rel="stylesheet" href="stylesheets/popup.css" type="text/css" media="screen" />

<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Ruby China社区</title>
<link rel="stylesheet" href="stylesheets/popup.css" type="text/css" media="screen"/>
</head>
<body style="width:470px;">
<header><div id="notify" class="pull-right">提醒</div>Ruby China社区</header>
<header>
<div id="notify" class="pull-right">提醒</div>
Ruby China社区
</header>

<div id="loading"><img src="images/loading1.gif"></div>
<div id="topics" class="topics">
<div id="loading">
<img src="images/loading1.gif" />
</div>

<footer>&copy; 2012 - 2014 </footer>
<div id="topics" class="topics"></div>

<footer>&copy; 2012 - 2014</footer>
<script type="text/javascript" src="javascripts/handlebars-1.0.0.beta.6.js"></script>
<script type="text/javascript" src="javascripts/templates.js"></script>
<script type="text/javascript" src="javascripts/jquery-1.7.1.min.js"></script>
Expand Down
5 changes: 4 additions & 1 deletion stylesheets/option.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
body{
body {
padding: 0 18%;
font-size: 11px;
}

a {
color: blue;
}

h1 {
font-size: 14px;
border: solid 1px #ABC;
Expand All @@ -16,6 +18,7 @@ h1 {
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, white), color-stop(0.48, #F2F6FD), color-stop(0.51, #EAF0FA));
-webkit-box-shadow: 0px 1px 2px #DDD;
}

footer {
margin-top: 20px;
font-size: 10px;
Expand Down
91 changes: 44 additions & 47 deletions stylesheets/popup.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 18px;
color:
#333;
margin:0;
padding:0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 18px;
color: #333;
margin: 0;
padding: 0;
}
header{

header {
padding: 2px;
font-weight: bold;
}

#topics {
padding: 10px;
}

#notify {
background: #C43C35;
margin-right: 10px;
Expand All @@ -24,77 +26,72 @@ header{
cursor: pointer;
color: #FFF;
}

.topics .topic_line {
border-bottom: 1px solid
#DDD;
padding: 10px 0;
padding-bottom: 0;
margin: 0 -10px;
vertical-align: top;
border-bottom: 1px solid #DDD;
padding: 10px 0;
padding-bottom: 0;
margin: 0 -10px;
vertical-align: top;
}

.topics .topic .avatar {
width: 56px;
margin-left: 10px;
width: 56px;
margin-left: 10px;
}

.pull-left {
float: left;
float: left;
}

.pull-right {
float: right;
float: right;
}

.topics .topic .right_info {
padding-left: 66px;
padding-left: 66px;
}

.topics .topic .replies {
width: 70px;
margin-right: 10px;
text-align: right;
vertical-align: middle;
width: 70px;
margin-right: 10px;
text-align: right;
vertical-align: middle;
}

.topics .topic .infos {
padding-right: 74px;
padding-right: 74px;
}

.topics .topic .title {
font-size: 14px;
font-size: 14px;
}

.topics .topic .title a:link, .topics .topic .title a:visited, .node_topics .title a:link, .node_topics .title a:visited {
color:
#2C64D7;
text-decoration: none;
color: #2C64D7;
text-decoration: none;
}

.topics .topic .info {
color:
#999;
margin-bottom: 2px;
color: #999;
margin-bottom: 2px;
}

.topics .topic a:link, .topics .topic a:visited {
color:
#999;
text-decoration: underline;
color: #999;
text-decoration: underline;
}

.topics .topic .replies a.count, .topics .topic .replies a.count:visited {
line-height: 12px;
font-weight: bold;
color:
white;
background-color:
#1C7FDB;
display: inline-block;
padding: 2px 10px 2px 10px;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
border-radius: 12px;
margin: 18px 12px 0px 0px;
text-decoration: none;
line-height: 12px;
font-weight: bold;
color: white;
background-color: #1C7FDB;
display: inline-block;
padding: 2px 10px 2px 10px;
-moz-border-radius: 12px;
-webkit-border-radius: 12px;
border-radius: 12px;
margin: 18px 12px 0px 0px;
text-decoration: none;
}

0 comments on commit c99dbd5

Please sign in to comment.