1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/lib/GUI/css/main.less

206 lines
2.7 KiB
Plaintext
Raw Normal View History

2014-05-07 20:08:29 +02:00
@import "../../../node_modules/helpers.less/helpers.less";
2014-05-07 21:56:48 +02:00
@import "./markdown.less";
@import "./highlight.js.less";
2014-05-07 23:51:03 +02:00
@import "./fontello.less";
2014-05-07 20:08:29 +02:00
/*** Main Styles ***/
2014-05-07 20:26:44 +02:00
body {
margin: 0;
font-family: "Lucida Grande", "Helvetica Neue", Helvetica, Arial, Sans-Serif;
}
2014-05-07 23:51:03 +02:00
a, a:visited {
text-decoration: none;
color: #0D5AFF;
}
a:hover {
text-decoration: underline;
}
2014-05-07 20:26:44 +02:00
.center {
text-align: center;
}
2014-05-07 20:08:29 +02:00
2014-05-08 22:41:59 +02:00
@contentWidth: 880px;
@headerPadding: 10px;
header {
position: fixed;
width: 100%;
background: #FFF;
top: 0;
2014-05-09 00:58:13 +02:00
z-index: 1;
2014-05-08 22:41:59 +02:00
#header-inner {
max-width: @contentWidth + @headerPadding*2;
margin: 0 auto;
.logo-container {
width: 400px; // width of npm logo
margin: 0 auto;
}
2014-05-08 22:41:59 +02:00
}
}
2014-05-07 20:26:44 +02:00
#content {
2014-05-08 22:41:59 +02:00
max-width: @contentWidth;
2014-05-07 20:26:44 +02:00
margin: 0 auto;
padding: 20px;
}
2014-05-09 00:58:13 +02:00
#logo {
2014-05-09 16:19:42 +02:00
margin: 20px auto 0;
2014-05-09 00:58:13 +02:00
width: 400px;
height: 200px;
display: block;
}
h1 {
text-align: center;
a, a:visited {
color: black;
}
}
2014-05-07 20:26:44 +02:00
/*** Setup ***/
#setup {
background: #DB4141;
padding: 15px 20px;
display: inline-block;
.border-radius(4px);
text-align: left;
color: #FFF;
2014-05-09 16:19:42 +02:00
margin-top: 20px;
2014-05-07 20:26:44 +02:00
code {
font-family: Consolas, monaco, monospace;
}
}
2014-05-07 20:08:29 +02:00
2014-05-07 20:36:48 +02:00
/*** Search Box ***/
#search-form {
float: right;
2014-05-07 21:56:48 +02:00
2014-05-07 23:51:03 +02:00
@media (max-width: 540px) {
float: none;
margin-top: 6px;
}
2014-05-07 21:56:48 +02:00
@height: 30px;
input, button {
margin: 0;
2014-05-07 22:36:03 +02:00
vertical-align: top;
2014-05-07 22:00:36 +02:00
border: 1px solid #CCC;
2014-05-07 23:51:03 +02:00
&:focus {
outline: none;
}
2014-05-07 21:56:48 +02:00
}
input {
width: 200px;
height: @height;
.border-box;
padding: 0 5px;
font-size: 16px;
border-right: 0;
}
button {
height: @height;
width: @height;
margin: 0;
2014-05-07 22:00:36 +02:00
border-left: 0;
2014-05-07 23:51:03 +02:00
background: #FFF;
2014-05-07 22:00:36 +02:00
cursor: pointer;
font-size: 16px;
color: #999;
2014-05-07 21:56:48 +02:00
}
2014-05-07 20:36:48 +02:00
}
2014-05-07 22:36:03 +02:00
/*** Heading ***/
h2 {
border-bottom: 6px solid #424242;
2014-05-08 22:41:59 +02:00
margin: 40px 0 0;
padding: 0 @headerPadding 10px;
2014-05-07 22:36:03 +02:00
}
2014-05-07 20:08:29 +02:00
/*** Package Entries ***/
.entry {
2014-05-07 21:56:48 +02:00
background: #F3F3F3;
2014-05-07 21:28:10 +02:00
.border-radius(4px);
2014-05-07 21:56:48 +02:00
padding: 12px 15px 15px;
2014-05-07 23:51:03 +02:00
.transition(height .3s);
overflow: hidden;
margin-bottom: 12px;
2014-05-07 20:36:48 +02:00
h3 {
font-size: 24px;
margin: 0 0 10px;
}
2014-05-07 23:51:03 +02:00
.name:hover {
text-decoration: none;
}
.name:before {
margin: 0;
margin-left: -10px;
2014-05-08 21:47:24 +02:00
.transformTransition(.2s);
2014-05-07 23:51:03 +02:00
}
&.open .name:before {
.rotate(90deg);
}
2014-05-07 20:36:48 +02:00
.version {
font-size: 16px;
color: #666;
}
.author {
font-size: 16px;
float: right;
2014-05-07 21:56:48 +02:00
color: #666;
2014-05-07 20:36:48 +02:00
}
p {
margin: 0;
}
2014-05-07 21:56:48 +02:00
.readme {
font-size: 14px;
margin-top: 10px;
background: #FFF;
padding: 10px 12px;
.border-radius(3px);
}
2014-05-07 20:08:29 +02:00
}
/*** Search Results ***/
2014-05-07 20:36:48 +02:00
.state-search #all-packages {
2014-05-07 20:08:29 +02:00
display: none;
2014-05-07 22:31:25 +02:00
}
2014-05-08 21:47:24 +02:00
.search-ajax {
display: block;
margin: 50px auto;
}
2014-05-07 22:31:25 +02:00
.no-results {
text-align: center;
margin: 50px 0;
color: #888;
big {
font-size: 38px;
2014-05-07 22:36:03 +02:00
margin-bottom: 8px;
2014-05-07 22:31:25 +02:00
}
code {
font-size: 1.2em;
}
}