application.css.scss.erb 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. /*
  2. * This is a manifest file that'll be compiled into application.css, which will include all the files
  3. * listed below.
  4. *
  5. * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
  6. * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
  7. *
  8. * You're free to add application-wide styles to this file and they'll appear at the top of the
  9. * compiled file, but it's generally better to create a new file per style scope.
  10. *
  11. *= require select2
  12. *= require select2-bootstrap
  13. *= require jquery.json-editor
  14. *= require rickshaw
  15. *= require spectrum
  16. *= require_tree .
  17. *= require_self
  18. */
  19. @import "bootstrap";
  20. @import "font-awesome-sprockets";
  21. @import "font-awesome";
  22. body { padding-top: 60px; }
  23. #main {
  24. margin-bottom: 100px;
  25. }
  26. .well.description {
  27. h1 { font-size: 30px; }
  28. h2 { font-size: 26px; }
  29. h3 { font-size: 22px; }
  30. }
  31. /* Rails scaffold style compatibility */
  32. #error_explanation {
  33. color: #f00;
  34. ul {
  35. list-style: none;
  36. margin: 0 0 18px 0;
  37. }
  38. }
  39. .field_with_errors {
  40. @extend .has-error;
  41. }
  42. .modal-body pre { white-space: pre-wrap; }
  43. .select2 {
  44. float: none !important;
  45. margin-left: 0 !important;
  46. }
  47. img.odin {
  48. position: relative;
  49. top: -32px;
  50. }
  51. .link-region .cannot-receive-events,
  52. .schedule-region .cannot-be-scheduled {
  53. display: none;
  54. }
  55. .controller-region[data-has-controllers=false] {
  56. display: none;
  57. }
  58. .spinner {
  59. display: none;
  60. vertical-align: bottom;
  61. }
  62. .hidden {
  63. display: none;
  64. }
  65. #show-tabs {
  66. margin-top: 10px;
  67. height: 400px;
  68. }
  69. .digraph {
  70. margin-top: 20px;
  71. }
  72. .show-view {
  73. overflow: hidden;
  74. }
  75. span.not-applicable:after {
  76. color: #bbbbbb;
  77. content: "n/a";
  78. }
  79. // Navbar
  80. .nav > li {
  81. &.job-indicator, &#event-indicator {
  82. display: none;
  83. a {
  84. padding-right: 4px;
  85. padding-left: 4px;
  86. }
  87. }
  88. }
  89. .navbar-search > .spinner {
  90. position: absolute;
  91. top: -1px;
  92. right: 1px;
  93. }
  94. .navbar {
  95. .dropdown.dropdown-hover:hover .dropdown-menu {
  96. display: block;
  97. }
  98. }
  99. // Flash
  100. .flash {
  101. position: fixed;
  102. width: 210px;
  103. z-index: 99999;
  104. right: 20px;
  105. .alert {
  106. }
  107. }
  108. // Heroku
  109. .heroku-instructions {
  110. color: rgba(255, 255, 255, 0.9);
  111. background-color: rgba(132, 132, 196, 0.8);
  112. border: 3px solid rgba(132, 132, 196, 0.5);
  113. -webkit-border-radius: 4px;
  114. -moz-border-radius: 4px;
  115. border-radius: 4px;
  116. padding: 12px;
  117. margin-bottom: 10px;
  118. a {
  119. text-decoration: underline;
  120. }
  121. a:link {
  122. color: inherit;
  123. }
  124. a:hover, a:visited, a:active {
  125. color: #fff;
  126. }
  127. pre {
  128. background-color: #ffffff;
  129. color: #3F3F44;
  130. margin: 4px;
  131. }
  132. }
  133. // Logs
  134. #logs .action-icon {
  135. height: 16px;
  136. display: inline-block;
  137. vertical-align: inherit;
  138. cursor: pointer;
  139. &.refresh {
  140. margin: 0 10px;
  141. }
  142. }
  143. #show-tabs li a.recent-errors {
  144. font-weight: bold;
  145. }
  146. // Memory
  147. #memory .action-icon {
  148. display: inline-block;
  149. cursor: pointer;
  150. }
  151. // Credentials and Ace Editor
  152. #ace-credential-value {
  153. position: relative;
  154. width: 940px;
  155. height: 300px;
  156. }
  157. .ace-editor {
  158. position: relative;
  159. width: 550px;
  160. height: 300px;
  161. }
  162. // Disabled
  163. .agent-unavailable {
  164. opacity: 0.5;
  165. }
  166. // JSON Editor
  167. .live-json-editor {
  168. font-family: "Courier New", Courier, monospace;
  169. }
  170. .json-editor blockquote {
  171. font-size: 14px;
  172. }
  173. // Position tweeks
  174. .hover-help {
  175. top: 2px;
  176. }
  177. .popover {
  178. dd {
  179. margin-left: 1em;
  180. }
  181. }
  182. h2 .scenario, a span.label.scenario {
  183. position: relative;
  184. top: -2px;
  185. }
  186. // Bootstrappy color styles
  187. .color-danger {
  188. color: #d9534f;
  189. }
  190. .color-warning {
  191. color: #f0ad4e;
  192. }
  193. .color-success {
  194. color: #5cb85c;
  195. }
  196. .form-group {
  197. .sp-replacer {
  198. @extend .form-control;
  199. }
  200. .sp-preview {
  201. width: 100%;
  202. }
  203. .sp-dd {
  204. display: none;
  205. }
  206. }
  207. .confirm-agent .popover {
  208. width: 200px;
  209. }
  210. $services: twitter 37signals github tumblr dropbox wunderlist;
  211. $service-colors: #55acee #8fc857 #444444 #2c4762 #007EE5 #ED5F27;
  212. @mixin services {
  213. @each $service in $services {
  214. $i: index($services, $service);
  215. $service-color: nth($service-colors, $i);
  216. &.service-#{$service} {
  217. color: #fff;
  218. background-color: $service-color;
  219. }
  220. }
  221. }
  222. .btn-service {
  223. position: relative;
  224. padding-left: 40px;
  225. $border-color: rgba(0,0,0,0.2);
  226. border-color: $border-color;
  227. > i:first-child {
  228. position: absolute;
  229. top: 0;
  230. left: 0;
  231. bottom: 0;
  232. width: 32px;
  233. height: 32px;
  234. text-align: center;
  235. line-height: 32px;
  236. font-size: 24px;
  237. border-right: 1px solid $border-color;
  238. }
  239. @include services;
  240. }
  241. .label-service {
  242. @include services;
  243. }
  244. .select2-highlighted a {
  245. color: yellow;
  246. text-decoration: underline;
  247. }