application.css.scss.erb 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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
  147. #ace-credential-value {
  148. position: relative;
  149. width: 940px;
  150. height: 400px;
  151. }
  152. // Disabled
  153. .agent-unavailable {
  154. opacity: 0.5;
  155. }
  156. // JSON Editor
  157. .live-json-editor {
  158. font-family: "Courier New", Courier, monospace;
  159. }
  160. .json-editor blockquote {
  161. font-size: 14px;
  162. }
  163. // Position tweeks
  164. .hover-help {
  165. top: 2px;
  166. }
  167. .popover {
  168. dd {
  169. margin-left: 1em;
  170. }
  171. }
  172. h2 .scenario, a span.label.scenario {
  173. position: relative;
  174. top: -2px;
  175. }
  176. // Bootstrappy color styles
  177. .color-danger {
  178. color: #d9534f;
  179. }
  180. .color-warning {
  181. color: #f0ad4e;
  182. }
  183. .color-success {
  184. color: #5cb85c;
  185. }
  186. .form-group {
  187. .sp-replacer {
  188. @extend .form-control;
  189. }
  190. .sp-preview {
  191. width: 100%;
  192. }
  193. .sp-dd {
  194. display: none;
  195. }
  196. }
  197. .confirm-agent .popover {
  198. width: 200px;
  199. }
  200. $services: twitter 37signals github tumblr dropbox;
  201. $service-colors: #55acee #8fc857 #444444 #2c4762 #007EE5;
  202. @mixin services {
  203. @each $service in $services {
  204. $i: index($services, $service);
  205. $service-color: nth($service-colors, $i);
  206. &.service-#{$service} {
  207. color: #fff;
  208. background-color: $service-color;
  209. }
  210. }
  211. }
  212. .btn-service {
  213. position: relative;
  214. padding-left: 40px;
  215. $border-color: rgba(0,0,0,0.2);
  216. border-color: $border-color;
  217. > i:first-child {
  218. position: absolute;
  219. top: 0;
  220. left: 0;
  221. bottom: 0;
  222. width: 32px;
  223. height: 32px;
  224. text-align: center;
  225. line-height: 32px;
  226. font-size: 24px;
  227. border-right: 1px solid $border-color;
  228. }
  229. @include services;
  230. }
  231. .label-service {
  232. @include services;
  233. }
  234. // Font Awesome Spinner
  235. .fa-spin-custom {
  236. @include animation(spin 1000ms infinite linear);
  237. }
  238. @mixin keyframes($name)
  239. {
  240. @-webkit-keyframes $name {
  241. @content;
  242. }
  243. @keyframes $name {
  244. @content;
  245. }
  246. }
  247. @include keyframes(spin) {
  248. 0% {
  249. @include rotate(0deg);
  250. }
  251. 100% {
  252. @include rotate(359deg);
  253. }
  254. }