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

_input.scss 8.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. .c-input {
  2. @include flex-column;
  3. position: relative;
  4. &.c-input--error {
  5. .c-input__field,
  6. .c-select__control,
  7. .c-select__control:hover {
  8. border-color: $red;
  9. }
  10. }
  11. &.c-input--password {
  12. .c-input__icon {
  13. position: absolute;
  14. right: 0;
  15. top: 50%;
  16. transform: translate(0, -50%);
  17. margin-right: pxToRem(12px);
  18. width: pxToRem(24px);
  19. height: pxToRem(24px);
  20. display: flex;
  21. svg {
  22. width: pxToRem(24px);
  23. height: pxToRem(24px);
  24. color: $black;
  25. }
  26. }
  27. .c-input__caps-lock {
  28. position: absolute;
  29. right: 0;
  30. top: 50%;
  31. transform: translate(0, -50%);
  32. margin-right: pxToRem(40px);
  33. width: pxToRem(24px);
  34. height: pxToRem(24px);
  35. display: flex;
  36. width: pxToRem(24px);
  37. height: pxToRem(24px);
  38. color: $black;
  39. }
  40. .c-input__field {
  41. padding-right: pxToRem(72px);
  42. }
  43. }
  44. &.c-input--demi-bold {
  45. .c-input__field {
  46. font-weight: 600;
  47. }
  48. }
  49. &.c-input--search {
  50. position: relative;
  51. width: 100%;
  52. .c-input__icon {
  53. width: pxToRem(24px);
  54. height: pxToRem(24px);
  55. position: absolute;
  56. right: 0;
  57. top: 50%;
  58. transform: translate(0, -50%);
  59. color: $blue-1;
  60. margin-right: pxToRem(12px);
  61. }
  62. &.c-input--search-management {
  63. max-width: pxToRem(344px);
  64. margin-right: pxToRem(24px);
  65. .c-input__field {
  66. height: pxToRem(34px);
  67. font-size: pxToRem(16px);
  68. line-height: 1.5;
  69. letter-spacing: 0;
  70. }
  71. }
  72. }
  73. &.c-input--center-text {
  74. input {
  75. text-align: center;
  76. }
  77. }
  78. @include media-below($bp-xl) {
  79. &.c-input--search {
  80. &.c-input--search-management {
  81. max-width: 100%;
  82. margin-right: pxToRemMd(16px);
  83. .c-input__field {
  84. height: pxToRemMd(32px);
  85. font-size: pxToRemMd(16px);
  86. line-height: 1.5;
  87. letter-spacing: 0;
  88. }
  89. }
  90. }
  91. .c-input__label {
  92. font-size: pxToRemMd(16px);
  93. }
  94. .c-input__field {
  95. font-size: pxToRemMd(16px);
  96. }
  97. .c-input__error {
  98. font-size: pxToRemMd(14px);
  99. }
  100. .c-select__control {
  101. &.c-select__control {
  102. font-size: pxToRemMd(16px);
  103. min-height: 0;
  104. .c-select__input,
  105. .c-select__placeholder {
  106. font-size: pxToRemMd(16px);
  107. }
  108. .c-select__indicator {
  109. > svg {
  110. width: pxToRemMd(16px);
  111. height: pxToRemMd(16px);
  112. }
  113. }
  114. }
  115. }
  116. .c-select__menu {
  117. .c-select__option,
  118. .c-select__menu-notice {
  119. font-size: pxToRemMd(16px);
  120. }
  121. }
  122. .c-input__link {
  123. a,
  124. span {
  125. font-size: pxToRemMd(16px);
  126. }
  127. }
  128. //Overide
  129. .c-password-strength__container {
  130. font-size: pxToRemMd(16px);
  131. }
  132. .c-phone-number {
  133. .PhoneInput {
  134. font-size: pxToRemMd(16px);
  135. &::placeholder {
  136. font-size: pxToRemMd(16px);
  137. }
  138. }
  139. .PhoneInputInput {
  140. font-size: pxToRemMd(16px);
  141. }
  142. }
  143. }
  144. &.c-input--dropdown-full-height {
  145. .c-select__menu {
  146. max-height: initial;
  147. }
  148. }
  149. }
  150. .c-input__label {
  151. color: $blue;
  152. font-size: pxToRem(16px);
  153. font-weight: 600;
  154. letter-spacing: 0;
  155. line-height: 1.75;
  156. margin-bottom: pxToRem(4px);
  157. }
  158. .c-input__field-wrap {
  159. width: 100%;
  160. position: relative;
  161. }
  162. .c-input__field {
  163. @include outline-none;
  164. border: 1px solid $grey-6;
  165. border-radius: $border-radius;
  166. font-size: pxToRem(16px);
  167. line-height: 1.75;
  168. height: pxToRem(50px);
  169. padding: 0 pxToRem(12px);
  170. color: $blue;
  171. background-color: $white;
  172. width: 100%;
  173. &:disabled {
  174. background-color: $grey-8;
  175. border-color: $grey-6;
  176. }
  177. &:focus {
  178. border-color: $color-primary;
  179. }
  180. }
  181. .c-input__error {
  182. position: absolute;
  183. top: 100%;
  184. left: 0;
  185. right: 0;
  186. color: $red;
  187. font-size: pxToRem(14px);
  188. line-height: 1.35;
  189. font-weight: 500;
  190. margin: pxToRem(4px) 0;
  191. }
  192. .c-select__control {
  193. &.c-select__control {
  194. @include outline-none;
  195. border: 1px solid $grey-6;
  196. border-radius: $border-radius;
  197. font-size: pxToRem(16px);
  198. line-height: 1.75;
  199. height: pxToRem(50px);
  200. padding: 0 pxToRem(12px);
  201. color: $blue;
  202. background-color: $white;
  203. box-shadow: none;
  204. &:hover {
  205. border-color: $grey-6;
  206. }
  207. &.c-select__control--is-focused {
  208. border-color: $color-primary;
  209. box-shadow: none;
  210. &:hover {
  211. border-color: $color-primary;
  212. }
  213. &.c-select__control--menu-is-open{
  214. .c-select__indicator {
  215. svg {
  216. transform: rotate(-180deg);
  217. }
  218. }
  219. }
  220. }
  221. .css-1uccc91-singleValue {
  222. color: $blue;
  223. margin: 0;
  224. }
  225. .css-b8ldur-Input {
  226. margin: 0;
  227. }
  228. .c-select__value-container {
  229. height: 100%;
  230. padding: 0;
  231. padding-right: pxToRem(32px);
  232. }
  233. .c-select__input,
  234. .c-select__placeholder {
  235. font-size: pxToRem(16px);
  236. line-height: 1.75;
  237. letter-spacing: 0;
  238. color: $blue;
  239. }
  240. .c-select__indicator-separator {
  241. display: none;
  242. }
  243. .c-select__indicator {
  244. padding: 0;
  245. > svg {
  246. width: pxToRem(16px);
  247. height: pxToRem(16px);
  248. color: $blue;
  249. transform: rotate(0);
  250. transition: transform 0.2s;
  251. }
  252. }
  253. &.c-select__control--is-disabled {
  254. background-color: $grey-8;
  255. }
  256. }
  257. }
  258. .c-select__menu {
  259. @include flex-column;
  260. position: absolute;
  261. top: 100%;
  262. left: 0;
  263. right: 0;
  264. margin-top: pxToRem(4px);
  265. margin-bottom: pxToRem(4px);
  266. border: 1px solid $grey-6;
  267. border-radius: $border-radius;
  268. box-shadow: $box-shadow;
  269. max-height: pxToRem(150px);
  270. overflow: auto;
  271. .c-select__menu-list {
  272. @include flex-column;
  273. padding: 0;
  274. flex-grow: 1;
  275. }
  276. .c-select__option,
  277. .c-select__menu-notice {
  278. padding: pxToRem(12px) pxToRem(15px);
  279. font-size: pxToRem(16px);
  280. line-height: 1.75;
  281. letter-spacing: 0;
  282. color: $blue;
  283. text-align: left;
  284. &:hover {
  285. background-color: $grey-2;
  286. }
  287. &.c-select__option--is-selected {
  288. background-color: $grey-2;
  289. }
  290. &.c-select__option--is-focused {
  291. background-color: $grey-2;
  292. }
  293. }
  294. }
  295. .c-input__link {
  296. position: absolute;
  297. top: 0;
  298. right: 0;
  299. a,
  300. span {
  301. color: $grey-11;
  302. font-size: pxToRem(16px);
  303. letter-spacing: 0;
  304. line-height: 1.15;
  305. text-decoration: underline;
  306. cursor: pointer;
  307. }
  308. }
  309. //Overide
  310. .c-password-strength__container {
  311. margin-top: pxToRem(8px);
  312. font-size: pxToRem(16px);
  313. & .c-password-strength__line--wrapper {
  314. border-radius: 8px;
  315. overflow: hidden;
  316. background-color: $grey;
  317. height: pxToRem(5px);
  318. .c-password-strength__line {
  319. height: pxToRem(5px);
  320. left: 0;
  321. top: 0;
  322. }
  323. }
  324. }
  325. .c-password {
  326. min-height: pxToRem(110px);
  327. @include media-below($bp-xl) {
  328. min-height: pxToRemMd(110px);
  329. }
  330. }
  331. .c-phone-number {
  332. .PhoneInput {
  333. @include outline-none;
  334. box-sizing: border-box;
  335. border: 1px solid $grey-6;
  336. border-radius: $border-radius;
  337. font-size: pxToRem(16px);
  338. line-height: 1.75;
  339. min-height: pxToRem(50px);
  340. color: $blue;
  341. background-color: $white;
  342. box-shadow: none;
  343. width: 100%;
  344. overflow: hidden;
  345. &::placeholder {
  346. font-size: pxToRem(16px);
  347. line-height: 1.75;
  348. }
  349. &:disabled {
  350. background-color: $grey-8;
  351. border-color: $grey-6;
  352. }
  353. &.PhoneInput--focus {
  354. border-color: $color-primary;
  355. .PhoneInputCountry {
  356. border-color: $color-primary;
  357. }
  358. }
  359. }
  360. .PhoneInputCountry {
  361. @include flex-center;
  362. width: pxToRem(96px);
  363. border-right: 1px solid $grey-6;
  364. }
  365. .PhoneInputCountryIcon {
  366. margin-right: pxToRem(16px);
  367. width: auto;
  368. height: auto;
  369. border: none;
  370. }
  371. .PhoneInputCountryIconImg {
  372. width: pxToRem(36px);
  373. object-fit: contain;
  374. }
  375. .PhoneInputCountrySelectArrow {
  376. border: none;
  377. width: 0;
  378. height: 0;
  379. transform: translate(0);
  380. border-left: pxToRem(8px) solid transparent;
  381. border-right: pxToRem(8px) solid transparent;
  382. border-top: pxToRem(8px) solid $blue;
  383. }
  384. .PhoneInputInput {
  385. @include outline-none;
  386. border-color: transparent;
  387. height: 100%;
  388. font-size: pxToRem(16px);
  389. line-height: 1.75;
  390. padding: 0;
  391. color: $blue;
  392. background-color: $white;
  393. width: 100%;
  394. margin: 0;
  395. padding: 0 pxToRem(26px);
  396. height: pxToRem(50px);
  397. }
  398. .PhoneInputCountry {
  399. margin-right: 0;
  400. }
  401. &.c-input--error {
  402. .PhoneInput {
  403. border-color: $red;
  404. .PhoneInputCountry {
  405. border-color: $red;
  406. }
  407. }
  408. }
  409. }