button.scss 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162
  1. @import "vars";
  2. @import "mixins";
  3. @import "unicode";
  4. .contrast-black { color: black !important;}
  5. .contrast-white { color: white !important;}
  6. .btn-group.colors {
  7. .btn {
  8. // padding: 4px;
  9. // background-clip: content-box;
  10. // padding-right: 2px;
  11. // &:last-child {
  12. // padding-right: 4px;
  13. // }
  14. box-shadow: inset 0 0 30px 0px rgba(40,40,40,0.1);
  15. }
  16. }
  17. .vertical {
  18. .btn-divider {
  19. min-width: 60px !important;
  20. width: 60px !important;
  21. min-height: 2px !important;
  22. height: 2px !important;
  23. margin: -1px 0;
  24. }
  25. }
  26. .btn-divider {
  27. min-width: 2px !important;
  28. width: 2px !important;
  29. padding: 0px !important;
  30. background-color: rgba(140, 140, 140, 0.5) !important;
  31. opacity: 0.25;
  32. margin: 0 -1px;
  33. z-index: 1000;
  34. position: relative;
  35. }
  36. .btn {
  37. //@include transition-transform( 0.1s 0s ease-in-out);
  38. white-space: nowrap;
  39. position: relative;
  40. height: 60px;
  41. min-width: 60px;
  42. line-height: 60px;
  43. padding: 0 20px;
  44. font-size: 20px;
  45. display: inline-block;
  46. border: none;
  47. outline: none;
  48. border: none;
  49. vertical-align: middle;
  50. text-align: center;
  51. background-size: cover;
  52. background-position: center;
  53. border-radius: $radius;
  54. font-family: $main-font;
  55. // text-transform: capitalize;
  56. -webkit-backface-visibility: hidden;
  57. -moz-backface-visibility: hidden;
  58. -ms-backface-visibility: hidden;
  59. backface-visibility: hidden;
  60. cursor: pointer;
  61. background-color: $light;
  62. color: $medium;;
  63. @include user-select(none);
  64. &:last-child {border: none;}
  65. &.active {
  66. outline: none;
  67. .jewel {
  68. background-color: #fff !important;
  69. border-color: #303030 !important;
  70. }
  71. }
  72. input {display: none; }
  73. &.btn-link {
  74. background-color: transparent;
  75. color: $medium;;
  76. }
  77. &.facebook {background-color: $facebook !important; color: white !important;}
  78. &.twitter {background-color: $twitter !important; color: white !important; }
  79. &.btn-round {
  80. border-radius: 100px !important;
  81. }
  82. &.btn-rounded {
  83. border-radius: 6px !important;
  84. }
  85. // &.close {
  86. // position: absolute;
  87. // top: 15px;
  88. // right: 15px;
  89. // z-index: 4000;
  90. // font-size: 40px;
  91. // }
  92. &.btn-nude {
  93. min-width: 0 !important;
  94. // font-size: inherit !important;
  95. padding: 0 !important;
  96. // height: auto !important;
  97. background-color: transparent;
  98. color: $medium;
  99. }
  100. &.btn-nude + .btn-nude {
  101. &:before {
  102. content: "·";
  103. margin: 0 3px;
  104. color: rgba(0,0,0,0.3);
  105. }
  106. }
  107. &.btn-stroke {
  108. box-shadow: inset 0 0 0 1px $dark;
  109. color: $dark !important;
  110. background-color: transparent;
  111. &:active {
  112. box-shadow: inset 0 0 0 1px white;
  113. color: white !important;
  114. }
  115. }
  116. &.btn-stroke-darken {
  117. //box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
  118. border: 1px solid rgba(0,0,0,0.1);
  119. color: $medium;
  120. background-color: transparent;
  121. &:active {
  122. //box-shadow: inset 0 0 0 1px $dark;
  123. border: 1px solid $dark;
  124. color: $dark !important;
  125. }
  126. .icon {
  127. margin-left: -0.5px;
  128. margin-top: -1px;
  129. }
  130. }
  131. &.btn-stroke-medium {
  132. box-shadow: inset 0 0 0 1px $medium;
  133. color: $medium !important;
  134. background-color: transparent;
  135. &:active {
  136. box-shadow: inset 0 0 0 1px white;
  137. color: white !important;
  138. }
  139. }
  140. &.btn-stroke-light {
  141. box-shadow: inset 0 0 0 1px $light;
  142. color: $light !important;
  143. background-color: transparent;
  144. &:active {
  145. box-shadow: inset 0 0 0 1px white;
  146. color: white !important;
  147. }
  148. }
  149. &.btn-stroke-light {
  150. box-shadow: inset 0 0 0 1px $light;
  151. color: $light !important;
  152. background-color: transparent;
  153. }
  154. &.btn-primary {
  155. background-color: $blue;
  156. color: white !important;
  157. }
  158. &.btn-white {
  159. background-color: white;
  160. color: $dark !important;
  161. &:active {
  162. background-color: $darker !important;
  163. color: $light !important;
  164. }
  165. }
  166. &.btn-blue-light {
  167. background-color: $blue-light;
  168. color: white !important;
  169. &:active {
  170. background-color: $darker;
  171. }
  172. }
  173. &.btn-blue {
  174. background-color: $blue;
  175. color: white !important;
  176. &:active {
  177. background-color: $darker;
  178. }
  179. }
  180. &.btn-text-light {
  181. background-color: transparent !important;
  182. color: $light !important;
  183. &:active {
  184. color: $darker;
  185. }
  186. }
  187. &.btn-text-blue {
  188. background-color: transparent !important;
  189. color: $blue !important;
  190. font-weight: bold;
  191. text-transform: uppercase;
  192. &:active {
  193. color: $darker;
  194. }
  195. }
  196. &.btn-black {
  197. background-color: $black;
  198. color: $medium !important;
  199. &:active {
  200. background-color: $darker;
  201. }
  202. }
  203. &.btn-yellow {
  204. background-color: $yellow;
  205. color: $dark !important;
  206. &:active {
  207. background-color: $darker;
  208. }
  209. }
  210. &.btn-red {
  211. background-color: $red;
  212. color: white !important;
  213. &:active {
  214. background-color: $darker;
  215. }
  216. }
  217. &.btn-green {
  218. background-color: $green;
  219. color: white !important;
  220. &:active {
  221. background-color: $darker;
  222. }
  223. }
  224. &.btn-disabled {
  225. @include opacity(0.125);
  226. pointer-events: none;
  227. }
  228. &.btn-transparent {
  229. background-color: transparent;
  230. color: $medium;
  231. &.active {color: $darker !important; }
  232. &.open {color: white !important; }
  233. }
  234. &.btn-transparent-medium {
  235. background-color: transparent;
  236. color: $medium;
  237. }
  238. &.btn-transparent-dark {
  239. background-color: transparent;
  240. color: $dark;
  241. }
  242. &.btn-transparent-black {
  243. background-color: transparent;
  244. color: black;
  245. }
  246. &.btn-light {
  247. background-color: $light;
  248. color: $medium;
  249. &.active,
  250. &:active {
  251. color: $darker !important;
  252. }
  253. }
  254. &.btn-lighten {
  255. background-color: rgba(255,255,255,0.05);
  256. color: $medium;
  257. }
  258. &.btn-soft {
  259. background-color: rgba(245,245,245,0.95);
  260. color: $medium;
  261. }
  262. &.btn-darken {
  263. background-color: rgba(0,0,0,0.05);
  264. // background-color: rgba(0,0,0,0.1);
  265. color: $medium;
  266. &.invert {
  267. background-color: rgba(255,255,255,0.05);
  268. }
  269. }
  270. &.btn-dark {
  271. background-color: $dark ;
  272. color: $medium;
  273. }
  274. &.btn-medium {
  275. background-color: rgba(0,0,0,0.05);
  276. color: $medium;
  277. }
  278. &.btn-darker {
  279. background-color: $darker ;
  280. color: $medium;
  281. }
  282. &.btn-dropdown {
  283. text-align: left;
  284. padding-right: 44px !important;
  285. min-width: 0px !important;
  286. &.btn-md {padding-right: 44px !important; }
  287. &.btn-sm {padding-right: 32px !important; }
  288. &.btn-md { &:before, &:after { @include icon-md; } }
  289. &.btn-sm { &:before, &:after { @include icon-sm; } }
  290. &:before,
  291. &:after {
  292. @include icon;
  293. position: absolute;
  294. right: 4px;
  295. top: -2px;
  296. left: auto;
  297. @include backface-visibility(hidden);
  298. //@include transition-transform( 0.1s 0s ease-in-out);
  299. width: 44px;
  300. opacity: 0.5;
  301. }
  302. &:before {
  303. @include scale(1,1);
  304. @extend .icon-triangle-3-bottom:before;
  305. }
  306. &:after {
  307. @include scale(0,0);
  308. //@extend .icon-cross-2:before;
  309. }
  310. &.open {
  311. &:before {
  312. opacity: 0;
  313. @include scale(0,0);
  314. }
  315. &:after {
  316. opacity: 1;
  317. @include scale(1,1);
  318. }
  319. }
  320. }
  321. &.btn-toggle-couple {
  322. padding: 0;
  323. @include clearfix;
  324. @include transition-transform( 0.1s ease-in-out);
  325. &:active { color: inherit !important; }
  326. .btn-option {
  327. &:before{
  328. content: "";
  329. display: block;
  330. float: left;
  331. padding-top: 100%; /* initial ratio of 1:1*/
  332. }
  333. &:first-child { margin-right: -7px}
  334. &:last-child { margin-left: -7px}
  335. }
  336. &.invisible {
  337. @include scale(0,0);
  338. }
  339. &.alt .btn-option {
  340. &:first-child {
  341. @include transition( all 0.1s 0s ease-in-out);
  342. opacity: 1;
  343. }
  344. &:last-child {
  345. @include transition( all 0.1s 0.1s ease-in-out);
  346. opacity: 0.25;
  347. }
  348. }
  349. .btn-option {
  350. &:first-child {
  351. @include transition( all 0.1s 0.1s ease-in-out);
  352. opacity: 0.25;
  353. }
  354. &:last-child {
  355. @include transition( all 0.1s 0s ease-in-out);
  356. opacity: 1;
  357. }
  358. &:first-child.disabled,
  359. &:last-child.disabled {
  360. @include transition( all 0.1s 0s ease-in-out);
  361. }
  362. }
  363. }
  364. &.btn-toggle {
  365. @include transition-transform( 0.1s ease-in-out);
  366. &.invisible {
  367. @include scale(0,0);
  368. }
  369. &.alt .btn-option {
  370. &:first-child {
  371. @include transition( all 0.1s 0s ease-in-out);
  372. @include scale(0,0);
  373. }
  374. &:last-child {
  375. @include transition( all 0.1s 0.1s ease-in-out);
  376. @include scale(1,1);
  377. }
  378. }
  379. .btn-option {
  380. display: block;
  381. width: 100%;
  382. height: 100%;
  383. position: absolute;
  384. top: 0px;
  385. left: 0px;
  386. &:first-child {
  387. @include transition( all 0.1s 0.1s ease-in-out);
  388. @include scale(1,1);
  389. }
  390. &:last-child {
  391. @include transition( all 0.1s 0s ease-in-out);
  392. @include scale(0,0);
  393. }
  394. &:first-child.disabled,
  395. &:last-child.disabled {
  396. @include transition( all 0.1s 0s ease-in-out);
  397. @include scale(0,0);
  398. }
  399. }
  400. }
  401. &.btn-icon-text {
  402. white-space: nowrap;
  403. .icon {
  404. margin-left: -15px;
  405. margin-top: -6px;
  406. margin-right: -5px;
  407. }
  408. padding-left: 16px !important;
  409. padding-right: 10px !important;
  410. }
  411. &.btn-icon {
  412. padding: 0px !important;
  413. font-weight: bold;
  414. max-width: 60px;
  415. &.btn-xl { max-width: 80px; }
  416. &.btn-md { max-width: 44px; font-size: 20px !important; }
  417. &.btn-sm { max-width: 38px; }
  418. &.btn-xs { max-width: 24px; }
  419. .icon {
  420. line-height: 2.6;
  421. position: absolute;
  422. top: 0;
  423. left: 0;
  424. }
  425. }
  426. &.btn-labeled-out {
  427. .icon-label {
  428. width: 100%;
  429. position: absolute;
  430. top: 100%;
  431. left: 0;
  432. font-size: $font-size;
  433. color: $medium;
  434. margin-top: 10px;
  435. }
  436. }
  437. &.btn-social {
  438. position: relative;
  439. &:hover .icon,
  440. .number {
  441. @include scale(0,0);
  442. opacity: 0;
  443. }
  444. &:hover .number {
  445. @include transition( all 0.1s 0.1s ease-in-out);
  446. @include scale(1,1);
  447. opacity: 1;
  448. }
  449. .number,
  450. .icon {
  451. @include transition( all 0.1s 0s ease-in-out);
  452. position: absolute;
  453. top: 0;
  454. left: 0;
  455. }
  456. }
  457. &.btn-md.btn-icon-labeled {
  458. .icon:before {
  459. line-height: 29px;
  460. }
  461. .icon-label {
  462. margin: 6px 0px;
  463. }
  464. }
  465. &.btn-icon-labeled {
  466. font-size: 0px;
  467. min-width: 60px;
  468. .letter,
  469. .number,
  470. .icon {
  471. position: absolute;
  472. left: 0;
  473. top: 0;
  474. }
  475. .jewel,
  476. .letter,
  477. .number,
  478. .icon,
  479. .icon-label {
  480. transition: opacity 0.1s 0s ease-in-out, margin 0.1s 0s ease-in-out;
  481. -webkit-transition: opacity 0.1s 0s ease-in-out, margin 0.1s 0s ease-in-out;
  482. }
  483. .letter {line-height: 42px; }
  484. .icon:before {line-height: 42px; }
  485. .icon-label {
  486. font-size: 11px;
  487. text-transform: capitalize;
  488. text-align: center;
  489. margin: 8px 0;
  490. display: block;
  491. position: absolute;
  492. bottom: 0px;
  493. left: 0px;
  494. width: 100%;
  495. line-height: 1.4;
  496. overflow: hidden;
  497. text-overflow: ellipsis;
  498. white-space: nowrap;
  499. padding: 0 0px;
  500. font-weight: bold;
  501. }
  502. &.hover {
  503. .letter, .number, .icon:before { line-height: 60px; }
  504. .letter, .number, .icon:before { @include transition( line-height 0.1s 0s ease-in-out); }
  505. .icon-label { opacity: 0; margin: 0; }
  506. &:hover {
  507. .icon-label { opacity: 1; margin: 8px 0; }
  508. .letter, .number, .icon:before { line-height: 42px; }
  509. }
  510. &.btn-xl {
  511. .letter, .number, .icon:before { line-height: 60px; }
  512. .icon-label { margin: 6px 0; }
  513. &:hover {
  514. .icon-label { opacity: 1; margin: 12px 0; }
  515. .letter, .number, .icon:before { line-height: 60px; }
  516. }
  517. }
  518. }
  519. }
  520. &.btn-xxs {
  521. min-width: 16px;
  522. height: 16px;
  523. line-height: 16px;
  524. font-size: 10px;
  525. padding: 0 5px;
  526. }
  527. &.btn-xs {
  528. min-width: 24px;
  529. height: 24px;
  530. line-height: 24px;
  531. font-size: 10px;
  532. padding: 0 7px;
  533. }
  534. &.btn-sm {
  535. min-width: 32px;
  536. height: 32px;
  537. line-height: 32px;
  538. font-size: 13px;
  539. padding: 0 13px;
  540. }
  541. &.btn-md {
  542. min-width: 44px;
  543. height: 44px;
  544. line-height: 44px;
  545. font-size: 15px;
  546. }
  547. &.btn-xl {
  548. min-width: 80px;
  549. height: 80px;
  550. line-height: 80px;
  551. padding: 0px 40px;
  552. font-size: 25px;
  553. text-transform: none;
  554. font-weight: 400;
  555. }
  556. &.btn-xxl {
  557. min-width: 140px;
  558. height: 140px;
  559. padding: 0px 60px;
  560. font-size: 60px;
  561. text-transform: none;
  562. font-weight: 400;
  563. }
  564. &.btn-half,
  565. &.btn-half .icon,
  566. &.btn-half .icon:before {
  567. min-width: 30px;
  568. width: 30px;
  569. }
  570. &.btn-half.btn-sm,
  571. &.btn-half.btn-sm .icon,
  572. &.btn-half.btn-sm .icon:before {
  573. min-width: 16px;
  574. width: 16px;
  575. }
  576. &.btn-half.btn-md,
  577. &.btn-half.btn-md .icon,
  578. &.btn-half.btn-md .icon:before {
  579. min-width: 22px;
  580. width: 22px;
  581. }
  582. &.btn-half.btn-xl,
  583. &.btn-half.btn-xl .icon,
  584. &.btn-half.btn-xl .icon:before {
  585. min-width: 40px;
  586. width: 40px;
  587. }
  588. &.btn-xxl { .icon { @include icon-xxl; } }
  589. &.btn-xl { .icon { @include icon-xl; } }
  590. &.btn-md { .icon { @include icon-md; } }
  591. &.btn-sm { .icon { @include icon-sm; } }
  592. &.btn-xs { .icon { @include icon-xs; } }
  593. &.btn-xxs { .icon { @include icon-xxs; } }
  594. &.btn-block {
  595. width: 100%;
  596. display: block !important;
  597. .icon-label {
  598. display: block;
  599. }
  600. }
  601. }
  602. .btn-block + .btn-block {margin-top: 2px; }
  603. .btn-cluster {
  604. font-size: 0;
  605. @include clearfix();
  606. .icon {
  607. width: 100%;
  608. &:after,
  609. &:before {
  610. width: 100%;
  611. }
  612. }
  613. > * {
  614. border-radius: 0 !important;
  615. background-clip: padding-box;
  616. width: 100%;
  617. float: left;
  618. &:nth-last-child(2),
  619. &:nth-child(2) {
  620. width: 50%;
  621. }
  622. &:nth-last-child(2) { border-right: 1px solid rgba(0,0,0,0.025);}
  623. &:nth-child(2) { border-left: 1px solid rgba(0,0,0,0.025);}
  624. &:nth-last-child(3),
  625. &:nth-child(2):nth-last-child(2),
  626. &:nth-child(3) {width: 33.33333%; }
  627. &:nth-last-child(3) {border-right: 1px solid rgba(0,0,0,0.025);}
  628. &:nth-child(2):nth-last-child(2) {border-left: 1px solid rgba(0,0,0,0.025);border-right: 1px solid rgba(0,0,0,0.025);}
  629. &:nth-child(3) {border-left: 1px solid rgba(0,0,0,0.025); }
  630. &:nth-last-child(4),
  631. &:nth-child(2):nth-last-child(3),
  632. &:nth-child(3):nth-last-child(2),
  633. &:nth-child(4) {width: 25%; }
  634. &:nth-last-child(4) {border-right: 1px solid rgba(0,0,0,0.025);}
  635. &:nth-child(3):nth-last-child(2),
  636. &:nth-child(2):nth-last-child(3) {border-left: 1px solid rgba(0,0,0,0.025);border-right: 1px solid rgba(0,0,0,0.025);}
  637. &:nth-child(4) {border-left: 1px solid rgba(0,0,0,0.025); }
  638. }
  639. }
  640. .btn-follow.alt .icon { color: $green !important;}
  641. .btn-like.alt .icon { color: $red !important; }
  642. .btn-checkbox {
  643. &:active,
  644. &.active {
  645. .icon {
  646. @include opacity(1);
  647. }
  648. }
  649. .icon {
  650. @include opacity(0.3);
  651. }
  652. }
  653. .btn-circle {
  654. &.open {
  655. .btn-group {
  656. @include scale(1,1);
  657. .btn {
  658. @include scale(1,1);
  659. }
  660. }
  661. }
  662. .btn-group {
  663. @include scale(0,0);
  664. //@include transition( all 0.1s 0s ease-in-out);
  665. position: absolute;
  666. top: -100%;
  667. left: -100%;
  668. width: 350%;
  669. height: 300%;
  670. font-size: 0px;
  671. margin-left: -12px;
  672. .btn {
  673. @include scale(0,0);
  674. //@include transition( all 0.1s 0.05s ease-in-out);
  675. margin: 0 4px;
  676. &:first-child {
  677. margin-left: 17.35%;
  678. }
  679. &:nth-last-child(2) {
  680. margin-left: 17.35%;
  681. }
  682. }
  683. }
  684. }
  685. // .btn-group + .btn-group {
  686. // margin-left: 2px;
  687. // }
  688. // .btn-group + .btn {
  689. // margin-left: 2px;
  690. // }
  691. .btn-group,
  692. .form-group {
  693. .btn-prev,
  694. .btn-less { bottom: 0; left: 0px; }
  695. .btn-next,
  696. .btn-more { bottom: 0; right: 0px;}
  697. }
  698. .btn-prev,
  699. .btn-next,
  700. .btn-more,
  701. .btn-less {
  702. position: absolute !important;
  703. opacity: 0.5;
  704. min-width: 44px !important;
  705. width: 44px;
  706. &:before {
  707. width: 44px !important;
  708. }
  709. }
  710. .btn-more,
  711. .btn-less {
  712. &:before {
  713. margin-top: -8px;
  714. }
  715. }
  716. .btn-more:before { @include icon; @include icon-md; @extend .icon-plus; }
  717. .btn-less:before { @include icon; @include icon-md; @extend .icon-minus; }
  718. .btn-prev:before { @include icon; @extend .icon-triangle-left;}
  719. .btn-next:before { @include icon; @extend .icon-triangle-right;}
  720. .dropdown-menu {
  721. .btn-group {
  722. > .btn {
  723. border-radius: 0px;
  724. &:first-child {
  725. border-top-left-radius: $radius !important;
  726. border-bottom-left-radius: $radius !important;
  727. }
  728. &:last-child {
  729. border-top-right-radius: $radius !important;
  730. border-bottom-right-radius: $radius !important;
  731. }
  732. }
  733. }
  734. &.vertical {
  735. > .btn {
  736. &:first-child {
  737. border-top-left-radius: $radius !important;
  738. border-top-right-radius: $radius !important;
  739. }
  740. &:last-child {
  741. border-bottom-left-radius: $radius !important;
  742. border-bottom-right-radius: $radius !important;
  743. }
  744. }
  745. }
  746. }
  747. .btn-group {
  748. > .btn-collapse,
  749. > .dropdown {
  750. > .btn{ border-radius: 0px; }
  751. > .btn-group > .btn { border-radius: 0px; }
  752. &:first-child {
  753. > .btn-group > .btn:first-child,
  754. > .btn{
  755. border-top-left-radius: 3px;
  756. border-bottom-left-radius: 3px;
  757. }
  758. }
  759. &:last-child {
  760. > .btn-group > .btn:last-child,
  761. > .btn{
  762. border-top-right-radius: 3px;
  763. border-bottom-right-radius: 3px;
  764. }
  765. }
  766. }
  767. &.vertical {
  768. .btn-collapse {
  769. width: 60px;
  770. height: 0px;
  771. &.in {
  772. height: 60px;
  773. }
  774. }
  775. }
  776. }
  777. .btn-collapse {
  778. vertical-align: middle;
  779. display: inline-block;
  780. width: 0px;
  781. height: 60px;
  782. // pointer-events: auto;
  783. overflow: hidden;
  784. //@include transition( all 0.25s ease-in-out);
  785. &.btn-collapse-md {
  786. height: 44px;
  787. }
  788. .member,
  789. .btn .icon{
  790. @include scale(0,0);
  791. //@include transition-transform( 0.1s ease-in-out 0s );
  792. }
  793. &.in {
  794. .member,
  795. .btn .icon{
  796. @include scale(1,1);
  797. //@include transition-transform( 0.1s ease-in-out 0.15s );
  798. }
  799. pointer-events: auto;
  800. cursor: pointer;
  801. width: 60px;
  802. &.btn-collapse-md {width: 44px; }
  803. }
  804. }
  805. .btn-group > .btn-collapse {
  806. border-radius: 0px;
  807. &.first > .btn,
  808. &:first-child > .btn{
  809. border-top-left-radius: 3px;
  810. border-bottom-left-radius: 3px;
  811. }
  812. &.last > .btn,
  813. &:last-child > .btn{
  814. border-top-right-radius: 3px;
  815. border-bottom-right-radius: 3px;
  816. }
  817. }
  818. .btn-group > .btn {
  819. border-radius: 0px;
  820. &:first-child{
  821. border-top-left-radius: 3px !important;
  822. border-bottom-left-radius: 3px !important;
  823. }
  824. &:last-child{
  825. border-top-right-radius: 3px !important;
  826. border-bottom-right-radius: 3px !important;
  827. }
  828. }
  829. .btn {
  830. &.first{
  831. border-top-left-radius: 3px !important;
  832. border-bottom-left-radius: 3px !important;
  833. }
  834. &.last{
  835. border-top-right-radius: 3px !important;
  836. border-bottom-right-radius: 3px !important;
  837. }
  838. }
  839. .btn-group.bottom-left > .btn {
  840. border-radius: 0px;
  841. &:first-child{
  842. border-top-left-radius: 0px;
  843. border-bottom-left-radius: 0px;
  844. }
  845. &.last,
  846. &:last-child{
  847. border-top-right-radius: 3px;
  848. border-bottom-right-radius: 0px;
  849. }
  850. }
  851. .btn-xyz {
  852. position: relative;
  853. display: inline-block;
  854. line-height: 0px;
  855. padding: 0px;
  856. font-size: 0px;
  857. vertical-align: middle;
  858. white-space: nowrap;
  859. @include clearfix;
  860. min-height: 44px;
  861. }
  862. .btn-group {
  863. position: relative;
  864. display: inline-block;
  865. line-height: 0px;
  866. padding: 0px;
  867. font-size: 0px;
  868. vertical-align: middle;
  869. white-space: nowrap;
  870. &.dark {
  871. border-radius: $radius;
  872. background-color: $dark;
  873. color: $lighter;
  874. .btn {
  875. color: $lighter;
  876. }
  877. }
  878. &.lighten {
  879. background-color: rgba(255,255,255,0.3);
  880. color: $medium;
  881. }
  882. &.round {
  883. border-radius: 60px;
  884. > .btn:first-child {
  885. border-top-left-radius: 50%;
  886. border-bottom-left-radius: 50%;
  887. }
  888. > .btn:last-child {
  889. border-top-right-radius: 50%;
  890. border-bottom-right-radius: 50%;
  891. }
  892. }
  893. &.vertical {
  894. > .dropdown,
  895. > .btn {
  896. display: block;
  897. border-radius: 0 !important;
  898. &:first-child {
  899. border-top-left-radius: $radius !important;
  900. border-top-right-radius: $radius !important;
  901. }
  902. &:last-child {
  903. border-bottom-left-radius: $radius !important;
  904. border-bottom-right-radius: $radius !important;
  905. }
  906. }
  907. }
  908. .btn-group-title {
  909. position: absolute;
  910. bottom: 100%;
  911. left: 0px;
  912. padding-bottom: 8px;
  913. color: $medium;;
  914. font-size: 10px;
  915. width: 100%;
  916. text-align: center;
  917. line-height: 1.5;
  918. }
  919. &.btn-group-block {
  920. width: 100%;
  921. display: block !important;
  922. .btn {
  923. text-align: left;
  924. }
  925. }
  926. }
  927. .btn-group-vertical {
  928. > div {
  929. > .btn {
  930. display: block;
  931. border-radius: 0px;
  932. }
  933. &:first-child > .btn {
  934. border-top-left-radius: 3px;
  935. border-top-right-radius: 3px;
  936. }
  937. &:last-child > .btn {
  938. border-bottom-left-radius: 3px;
  939. border-bottom-right-radius: 3px;
  940. }
  941. }
  942. }
  943. .btn-hidden {
  944. @include scale(0,0);
  945. pointer-events:none;
  946. &.btn-visible {
  947. @include scale(1,1);
  948. pointer-events:auto;
  949. }
  950. }
  951. .btn:hover {
  952. .btn-flyout .btn{
  953. @include translateX(0%);
  954. opacity: 1;
  955. }
  956. }
  957. .btn-flyout {
  958. pointer-events: none;
  959. overflow: hidden;
  960. position: absolute;
  961. top: 0;
  962. left: 80%;
  963. border-radius: 100px;
  964. padding-top: 5px;
  965. .btn {
  966. //@include transition( all 0.1s 0s ease-in-out);
  967. opacity: 0;
  968. vertical-align: top;
  969. @include translateX(-10%);
  970. }
  971. }
  972. // .light .btn {
  973. // &:active,
  974. // &.active {
  975. // color: $darker !important;
  976. // }
  977. // }
  978. .jewel {
  979. background-color: $medium;
  980. color: $light;
  981. border-width: 1px;
  982. border-style: solid;
  983. border-color: rgba(0,0,0,0.25);
  984. color: $dark;
  985. font-size: 11px;
  986. font-weight: 700;
  987. line-height: 7px;
  988. padding: 4px;
  989. min-width: 16px;
  990. min-height: 16px;
  991. position: absolute;
  992. top: 4px;
  993. right: 4px;
  994. margin: 4px;
  995. z-index: 100;
  996. border-radius: 50px;
  997. }