You are here

heartbeat.css in Heartbeat 8

Same filename and directory in other branches
  1. 7 css/heartbeat.css
.token-tree {
  display: block;
}


.heartbeat-message {
  border: 1px solid #dfdfdf;
  padding: 16px;
}

.heartbeat-message img {
  display: block;
  padding: 4px;
}


.heartbeat-message img:first-of-type ~ img {
  display: inline-block;
  max-width: 25%;
}

.heartbeat-message img:last-of-type {
  max-width: 100%;
}

.heartbeat-comments {
  display: none;
}

.heartbeat-comments > div {
  margin-top: 4em;
}

.heartbeat-comments-visible {
  display: block!important;
}

/*Imgs displayed in colorbox*/

.cboxPhoto {
  max-height: 854px;
  width: auto!important;
  height: auto!important;
  position: absolute;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

#colorbox {
  text-align: center!important;
  position: fixed!important;
  top: 0!important;
  left: 0!important;
  background: rgba(28, 28, 28, 0.75)!important;
  height: 100%!important;
  width: 100%!important;
}

#cboxContent,
#cboxLoadedContent,
#cboxWrapper {
  width: 100%!important;
  height: 100%!important;
}

#cboxNext {
  position: absolute;
  right: 5px;
  top: 45%;
  color: transparent;
  background: rgba(45, 45, 45, 0.5) url(/modules/heartbeat/images/forward.png) no-repeat 10px 10px;
  background-size: 30px;
  width: 10px;
  height: 50px;
}

#cboxPrevious {
  position: absolute;
  left: 5px;
  top: 45%;
  color: transparent;
  background: rgba(45, 45, 45, 0.5) url(/modules/heartbeat/images/backward.png) no-repeat 10px 10px;
  background-size: 30px;
  width: 10px;
  height: 50px;
}

#cboxClose {
  position: absolute;
  top: 16%;
  right: 10%;
  width: 65px;
  height: 67px;
  background: url(/modules/heartbeat/images/cross-circular-button-outline.png) no-repeat center center;
  color: transparent;
}

#cboxPrev:hover, #cboxNext:hover, #cboxClose:hover {
  opacity: 0.5;
}

/*Main Feed Form*/
#heartbeat-feed-form input[type="radio"] {
    -webkit-appearance: none;
    display: inline-block;
}

#heartbeat-feed-form .form-type-radio {
    display: inline-block;
    position: relative;
    border-right: 1px solid white;
}
#heartbeat-feed-form input.form-radio {
    background: #12ff00;
    min-width: 100%;
    margin-bottom:0;
    padding: 0em 22em 2.5em 0em;
    font-weight: 700;
    display: inline-block;
}

#heartbeat-feed-form input.form-radio:hover {
   background: #1E6100;
 }


#heartbeat-feed-form input[type="radio"]:checked {
   background: #003b00;
 }

#heartbeat-feed-form label {
    font-size:1rem;
    font-weight: 700;
    color: white;
    position:absolute;
    /*top:50%;;*/
    /*left:50%;*/
    display:inline-block;
    width:auto;
    transform:translate(5%, -150%);
}

#heartbeat-feed-form .form-item-feedtabs {
    display: inline-block;
}

#heartbeat-feed-form .form-item-feedsearch,
#heartbeat-feed-form #edit-submit {
  display: none;
}

/*Heartbeat feed re-render block
Temporarily hiding all irrelevant content */

#block-heartbeatblock a.visually-hidden,
#block-heartbeatblock #toolbar-administration,
#block-heartbeatblock header,
#block-heartbeatblock footer,
#block-heartbeatblock .highlighted,
#block-heartbeatblock .region-breadcrumb,
#block-heartbeatblock #sidebar-first,
#block-heartbeatblock .block-page-title-block,
#block-heartbeatblock .contextual-region { display: none}


#block-heartbeatblock #content {
  margin-left: 0!important;
  width: 100%!important;
}


#heartbeat-loader {
  display: none;
  position: fixed;
  bottom: 48px;
  left: 62.5%;
  width: 96px;
  height: 96px;
  background: url('../images/drupal-loader.gif') no-repeat;
  background-size: contain;
}


/*heartbeat-stream section.section {*/
  /*padding: 0;*/
/*}*/

.heartbeat-youtube {
  display: block;
}

/*@media (min-width: 532px)*/
/*and (max-width: 767px) {*/
/*}*/

/*@media (min-width: 300px) and (max-width: 420px)*/
/*and (min-height: 640px) and (max-height: 768px) {*/

/*}*/

/*@media (min-width: 532px) and (max-height: 370px) and (max-width: 767px) {*/
/*}*/

/*@media all and (min-width: 768px) and (max-width: 960px) {*/
/*}*/

/*@media (min-height: 320px) and (max-height: 420px) and (max-width: 768px) {*/

/*}*/

/*@media (min-height: 420px) and (max-width: 768px) {*/
/*}*/

/*@media (min-width: 960px) {*/
/*}*/

/*@media all and (max-width: 767px) {*/

/*}*/

/*@media all and (min-width: 300px) {*/
/*}*/



/*TODO

  //add responsiveness for colorbox on mobile using something like the following:

    max-width: 400px;
height: auto!important;
*/

File

css/heartbeat.css
View source
  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. */