_preview.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /* Preview */
  2. .preview-list {
  3. .preview-item {
  4. @include display-flex;
  5. @include flex-direction(row);
  6. @include align-items(flex-start);
  7. padding: .75rem 1.5rem;
  8. font-size: .875rem;
  9. &:last-child {
  10. border-bottom: 0;
  11. }
  12. &:hover {
  13. background: $dropdown-link-hover-bg;
  14. }
  15. .form-check {
  16. margin-top: 8px;
  17. margin-right: 1rem;
  18. }
  19. .preview-thumbnail {
  20. color: color(white);
  21. position: relative;
  22. img,
  23. .preview-icon {
  24. width: 36px;
  25. height: 36px;
  26. border-radius: 100%;
  27. }
  28. .preview-icon {
  29. padding: 6px;
  30. text-align: center;
  31. @include display-flex;
  32. @include align-items(center);
  33. @include justify-content(center);
  34. i {
  35. font-size: 1.125rem;
  36. margin: 0;
  37. .rtl & {
  38. @extend .ml-0;
  39. }
  40. }
  41. }
  42. .badge {
  43. border: 2px solid color(white);
  44. border-radius: 100%;
  45. bottom: 5px;
  46. display: block;
  47. height: 14px;
  48. left: -5px;
  49. padding: 0;
  50. position: absolute;
  51. width: 14px;
  52. &.badge-online {
  53. @extend .badge-success;
  54. }
  55. &.badge-offline {
  56. @extend .badge-info;
  57. }
  58. &.badge-busy {
  59. @extend .badge-warning;
  60. }
  61. }
  62. }
  63. .preview-item-content {
  64. line-height: 1;
  65. padding-left: 15px;
  66. &:first-child {
  67. padding-left: 0;
  68. }
  69. p {
  70. margin-bottom: 10px;
  71. .content-category {
  72. font-family: 'source-sans-pro-semibold', sans-serif;
  73. padding-right: 15px;
  74. border-right: 1px solid $border-color;
  75. @extend .text-muted;
  76. }
  77. }
  78. .rtl & {
  79. padding-left: 0;
  80. padding-right: 1rem;
  81. margin-right: 0;
  82. margin-left: auto;
  83. }
  84. }
  85. .preview-actions {
  86. @include display-flex;
  87. @include flex-direction(row);
  88. i {
  89. width: 29px;
  90. color: color(gray-lightest);
  91. height: 29px;
  92. border: 2px solid color(gray-lightest);
  93. border-radius: 100%;
  94. padding: 3px 6px;
  95. display: inline-block;
  96. &:first-child {
  97. margin-right: 10px;
  98. }
  99. }
  100. }
  101. }
  102. &.comment-preview {
  103. .preview-item {
  104. padding: .87rem 0;
  105. &:first-child {
  106. padding-top: 0;
  107. }
  108. p {
  109. line-height: 27px;
  110. }
  111. }
  112. }
  113. &.bordered {
  114. .preview-item {
  115. border-bottom: 1px solid $border-color;
  116. &:last-child {
  117. border-bottom: 0;
  118. }
  119. }
  120. }
  121. }