application.css.scss.erb 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. // Dry Run Results Tabs
  80. .nav.agent-dry-run-tabs {
  81. margin-bottom: 20px;
  82. }
  83. // Navbar
  84. .nav > li {
  85. &.job-indicator, &#event-indicator {
  86. display: none;
  87. a {
  88. padding-right: 4px;
  89. padding-left: 4px;
  90. }
  91. }
  92. }
  93. .navbar-search > .spinner {
  94. position: absolute;
  95. top: -1px;
  96. right: 1px;
  97. }
  98. .navbar {
  99. .dropdown.dropdown-hover:hover .dropdown-menu {
  100. display: block;
  101. }
  102. }
  103. // Flash
  104. .flash {
  105. position: fixed;
  106. width: 210px;
  107. z-index: 99999;
  108. right: 20px;
  109. .alert {
  110. }
  111. }
  112. // Heroku
  113. .heroku-instructions {
  114. color: rgba(255, 255, 255, 0.9);
  115. background-color: rgba(132, 132, 196, 0.8);
  116. border: 3px solid rgba(132, 132, 196, 0.5);
  117. -webkit-border-radius: 4px;
  118. -moz-border-radius: 4px;
  119. border-radius: 4px;
  120. padding: 12px;
  121. margin-bottom: 10px;
  122. a {
  123. text-decoration: underline;
  124. }
  125. a:link {
  126. color: inherit;
  127. }
  128. a:hover, a:visited, a:active {
  129. color: #fff;
  130. }
  131. pre {
  132. background-color: #ffffff;
  133. color: #3F3F44;
  134. margin: 4px;
  135. }
  136. }
  137. // Logs
  138. #logs .action-icon {
  139. height: 16px;
  140. display: inline-block;
  141. vertical-align: inherit;
  142. cursor: pointer;
  143. &.refresh {
  144. margin: 0 10px;
  145. }
  146. }
  147. #show-tabs li a.recent-errors {
  148. font-weight: bold;
  149. }
  150. // Memory
  151. #memory .action-icon {
  152. display: inline-block;
  153. cursor: pointer;
  154. }
  155. // Credentials and Ace Editor
  156. #ace-credential-value {
  157. position: relative;
  158. width: 940px;
  159. height: 300px;
  160. }
  161. .ace-editor {
  162. position: relative;
  163. width: 550px;
  164. height: 300px;
  165. }
  166. // Disabled
  167. .agent-unavailable {
  168. opacity: 0.5;
  169. }
  170. // JSON Editor
  171. .live-json-editor {
  172. font-family: "Courier New", Courier, monospace;
  173. }
  174. .json-editor blockquote {
  175. font-size: 14px;
  176. }
  177. // Position tweeks
  178. .hover-help {
  179. top: 2px;
  180. }
  181. .popover {
  182. dd {
  183. margin-left: 1em;
  184. }
  185. }
  186. h2 .scenario, a span.label.scenario {
  187. position: relative;
  188. top: -2px;
  189. }
  190. // Bootstrappy color styles
  191. .color-danger {
  192. color: #d9534f;
  193. }
  194. .color-warning {
  195. color: #f0ad4e;
  196. }
  197. .color-success {
  198. color: #5cb85c;
  199. }
  200. .form-group {
  201. .sp-replacer {
  202. @extend .form-control;
  203. }
  204. .sp-preview {
  205. width: 100%;
  206. }
  207. .sp-dd {
  208. display: none;
  209. }
  210. }
  211. .confirm-agent .popover {
  212. width: 200px;
  213. }
  214. $service-colors: (
  215. twitter: #55acee,
  216. 37signals: #8fc857,
  217. github: #444444,
  218. tumblr: #2c4762,
  219. dropbox: #007EE5,
  220. wunderlist: #ED5F27,
  221. evernote: #00C85A
  222. );
  223. @mixin services {
  224. @each $service, $color in $service-colors {
  225. &.service-#{$service} {
  226. color: #fff;
  227. background-color: $color;
  228. }
  229. }
  230. }
  231. .btn-service {
  232. position: relative;
  233. padding-left: 40px;
  234. $border-color: rgba(0,0,0,0.2);
  235. border-color: $border-color;
  236. > i:first-child {
  237. position: absolute;
  238. top: 0;
  239. left: 0;
  240. bottom: 0;
  241. width: 32px;
  242. height: 32px;
  243. text-align: center;
  244. line-height: 32px;
  245. font-size: 24px;
  246. border-right: 1px solid $border-color;
  247. }
  248. @include services;
  249. }
  250. .label-service {
  251. @include services;
  252. }
  253. .select2-highlighted a {
  254. color: yellow;
  255. text-decoration: underline;
  256. }
  257. .glyphicon-flipped {
  258. -ms-transform: translateZ(0);
  259. -webkit-transform: translateZ(0);
  260. transform: translateZ(0);
  261. -ms-transform: scaleX(-1);
  262. -webkit-transform: scaleX(-1);
  263. transform: scaleX(-1);
  264. }