Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 KB | None | 0 0
  1. @import '../../foundation/_variables';
  2.  
  3. /* radio / checkbox
  4. ===================== */
  5. input[type=radio] {
  6. display: none;
  7. &:checked + .c-radio {
  8. &:before {
  9. opacity: 1;
  10. }
  11. &.tab {
  12. color: #fff;
  13. background-color: $main-color;
  14. &:before {
  15. display: none;
  16. }
  17. }
  18. }
  19. }
  20. input[type="checkbox"] {
  21. display: none;
  22. &:checked + .c-checkbox {
  23. &:before {
  24. opacity: 1;
  25. }
  26. &.heart {
  27. &:before {
  28. opacity: 0;
  29. }
  30. &:after {
  31. color: #305ba4;
  32. font-weight: bold;
  33. }
  34. &.white {
  35. &:after {
  36. color: #ffb5b5;
  37. }
  38. }
  39. }
  40. }
  41. }
  42.  
  43. .c- {
  44. &block {
  45. display: block;
  46. }
  47.  
  48. // form
  49. &form {
  50. width: 100%;
  51. }
  52.  
  53. // txtbox
  54. &txtbox {
  55. width: 100%;
  56. padding: 18px 23px;
  57. background: #f4f8fa;
  58. border-radius: 3px;
  59. @include mq() {
  60. padding: 2vw 4vw;
  61. }
  62. &.border {
  63. border: 1px solid $main-color;
  64. background-color: #fff;
  65. }
  66. &.resource {
  67. text-align: center;
  68. padding: 5px 10px;
  69. }
  70. }
  71.  
  72. // label
  73. &label {
  74. color: #a2a2a2;
  75. }
  76.  
  77. // search
  78. &search {
  79. display: block;
  80. width: calc(100% - 48px);
  81. padding: 12px 20px;
  82. background-color: #fff;
  83. border-radius: 3px 0 0 3px;
  84. border: 1px solid $main-color;
  85. @include mq() {
  86. width: calc(100% - #{get_vw(64)});
  87. padding-top: get_vw(20);
  88. padding-bottom: get_vw(20);
  89. padding-right: get_vw(40);
  90. padding-left: get_vw(40);
  91. }
  92. &__box {
  93. position: relative;
  94. margin-bottom: 40px;
  95. @include mq() {
  96. margin-bottom: get_vw(20);
  97. }
  98. &__label {
  99. color: $main-color;
  100. font-size: 14px;
  101. padding: 0 2vw;
  102. }
  103. }
  104. &__btn {
  105. position: absolute;
  106. top: 0;
  107. right: 0;
  108. display: block;
  109. align-items: center;
  110. justify-content: center;
  111. width: 48px;
  112. height: 100%;
  113. border-radius: 0 3px 3px 0;
  114. @include mq() {
  115. width: get_vw(64);
  116. }
  117. img {
  118. position: absolute;
  119. top: 0;
  120. bottom: 0;
  121. right: 0;
  122. left: 0;
  123. margin: auto;
  124. }
  125. }
  126. }
  127.  
  128. // checkbox
  129. &checkbox {
  130. position: relative;
  131. display: inline-block;
  132. padding: 0 0 2px 27px;
  133. border-radius: 3px;
  134. vertical-align: middle;
  135. cursor: pointer;
  136. &:hover {
  137. &:after {
  138. border-color: $main-color;
  139. }
  140. }
  141. &:after {
  142. content: "";
  143. display: block;
  144. position: absolute;
  145. top: 50%;
  146. left: 0;
  147. margin-top: -10px;
  148. width: 16px;
  149. height: 16px;
  150. border: 1px solid #bbb;
  151. border-radius: 3px;
  152. background-color: #fff;
  153. transition: border-color 0.2s linear;
  154. z-index: 1;
  155. }
  156. &:before {
  157. content: "";
  158. display: block;
  159. position: absolute;
  160. top: 50%;
  161. left: 4px;
  162. margin-top: -10px;
  163. width: 8px;
  164. height: 11px;
  165. border-right: 2px solid #283853;
  166. border-bottom: 2px solid #283853;
  167. opacity: 0;
  168. transition: opacity 0.2s linear;
  169. transform: rotate(45deg);
  170. z-index: 2;
  171. }
  172. &.heart {
  173. &:after {
  174. border: none;
  175. color: $main-color;
  176. font-size: 18px;
  177. font-weight: normal;
  178. font-family: "Font Awesome 5 Free";
  179. content: "\f004";
  180. display: inline-block;
  181. font-style: normal;
  182. font-variant: normal;
  183. text-rendering: auto;
  184. line-height: 1;
  185. padding-left: 4px;
  186. background-color: transparent;
  187. transition: 0.5s;
  188. }
  189. &:before {
  190. content: "";
  191. }
  192. &.white {
  193. &:after {
  194. color: #fff;
  195. font-size: 24px;
  196. font-weight: bold;
  197. @include mq() {
  198. font-size: 3.5vw;
  199. position: static;
  200. left: 0;
  201. right: 0;
  202. width: auto;
  203. height: auto;
  204. margin-left: auto;
  205. margin-right: auto;
  206. padding: 0;
  207. }
  208. }
  209. }
  210. }
  211. }
  212.  
  213. &radio {
  214. position: relative;
  215. display: inline-block;
  216. padding: 0 0 2px 27px;
  217. border-radius: 3px;
  218. vertical-align: middle;
  219. cursor: pointer;
  220. &:hover {
  221. &:after {
  222. border-color: $main-color;
  223. }
  224. }
  225. &:after {
  226. content: "";
  227. display: block;
  228. position: absolute;
  229. top: 50%;
  230. left: 0;
  231. margin-top: -10px;
  232. width: 16px;
  233. height: 16px;
  234. border: 1px solid #bbb;
  235. border-radius: 50%;
  236. background-color: #fff;
  237. transition: border-color 0.2s linear;
  238. z-index: -1;
  239. }
  240. &:before {
  241. content: "";
  242. display: block;
  243. position: absolute;
  244. top: 50%;
  245. left: 4px;
  246. margin-top: -6px;
  247. width: 8px;
  248. height: 8px;
  249. background-color: #305ba4;
  250. border-radius: 50%;
  251. opacity: 0;
  252. transition: opacity 0.2s linear;
  253. z-index: 0;
  254. }
  255. &.modal {
  256. &:after {
  257. z-index: 2;
  258. }
  259. &:before {
  260. z-index: 3;
  261. }
  262. }
  263.  
  264. // radio__wrap
  265. &__wrap {
  266. display: flex;
  267. &.tab {
  268. color: $main-color;
  269. border: 1px solid $main-color;
  270. border-radius: 3px;
  271. }
  272. }
  273.  
  274. // radio__menu
  275. &__menu{
  276. &--hidden {
  277. display: none;
  278. & > *:nth-child(n+2) {
  279. margin-top: 2vw;
  280. }
  281. }
  282. }
  283. }
  284.  
  285. // c-radio.tab
  286. &radio.tab {
  287. display: flex;
  288. align-items: center;
  289. justify-content: center;
  290. flex-basis: 50%;
  291. max-width: 50%;
  292. width: 100%;
  293. text-align: center;
  294. padding: 1vw;
  295. transition: .3s;
  296. }
  297.  
  298. // select
  299. &select {
  300. position: relative;
  301. width: 180px;
  302. &.white {
  303. }
  304. @include mq() {
  305. min-width: 125px;
  306. width: get_vw(180);
  307. }
  308. &:after {
  309. content: "";
  310. position: absolute;
  311. top: 50%;
  312. right: 20px;
  313. display: inline-block;
  314. width: 9px;
  315. height: 5px;
  316. margin-top: -4px;
  317. background: url(../images/common/icon_nav_tri-active.png);
  318. pointer-events: none;
  319. }
  320. & > select {
  321. width: 100%;
  322. height: 100%;
  323. padding: 18px 20px;
  324. background-color: #f4f8fa;
  325. border-radius: 3px;
  326. @include mq() {
  327. padding: 2vw 4vw;
  328. }
  329. &.border {
  330. border: 1px solid $main-color;
  331. background-color: #fff;
  332. }
  333. }
  334. &__tilda {
  335. padding: 0 20px;
  336. }
  337. &.extend {
  338. width: 100%;
  339. }
  340. }
  341.  
  342. // add new item
  343. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement