application.scss.erb 5.0 KB

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