application.css.scss.erb 4.4 KB

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