mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Formatting
This commit is contained in:
parent
11fdc9340e
commit
f2e433d52b
5 changed files with 75 additions and 13 deletions
|
@ -1,6 +1,11 @@
|
||||||
@import "../../../node_modules/helpers.less/helpers.less";
|
@import "../../../node_modules/helpers.less/helpers.less";
|
||||||
|
|
||||||
/*** Main Styles ***/
|
/*** Main Styles ***/
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, Sans-Serif;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
@ -14,8 +19,29 @@ h1 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*** Setup ***/
|
.center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 880px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** Setup ***/
|
||||||
|
#setup {
|
||||||
|
background: #DB4141;
|
||||||
|
padding: 15px 20px;
|
||||||
|
display: inline-block;
|
||||||
|
.border-radius(4px);
|
||||||
|
text-align: left;
|
||||||
|
color: #FFF;
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family: Consolas, monaco, monospace;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*** Package Entries ***/
|
/*** Package Entries ***/
|
||||||
.entry {
|
.entry {
|
||||||
|
|
|
@ -11,20 +11,19 @@
|
||||||
<h1><a href='/'>{{ name }}</a></h1>
|
<h1><a href='/'>{{ name }}</a></h1>
|
||||||
|
|
||||||
<form id='search-form'>
|
<form id='search-form'>
|
||||||
<input type='search' name='q' />
|
<input type='text' placeholder='search' name='q' />
|
||||||
<button>Search</button>
|
<button class='clear'>x</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div id='search-results'></div>
|
<div id='search-results'></div>
|
||||||
|
|
||||||
<div id='standard-content'>
|
<div id='standard-content'>
|
||||||
<article id='setup'>
|
<div class='center'>
|
||||||
<h2>Setup:</h2>
|
<article id='setup'>
|
||||||
<code>
|
<code>npm set registry {{ baseUrl }}</code><br>
|
||||||
npm set registry {{ baseUrl }}<br>
|
<code>npm adduser --registry {{ baseUrl }}</code>
|
||||||
npm adduser --registry {{ baseUrl }}
|
</article>
|
||||||
</code>
|
</div>
|
||||||
</article>
|
|
||||||
|
|
||||||
<h2>Available Packages:</h2>
|
<h2>Available Packages:</h2>
|
||||||
{{#each packages}}
|
{{#each packages}}
|
||||||
|
|
|
@ -3,7 +3,7 @@ var $ = require('unopinionate').selector,
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
var $form = $('#search-form'),
|
var $form = $('#search-form'),
|
||||||
$input = $form.find('[type="search"]'),
|
$input = $form.find('input'),
|
||||||
$searchResults = $("#search-results"),
|
$searchResults = $("#search-results"),
|
||||||
$body = $('body'),
|
$body = $('body'),
|
||||||
request;
|
request;
|
||||||
|
@ -40,4 +40,10 @@ $(function() {
|
||||||
$body.removeClass('state-search');
|
$body.removeClass('state-search');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$form.find('.clear').click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
$input.val('');
|
||||||
|
$form.keyup();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
/*** Main Styles ***/
|
/*** Main Styles ***/
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, Sans-Serif;
|
||||||
|
}
|
||||||
h1 {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +14,28 @@ h1 a:visited {
|
||||||
h1 a:hover {
|
h1 a:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
.center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#content {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 880px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
/*** Setup ***/
|
/*** Setup ***/
|
||||||
|
#setup {
|
||||||
|
background: #DB4141;
|
||||||
|
padding: 15px 20px;
|
||||||
|
display: inline-block;
|
||||||
|
-webkit-border-radius: 4px;
|
||||||
|
-moz-border-radius: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: left;
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
#setup code {
|
||||||
|
font-family: Consolas, monaco, monospace;
|
||||||
|
}
|
||||||
/*** Package Entries ***/
|
/*** Package Entries ***/
|
||||||
.entry {
|
.entry {
|
||||||
background: #EEE;
|
background: #EEE;
|
||||||
|
@ -19,4 +44,4 @@ h1 a:hover {
|
||||||
.state-search #standard-content {
|
.state-search #standard-content {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22lib%2FGUI%2Fcss%2Fmain.less%22%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22%3BAAGA%3BEACC%2CkBAAA%3B%3BAADD%2CEAGC%3BAAHD%2CEAGI%2CEAAC%3BEACH%2CYAAA%3BEACA%2CqBAAA%3B%3BAALF%2CEAQC%2CEAAC%3BEACA%2C0BAAA%3B%3B%3B%3BAAQF%3BEACC%2CgBAAA%3B%3B%3BAAID%2CaAAc%3BEACb%2CaAAA%22%7D */
|
/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22sources%22%3A%5B%22lib%2FGUI%2Fcss%2Fmain.less%22%2C%22node_modules%2Fhelpers.less%2Fhelpers.less%22%5D%2C%22names%22%3A%5B%5D%2C%22mappings%22%3A%22%3BAAGA%3BEACC%2CSAAA%3BEACA%2CaAAa%2CiBAAiB%2C8CAA9B%3B%3BAAGD%3BEACC%2CkBAAA%3B%3BAADD%2CEAGC%3BAAHD%2CEAGI%2CEAAC%3BEACH%2CYAAA%3BEACA%2CqBAAA%3B%3BAALF%2CEAQC%2CEAAC%3BEACA%2C0BAAA%3B%3BAAIF%3BEACC%2CkBAAA%3B%3BAAGD%3BEACC%2CcAAA%3BEACA%2CgBAAA%3BEACA%2CaAAA%3B%3B%3BAAID%3BEACC%2CmBAAA%3BEACA%2CkBAAA%3BEACA%2CqBAAA%3BEClBG%2C0BAAA%3BEACA%2CuBAAA%3BEACA%2CkBAAA%3BEDkBH%2CgBAAA%3BEACA%2CWAAA%3B%3BAAND%2CMAQC%3BEACC%2CwCAAA%3B%3B%3BAAKF%3BEACC%2CgBAAA%3B%3B%3BAAID%2CaAAc%3BEACb%2CaAAA%22%7D */
|
|
@ -28,7 +28,7 @@ var $ = require('unopinionate').selector,
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
var $form = $('#search-form'),
|
var $form = $('#search-form'),
|
||||||
$input = $form.find('[type="search"]'),
|
$input = $form.find('input'),
|
||||||
$searchResults = $("#search-results"),
|
$searchResults = $("#search-results"),
|
||||||
$body = $('body'),
|
$body = $('body'),
|
||||||
request;
|
request;
|
||||||
|
@ -65,6 +65,12 @@ $(function() {
|
||||||
$body.removeClass('state-search');
|
$body.removeClass('state-search');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$form.find('.clear').click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
$input.val('');
|
||||||
|
$form.keyup();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
},{"../entry.handlebars":1,"unopinionate":10}],3:[function(require,module,exports){
|
},{"../entry.handlebars":1,"unopinionate":10}],3:[function(require,module,exports){
|
||||||
|
|
Loading…
Reference in a new issue