event.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. //
  2. // Posts List Event
  3. // --------------------------------------------------
  4. // Event style
  5. .posts-list .event {
  6. margin-bottom: @line-height-computed;
  7. color: @text-muted;
  8. .media {
  9. margin-top: @line-height-computed / 4;
  10. }
  11. }
  12. // Event label
  13. .posts-list .event-label {
  14. .label-unread {
  15. background-color: @brand-success;
  16. color: #fff;
  17. }
  18. }
  19. // Event icon
  20. .posts-list .event .text-right {
  21. padding-right: 0px;
  22. text-align: right;
  23. .material-icon {
  24. margin-right: -12px;
  25. height: @event-icon-size;
  26. width: @event-icon-size;
  27. font-size: @event-icon-size;
  28. line-height: @event-icon-size;
  29. text-align: center;
  30. }
  31. }
  32. // Align event content with post's content
  33. .posts-list .event .text-left {
  34. padding-left: 24px;
  35. }
  36. // Event first and second rows
  37. .posts-list .event .event-message {
  38. margin-bottom: @line-height-computed / 4;
  39. font-size: @font-size-large;
  40. }
  41. .posts-list .event .event-info {
  42. margin: 0px;
  43. font-size: @font-size-small;
  44. li {
  45. margin-right: @padding-base-horizontal;
  46. &:last-child {
  47. margin-right: 0px;
  48. }
  49. }
  50. }
  51. // Event controls
  52. .posts-list .event .event-controls {
  53. .btn-link {
  54. border: 0px;
  55. margin: 0px;
  56. margin-right: @padding-base-horizontal;
  57. padding: 0px;
  58. font-size: @font-size-small;
  59. &:last-child {
  60. margin-right: 0px;
  61. }
  62. }
  63. }
  64. // Mobile tweaks
  65. @media screen and (max-width: @screen-xs-max) {
  66. .posts-list .event .text-right {
  67. width: @event-icon-size;
  68. text-align: right;
  69. }
  70. .posts-list .event .text-left:first-child {
  71. padding-left: 0px;
  72. }
  73. .posts-list .event .event-info {
  74. margin-top: @line-height-computed / 4;
  75. }
  76. .posts-list .event .event-controls {
  77. clear: both;
  78. margin-top: @line-height-computed / 4;
  79. .btn-link {
  80. margin-right: @line-height-computed;
  81. font-size: @font-size-base;
  82. &:last-child {
  83. margin-right: 0px;
  84. }
  85. }
  86. }
  87. }