Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

244 Zeilen
4.2 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .survey {
  4. position: relative;
  5. display: block;
  6. margin: var(--section-margin) 0;
  7. background-color: var(--theme-color-secondary-dimmed);
  8. border-bottom: var(--border-width) solid var(--theme-color-secondary);
  9. .text-box {
  10. padding: var(--content-box-padding);
  11. padding-bottom: 0;
  12. font-size: var(--font-size-small);
  13. .kicker {
  14. margin-top: -0.3em;
  15. }
  16. h2, h3 {
  17. margin-top: 0.2em;
  18. margin-bottom: 0.3em;
  19. }
  20. p:last-child {
  21. margin-bottom: 0;
  22. }
  23. @media(max-width: 567px) {
  24. padding-top: calc(var(--content-box-padding) * 1.5);
  25. }
  26. }
  27. .form-box {
  28. position: relative;
  29. padding: var(--content-box-padding);
  30. transition: height 0.5s $easeInOutCubic;
  31. @media(max-width: 567px) {
  32. padding-bottom: calc(var(--content-box-padding) * 1.5);
  33. }
  34. }
  35. form {
  36. @include show;
  37. transform: translate3d(0, 0, 0) scale(1);
  38. &:not(:last-child) {
  39. height: 0;
  40. }
  41. }
  42. h3, h4 {
  43. @media(max-width: 767px) {
  44. font-size: 26px;
  45. }
  46. }
  47. legend {
  48. @include h4;
  49. color: var(--theme-color-primary);
  50. margin: 1em 0 0.5em;
  51. padding: 0;
  52. border-bottom: 0;
  53. }
  54. ul {
  55. list-style: none;
  56. padding: 0;
  57. margin: 0 -2px;
  58. li {
  59. position: relative;
  60. padding: 0;
  61. + li {
  62. margin-top: 15px;
  63. }
  64. }
  65. }
  66. input[type="radio"] {
  67. position: absolute;
  68. display: block;
  69. top: 0;
  70. left: 0;
  71. width: 100%;
  72. height: 100%;
  73. z-index: 1;
  74. border-radius: var(--border-radius-md);
  75. margin: 0;
  76. -webkit-appearance: none;
  77. -moz-appearance: none;
  78. appearance: none;
  79. transition: 0.25s ease;
  80. cursor: pointer;
  81. opacity: 0.000001;
  82. @include focus-visible();
  83. &:checked + label {
  84. background-color: var(--theme-color-secondary-intensed);
  85. color: var(--theme-color-white);
  86. }
  87. &:hover + label::after {
  88. opacity: var(--button-hover-shadow-opacity);
  89. box-shadow: 0 0 0 var(--button-hover-shadow-size) var(--button-bg-color);
  90. }
  91. }
  92. label.btn {
  93. width: 100%;
  94. transition: 0.3s ease;
  95. margin: 0;
  96. text-align: center;
  97. line-height: 1.2;
  98. min-height: 48px;
  99. @media(max-width: 999px) {
  100. min-height: 44px;
  101. }
  102. }
  103. fieldset {
  104. border: 0;
  105. padding: 0;
  106. margin: 0;
  107. }
  108. fieldset + fieldset {
  109. margin-top: calc(20px + 2%);
  110. }
  111. .btn-wrapper {
  112. display: none;
  113. }
  114. .survey-result > .title {
  115. display: none;
  116. }
  117. .result-wrapper {
  118. .title {
  119. @include h4;
  120. }
  121. }
  122. .sub-result-wrapper {
  123. position: relative;
  124. display: flex;
  125. justify-content: space-between;
  126. font-size: var(--font-size-copy);
  127. line-height: 1.1;
  128. padding: 10px 15px;
  129. align-items: center;
  130. font-family: "Korb", sans-serif;
  131. min-height: 48px;
  132. @media(max-width: 999px) {
  133. min-height: 44px;
  134. }
  135. @media(max-width: 767px) {
  136. padding: 5px 5px 5px 10px;
  137. }
  138. + .sub-result-wrapper {
  139. margin-top: 15px;
  140. }
  141. div {
  142. position: relative;
  143. display: block;
  144. &.answer {
  145. overflow: hidden;
  146. max-width: calc(100% - 60px);
  147. @media(max-width: 767px) {
  148. max-width: calc(100% - 50px);
  149. }
  150. }
  151. }
  152. .bar {
  153. position: absolute;
  154. display: block;
  155. left: 0;
  156. width: 0;
  157. top: 0;
  158. bottom: 0;
  159. transition: 0.8s $easeInOutCubic;
  160. min-width: 1px;
  161. background-color: #9AD7A3;
  162. }
  163. }
  164. .survey-result {
  165. @include hide;
  166. transform: translate3d(0, 0, 0) scale(0.9);
  167. h3 {
  168. margin-bottom: 0.9em;
  169. }
  170. }
  171. &.show-result {
  172. .survey-result {
  173. @include show(0.3s);
  174. transform: translate3d(0, 0, 0) scale(1);
  175. }
  176. form {
  177. @include hide();
  178. transform: translate3d(0, 0, 0) scale(0.9);
  179. }
  180. }
  181. &[data-size='md'] {
  182. .text-box {
  183. margin: 0 0 -1em;
  184. }
  185. }
  186. &[data-size='lg'] {
  187. display: flex;
  188. align-items: center;
  189. .text-box, .form-box {
  190. flex: 1 1 100%;
  191. max-width: 50%;
  192. }
  193. .text-box {
  194. padding: var(--content-box-padding);
  195. margin-bottom: 0.1em;
  196. }
  197. .form-box {
  198. padding-left: 0;
  199. }
  200. }
  201. }