trumbowyg.giphy.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /**
  2. * Trumbowyg v2.22.0 - A lightweight WYSIWYG editor
  3. * Default stylesheet for Trumbowyg editor plugin
  4. * ------------------------
  5. * @link http://alex-d.github.io/Trumbowyg
  6. * @license MIT
  7. * @author Alexandre Demode (Alex-D)
  8. * Twitter : @AlexandreDemode
  9. * Website : alex-d.fr
  10. */
  11. .trumbowyg-giphy-button svg {
  12. transform: scale(1.22);
  13. }
  14. .trumbowyg-giphy-search {
  15. display: block;
  16. width: 80%;
  17. margin: 5%;
  18. padding-left: 10px;
  19. padding-right: 150px;
  20. }
  21. .trumbowyg-giphy-close {
  22. position: absolute;
  23. top: calc(5% + 8px);
  24. right: calc(5% - 2px);
  25. width: 30px;
  26. height: 30px;
  27. background: none;
  28. border: 1px solid transparent;
  29. &:hover,
  30. &:focus {
  31. outline: none;
  32. background: #ecf0f1;
  33. }
  34. &:focus {
  35. border-color: rgba(0, 0, 0, 0.3);
  36. }
  37. }
  38. .trumbowyg-powered-by-giphy {
  39. position: absolute;
  40. top: calc(5% + 12px);
  41. right: calc(15% + 10px);
  42. pointer-events: none;
  43. user-select: none;
  44. span {
  45. text-transform: uppercase;
  46. font-weight: bold;
  47. font-size: 10px;
  48. opacity: 0.6;
  49. }
  50. svg {
  51. width: 66px;
  52. height: 15px;
  53. vertical-align: bottom;
  54. margin-left: 6px;
  55. opacity: 0.45;
  56. }
  57. }
  58. .trumbowyg-giphy-modal-scroll {
  59. overflow: auto;
  60. overflow-x: hidden;
  61. height: 240px;
  62. }
  63. .trumbowyg-giphy-modal {
  64. padding: 0 5%;
  65. columns: 3;
  66. column-gap: 10px;
  67. .trumbowyg-giphy-no-result {
  68. width: 250%;
  69. margin: 13% 0 0 29%;
  70. }
  71. .trumbowyg-giphy-offline {
  72. font-size: 18px;
  73. width: 305%;
  74. height: 600px;
  75. margin-top: 95px;
  76. text-align: center;
  77. }
  78. }
  79. .trumbowyg-giphy-modal .img-container {
  80. width: 100%;
  81. margin-bottom: 10px;
  82. background-color: #ecf0f1;
  83. img {
  84. width: 100%;
  85. cursor: pointer;
  86. opacity: 0;
  87. transition: opacity 150ms;
  88. &:hover,
  89. &:focus {
  90. border: #2ecc71 solid 3px;
  91. }
  92. }
  93. img.tbw-loaded {
  94. opacity: 1;
  95. }
  96. }