lightbox.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .vamtam-button-lightbox-wrapper {
  2. position: fixed;
  3. top: 0;
  4. right: 0;
  5. bottom: 0;
  6. left: 0;
  7. z-index: 99999;
  8. background: var( --vamtam-overlay-color );
  9. opacity: 0;
  10. transition: opacity .4s ease-out;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. }
  15. @media ( max-aspect-ratio: ~"16/9" ) {
  16. .vamtam-button-lightbox-content {
  17. width: 80vw;
  18. height: calc( ~"9/16 * 80vw" );
  19. }
  20. }
  21. @media ( min-aspect-ratio: ~"16/9" ) {
  22. .vamtam-button-lightbox-content {
  23. width: calc( ~"16/9 * 80vh" );
  24. height: 80vh;
  25. }
  26. }
  27. #vamtam-overlay-search {
  28. @size: 60px;
  29. margin: auto;
  30. font-size: 50px;
  31. position: fixed;
  32. top: 0;
  33. right: 0;
  34. bottom: 0;
  35. left: 0;
  36. background: var( --vamtam-accent-color-5 );
  37. z-index: 1000;
  38. display: none;
  39. -webkit-backface-visibility: hidden;
  40. backface-visibility: hidden;
  41. input[type="search"] {
  42. width: 100%;
  43. height: 120px;
  44. max-width: calc(~"100% - 40px");
  45. color: var( --vamtam-accent-color-6 );
  46. font-size: 1.0em;
  47. font-weight: 100;
  48. border: none;
  49. border-bottom: 1px solid var( --vamtam-accent-color-4 );
  50. background: var( --vamtam-accent-color-5 );
  51. transition: all .3s;
  52. margin: auto;
  53. display: block;
  54. border-radius: 0px;
  55. -webkit-appearance: none;
  56. -moz-appearance: none;
  57. appearance: none;
  58. &:hover {
  59. border-color: var( --vamtam-accent-color-1 );
  60. }
  61. &:focus {
  62. outline: none;
  63. border-color: var( --vamtam-accent-color-1 );
  64. border-width: 2px;
  65. }
  66. }
  67. .searchform {
  68. position: absolute;
  69. top: 35%;
  70. left: 15%;
  71. right: 15%;
  72. }
  73. }
  74. .vamtam-button-lightbox-close,
  75. #vamtam-overlay-search-close {
  76. height: 70px;
  77. width: 70px;
  78. padding: 0px;
  79. position: absolute;
  80. right: 20px;
  81. top: 20px;
  82. border: none;
  83. text-align: center;
  84. overflow: hidden;
  85. color: var( --vamtam-body-link-regular );
  86. font-size: 0.5em;
  87. line-height: 70px;
  88. border-radius: var( --vamtam-border-radius-oval );
  89. font-family: var( --vamtam-primary-font-font-family );
  90. color: var( --vamtam-accent-color-6 );
  91. background: var( --vamtam-overlay-color );
  92. transition: all .3s ease;
  93. &:hover {
  94. color: var( --vamtam-accent-color-1-hc );
  95. background: var( --vamtam-accent-color-1 );
  96. }
  97. }
  98. .vamtam-button-lightbox-wrapper .vamtam-button-lightbox-close {
  99. font-size: 1.7em;
  100. }