Skip to content

Commit ee4c943

Browse files
committed
all rem
1 parent 61d64b2 commit ee4c943

5 files changed

Lines changed: 32 additions & 48 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20160112105832
2+
# Build: 20160113033458
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

‎static/app/index.html‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
</style>
1919
</head>
2020
<body>
21-
<section class="main-container">
21+
<section class="main container">
2222
<header class="main-title">
2323
<header><h1><a href="./"><span>C</span><span>O</span><span>D</span><span>E</span><span>L</span><span>F</span></a></h1></header>
2424
<h5>Search over projects from Github, Bitbucket, Google Code and more to find </h5>
2525
<h5><span class="label label-primary">real-world usage</span> <span class="label label-success">variable names</span></h5>
2626
</header>
2727
<section class="row search-form">
28-
<div class="col-lg-12">
28+
<div class="col-xs-12">
2929
<div class="input-group">
3030
<div class="input-group-btn">
3131
<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@@ -51,20 +51,20 @@ <h5><span class="label label-primary">real-world usage</span> <span class="label
5151
</form>
5252
<span class="input-group-btn">
5353
<button class="btn btn-secondary search" type="button" data-toggle="tooltip" data-placement="left" data-trigger="manual" title="Click here to show more!">Search</button>
54-
<a class="btn btn-secondary help" href="https://github.com/unbug/codelf/issues?q=is%3Aissue+is%3Aclosed" target="_blank">WTF?</a>
54+
<a class="btn btn-secondary hidden-sm-down help" href="https://github.com/unbug/codelf/issues?q=is%3Aissue+is%3Aclosed" target="_blank">WTF?</a>
5555
</span>
5656
</div>
5757
</div>
5858
</section>
5959
<section class="row search-relate">
60-
<div class="col-lg-12 bd">
60+
<div class="col-xs-12 bd">
6161
<script type="text/html">
6262
<a class="label label-primary" href="#{val}">{val}</a>
6363
</script>
6464
</div>
6565
</section>
6666
<section class="row search-result">
67-
<div class="col-lg-12">
67+
<div class="col-xs-12">
6868
<div class="jumbotron ct" role="alert">
6969
<header class="hd">
7070
<div class="loading">
@@ -95,17 +95,17 @@ <h5 class="variable-wrap" data-id="{id}" data-repo="{repo}" data-val="{val}"><sp
9595
<span aria-hidden="true">&times;</span>
9696
</button>
9797
<div>
98-
<a class="btn btn-primary-outline btn-sm cur-repo" target="_blank">Repo</a>
99-
<div class="btn-group btn-group-sm" role="group" aria-label="Button group with nested dropdown">
98+
<a class="btn btn-primary-outline btn-xs cur-repo" target="_blank">Repo</a>
99+
<div class="btn-group btn-group-xs" role="group" aria-label="Button group with nested dropdown">
100100
<div class="btn-group" role="group">
101-
<button type="button" class="btn btn-primary-outline dropdown-toggle btn-sm" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
101+
<button type="button" class="btn btn-primary-outline dropdown-toggle btn-xs" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
102102
All matched results <span class="label label-danger label-pill match-count">1</span>
103103
</button>
104104
<div class="dropdown-menu">
105105
<script type="text/html">
106106
<div class="dropdown-item">
107-
<button type="button" class="btn btn-primary-outline btn-sm variable-btns__code" data-id="{id}">Codes</button>
108-
<a class="btn btn-primary-outline btn-sm" href="{repo}" target="_blank">Repo</a>
107+
<button type="button" class="btn btn-primary-outline btn-xs variable-btns__code" data-id="{id}">Codes</button>
108+
<a class="btn btn-primary-outline btn-xs" href="{repo}" target="_blank">Repo</a>
109109
<span class="label label-{label_type}">{lang}</span>
110110
</div>
111111
</script>
@@ -123,7 +123,7 @@ <h5 class="variable-wrap" data-id="{id}" data-repo="{repo}" data-val="{val}"><sp
123123
</div>
124124
</div>
125125
</section>
126-
<section class="row donate hide">
126+
<section class="container donate" hidden>
127127
<header class="title">
128128
<h6 class="lang en">Buy <a href="https://twitter.com/unbug" target="_blank">@unbug</a> a drink</h6>
129129
<h6 class="lang cn">赞助 <a href="http://weibo.com/unbug/" target="_blank">@听奏</a> 这个月的房租</h6>

‎static/app/resources/css/style.css‎

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ html,body{
55
.label {
66
margin-right: .4em;
77
}
8-
.hide{
9-
display: none !important;
10-
}
118
/*layout*/
129
.logo{
1310
margin: 0 auto;
@@ -21,12 +18,12 @@ html,body{
2118
border-radius: 20%;
2219
-webkit-border-radius: 20%;
2320
}
24-
.main-container{
25-
padding: 20px;
21+
.main{
22+
padding-top: 1.5em;
2623
}
2724
.main-title{
2825
text-align: center;
29-
padding: 0 20px;
26+
padding: 0 1.2em;
3027
}
3128
.main-title>header a,
3229
.main-title>header a:visited,
@@ -75,7 +72,7 @@ html,body{
7572
transition-delay: 950ms;
7673
}
7774
.search-form{
78-
padding: 20px 0;
75+
padding: 1em 0;
7976
}
8077
.search-form .dropdown-menu,
8178
.sourcecode-modal .dropdown-menu{
@@ -84,14 +81,11 @@ html,body{
8481
-webkit-overflow-scrolling: touch;
8582
-webkit-transform: translate3d(0,0,0);
8683
}
87-
.search-form .help{
88-
display: none;
89-
}
9084
.search-relate a:hover{
9185
text-decoration: underline;
9286
}
9387
.search-result{
94-
padding-top: 10px;
88+
padding-top: .8em;
9589
}
9690
.search-result .ct{
9791
overflow-x: scroll;
@@ -167,14 +161,13 @@ html,body{
167161
.donate{
168162
text-align: center;
169163
display: block;
170-
margin: 0 auto;
171164
padding-bottom: 1em;
172165
}
173166
.donate form{
174167
display: inline-block;
175168
}
176169
.donate .title{
177-
padding-bottom: 10px;
170+
padding-bottom: .8em;
178171
text-align: center;
179172
}
180173
.donate .title .lang{
@@ -191,38 +184,29 @@ html,body{
191184
text-align: center;
192185
}
193186
.zhifubao,.wechatpay{
194-
margin-right: 10px;
195-
margin-top: -50px;
196-
width: 80px;
187+
margin-right: 1em;
188+
margin-top: -3em;
189+
width: 5em;
197190
}
198191
.paypal{
199-
width: 80px;
192+
width: 5em;
200193
}
201194
body.mobile .variable-btns__copy{
202195
display: none !important;
203196
}
204197
@media (min-width: 62em) {
205-
.main-container{
206-
padding: 20px 150px;
207-
}
208-
.main-title{
209-
padding: 0 50px;
210-
}
211198
.main-title h1{
212199
font-size: 4.5em;
213200
}
214-
.search-form .help{
215-
display: inline-block;
216-
}
217201
.search-relate{
218-
padding-bottom: 20px;
202+
padding-bottom: 1.8em;
219203
}
220204
.search-result .ct{
221205
overflow-x: auto;
222206
}
223207
.github-corner svg{
224-
width: 80px;
225-
height: 80px;
208+
width: 5em;
209+
height: 5em;
226210
}
227211
.sourcecode-modal{
228212
max-height: none;

‎static/app/src/App.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ $(function () {
764764

765765
function renderDonate(isZh){
766766
isZh = isZh || els.isZHSearchKeyWords;
767-
els.donate.removeClass('hide');
767+
els.donate.removeAttr('hidden');
768768
els.donateTitle.removeClass('cn en').addClass(isZh?'cn':'en');
769769
}
770770

0 commit comments

Comments
 (0)