Skip to content
Snippets Groups Projects
Commit cdebe86a authored by Leonardo Menezes's avatar Leonardo Menezes
Browse files

organise js/css structure

parent 06c00016
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,10 @@ module.exports = function(grunt) {
grunt.initConfig({
clean: {
dist: {
src: ['_site/dist']
src: [
'public/css',
'public/js'
]
}
},
watch: {
......@@ -32,10 +35,13 @@ module.exports = function(grunt) {
'src/assets/libs/typeahead/typeahead.min.js',
'src/assets/libs/ace/ace.min.js'
],
dest: 'public/lib.js'
dest: 'public/js/lib.js'
},
vendorcss: {
src: [],
src: [
'src/assets/css/bootstrap.min.css',
'src/assets/css/font-awesome.min.css'
],
dest: 'public/css/lib.css'
},
appjs: {
......@@ -45,7 +51,13 @@ module.exports = function(grunt) {
'src/app/shared/*.js',
'src/app/shared/*/*.js'
],
dest: 'public/app.js'
dest: 'public/js/app.js'
},
appcss: {
src: [
'src/app/css/app.css'
],
dest: 'public/css/app.css'
},
},
jshint: {
......
......@@ -7,12 +7,11 @@
<meta name="description" content="">
<meta name="author" content="">
<title>{{title}}</title>
<link rel="icon" type="image/png" href='@routes.Assets.versioned("img/favicon.png")'>
<link rel="stylesheet" href='@routes.Assets.versioned("css/bootstrap.min.css")'>
<link rel="stylesheet" href='@routes.Assets.versioned("css/font-awesome.min.css")'>
<link rel="stylesheet" href='@routes.Assets.versioned("css/app.css")'>
<script src='@routes.Assets.versioned("lib.js")'></script>
<script src='@routes.Assets.versioned("app.js")'></script>
<link rel="icon" type="image/png" href="img/favicon.png">
<link rel="stylesheet" href="css/lib.css">
<link rel="stylesheet" href="css/app.css">
<script src="js/lib.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<div ng-include src="'alerts.html'" ng-controller="AlertsController" class="alerts"></div>
......
......@@ -45,5 +45,5 @@ GET /apis/hosts @controllers.HostsController.index
# Map the JS resource paths
GET /assets/*file controllers.Assets.at(path="/public", file)
GET /public/*file controllers.Assets.at(path="/public", file)
GET /*file controllers.Assets.versioned(path="/public", file: Asset)
File mode changed from 100755 to 100644
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
body { padding-top: 50px; font-weight: normal; }
.content { padding-top: 20px; padding-bottom: 10px; height: 100%; min-height: 100%; }
/** Overview **/
table.shard-map { table-layout: fixed; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
@-moz-document url-prefix() {
table.shard-map {
table-layout: auto;
}
table.shard-map tr td {
width: 16.67%;
}
}
.table.shard-map td, .table th { padding: .4rem !important; }
.disabled { opacity: 0.2; }
/** navbar **/
.navbar-red { border-bottom: 5px solid #E64759 !important; }
.navbar-yellow { border-bottom: 5px solid #E4D836 !important; }
.navbar-green { border-bottom: 5px solid #1AC98E !important; }
.navbar- { border-bottom: 5px solid #55595c !important; }
/** table header **/
.title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.subtitle { font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.closed-index { background: #434749; }
/** shard map **/
.shard { display: inline-block; width: 22px; height: 22px; vertical-align: middle; text-align: center; line-height: 17px; margin-top: 2px; margin-bottom: 2px; }
.shard-started { border: 2px solid #1AC98E; color: #1AC98E; }
.shard-initializing { border: 1px solid #1CA8DD; color: #1CA8DD; }
.shard-relocated { border: 1px solid #9F85FF; color: #9F85FF; }
.shard-recovering { border: 1px solid #E4D836; color: #E4D836; }
.shard-unassigned { border: 1px solid #8B8F95; color: #8B8F95; }
.shard-replica { border: 1px dashed; opacity: 0.7; }
.row-condensed { margin-right: -.1875rem !important; margin-left: -.1875rem !important; }
.col-condensed { margin-left: 0px; margin-right: 0px; padding-left: 2px !important; padding-right: 2px !important; }
.progress-thin { height: 2px !important; margin-bottom: 0em !important; }
/** cluster stats **/
.stats { padding-top: 0px; padding-bottom: 20px; }
.stat { border: 1px solid #55595c; text-align: center; width: 100%; display: inline-block; min-height: 32px; margin-top: 5px; margin-bottom: 5px; height: auto; line-height: 28px; }
.stat-value { font-size: 16px; }
.stat-description { font-size: 12px; font-weight: 300; }
/** node cells **/
.node-badges { width: 20px; display: inline-block; float: left; }
.node-info { margin-left: 20px; }
.node-labels { padding-top: 5px; }
.normal-action { cursor: pointer; }
.table-control { line-height: 50px !important; }
/* Bootstrap tweaking **/
.btn { border: 1px solid !important; opacity: 0.85; }
.btn:hover { opacity: 1 !important; }
.table-header { font-size: 15px; font-weight: 400; }
.pager { margin: 0px 0px !important; }
.alerts { padding-top: 40px; position: fixed; padding-left: 50px; right: 25px; width: 50%; top: 30px; z-index: 1000000; }
.alert-block { opacity: 0.90; }
.radio, .checkbox { position: relative; display: block; margin-top: 7px; margin-bottom: 7px; }
.radio+.radio, .checkbox+.checkbox { margin-top: 7px; }
/* JSON TREE CSS */
.jstValue { white-space: pre-wrap; font-size: 12px; font-weight: 400; font-family: Monaco, Menlo, Consolas, "Courier New", monospace; line-height: normal; display: block; }
.jstComma { white-space: pre-wrap; }
.jstProperty { color: #D0D0D0; word-wrap: break-word; }
.jstBracket { white-space: pre-wrap; }
.jstBool { color: #1CA8DD; }
.jstNum { color: #9F85FF; }
.jstNull { color: #D0D0D0; }
.jstStr { color: #1AC98E; }
.jstFold:after { content: ' -'; cursor: pointer; }
.jstExpand { white-space: normal; }
.jstExpand:after { content: ' +'; cursor: pointer; }
.jstFolded { white-space: normal !important; }
.jstHiddenBlock { display: none; }
/* ACE editor */
.ace-cerebro { border: 1px solid #55595c; }
/* Type ahead */
.typeahead-demo .custom-popup-wrapper { top: 100%; left: 0; z-index: 1000; display: none; }
.typeahead > li > a { border-bottom: 1px solid #55595c; }
.typeahead-demo .custom-popup-wrapper > .dropdown-menu {
position: static;
float: none;
display: block;
border: none;
border-radius: 0;
box-shadow: none;
margin-left: 0px;
border-left: 1px solid #55595c;
border-right: 1px solid #55595c;
padding-top: 0px !important;
padding-bottom: 0px !important;
margin-top: 0px !important;
}
/** pagination **/
.pager-text { border: none !important; }
.info-text { color: #6F7579; }
File moved
File moved
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment