quote.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @import '_variables';
  2. .quote {
  3. margin-top: 10px;
  4. border: solid 1px var(--dark_grey);
  5. border-radius: 10px;
  6. background-color: var(--bg_elements);
  7. overflow: auto;
  8. padding: 6px;
  9. position: relative;
  10. pointer-events: all;
  11. &:hover {
  12. border-color: var(--grey);
  13. }
  14. &.unavailable:hover {
  15. border-color: var(--dark_grey);
  16. }
  17. }
  18. .unavailable-quote {
  19. padding: 6px;
  20. }
  21. .quote-link {
  22. height: 100%;
  23. width: 100%;
  24. left: 0;
  25. top: 0;
  26. position: absolute;
  27. }
  28. .quote .quote-link {
  29. z-index: 1;
  30. }
  31. .quote-text {
  32. overflow: hidden;
  33. white-space: pre-wrap;
  34. word-wrap: break-word;
  35. }
  36. .quote-media-container {
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. overflow: hidden;
  41. max-height: 102px;
  42. width: 102px;
  43. float: left;
  44. margin-right: 7px;
  45. border-radius: 7px;
  46. position: relative;
  47. }
  48. .quote-media {
  49. display: flex;
  50. justify-content: center;
  51. pointer-events: none;
  52. img {
  53. width: 100%;
  54. height: 100%;
  55. align-self: center;
  56. }
  57. }
  58. .quote-badge {
  59. left: 0;
  60. bottom: 0;
  61. position: absolute;
  62. z-index: 1;
  63. align-self: flex-end;
  64. }
  65. .quote-badge-text {
  66. margin: 4px;
  67. background: $shadow;
  68. border-radius: 4px;
  69. color: #fffffff0;
  70. padding: 1px 3px;
  71. font-size: 12px;
  72. font-weight: bold;
  73. }
  74. .quote-sensitive {
  75. background: var(--darker_grey);
  76. width: 102px;
  77. height: 102px;
  78. border-radius: 12px;
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. }
  83. .quote-sensitive-icon {
  84. font-size: 40px;
  85. color: var(--grey);
  86. }
  87. @media(max-width: 600px) {
  88. .quote-media-container {
  89. width: 70px;
  90. max-height: 70px;
  91. }
  92. }