vens.css.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. // Place all the styles related to the VENs controller here.
  2. // They will automatically be included in application.css.
  3. // You can use Sass (SCSS) here: http://sass-lang.com/
  4. /* * * * * * * * * * * * * * * * * * * * * * */
  5. /* * Styles for "Interval Data" view can be found under `reports.css.scss`
  6. /* * * * * * * * * * * * * * * * * * * * * * */
  7. $ven_search_form_width: 280px;
  8. .status-indicator-block {
  9. display: inline-block;
  10. padding: 4px 12px;
  11. font-weight: bold;
  12. border: 1px solid;
  13. background-color: #fff;
  14. border-color: darken(#fff, 20);
  15. &.online {
  16. background-color: #abE188;
  17. border-color: darken(#abE188, 20);
  18. }
  19. &.offline {
  20. background-color: #ccc;
  21. border-color: darken(#ccc, 20);
  22. }
  23. }
  24. .form-wrapper {
  25. // Set width to same width as absolutely positioned `form` element it contains,
  26. // in order to keep next elements in block order (`.btn`, etc.) rendering as though
  27. // `form` was a normally positioned inline-block. Height is arbitrary.
  28. width: $ven_search_form_width;
  29. height: 10px;
  30. background-color: #f60;
  31. form.search {
  32. width: $ven_search_form_width;
  33. }
  34. }
  35. /* * * * * * * * * * * * * * * * */
  36. /* General "card" styles can be found in `cards.css.scss` */
  37. /* * * * * * * * * * * * * * * * */
  38. .ven-cards {
  39. .card {
  40. width: 610px;
  41. }
  42. .card-column {
  43. min-height: 100px;
  44. &.col-1 {
  45. width: 210px;
  46. overflow-x: hidden;
  47. }
  48. &.col-2 {
  49. width: 290px;
  50. overflow-x: hidden;
  51. }
  52. &.col-3 {
  53. // Inherited width accommodates buttons (which are the same size in
  54. // all cards), so there's no need to define the width of this column
  55. }
  56. }
  57. .card-column {
  58. & * {
  59. // Styles necessary to achieve ellipsis for long strings overrunning their parent's width
  60. // This style needs to apply to all children (direct AND their descendents) of `.card-column`
  61. white-space: nowrap;
  62. overflow: hidden;
  63. text-overflow: ellipsis;
  64. }
  65. }
  66. .customer-name {
  67. height: 20px; // Maintain box height, even without contents (`:customer_name` is not a required field)
  68. }
  69. .customer-address {
  70. height: 60px; // Maintain box height, given different formats of address (including/excluding `:address_2` line)
  71. margin-left: 12px;
  72. }
  73. .connection-status {
  74. display: block;
  75. margin: 8px 0px 0px 0px;
  76. }
  77. .string-label-value {
  78. margin-bottom: 4px;
  79. &:last-child {
  80. margin-bottom: 0px;
  81. }
  82. }
  83. }
  84. /* * * * * * * * * * * * * * * * */
  85. /* General "card" styles can be found in `cards.css.scss` */
  86. /* * * * * * * * * * * * * * * * */
  87. .ven-event-cards {
  88. .card {
  89. width: 612px;
  90. }
  91. .card-column {
  92. min-height: 100px;
  93. &.col-1 {
  94. width: 200px;
  95. }
  96. &.col-2 {
  97. width: 305px;
  98. }
  99. &.col-3 {
  100. // Explicitly defining width of this column is not necessary for consistency of overall card width,
  101. // as it contains only buttons of a standard size (common across all cards in this list)
  102. }
  103. }
  104. .market-context {
  105. margin: 0px;
  106. .color-box {
  107. display: inline-block;
  108. vertical-align: center;
  109. width: 24px;
  110. height: 24px;
  111. background-color: #f60;
  112. }
  113. span {
  114. display: inline-block;
  115. margin-top: 3px;
  116. vertical-align: top;
  117. font-size: 1em;
  118. font-weight: bold;
  119. }
  120. }
  121. .status {
  122. margin: 8px 0px 12px 0px;
  123. padding: 4px 12px;
  124. font-weight: bold;
  125. border: 1px solid;
  126. background-color: #fff;
  127. border-color: darken(#fff, 20);
  128. &.none {
  129. background-color: $status-color-none;
  130. border-color: darken($status-color-none, 20);
  131. }
  132. &.far {
  133. background-color: $status-color-far;
  134. border-color: darken($status-color-far, 20);
  135. }
  136. &.near {
  137. background-color: $status-color-near;
  138. border-color: darken($status-color-near, 20);
  139. }
  140. &.active {
  141. background-color: $status-color-active;
  142. border-color: darken($status-color-active, 20);
  143. }
  144. &.completed {
  145. background-color: $status-color-completed;
  146. border-color: darken($status-color-completed, 20);
  147. }
  148. &.cancelled {
  149. background-color: $status-color-cancelled;
  150. border-color: darken($status-color-cancelled, 20);
  151. }
  152. span {
  153. display: inline-block;
  154. vertical-align: top;
  155. margin: 2px 0px 0px 0px;
  156. font-size: 1em;
  157. }
  158. }
  159. .event-id {
  160. }
  161. /* * * * * * * * * * * * * * * * */
  162. .event-times {
  163. div {
  164. font-size: 1em;
  165. }
  166. h4 {
  167. display: inline;
  168. }
  169. }
  170. .event-ven-data {
  171. width: 100%;
  172. margin-top: 6px;
  173. padding-top: 12px;
  174. border-top: 1px solid #ddd;
  175. .icon {
  176. display: inline-block;
  177. vertical-align: top;
  178. width: 36px;
  179. height: 36px;
  180. margin: 0px 6px 0px 0px;
  181. background-color: #000;
  182. }
  183. .ven-data {
  184. display: inline-block;
  185. vertical-align: top;
  186. .data-group {
  187. display: inline-block;
  188. vertical-align: top;
  189. }
  190. span {
  191. display: block;
  192. margin-right: 9px;
  193. }
  194. }
  195. }
  196. .comments {
  197. display: block;
  198. width: 100%;
  199. border-top: 1px solid #ddd;
  200. margin: 9px 0px 0px 0px;
  201. padding: 6px 0px 0px 0px;
  202. }
  203. }
  204. fieldset.ven-provision, fieldset.ven-interval-data {
  205. .fieldset-heading {
  206. .connection-status {
  207. margin-left: 48px;
  208. .status-indicator-block {
  209. margin-right: 6px;
  210. }
  211. }
  212. }
  213. .label-icon {
  214. width: 40px;
  215. height: 40px;
  216. padding: 6px;
  217. text-align: center;
  218. font-size: 1.25em;
  219. line-height: 1.25em;
  220. border: 3px solid #fff;
  221. border-radius: 50%;
  222. color: #fff;
  223. background-color: $brand-warning;
  224. box-shadow: 0px 1px 2px rgba(0, 0, 0, .5);
  225. }
  226. .form-group {
  227. position: relative;
  228. margin: 0px 0px 18px 12px;
  229. padding-left: 20px; // Padded to allow space for `.label-icon`
  230. .label-icon {
  231. position: absolute;
  232. top: 8px;
  233. left: 0px;
  234. }
  235. }
  236. .ven-client-reference {
  237. display: inline-block;
  238. margin: 12px;
  239. padding: 12px;
  240. background-color: #fff;
  241. border: 1px solid #ddd;
  242. h4 {
  243. margin: 0px 0px 12px 0px;
  244. }
  245. .image-wrapper {
  246. position: relative;
  247. .label-icon {
  248. position: absolute;
  249. width: 24px;
  250. height: 24px;
  251. font-size: .75em;
  252. line-height: .75em;
  253. }
  254. }
  255. }
  256. }
  257. .vens_table th.vens_header_name
  258. {
  259. width: 10em;
  260. }
  261. .vens_table th.vens_header_view_registration_id
  262. {
  263. width: 12em;
  264. }
  265. .vens_table th.vens_header_account_id
  266. {
  267. width: 6em;
  268. }
  269. .vens_table th.vens_header_status
  270. {
  271. width: 4em;
  272. }
  273. .vens_table th.vens_header_edit
  274. {
  275. width: 5em;
  276. }
  277. .vens_table th.vens_header_destroy
  278. {
  279. width: 4em;
  280. }
  281. .vens_header_created_date_time
  282. {
  283. width: 15em;
  284. }
  285. .vens_header_report_name_id
  286. {
  287. width: 17em;
  288. }