heartbeat.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. .token-tree {
  2. display: block;
  3. }
  4. .heartbeat-message {
  5. border: 1px solid #dfdfdf;
  6. padding: 16px;
  7. }
  8. .heartbeat-message img {
  9. display: block;
  10. padding: 4px;
  11. }
  12. .heartbeat-message img:first-of-type ~ img {
  13. display: inline-block;
  14. max-width: 25%;
  15. }
  16. .heartbeat-message img:last-of-type {
  17. max-width: 100%;
  18. }
  19. .heartbeat-comments {
  20. display: none;
  21. }
  22. .heartbeat-comments > div {
  23. margin-top: 4em;
  24. }
  25. .heartbeat-comments-visible {
  26. display: block!important;
  27. }
  28. /*Imgs displayed in colorbox*/
  29. .cboxPhoto {
  30. max-height: 854px;
  31. width: auto!important;
  32. height: auto!important;
  33. position: absolute;
  34. top:0;
  35. bottom: 0;
  36. left: 0;
  37. right: 0;
  38. margin: auto;
  39. }
  40. #colorbox {
  41. text-align: center!important;
  42. position: fixed!important;
  43. top: 0!important;
  44. left: 0!important;
  45. background: rgba(28, 28, 28, 0.75)!important;
  46. height: 100%!important;
  47. width: 100%!important;
  48. }
  49. #cboxContent,
  50. #cboxLoadedContent,
  51. #cboxWrapper {
  52. width: 100%!important;
  53. height: 100%!important;
  54. }
  55. #cboxNext {
  56. position: absolute;
  57. right: 5px;
  58. top: 45%;
  59. color: transparent;
  60. background: rgba(45, 45, 45, 0.5) url(/modules/heartbeat/images/forward.png) no-repeat 10px 10px;
  61. background-size: 30px;
  62. width: 10px;
  63. height: 50px;
  64. }
  65. #cboxPrevious {
  66. position: absolute;
  67. left: 5px;
  68. top: 45%;
  69. color: transparent;
  70. background: rgba(45, 45, 45, 0.5) url(/modules/heartbeat/images/backward.png) no-repeat 10px 10px;
  71. background-size: 30px;
  72. width: 10px;
  73. height: 50px;
  74. }
  75. #cboxClose {
  76. position: absolute;
  77. top: 16%;
  78. right: 10%;
  79. width: 65px;
  80. height: 67px;
  81. background: url(/modules/heartbeat/images/cross-circular-button-outline.png) no-repeat center center;
  82. color: transparent;
  83. }
  84. #cboxPrev:hover, #cboxNext:hover, #cboxClose:hover {
  85. opacity: 0.5;
  86. }
  87. /*Main Feed Form*/
  88. #heartbeat-feed-form input[type="radio"] {
  89. -webkit-appearance: none;
  90. display: inline-block;
  91. }
  92. #heartbeat-feed-form .form-type-radio {
  93. display: inline-block;
  94. position: relative;
  95. border-right: 1px solid white;
  96. }
  97. #heartbeat-feed-form input.form-radio {
  98. background: #12ff00;
  99. min-width: 100%;
  100. margin-bottom:0;
  101. padding: 0em 22em 2.5em 0em;
  102. font-weight: 700;
  103. display: inline-block;
  104. }
  105. #heartbeat-feed-form input.form-radio:hover {
  106. background: #1E6100;
  107. }
  108. #heartbeat-feed-form input[type="radio"]:checked {
  109. background: #003b00;
  110. }
  111. #heartbeat-feed-form label {
  112. font-size:1rem;
  113. font-weight: 700;
  114. color: white;
  115. position:absolute;
  116. /*top:50%;;*/
  117. /*left:50%;*/
  118. display:inline-block;
  119. width:auto;
  120. transform:translate(5%, -150%);
  121. }
  122. #heartbeat-feed-form .form-item-feedtabs {
  123. display: inline-block;
  124. }
  125. #heartbeat-feed-form .form-item-feedsearch,
  126. #heartbeat-feed-form #edit-submit {
  127. display: none;
  128. }
  129. /*Heartbeat feed re-render block
  130. Temporarily hiding all irrelevant content */
  131. #block-heartbeatblock a.visually-hidden,
  132. #block-heartbeatblock #toolbar-administration,
  133. #block-heartbeatblock header,
  134. #block-heartbeatblock footer,
  135. #block-heartbeatblock .highlighted,
  136. #block-heartbeatblock .region-breadcrumb,
  137. #block-heartbeatblock #sidebar-first,
  138. #block-heartbeatblock .block-page-title-block,
  139. #block-heartbeatblock .contextual-region { display: none}
  140. #block-heartbeatblock #content {
  141. margin-left: 0!important;
  142. width: 100%!important;
  143. }
  144. #heartbeat-loader {
  145. display: none;
  146. position: fixed;
  147. bottom: 48px;
  148. left: 62.5%;
  149. width: 96px;
  150. height: 96px;
  151. background: url('../images/drupal-loader.gif') no-repeat;
  152. background-size: contain;
  153. }
  154. /*heartbeat-stream section.section {*/
  155. /*padding: 0;*/
  156. /*}*/
  157. .heartbeat-youtube {
  158. display: block;
  159. }
  160. /*@media (min-width: 532px)*/
  161. /*and (max-width: 767px) {*/
  162. /*}*/
  163. /*@media (min-width: 300px) and (max-width: 420px)*/
  164. /*and (min-height: 640px) and (max-height: 768px) {*/
  165. /*}*/
  166. /*@media (min-width: 532px) and (max-height: 370px) and (max-width: 767px) {*/
  167. /*}*/
  168. /*@media all and (min-width: 768px) and (max-width: 960px) {*/
  169. /*}*/
  170. /*@media (min-height: 320px) and (max-height: 420px) and (max-width: 768px) {*/
  171. /*}*/
  172. /*@media (min-height: 420px) and (max-width: 768px) {*/
  173. /*}*/
  174. /*@media (min-width: 960px) {*/
  175. /*}*/
  176. /*@media all and (max-width: 767px) {*/
  177. /*}*/
  178. /*@media all and (min-width: 300px) {*/
  179. /*}*/
  180. /*TODO
  181. //add responsiveness for colorbox on mobile using something like the following:
  182. max-width: 400px;
  183. height: auto!important;
  184. */