25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

182 satır
3.4 KiB

  1. .survey {
  2. position: relative;
  3. display: block;
  4. margin: calc(1.5vw + 20px) 0;
  5. background-color: $color-secondary-light;
  6. background-color: var(--theme-color-secondary-dimmed, $color-secondary-light);
  7. border-bottom: 8px solid $color-secondary;
  8. border-bottom: 8px solid var(--theme-color-secondary, $color-secondary);
  9. transition: height 0.6s $easeInOutCubic;
  10. form {
  11. @include show;
  12. transform: translate3d(0, 0, 0) scale(1);
  13. padding: 40px 42px 38px;
  14. min-height: 300px;
  15. @media(max-width: 767px) {
  16. padding: 20px 16px 18px;
  17. }
  18. }
  19. h3, h4 {
  20. @media(max-width: 767px) {
  21. font-size: 26px;
  22. }
  23. }
  24. legend {
  25. @include h4;
  26. //@extend .title;
  27. color: $color-primary;
  28. color: var(--theme-color-primary, $color-primary);
  29. margin: 0 0 5px;
  30. border-bottom: 0;
  31. }
  32. input[type="radio"] {
  33. position: absolute;
  34. display: block;
  35. top: 0;
  36. left: 0;
  37. width: 100%;
  38. height: 100%;
  39. z-index: 1;
  40. border-radius: 18px;
  41. opacity: 0.00001;
  42. margin: 0;
  43. -webkit-appearance: none;
  44. -moz-appearance: none;
  45. appearance: none;
  46. cursor: pointer;
  47. &:checked + label {
  48. background-color: $color-secondary-dark;
  49. background-color: var(--theme-color-secondary-intensed, $color-secondary-dark);
  50. color: $color-white;
  51. }
  52. + label {
  53. max-width: none;
  54. }
  55. &:not(:checked):hover + label {
  56. background-color: darken(#9AD7A3, 4);
  57. box-shadow: 0 0 0 5px rgba(#9AD7A3, 0.45);
  58. }
  59. }
  60. label {
  61. display: block;
  62. width: 100%;
  63. text-align: center;
  64. font-size: 22px;
  65. line-height: 1.2;
  66. padding: 10px 20px;
  67. background-color: #9AD7A3;
  68. border-radius: 18px;
  69. transition: 0.3s ease;
  70. font-family: "Korb", sans-serif;
  71. box-shadow: 0 0 0 2px rgba(#9AD7A3, 0);
  72. }
  73. fieldset {
  74. border: 0;
  75. padding: 0;
  76. }
  77. fieldset + fieldset {
  78. margin-top: calc(10px + 2%);
  79. }
  80. ul {
  81. margin: 0 -2px;
  82. list-style: none;
  83. padding: 0;
  84. li {
  85. position: relative;
  86. padding: 0;
  87. margin: 15px 0;
  88. &:after {
  89. display: none;
  90. }
  91. }
  92. }
  93. .btn-wrapper {
  94. display: none;
  95. }
  96. .result-wrapper {
  97. .title {
  98. @include h4;
  99. font-weight: 400;
  100. }
  101. }
  102. .sub-result-wrapper {
  103. position: relative;
  104. display: flex;
  105. justify-content: space-between;
  106. font-size: 22px;
  107. line-height: 1.2;
  108. padding: 10px 15px;
  109. align-items: center;
  110. margin: 15px 0;
  111. font-family: "Korb", sans-serif;
  112. div {
  113. position: relative;
  114. display: block;
  115. &.answer {
  116. white-space: nowrap;
  117. overflow: hidden;
  118. text-overflow: ellipsis;
  119. max-width: calc(100% - 60px);
  120. }
  121. }
  122. .bar {
  123. position: absolute;
  124. display: block;
  125. left: 0;
  126. width: 0;
  127. top: 0;
  128. bottom: 0;
  129. transition: 0.8s $easeInOutCubic;
  130. min-width: 1px;
  131. background-color: #9AD7A3;
  132. }
  133. }
  134. .survey-result {
  135. @include hide;
  136. transform: translate3d(0, 0, 0) scale(0.9);
  137. padding: 40px 42px 38px;
  138. @media(max-width: 767px) {
  139. padding: 20px 16px 18px;
  140. }
  141. h3 {
  142. margin-bottom: 0.9em;
  143. }
  144. }
  145. &.show-result {
  146. .survey-result {
  147. @include show(0.3s);
  148. transform: translate3d(0, 0, 0) scale(1);
  149. }
  150. form {
  151. position: absolute;
  152. width: 100%;
  153. @include hide();
  154. transform: translate3d(0, 0, 0) scale(0.9);
  155. }
  156. }
  157. }