LESS implementation
Change-Id: I97e012ef3a3f5a6bbbeb8bb425d819ce85b82f87
This commit is contained in:
parent
6e15c822dd
commit
a219500168
@ -6,7 +6,6 @@
|
||||
"requirejs-text": "2.0.10",
|
||||
"require-css": "0.1.0",
|
||||
"lodash": "1.1.1",
|
||||
"retina.js": "1.1.0",
|
||||
"autoNumeric": "http://github.com/BobKnothe/autoNumeric/zipball/1.9.12",
|
||||
"jquery.timeout": "http://jquery-timeout.googlecode.com/files/jquery.timeout-1.1.0.js",
|
||||
"backbone.stickit": "https://raw.github.com/NYTimes/backbone.stickit/7437202ec91863aa29a6ad31b0bd00c6b130f506/backbone.stickit.js",
|
||||
@ -27,9 +26,6 @@
|
||||
"lodash": {
|
||||
"js": "lodash.js"
|
||||
},
|
||||
"retina.js": {
|
||||
"js": "src/retina.js"
|
||||
},
|
||||
"autoNumeric": {
|
||||
"js": "autoNumeric.js"
|
||||
},
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,33 +0,0 @@
|
||||
.tab-nodes-normal {background: url(../img/tab_icons@2x.png) no-repeat 0px 0px; background-size: 90px;}
|
||||
.tab-nodes-good {background: url(../img/tab_icons@2x.png) no-repeat -30px 0px; background-size: 90px;}
|
||||
.tab-nodes-bad {background: url(../img/tab_icons@2x.png) no-repeat -60px 0px; background-size: 90px;}
|
||||
|
||||
.tab-network-normal {background: url(../img/tab_icons@2x.png) no-repeat 0px -30px; background-size: 90px;}
|
||||
.tab-network-good {background: url(../img/tab_icons@2x.png) no-repeat -30px -30px; background-size: 90px;}
|
||||
.tab-network-bad {background: url(../img/tab_icons@2x.png) no-repeat -60px -30px; background-size: 90px;}
|
||||
|
||||
.tab-settings-normal {background: url(../img/tab_icons@2x.png) no-repeat 0px -60px; background-size: 90px;}
|
||||
.tab-settings-good {background: url(../img/tab_icons@2x.png) no-repeat -30px -60px; background-size: 90px;}
|
||||
.tab-settings-bad {background: url(../img/tab_icons@2x.png) no-repeat -60px -60px; background-size: 90px;}
|
||||
|
||||
.tab-actions-normal {background: url(../img/tab_icons@2x.png) no-repeat 0px -90px; background-size: 90px;}
|
||||
.tab-actions-good {background: url(../img/tab_icons@2x.png) no-repeat -30px -90px; background-size: 90px;}
|
||||
.tab-actions-bad {background: url(../img/tab_icons@2x.png) no-repeat -60px -90px; background-size: 90px;}
|
||||
|
||||
.tab-logs-normal {background: url(../img/tab_icons@2x.png) no-repeat 0px -120px; background-size: 90px;}
|
||||
.tab-logs-good {background: url(../img/tab_icons@2x.png) no-repeat -30px -120px; background-size: 90px;}
|
||||
.tab-logs-bad {background: url(../img/tab_icons@2x.png) no-repeat -60px -120px; background-size: 90px;}
|
||||
|
||||
.tab-redhat-normal {background: url(../img/tab_icons@2x.png) no-repeat 0px -150px; background-size: 90px;}
|
||||
.tab-redhat-good {background: url(../img/tab_icons@2x.png) no-repeat -30px -150px; background-size: 90px;}
|
||||
.tab-redhat-bad {background: url(../img/tab_icons@2x.png) no-repeat -60px -150px; background-size: 90px;}
|
||||
|
||||
.tab-healthcheck-normal {background: url(../img/tab_icons@2x.png) no-repeat 0px -180px; background-size: 90px;}
|
||||
.tab-healthcheck-good {background: url(../img/tab_icons@2x.png) no-repeat -30px -180px; background-size: 90px;}
|
||||
.tab-healthcheck-bad {background: url(../img/tab_icons@2x.png) no-repeat -60px -180px; background-size: 90px;}
|
||||
|
||||
.navigation-bar-ul > .product-logo a .logo {background: url(../img/product-logo@2x.png) no-repeat top left; background-size: 92px;}
|
||||
|
||||
.actions-btn {background: url(../img/icons@2x.png) 0px -44px no-repeat; background-size: 22px;}
|
||||
.node-details {background: url(../img/icons@2x.png) no-repeat 0px 0px; background-size: 22px;}
|
||||
.node-details:hover {background: url(../img/icons@2x.png) no-repeat 0px -22px; background-size: 22px;}
|
33
nailgun/static/css/retina.less
Normal file
33
nailgun/static/css/retina.less
Normal file
@ -0,0 +1,33 @@
|
||||
// The MIT License (MIT)
|
||||
//
|
||||
// Copyright (c) 2013 Imulus, LLC, Ben Atkin, and other contributors
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
// this software and associated documentation files (the "Software"), to deal in
|
||||
// the Software without restriction, including without limitation the rights to
|
||||
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
// the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
// subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included in all
|
||||
// copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
@highdpi: ~"(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";
|
||||
|
||||
.at2x(@path, @x, @y, @size) {
|
||||
background: url(@path) no-repeat @x @y;
|
||||
|
||||
@at2x_path: ~`@{path}.replace(/\.\w+$/, function(match) { return "@2x" + match; })`;
|
||||
|
||||
@media @highdpi {
|
||||
background: url("@{at2x_path}") no-repeat @x @y;
|
||||
background-size: @size;
|
||||
}
|
||||
}
|
3726
nailgun/static/css/styles.less
Normal file → Executable file
3726
nailgun/static/css/styles.less
Normal file → Executable file
File diff suppressed because it is too large
Load Diff
@ -30,7 +30,6 @@ requirejs.config({
|
||||
coccyx: 'js/libs/custom/coccyx',
|
||||
bootstrap: 'js/libs/custom/bootstrap.min',
|
||||
text: 'js/libs/bower/requirejs-text/js/text',
|
||||
retina: 'js/libs/bower/retina.js/js/retina',
|
||||
i18next: 'js/libs/bower/i18next/js/i18next-1.7.1',
|
||||
underscore: 'js/libs/bower/lodash/js/lodash',
|
||||
deepModel: 'js/libs/bower/backbone-deep-model/js/deep-model',
|
||||
@ -94,7 +93,6 @@ require([
|
||||
'coccyx',
|
||||
'i18next',
|
||||
'bootstrap',
|
||||
'retina',
|
||||
'jquery-checkbox',
|
||||
'jquery-timeout',
|
||||
'jquery-ui',
|
||||
|
Loading…
Reference in New Issue
Block a user