ThreadPostPlaceholder.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div
  3. class='post_placeholder'
  4. >
  5. <div class='post_placeholder__meta_data'>
  6. <div class='post_placeholder__avatar_icon'></div>
  7. <div class='post_placeholder__bar post_placeholder__bar--thin post_placeholder__bar--33'></div>
  8. </div>
  9. <div class='post_placeholder__content'>
  10. <div class='post_placeholder__bar post_placeholder__bar--58'></div>
  11. <div class='post_placeholder__bar post_placeholder__bar--66'></div>
  12. <div class='post_placeholder__bar post_placeholder__bar--50'></div>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. export default { name: 'ThreadPostPlaceholder' }
  18. </script>
  19. <style lang='scss' scoped>
  20. @import '../assets/scss/variables.scss';
  21. .post_placeholder {
  22. position: relative;
  23. border-bottom: thin solid $color__gray--primary;
  24. border-radius: 0.25rem;
  25. transition: background-color 0.5s;
  26. margin: 0.5rem 0;
  27. @at-root #{&}--last {
  28. padding-bottom: 0.5rem;
  29. border-bottom: thin solid $color__gray--primary;
  30. }
  31. @at-root #{&}__meta_data {
  32. display: flex;
  33. padding-top: 0.75rem;
  34. position: relative;
  35. margin-left: 4rem;
  36. }
  37. @at-root #{&}__avatar_icon {
  38. position: absolute;
  39. left: -4rem;
  40. height: 3rem;
  41. width: 3rem;
  42. border-radius: 100%;
  43. background-color: $color__gray--primary;
  44. @include flash;
  45. }
  46. @at-root #{&}__bar {
  47. background-color: $color__gray--primary;
  48. height: 1.5rem;
  49. width: 75%;
  50. margin-bottom: 0.5rem;
  51. @include flash;
  52. @at-root #{&}--thin {
  53. height: 1rem;
  54. }
  55. @at-root #{&}--33 { width: 33%; }
  56. @at-root #{&}--58 { width: 58%; }
  57. @at-root #{&}--66 { width: 66%; }
  58. @at-root #{&}--50 { width: 50%; }
  59. }
  60. @at-root #{&}__content {
  61. padding: 0.5rem 0 0.5rem 4rem;
  62. }
  63. }
  64. </style>