search.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @import "vars";
  2. @import "mixins";
  3. #search-dialog {
  4. &:after {
  5. margin-left: -160px;
  6. }
  7. }
  8. .dialog-search {
  9. margin-left: 0;
  10. transform: translate3d(-22.5%, 0%, 100px) scale(1) !important;
  11. }
  12. .dialog-search-input {
  13. position: absolute;
  14. text-align: center;
  15. top: 0;
  16. left: 0;
  17. right: 112px;
  18. color: $medium;
  19. padding: 25px;
  20. background-color: rgba(245,245,245,0.95);
  21. border-top-left-radius: $radius*3;
  22. z-index: 100;
  23. }
  24. .dialog-search-results {
  25. padding: 40px !important;
  26. padding-top: 110px !important;
  27. margin-right: 92px;
  28. position: relative;
  29. @include clearfix();
  30. font-size: 11px;
  31. line-height: 1.5;
  32. text-align: left !important;
  33. .search-result {
  34. max-width:100px;
  35. }
  36. > * {
  37. cursor: pointer;
  38. // &:hover {opacity: 0.8; }
  39. > * {pointer-events: none; }
  40. }
  41. .search-result-audio {}
  42. .search-result-video {
  43. &:nth-child(3n+1) {clear: both; }
  44. width: 33%;
  45. float: left;
  46. padding-right: 20px;
  47. padding-bottom: 20px;
  48. .thumbnail-wrapper {
  49. &:hover .thumbnail { opacity: 0.8; }
  50. span {
  51. display: block;
  52. top: 0;
  53. left: 0;
  54. position: absolute;
  55. &:before{
  56. content: "";
  57. display: block;
  58. padding-top: 100%; /* initial ratio of 1:1*/
  59. padding-top: 55%;
  60. }
  61. background-color: $blue;
  62. color: $light;
  63. text-align: center;
  64. }
  65. }
  66. .thumbnail {
  67. width: 100%;
  68. margin-bottom: 10px;
  69. background-position: center;
  70. background-repeat: no-repeat;
  71. background-size: cover;
  72. border-radius: $radius;
  73. &:before{
  74. content: "";
  75. display: block;
  76. padding-top: 100%; /* initial ratio of 1:1*/
  77. padding-top: 55%;
  78. }
  79. }
  80. }
  81. .search-result-image {
  82. display: inline-block;
  83. margin-right: 8px;
  84. margin-bottom: 8px;
  85. img {
  86. height: 100%;
  87. max-width: 120px;
  88. max-height: 120px;
  89. border-radius: $radius;
  90. }
  91. }
  92. }