kibana-sinatra 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/kibana-sinatra.gemspec +1 -0
  4. data/lib/kibana/assets/app/app.js +8 -3
  5. data/lib/kibana/assets/app/components/kbn.js +45 -10
  6. data/lib/kibana/assets/app/components/{underscore.extended.js → lodash.extended.js} +2 -4
  7. data/lib/kibana/assets/app/components/require.config.js +5 -6
  8. data/lib/kibana/assets/app/components/settings.js +1 -1
  9. data/lib/kibana/assets/app/controllers/dash.js +10 -5
  10. data/lib/kibana/assets/app/controllers/dashLoader.js +1 -1
  11. data/lib/kibana/assets/app/controllers/pulldown.js +1 -1
  12. data/lib/kibana/assets/app/controllers/row.js +1 -1
  13. data/lib/kibana/assets/app/dashboards/default.json +1 -1
  14. data/lib/kibana/assets/app/dashboards/logstash.js +4 -4
  15. data/lib/kibana/assets/app/dashboards/logstash.json +1 -1
  16. data/lib/kibana/assets/app/directives/addPanel.js +1 -1
  17. data/lib/kibana/assets/app/directives/arrayJoin.js +1 -1
  18. data/lib/kibana/assets/app/directives/configModal.js +23 -5
  19. data/lib/kibana/assets/app/directives/kibanaPanel.js +70 -50
  20. data/lib/kibana/assets/app/directives/kibanaSimplePanel.js +1 -1
  21. data/lib/kibana/assets/app/factories/store.js +59 -0
  22. data/lib/kibana/assets/app/filters/all.js +6 -13
  23. data/lib/kibana/assets/app/panels/bettermap/module.html +5 -0
  24. data/lib/kibana/assets/app/panels/bettermap/module.js +1 -1
  25. data/lib/kibana/assets/app/panels/column/editor.html +1 -1
  26. data/lib/kibana/assets/app/panels/column/module.js +7 -6
  27. data/lib/kibana/assets/app/panels/dashcontrol/module.js +1 -1
  28. data/lib/kibana/assets/app/panels/derivequeries/module.js +1 -1
  29. data/lib/kibana/assets/app/panels/fields/module.js +1 -1
  30. data/lib/kibana/assets/app/panels/filtering/module.html +10 -17
  31. data/lib/kibana/assets/app/panels/filtering/module.js +19 -1
  32. data/lib/kibana/assets/app/panels/histogram/module.html +4 -4
  33. data/lib/kibana/assets/app/panels/histogram/module.js +62 -12
  34. data/lib/kibana/assets/app/panels/histogram/timeSeries.js +6 -3
  35. data/lib/kibana/assets/app/panels/hits/module.js +1 -1
  36. data/lib/kibana/assets/app/panels/map/module.js +1 -1
  37. data/lib/kibana/assets/app/panels/pie/editor.html +1 -1
  38. data/lib/kibana/assets/app/panels/pie/module.js +1 -1
  39. data/lib/kibana/assets/app/panels/query/meta.html +1 -1
  40. data/lib/kibana/assets/app/panels/query/module.html +1 -1
  41. data/lib/kibana/assets/app/panels/query/module.js +2 -7
  42. data/lib/kibana/assets/app/panels/query/query.css +9 -7
  43. data/lib/kibana/assets/app/panels/sparklines/module.js +2 -2
  44. data/lib/kibana/assets/app/panels/sparklines/timeSeries.js +3 -3
  45. data/lib/kibana/assets/app/panels/stats/editor.html +36 -0
  46. data/lib/kibana/assets/app/panels/stats/module.html +15 -0
  47. data/lib/kibana/assets/app/panels/stats/module.js +199 -0
  48. data/lib/kibana/assets/app/panels/table/editor.html +23 -27
  49. data/lib/kibana/assets/app/panels/table/micropanel.html +3 -1
  50. data/lib/kibana/assets/app/panels/table/module.js +7 -1
  51. data/lib/kibana/assets/app/panels/terms/editor.html +16 -3
  52. data/lib/kibana/assets/app/panels/terms/module.html +14 -5
  53. data/lib/kibana/assets/app/panels/terms/module.js +66 -18
  54. data/lib/kibana/assets/app/panels/text/module.js +1 -1
  55. data/lib/kibana/assets/app/panels/timepicker/editor.html +14 -12
  56. data/lib/kibana/assets/app/panels/timepicker/module.html +3 -8
  57. data/lib/kibana/assets/app/panels/timepicker/module.js +1 -1
  58. data/lib/kibana/assets/app/panels/trends/module.js +1 -1
  59. data/lib/kibana/assets/app/partials/dashLoader.html +10 -10
  60. data/lib/kibana/assets/app/partials/dashboard.html +35 -44
  61. data/lib/kibana/assets/app/partials/dasheditor.html +7 -5
  62. data/lib/kibana/assets/app/partials/paneleditor.html +2 -1
  63. data/lib/kibana/assets/app/partials/panelgeneral.html +1 -1
  64. data/lib/kibana/assets/app/partials/roweditor.html +11 -9
  65. data/lib/kibana/assets/app/services/alertSrv.js +1 -1
  66. data/lib/kibana/assets/app/services/dashboard.js +27 -14
  67. data/lib/kibana/assets/app/services/esVersion.js +70 -31
  68. data/lib/kibana/assets/app/services/fields.js +14 -37
  69. data/lib/kibana/assets/app/services/filterSrv.js +7 -11
  70. data/lib/kibana/assets/app/services/kbnIndex.js +24 -15
  71. data/lib/kibana/assets/app/services/panelMove.js +1 -1
  72. data/lib/kibana/assets/app/services/querySrv.js +20 -6
  73. data/lib/kibana/assets/app/services/timer.js +1 -1
  74. data/lib/kibana/assets/css/bootstrap.dark.min.css +1 -1
  75. data/lib/kibana/assets/css/bootstrap.light.min.css +1 -1
  76. data/lib/kibana/assets/img/cubes.png +0 -0
  77. data/lib/kibana/assets/img/light.png +0 -0
  78. data/lib/kibana/assets/index.html +3 -2
  79. data/lib/kibana/assets/vendor/LICENSE.json +90 -0
  80. data/lib/kibana/assets/vendor/angular/angular-cookies.js +185 -0
  81. data/lib/kibana/assets/vendor/angular/angular-dragdrop.js +33 -4
  82. data/lib/kibana/assets/vendor/blob.js +178 -0
  83. data/lib/kibana/assets/vendor/bootstrap/bootstrap.js +6 -1
  84. data/lib/kibana/assets/vendor/bootstrap/less/bak/bootswatch.dark.less +555 -0
  85. data/lib/kibana/assets/vendor/bootstrap/less/bak/variables.dark.less +304 -0
  86. data/lib/kibana/assets/vendor/bootstrap/less/bootswatch.dark.less +349 -327
  87. data/lib/kibana/assets/vendor/bootstrap/less/bootswatch.light.less +590 -7
  88. data/lib/kibana/assets/vendor/bootstrap/less/modals.less +1 -1
  89. data/lib/kibana/assets/vendor/bootstrap/less/overrides.less +191 -75
  90. data/lib/kibana/assets/vendor/bootstrap/less/variables.dark.less +96 -97
  91. data/lib/kibana/assets/vendor/bootstrap/less/variables.light.less +84 -81
  92. data/lib/kibana/assets/vendor/jquery/jquery.flot.events.js +39 -51
  93. data/lib/kibana/assets/vendor/lodash.js +6785 -0
  94. data/lib/kibana/assets/vendor/numeral.js +565 -0
  95. data/lib/kibana/sinatra/version.rb +1 -1
  96. data/lib/kibana/views/config.erb +1 -0
  97. data/test/sinatra_test.rb +2 -2
  98. metadata +30 -4
  99. data/lib/kibana/assets/vendor/underscore.js +0 -1246
@@ -0,0 +1,304 @@
1
+ // Slate 2.3.2
2
+ // Variables
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Global values
7
+ // --------------------------------------------------
8
+
9
+
10
+ // Grays
11
+ // -------------------------
12
+ @black: #000;
13
+ @grayDarker: #272B30;
14
+ @grayDark: #3A3F44;
15
+ @gray: #52575C;
16
+ @grayLight: #7A8288;
17
+ @grayLighter: #BBBFC2;
18
+ @white: #fff;
19
+
20
+
21
+ // Accent colors
22
+ // -------------------------
23
+ @blue: #5bc0de;
24
+ @blueDark: #108CBB;
25
+ @green: #62c462;
26
+ @red: #ee5f5b;
27
+ @yellow: #F6D30D;
28
+ @orange: #f89406;
29
+ @pink: #c3325f;
30
+ @purple: #7a43b6;
31
+
32
+
33
+ // Scaffolding
34
+ // -------------------------
35
+ @bodyBackground: @grayDarker;
36
+ @textColor: #C8C8C8;
37
+
38
+
39
+ // Links
40
+ // -------------------------
41
+ @linkColor: @white;
42
+ @linkColorHover: @white;
43
+
44
+
45
+ // Typography
46
+ // -------------------------
47
+ @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
48
+ @serifFontFamily: Georgia, "Times New Roman", Times, serif;
49
+ @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
50
+
51
+ @baseFontSize: 14px;
52
+ @baseFontFamily: @sansFontFamily;
53
+ @baseLineHeight: 21px;
54
+ @altFontFamily: @serifFontFamily;
55
+
56
+ @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
57
+ @headingsFontWeight: bold; // instead of browser default, bold
58
+ @headingsColor: inherit; // empty to use BS default, @textColor
59
+
60
+
61
+ // Component sizing
62
+ // -------------------------
63
+ // Based on 14px font-size and 20px line-height
64
+
65
+ @fontSizeLarge: @baseFontSize * 1.25; // ~18px
66
+ @fontSizeSmall: @baseFontSize * 0.85; // ~12px
67
+ @fontSizeMini: @baseFontSize * 0.75; // ~11px
68
+
69
+ @paddingLarge: 11px 19px; // 44px
70
+ @paddingSmall: 2px 10px; // 26px
71
+ @paddingMini: 0px 6px; // 22px
72
+
73
+ @baseBorderRadius: 4px;
74
+ @borderRadiusLarge: 6px;
75
+ @borderRadiusSmall: 3px;
76
+
77
+
78
+ // Tables
79
+ // -------------------------
80
+ @tableBackground: transparent; // overall background-color
81
+ @tableBackgroundAccent: darken(@grayDark, 5%); // for striping
82
+ @tableBackgroundHover: @grayDark; // for hover
83
+ @tableBorder: lighten(@grayDark, 2%); // table and cell border
84
+
85
+ // Buttons
86
+ // -------------------------
87
+ @btnBackground: @gray;
88
+ @btnBackgroundHighlight: darken(@gray, 10%);
89
+ @btnBorder: darken(@gray, 20%);
90
+
91
+ @btnPrimaryBackground: @grayLight;
92
+ @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
93
+
94
+ @btnInfoBackground: @blue;
95
+ @btnInfoBackgroundHighlight: #2f96b4;
96
+
97
+ @btnSuccessBackground: @green;
98
+ @btnSuccessBackgroundHighlight: #51a351;
99
+
100
+ @btnWarningBackground: lighten(@orange, 15%);
101
+ @btnWarningBackgroundHighlight: @orange;
102
+
103
+ @btnDangerBackground: @red;
104
+ @btnDangerBackgroundHighlight: #bd362f;
105
+
106
+ @btnInverseBackground: @gray;
107
+ @btnInverseBackgroundHighlight: @grayDarker;
108
+
109
+ // Forms
110
+ // -------------------------
111
+ @inputText: @white;
112
+ @inputBackground: @gray;
113
+ @inputBorder: @grayLight;
114
+ @inputBorderRadius: @baseBorderRadius;
115
+ @inputDisabledBackground: @grayLighter;
116
+ @formActionsBackground: darken(@grayDarker, 3%);
117
+ @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
118
+
119
+
120
+ // Dropdowns
121
+ // -------------------------
122
+ @dropdownBackground: @grayDark;
123
+ @dropdownBorder: rgba(0,0,0,.2);
124
+ @dropdownDividerTop: transparent;
125
+ @dropdownDividerBottom: darken(@grayDarker, 5%);
126
+
127
+ @dropdownLinkColor: @grayLight;
128
+ @dropdownLinkColorHover: @white;
129
+ @dropdownLinkColorActive: @white;
130
+
131
+ @dropdownLinkBackgroundActive: @grayDarker;
132
+ @dropdownLinkBackgroundHover: @grayDarker;
133
+
134
+
135
+
136
+ // COMPONENT VARIABLES
137
+ // --------------------------------------------------
138
+
139
+
140
+ // Z-index master list
141
+ // -------------------------
142
+ // Used for a bird's eye view of components dependent on the z-axis
143
+ // Try to avoid customizing these :)
144
+ @zindexDropdown: 1000;
145
+ @zindexPopover: 1010;
146
+ @zindexTooltip: 1030;
147
+ @zindexFixedNavbar: 1030;
148
+ @zindexModalBackdrop: 1040;
149
+ @zindexModal: 1050;
150
+
151
+
152
+ // Sprite icons path
153
+ // -------------------------
154
+ @iconSpritePath: "../img/glyphicons-halflings.png";
155
+ @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
156
+
157
+
158
+ // Input placeholder text color
159
+ // -------------------------
160
+ @placeholderText: @grayLight;
161
+
162
+
163
+ // Hr border color
164
+ // -------------------------
165
+ @hrBorder: darken(@grayDarker, 5%);
166
+
167
+
168
+ // Horizontal forms & lists
169
+ // -------------------------
170
+ @horizontalComponentOffset: 180px;
171
+
172
+
173
+ // Wells
174
+ // -------------------------
175
+ @wellBackground: darken(@grayDarker, 3%);
176
+
177
+
178
+ // Navbar
179
+ // -------------------------
180
+
181
+ @navbarCollapseWidth: 979px;
182
+ @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
183
+ @navbarHeight: 40px;
184
+ @navbarBackground: @grayDarker;
185
+ @navbarBackgroundHighlight: @grayDark;
186
+ @navbarBorder: darken(@navbarBackground, 12%);
187
+
188
+ @navbarText: @textColor;
189
+ @navbarLinkColor: @textColor;
190
+ @navbarLinkColorHover: @white;
191
+ @navbarLinkColorActive: @navbarLinkColorHover;
192
+ @navbarLinkBackgroundHover: @grayDark;
193
+ @navbarLinkBackgroundActive: @navbarBackground;
194
+
195
+ @navbarBrandColor: @grayLighter;
196
+
197
+ // Inverted navbar
198
+ @navbarInverseBackground: darken(@grayDarker, 10%);
199
+ @navbarInverseBackgroundHighlight: @grayDarker;
200
+ @navbarInverseBorder: #252525;
201
+
202
+ @navbarInverseText: @grayLight;
203
+ @navbarInverseLinkColor: @grayLight;
204
+ @navbarInverseLinkColorHover: @white;
205
+ @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
206
+ @navbarInverseLinkBackgroundHover: transparent;
207
+ @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
208
+
209
+ @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
210
+ @navbarInverseSearchBackgroundFocus: @white;
211
+ @navbarInverseSearchBorder: @navbarInverseBackground;
212
+ @navbarInverseSearchPlaceholderColor: #ccc;
213
+
214
+ @navbarInverseBrandColor: @navbarInverseLinkColor;
215
+
216
+
217
+ // Pagination
218
+ // -------------------------
219
+ @paginationBackground: #fff;
220
+ @paginationBorder: #ddd;
221
+ @paginationActiveBackground: #f5f5f5;
222
+
223
+
224
+ // Hero unit
225
+ // -------------------------
226
+ @heroUnitBackground: darken(@grayDarker, 3%);
227
+ @heroUnitHeadingColor: inherit;
228
+ @heroUnitLeadColor: inherit;
229
+
230
+
231
+ // Form states and alerts
232
+ // -------------------------
233
+ @warningText: #c09853;
234
+ @warningBackground: #fcf8e3;
235
+ @warningBorder: darken(spin(@warningBackground, -10), 3%);
236
+
237
+ @errorText: #b94a48;
238
+ @errorBackground: #f2dede;
239
+ @errorBorder: darken(spin(@errorBackground, -10), 3%);
240
+
241
+ @successText: #468847;
242
+ @successBackground: #dff0d8;
243
+ @successBorder: darken(spin(@successBackground, -10), 5%);
244
+
245
+ @infoText: #3a87ad;
246
+ @infoBackground: #d9edf7;
247
+ @infoBorder: darken(spin(@infoBackground, -10), 7%);
248
+
249
+
250
+ // Tooltips and popovers
251
+ // -------------------------
252
+ @tooltipColor: #fff;
253
+ @tooltipBackground: @dropdownBackground;
254
+ @tooltipArrowWidth: 5px;
255
+ @tooltipArrowColor: @tooltipBackground;
256
+
257
+ @popoverBackground: @dropdownBackground;
258
+ @popoverArrowWidth: 10px;
259
+ @popoverArrowColor: @dropdownBackground;
260
+ @popoverTitleBackground: lighten(@popoverBackground, 3%);
261
+
262
+ // Special enhancement for popovers
263
+ @popoverArrowOuterWidth: @popoverArrowWidth + 1;
264
+ @popoverArrowOuterColor: rgba(0,0,0,.25);
265
+
266
+
267
+
268
+ // GRID
269
+ // --------------------------------------------------
270
+
271
+
272
+ // Default 940px grid
273
+ // -------------------------
274
+ @gridColumns: 12;
275
+ @gridColumnWidth: 60px;
276
+ @gridGutterWidth: 10px;
277
+ @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
278
+
279
+ // 1200px min
280
+ @gridColumnWidth1200: 70px;
281
+ @gridGutterWidth1200: 10px;
282
+ @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
283
+
284
+ // 768px-979px
285
+ @gridColumnWidth768: 42px;
286
+ @gridGutterWidth768: 10px;
287
+ @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
288
+
289
+
290
+ // Fluid grid
291
+ // -------------------------
292
+ @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
293
+ @gridGutterWidth: 10px;
294
+ //@fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
295
+
296
+ // 1200px min
297
+ @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
298
+ @gridGutterWidth: 10px;
299
+ //@fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
300
+
301
+ // 768px-979px
302
+ @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
303
+ @gridGutterWidth: 10px;
304
+ //@fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
@@ -1,35 +1,44 @@
1
- // Slate 2.3.2
1
+ // Cyborg 2.3.2
2
2
  // Bootswatch
3
3
  // -----------------------------------------------------
4
4
 
5
- // KIBANA
6
- .panelCont {
7
- outline: 1px solid darken(@bodyBackground, 10%);
8
- border-top: 1px solid lighten(@bodyBackground, 10%);
9
- padding: 0px 10px 10px 10px;
10
- background: darken(@bodyBackground, 3%);
11
- margin: 0px;
12
- }
13
-
14
-
15
5
  // TYPOGRAPHY
16
6
  // -----------------------------------------------------
17
7
 
18
- h1, h2, h3, h4, h5, h6 {
19
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
8
+ label, input, button, select, textarea,
9
+ .navbar .search-query:-moz-placeholder,
10
+ .navbar .search-query::-webkit-input-placeholder {
11
+ font-family: 'Droid Sans', sans-serif;
12
+ color: @gray;
20
13
  }
21
14
 
22
- code, pre {
23
- background-color: #F7F7F7;
24
- border: 1px solid darken(@grayDarker, 5%);
25
- text-shadow: none;
15
+
16
+
17
+ blockquote {
18
+ border-left: 5px solid @grayDark;
19
+
20
+ &.pull-right {
21
+ border-right: 5px solid @grayDark;
22
+ }
26
23
  }
27
24
 
28
25
  // SCAFFOLDING
29
26
  // -----------------------------------------------------
30
27
 
31
- legend, .page-header {
32
- border-bottom: 1px solid @hrBorder;
28
+ html {
29
+ min-height: 100%;
30
+ }
31
+
32
+ body {
33
+ min-height: 100%;
34
+ //#gradient > .vertical (@bodyBackground, #252A30);
35
+ //background: @bodyBackground;
36
+ background: @bodyBackground;
37
+ // url('../img/cubes.png') repeat right top;
38
+ }
39
+
40
+ .page-header {
41
+ border-bottom: 1px solid @grayDark
33
42
  }
34
43
 
35
44
  hr {
@@ -42,73 +51,60 @@ hr {
42
51
  .navbar {
43
52
 
44
53
  .navbar-inner {
45
- #gradient > .vertical-three-colors(@grayDark, darken(@bodyBackground,3%), 70%, darken(@bodyBackground,3%));
54
+ .border-radius(0);
55
+ .box-shadow(none);
56
+ border-bottom: 0px solid @grayDark;
46
57
  }
47
58
 
48
59
  .brand {
49
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
50
- border-right: none;
51
- }
52
-
53
- .navbar-text {
54
- padding: 0 15px;
55
- font-weight: bold;
60
+ padding: 15px 20px 15px;
61
+ color: @grayLighter;
62
+ font-weight: normal;
63
+ text-shadow: none;
56
64
  }
57
65
 
58
- .nav > li > a {
59
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
60
- border-right: 1px solid rgba(0, 0, 0, 0.2);
61
- border-left: 1px solid rgba(255, 255, 255, 0.1);
62
-
63
- &:hover {
64
- #gradient > .directional(@grayDarker, @grayDark, 280deg);
65
- border-left: 1px solid transparent;
66
- border-right: 1px solid transparent;
67
- }
66
+ .nav > li > a {
67
+ padding: 15px 15px 14px;
68
+ border-bottom: 1px solid transparent;
68
69
  }
69
70
 
70
- .nav > li.active > a,
71
- .nav > li.active > a:hover {
72
- color: @grayLighter;
73
- background-color: @grayDark;
74
- #gradient > .directional(lighten(@grayDarker, 2%), lighten(@grayDark, 2%), 0deg);
75
- border-right: 1px solid darken(@gray, 15%);
71
+ .nav > li > a:hover,
72
+ .nav > .active > a,
73
+ .nav > .active > a:hover {
74
+ border-bottom: 1px solid @blue;
76
75
  }
77
76
 
78
- .navbar-search .search-query {
79
- border: 1px solid darken(@gray, 15%);
77
+ .nav > .active > a,
78
+ .nav > .active > a:hover,
79
+ .nav > .active > a:focus {
80
+ .box-shadow(none);
80
81
  }
81
82
 
82
- .btn,
83
- .btn-group {
84
- margin: 4px 0;
83
+ .navbar-text {
84
+ margin-bottom: 1px;
85
+ padding: 15px 15px 14px;
86
+ line-height: inherit;
85
87
  }
86
88
 
87
89
  .divider-vertical {
88
- background-color: transparent;
89
- border-right: none;
90
+ margin: 0;
91
+ border-left: 1px solid @grayDark;
92
+ border-right-width: 0;
90
93
  }
91
94
 
92
- .dropdown-menu::after {
93
- border-bottom: 6px solid @grayDark;
95
+ .search-query,
96
+ .search-query:focus,
97
+ .search-query.focused {
98
+ .border-radius(1px);
99
+ background-color: @grayDark;
100
+ line-height: normal;
101
+ color: @grayLight;
102
+ text-shadow: none;
103
+ .placeholder(@gray);
94
104
  }
95
105
 
96
106
  &-inverse {
97
107
 
98
- .navbar-inner {
99
- #gradient > .vertical-three-colors(darken(@grayDarker, 3%), darken(@grayDarker, 8%), 70%, darken(@grayDarker, 8%));
100
- }
101
-
102
- .nav li > a {
103
- background-image: none;
104
- background-color: transparent;
105
- }
106
-
107
- .nav li > a:hover,
108
- .nav li.active > a,
109
- .nav li.active > a:hover {
110
- #gradient > .directional(darken(@grayDarker, 10%), darken(@grayDarker, 5%), 280deg);
111
- }
112
108
  }
113
109
  }
114
110
 
@@ -116,155 +112,207 @@ hr {
116
112
 
117
113
  .navbar .nav-collapse {
118
114
 
119
- .nav li > a,
120
- .nav li > a:hover,
121
- .nav .active > a,
122
- .nav .active > a:hover {
123
- .box-shadow(none);
115
+ .nav li > a {
116
+ border: none;
124
117
  color: @grayLighter;
125
- border: 1px solid transparent;
126
- background-color: transparent;
127
- background-image: none;
118
+ font-weight: normal;
119
+ text-shadow: none;
120
+
121
+ &:hover {
122
+ border: none;
123
+ background-color: @blue;
124
+ }
128
125
  }
129
126
 
130
- .nav li > a:hover,
131
- .nav .active > a:hover {
132
- background-color: @grayDarker;
127
+ .nav .active > a {
128
+ border: none;
129
+ background-color: @blue;
130
+ }
131
+
132
+ .dropdown-menu a:hover {
133
+ background-color: @blue;
133
134
  }
134
135
 
135
136
  .navbar-form,
136
137
  .navbar-search {
137
- border-color: transparent;
138
- .box-shadow(none);
138
+ border-top: none;
139
+ border-bottom: none;
139
140
  }
140
141
 
141
142
  .nav-header {
142
- color: @grayLight;
143
+ color: rgba(128, 128, 128, 0.6);
143
144
  }
144
145
  }
145
146
 
146
147
  .navbar-inverse .nav-collapse {
147
148
 
148
- .nav li > a:hover,
149
- .nav .active > a:hover {
150
- background-color: @grayDarker !important;
149
+ .nav li > a:hover {
150
+ background-color: #111;
151
+ }
152
+
153
+ .nav .active > a {
154
+ background-color: #111;
155
+ }
156
+
157
+ .nav li.dropdown.open > .dropdown-toggle,
158
+ .nav li.dropdown.active > .dropdown-toggle,
159
+ .nav li.dropdown.open.active > .dropdown-toggle {
160
+ background-color: #111;
151
161
  }
152
162
  }
153
163
  }
154
164
 
155
- .nav-tabs {
156
- .active > a, .active a:hover {
157
- border-bottom: 1px solid darken(@grayDark, 5%);;
158
- }
165
+ .dropdown-menu {
166
+ .border-radius(0);
159
167
  }
160
168
 
169
+
161
170
  div.subnav {
162
171
 
163
172
  margin: 0 1px;
164
- //#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
165
- border: 1px solid transparent;
166
- .box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
167
-
168
- .nav > li > a {
169
- color: @grayLighter;
170
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
171
- border-right: 1px solid darken(@gray, 15%);
172
- border-left: 1px solid @gray;
173
+ background-color: @grayDarker;
174
+ background-image: none;
175
+ border: none;
176
+ border-bottom: 1px solid @grayDark;
173
177
 
174
- &:hover {
175
- color: @grayLighter;
176
- background-color: @grayDark;
177
- //#gradient > .directional(@grayDarker, @grayDark, 280deg);
178
- border-left: 1px solid transparent;
179
- border-right: 1px solid transparent;
180
- }
178
+ .nav > li > a,
179
+ .nav > li:first-child > a,
180
+ .nav > li:first-child > a:hover {
181
+ padding: 11px 12px;
182
+ border: none;
183
+ background-color: @grayDarker;
184
+ color: @grayLight;
181
185
  }
182
186
 
187
+ .nav > li > a:hover,
183
188
  .nav > li.active > a,
184
- .nav > li.active > a:hover {
185
- color: @grayLighter;
186
- background-color: @grayDark;
187
- #gradient > .directional(lighten(@grayDarker, 4%), lighten(@grayDark, 4%), 280deg);
188
- border-right: 1px solid darken(@gray, 15%);
189
- }
190
-
191
- .nav > li:first-child > a,
189
+ .nav > li.active > a:hover,
192
190
  .nav > li:first-child > a:hover {
193
- border-left: 1px solid transparent;
191
+ padding: 11px 12px;
192
+ background: transparent;
193
+ border: none;
194
+ border-bottom: 1px solid @blue;
195
+ color: @white;
194
196
  }
195
197
 
196
- .nav > li.active:last-child > a,
197
- .nav > li:last-child > a:hover {
198
- border-right: 1px solid darken(@gray, 15%);
198
+ .nav li.nav-header {
199
+ text-shadow: none;
199
200
  }
200
201
 
201
- .open .dropdown-toggle {
202
- border-right: 1px solid darken(@gray, 15%);
203
- border-left: 1px solid @gray;
204
- }
205
202
 
206
- &.subnav-fixed {
203
+
204
+
205
+ &-fixed {
207
206
  top: @navbarHeight;
208
207
  margin: 0;
209
- .box-shadow(none);
210
-
211
- .nav > li.active:first-child > a,
212
- .nav > li:first-child > a:hover {
213
- border-left: 1px solid darken(@gray, 15%);
214
- }
215
208
  }
216
209
  }
217
210
 
218
211
  // NAV
219
212
  // -----------------------------------------------------
220
213
 
221
- .nav {
214
+ .nav-tabs {
222
215
 
223
- .nav-header {
224
- text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
225
- }
216
+ border-bottom: 1px solid @grayDark;
226
217
 
227
218
  & > li > a {
228
- //#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
229
- .box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
230
- border: none;
231
- color: @grayLight;
232
- font-weight: bold;
233
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
219
+ .border-radius(0);
234
220
  }
235
221
 
222
+ li > a:hover,
236
223
  li.active > a,
237
224
  li.active > a:hover {
238
- background-color: transparent;
225
+ border-color: transparent;
226
+ background-color: @blue;
227
+ color: @white;
228
+ }
229
+
230
+ li.disabled > a {
231
+ color: @textColor;
232
+ }
233
+
234
+ .open .dropdown-toggle {
235
+ background-color: #060606;
236
+ border-color: transparent;
237
+ }
238
+ }
239
+
240
+ .nav-pills {
241
+
242
+ li > a:hover {
243
+ background-color: @blue;
239
244
  color: @white;
240
245
  }
241
246
 
242
- & > li.disabled > a,
243
- & > li.disabled > a:hover {
244
- color: @gray;
247
+ li.disabled > a {
248
+ color: @textColor;
249
+ }
250
+
251
+ .open .dropdown-toggle {
252
+ background-color: #060606;
253
+ }
254
+
255
+ .dropdown-menu li > a:hover {
256
+ border: none;
257
+ }
258
+ }
259
+
260
+ .nav-list {
261
+
262
+ li > a {
263
+ text-shadow: none;
245
264
  }
246
265
 
247
266
  li > a:hover {
267
+ background-color: @blue;
268
+ color: @white;
269
+ }
270
+
271
+ .nav-header {
272
+ text-shadow: none;
273
+ }
274
+
275
+ .divider {
248
276
  background-color: transparent;
249
- color: @grayLighter;
277
+ border-bottom: 1px solid @grayDark;
250
278
  }
279
+ }
280
+
281
+ .nav-stacked {
282
+
283
+ li > a {
284
+ border: 1px solid @grayDark !important;
285
+ }
286
+
287
+ li > a:hover,
288
+ li.active > a {
289
+ background-color: @blue;
290
+ color: @white;
291
+ }
292
+ }
251
293
 
294
+ .tabbable {
295
+ .nav-tabs,
296
+ .nav-tabs li.active > a {
297
+ border-color: @grayDark;
298
+ }
252
299
  }
253
300
 
254
301
  .breadcrumb {
255
- border: 1px solid transparent;
256
- #gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
257
- .box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
258
302
 
259
- a {
260
- color: @grayLighter;
261
- font-weight: bold;
262
- }
303
+ background-color: transparent;
304
+ background-image: none;
305
+ border-width: 0;
306
+ .box-shadow(none);
307
+ font-size: 14px;
263
308
 
264
309
  li {
265
- color: @grayLight;
266
- font-weight: bold;
267
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
310
+ text-shadow: none;
311
+ }
312
+
313
+ li > a {
314
+ color: @blue;
315
+ text-shadow: none;
268
316
  }
269
317
  }
270
318
 
@@ -274,43 +322,17 @@ div.subnav {
274
322
  .box-shadow(none);
275
323
  }
276
324
 
277
- ul > li > a,
278
- ul > li > span {
279
- border-left: 1px solid @gray;
280
- border-right: 1px solid darken(@gray, 15%);
281
- border-top: none;
282
- border-bottom: none;
283
- #gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
284
- .box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
285
- color: @grayLighter;
286
- font-weight: bold;
287
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
288
-
289
- &:hover {
290
- #gradient > .directional(@grayDarker, @grayDark, 280deg);
291
- border-left: 1px solid transparent;
292
- }
293
- }
294
-
325
+ ul > li > a:hover,
295
326
  ul > .active > a,
296
- ul > .active > a:hover,
297
- ul > .active > span,
298
- ul > .active > span:hover {
299
- color: @grayLighter;
300
- background-color: @grayDark;
301
- #gradient > .directional(lighten(@grayDarker, 4%), lighten(@grayDark, 4%), 280deg);
302
- border-left: 1px solid transparent;
327
+ ul > .active > span {
328
+ // color: @white;
303
329
  }
304
330
 
305
331
  ul > .disabled > a,
306
332
  ul > .disabled > a:hover,
307
333
  ul > .disabled > span,
308
334
  ul > .disabled > span:hover {
309
- border-left: 1px solid @gray;
310
- border-right: 1px solid darken(@gray, 15%);
311
- border-top: none;
312
- border-bottom: none;
313
- #gradient > .vertical-three-colors(@grayLight, @gray, 70%, @gray);
335
+ background-color: rgba(0, 0, 0, 0.2);
314
336
  }
315
337
  }
316
338
 
@@ -318,67 +340,108 @@ div.subnav {
318
340
 
319
341
  li > a,
320
342
  li > span {
321
-
322
- border: 1px solid transparent;
323
- .box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
324
- #gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
343
+ background-color: @bodyBackground;
344
+ border: none;
325
345
 
326
346
  &:hover {
327
- #gradient > .directional(@grayDarker, @grayDark, 280deg);
328
- border: 1px solid transparent;
347
+ background-color: @blue;
329
348
  }
330
349
  }
331
350
 
332
351
  .disabled a,
333
352
  .disabled a:hover {
334
- background-color: transparent;
335
- #gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
353
+ background-color: @bodyBackground;
336
354
  }
355
+
337
356
  }
338
357
 
339
358
  // BUTTONS
340
359
  // -----------------------------------------------------
341
360
 
342
361
  .btn {
343
- .buttonBackground(@gray, darken(@gray, 10%));
344
- .border-radius(3px);
345
- border: 1px solid @grayDarker;
362
+ padding: 5px 12px;
363
+ background-image: none;
364
+ .box-shadow(none);
365
+ border: none;
366
+ .border-radius(0);
367
+ text-shadow: none;
368
+
369
+ &.disabled {
370
+ box-shadow: inset 0 2px 4px rgba(0,0,0,.15),~" "0 1px 2px rgba(0,0,0,.05);
371
+ }
372
+ }
373
+
374
+ .btn-large {
375
+ padding: 22px 30px;
376
+ }
377
+
378
+ .btn-small {
379
+ padding: 2px 10px;
346
380
  }
347
381
 
348
- .btn, .btn:hover {
349
- color: @white;
350
- font-weight: bold;
351
- text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.3);
382
+ .btn-mini {
383
+ padding: 2px 6px;
384
+ }
385
+
386
+ .btn-group {
387
+
388
+ & > .btn:first-child,
389
+ & > .btn:last-child,
390
+ & > .dropdown-toggle {
391
+ .border-radius(0);
392
+ }
393
+
394
+ & > .btn + .dropdown-toggle {
395
+ .box-shadow(none);
396
+ }
352
397
  }
353
398
 
354
- .btn-primary {
355
- .buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
356
- color: @grayDark;
357
- text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
399
+
400
+ // FORMS
401
+ // -----------------------------------------------------
402
+
403
+ input, textarea, select {
404
+ border-width: 2px;
405
+ .border-radius(1px);
358
406
  }
359
407
 
360
- .btn-warning {
361
- .buttonBackground(lighten(@orange, 15%), @orange);
408
+ select, textarea,
409
+ input[type="text"], input[type="password"], input[type="datetime"],
410
+ input[type="datetime-local"], input[type="date"], input[type="month"],
411
+ input[type="time"], input[type="week"], input[type="number"],
412
+ input[type="email"], input[type="url"], input[type="search"],
413
+ input[type="tel"], input[type="color"], .uneditable-input {
414
+ color: @grayLight;
362
415
  }
363
416
 
364
- .btn-danger {
365
- .buttonBackground(@red, #bd362f);
417
+ input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], .uneditable-input {
418
+ border-color: #444;
366
419
  }
367
420
 
368
- .btn-success {
369
- .buttonBackground(@green, #51a351);
421
+ input:focus,
422
+ textarea:focus,
423
+ input.focused,
424
+ textarea.focused {
425
+ border-color: rgba(82,168,236,1);
426
+ outline: 0;
427
+ outline: thin dotted \9; /* IE6-9 */
370
428
  }
371
429
 
372
- .btn-info {
373
- .buttonBackground(@blue, #2f96b4);
430
+ input[type="file"]:focus,
431
+ input[type="radio"]:focus,
432
+ input[type="checkbox"]:focus,
433
+ select:focus {
434
+ .box-shadow(none); // override for file inputs
435
+ .tab-focus();
374
436
  }
375
437
 
376
- .btn-inverse {
377
- .buttonBackground(@gray, @grayDarker);
438
+ legend, label {
439
+ color: @textColor;
440
+ border-bottom: 0px solid #222;
378
441
  }
379
442
 
380
- .caret {
381
- border-top-color: @white;
443
+ .form-actions {
444
+ border-top: 1px solid #222;
382
445
  }
383
446
 
384
447
  // TABLES
@@ -386,170 +449,129 @@ div.subnav {
386
449
 
387
450
  .table {
388
451
 
452
+ .border-radius(1px);
453
+
389
454
  tbody tr.success td {
390
- background-color: @successText;
455
+ background-color: @green;
456
+ color: @white;
391
457
  }
392
458
 
393
459
  tbody tr.error td {
394
- background-color: @errorText;
460
+ background-color: @red;
461
+ color: @white;
395
462
  }
396
463
 
397
464
  tbody tr.info td {
398
- background-color: @infoText;
465
+ background-color: @blue;
466
+ color: @white;
399
467
  }
400
-
401
468
  }
402
469
 
403
-
404
- // FORMS
470
+ // ALERTS, LABELS, BADGES
405
471
  // -----------------------------------------------------
406
472
 
407
- label, input, button, select, textarea, legend {
408
- color: @textColor;
409
- }
410
-
411
- legend, label {
412
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
413
- }
414
-
415
- .input-prepend .add-on,
416
- .input-append .add-on {
417
- vertical-align: top;
418
- background-color: @gray;
419
- border-top: 1px solid @grayLight;
420
- border-left: 1px solid @grayLight;
421
- border-bottom: 1px solid @grayDark;
422
- border-right: 1px solid @grayDark;
423
- text-shadow: none;
473
+ .alert,
474
+ .alert .alert-heading,
475
+ .alert-success,
476
+ .alert-success .alert-heading,
477
+ .alert-danger,
478
+ .alert-error,
479
+ .alert-danger .alert-heading,
480
+ .alert-error .alert-heading,
481
+ .alert-info,
482
+ .alert-info .alert-heading {
483
+ color: @grayLighter;
484
+ text-shadow: none;
485
+ border: none;
486
+ }
487
+
488
+ .label {
489
+ color: @grayLighter;
424
490
  }
425
491
 
426
- .input-append .btn,
427
- .input-prepend .btn {
428
- margin-top: -1px;
429
- padding: 5px 14px;
492
+ .badge {
493
+ border-radius: 0;
494
+ font-weight: 200;
430
495
  }
431
496
 
432
- .uneditable-input,
433
- input[disabled],
434
- select[disabled],
435
- textarea[disabled],
436
- input[readonly],
437
- select[readonly],
438
- textarea[readonly] {
439
- color: @gray;
440
- background: @grayDarker;
441
- }
497
+ .label, .alert { background-color: darken(@gray, 20%); }
442
498
 
443
- .form-actions {
444
- border-top: none;
445
- }
499
+ .label:hover { background-color: darken(@gray, 30%); }
446
500
 
447
- // DROPDOWNS
448
- // -----------------------------------------------------
501
+ .label-important,
502
+ .alert-danger,
503
+ .alert-error { background-color: @red; }
449
504
 
450
- .dropdown-menu {
451
- .box-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
452
- }
505
+ .label-important:hover { background-color: darken(@red, 10%); }
453
506
 
454
- .dropdown.open .dropdown-toggle {
455
- background-color: @grayDark;
456
- color: @grayLighter;
457
- }
507
+ .label-warning { background-color: darken(@orange, 10%); }
458
508
 
459
- .dropdown-submenu > a::after {
460
- border-left-color: @white;
461
- }
509
+ .label-warning:hover { background-color: darken(@orange, 20%); }
462
510
 
463
- // ALERTS, LABELS, BADGES
464
- // -----------------------------------------------------
511
+ .label-success, .alert-success { background-color: darken(@green, 3%); }
465
512
 
466
- .label, .alert {
467
- color: rgba(255, 255, 255, 0.9);
468
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
469
- .box-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
470
- }
513
+ .label-success:hover { background-color: darken(@green, 13%); }
471
514
 
472
- .alert {
473
- background-color: @orange;
474
- border-color: @orange;
515
+ .label-info, .alert-info { background-color: darken(@blueDark, 10%); }
475
516
 
476
- .alert-heading {
477
- color: rgba(255, 255, 255, 0.9);
478
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4);
479
- }
480
- }
517
+ .label-info:hover { background-color: darken(@blueDark, 20%); }
481
518
 
482
- .alert-success {
483
- background-color: @successText;
484
- border-color: @successText;
485
- }
519
+ // MISC
520
+ // -----------------------------------------------------
486
521
 
487
- .alert-error {
488
- background-color: @errorText;
489
- border-color: @errorText;
522
+ a:hover {
523
+ text-decoration: none;
490
524
  }
491
525
 
492
- .alert-info {
493
- background-color: @infoText;
494
- border-color: @infoText;
526
+ .well, .hero-unit {
527
+ .border-radius(0px);
495
528
  }
496
529
 
497
- // MISC
498
- // -----------------------------------------------------
499
-
500
530
  .well, .hero-unit {
501
- .box-shadow(inset 1px 1px 1px rgba(0, 0, 0, 0.5));
531
+ border-top: solid 1px lighten(@grayDark, 5%);
532
+ .box-shadow(0 2px 4px rgba(0,0,0,.8));
502
533
  }
503
534
 
504
- .thumbnail,
505
- a.thumbnail:hover {
506
- border: 1px solid darken(@grayDarker, 5%);
535
+ .thumbnail {
536
+ border-color: @grayDark;
507
537
  }
508
538
 
509
539
  .progress {
510
- background-color: darken(@grayDarker, 3%);
511
- #gradient > .vertical(darken(@grayDarker, 3%), darken(@grayDarker, 3%));
512
- .box-shadow(inset 1px 1px 1px rgba(0, 0, 0, 0.5));
540
+ background-color: #060606;
541
+ background-image: none;
542
+ .border-radius(0);
513
543
  }
514
544
 
515
- .footer {
516
- border-top: 1px solid darken(@grayDarker, 5%);
545
+ .modal {
546
+ .border-radius(1px);
547
+ border-top: solid 1px lighten(@grayDark, 5%);
548
+ background-color: @grayDark;
549
+ }
517
550
 
518
- p {
519
- color: @textColor;
520
- }
551
+ .modal-header {
552
+ border-bottom: 1px solid @grayDark;
521
553
  }
522
554
 
523
- .modal {
555
+ .modal-footer {
556
+ background-color: @grayDark;
557
+ border-top: 1px solid @grayDark;
558
+ .border-radius(0 0 0px 0px);
559
+ .box-shadow(none);
560
+ }
524
561
 
525
- background-color: darken(@grayDark, 5%);
562
+ .popover {
563
+ .border-radius(0);
526
564
 
527
- &-header {
565
+ &-title {
528
566
  border-bottom: none;
567
+ color: @white;
529
568
  }
530
569
 
531
- &-body {
532
- border-bottom: 1px solid #1C1E22;
533
- }
570
+ }
534
571
 
535
- &-footer {
536
- border-top: none;
537
- background-color: @grayDarker;
538
- .box-shadow(none);
539
- }
572
+ .footer {
573
+ border-top: 1px solid @grayDark;
540
574
  }
541
575
 
542
576
  // MEDIA QUERIES
543
577
  // -----------------------------------------------------
544
-
545
- @media (max-width: 979px) {
546
- .navbar .brand {
547
- border-right: none;
548
- }
549
- }
550
-
551
- @media (max-width: 768px) {
552
- div.subnav .nav > li + li > a {
553
- border-top: 1px solid transparent;
554
- }
555
- }