application.css.scss.erb 4.3 KB

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