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

//  # Default button
//
//  Default style for buttons is set by the <code>.lib-button()</code> mixin. The mixin is called in <code>.lib-magento-reset()</code> or it can be called directly.
//
//  ## Default button large
//  ```html
//  <button class="example-button-1 example-button-2" type="button"><span>Button</span></button>
//  <button class="example-button-1 example-button-2 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-1 example-button-2 :active" type="button"><span>Active</span></button>
//  <button class="example-button-1 example-button-2" type="button" disabled><span>Disabled</span></button>
//  ```
//
//  ## Default button
//  ```html
//  <button class="example-button-1" type="button"><span>Button</span></button>
//  <button class="example-button-1 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-1 :active" type="button"><span>Active</span></button>
//  <button class="example-button-1" type="button" disabled><span>Disabled</span></button>
//  ```
//
//  ## Default button small
//  ```html
//  <button class="example-button-1 example-button-3" type="button"><span>Button</span></button>
//  <button class="example-button-1 example-button-3 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-1 example-button-3 :active" type="button"><span>Active</span></button>
//  <button class="example-button-1 example-button-3" type="button" disabled><span>Disabled</span></button>
//  ```
//

button {
    .lib-button(@_button-margin: 3px);
    border-radius: 3px;
    &:active,
    &:focus {
        box-shadow: inset 0 2px 1px rgba(0,0,0,.12);
    }
}

.example-button-1 {
    &.example-button-2 {
        .lib-button-l();
    }
    &.example-button-3 {
        .lib-button-s();
        border-radius: 0;
        color: @color-black;
        &:hover,
        &.active {
            color: @color-black;
        }
    }
}

//  # Button variables
//
//  <pre>
//    <table>
//      <tr>
//        <th class="vars_head">Mixin variable</th>
//        <th class="vars_head">Global variable</th>
//        <th class="vars_head">Default value</th>
//        <th class="vars_head">Allowed values</th>
//        <th class="vars_head">Comment</th>
//      </tr>
//      <tr>
//        <th>@_button-font-family</th>
//        <td>@button__font-family</td>
//        <td class="vars_value">@font-family__base</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button font family</td>
//      </tr>
//      <tr>
//        <th>@_button-font-size</th>
//        <td>@button__font-size</td>
//        <td class="vars_value">@font-size__base</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button font size</td>
//      </tr>
//      <tr>
//        <th>@_button-font-weight</th>
//        <td>@button__font-weight</td>
//        <td class="vars_value">@font-weight__bold</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button font weight</td>
//      </tr>
//      <tr>
//        <th>@_button-cursor</th>
//        <td>@button__cursor</td>
//        <td class="vars_value">pointer</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button cursor</td>
//      </tr>
//      <tr>
//        <th>@_button-display</th>
//        <td>@button__display</td>
//        <td class="vars_value">inline-block</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button display</td>
//      </tr>
//      <tr>
//        <th>@_button-disabled-opacity</th>
//        <td>@button__disabled__opacity</td>
//        <td class="vars_value">.5</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button disabled opacity</td>
//      </tr>
//      <tr>
//        <th>@_button-line-height</th>
//        <td>@button__line-height</td>
//        <td class="vars_value">@font-size__base + 2</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button height</td>
//      </tr>
//      <tr>
//        <th>@_button-width</th>
//        <td>@button__width</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button width</td>
//      </tr>
//      <tr>
//        <th>@_button-margin</th>
//        <td>@button__margin</td>
//        <td class="vars_value">0</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button margin</td>
//      </tr>
//      <tr>
//        <th>@_button-padding</th>
//        <td>@button__padding</td>
//        <td class="vars_value">7px 15px</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button padding</td>
//      </tr>
//      <tr>
//        <th>@_button-gradient</th>
//        <td>@button__gradient</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | true</td>
//        <td>Button has gradient background</td>
//      </tr>
//      <tr>
//        <th>@_button-gradient-direction</th>
//        <td>@button__gradient-direction</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | vertical | horizontal</td>
//        <td>Direction of button background gradient (if there is any)</td>
//      </tr>
//      <tr>
//        <th colspan="5" class="vars_section">Button default state</th>
//      </tr>
//      <tr>
//        <th>@_button-color</th>
//        <td>@button__color</td>
//        <td class="vars_value">@primary__color</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button text color</td>
//      </tr>
//      <tr>
//        <th>@_button-background</th>
//        <td>@button__background</td>
//        <td class="vars_value">#f2f2f2</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button background</td>
//      </tr>
//      <tr>
//        <th>@_button-border</th>
//        <td>@button__border</td>
//        <td class="vars_value">1px solid #cdcdcd</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button border</td>
//      </tr>
//      <tr>
//        <th>@_button-gradient-color-start</th>
//        <td>@button__gradient-color-start</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Gradient background start color</td>
//      </tr>
//      <tr>
//        <th>@_button-gradient-color-end</th>
//        <td>@button__gradient-color-end</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Gradient background end color</td>
//      </tr>
//      <tr>
//        <th colspan="5" class="vars_section">Button hover state</th>
//      </tr>
//      <tr>
//        <th>@_button-color-hover</th>
//        <td>@button__hover__color</td>
//        <td class="vars_value">#555</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Hovered button text color</td>
//      </tr>
//      <tr>
//        <th>@_button-background-hover</th>
//        <td>@button__hover__background</td>
//        <td class="vars_value">#e2e2e2</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Hovered button background</td>
//      </tr>
//      <tr>
//        <th>@_button-border-hover</th>
//        <td>@button__hover__border</td>
//        <td class="vars_value">@button__border</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Hovered button border</td>
//      </tr>
//      <tr>
//        <th nowrap="nowrap">@_button-gradient-color-start-hover</th>
//        <td>@button__hover__gradient-color-start</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Hovered button gradient background start color</td>
//      </tr>
//      <tr>
//        <th>@_button-gradient-color-end-hover</th>
//        <td>@button__hover__gradient-color-end</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Hovered button gradient background end color</td>
//      </tr>
//      <tr>
//        <th colspan="5" class="vars_section">Button active state</th>
//      </tr>
//      <tr>
//        <th>@_button-color-active</th>
//        <td>@button__active__color</td>
//        <td class="vars_value">@button__color</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Active button text color</td>
//      </tr>
//      <tr>
//        <th>@_button-background-active</th>
//        <td>@button__active__background</td>
//        <td class="vars_value">@button__hover__background</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Active button background</td>
//      </tr>
//      <tr>
//        <th>@_button-border-active</th>
//        <td>@button__active__border</td>
//        <td class="vars_value">@button__border</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Active button border</td>
//      </tr>
//      <tr>
//        <th>@_button-gradient-color-start-active<br /></th>
//        <td>@button__active__gradient-color-start</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Active button gradient background start color</td>
//      </tr>
//      <tr>
//        <th>@_button-gradient-color-end-active</th>
//        <td>@button__active__gradient-color-end</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Active button gradient background end color</td>
//      </tr>
//      <tr>
//        <th colspan="5" class="vars_section">Button with icon</th>
//      </tr>
//      <tr>
//        <th>@_button-icon-use</th>
//        <td>@button-icon__use</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | true</td>
//        <td>Button has an icon</td>
//      </tr>
//      <tr>
//        <th>@_button-font-content</th>
//        <td>@button-icon__content</td>
//        <td class="vars_value">@icon-settings</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button icon symbol</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font</th>
//        <td>@button-icon__font</td>
//        <td class="vars_value">@icon-font</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button icon font</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-size</th>
//        <td>@button-icon__font-size</td>
//        <td class="vars_value">22px</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button icon font size</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-line-height</th>
//        <td>@button-icon__line-height</td>
//        <td class="vars_value" nowrap="nowrap">@button-icon__font-size</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button icon line height</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-color</th>
//        <td>@button-icon__color</td>
//        <td class="vars_value">inherit</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button icon color</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-color-hover</th>
//        <td>@button-icon__hover__font-color</td>
//        <td class="vars_value">inherit</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Hovered button icon color</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-color-active</th>
//        <td>@button-icon__active__font-color</td>
//        <td class="vars_value">inherit</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Active button icon color</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-margin</th>
//        <td>@button-icon__margin</td>
//        <td class="vars_value">0</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button icon margin</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-vertical-align</th>
//        <td>@button-icon__vertical-align</td>
//        <td class="vars_value">top</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button icon vertical align</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-position</th>
//        <td>@button-icon__position</td>
//        <td class="vars_value">@icon__position</td>
//        <td class="vars_value">'' | false | before | after</td>
//        <td>Button icon font position</td>
//      </tr>
//      <tr>
//        <th>@_button-icon-font-text-hide</th>
//        <td>@button-icon__text-hide</td>
//        <td class="vars_value">false</td>
//        <td class="vars_value">'' | false | true</td>
//        <td>Button icon text hide</td>
//      </tr>
//    </table>
//  </pre>
//
//  # Button as an icon
//
//  To make a button look like an icon you need to:
//
//  enable icon:
//  ```css
//  @_button-icon-use: true
//  ```
//  set the font icon code:
//  ```css
//  @_button-font-content: @icon-cart
//  ```
//  hide button text:
//  ```css
//  @_button-icon-font-text-hide: true
//  ```
//
//  ```html
//    <button class="example-button-10" type="button">
//        <span>Add to cart</span>
//    </button>
//    <button class="example-button-10 :hover" type="button">
//        <span>Add to cart</span>
//    </button>
//    <button class="example-button-10 :active" type="button">
//        <span>Add to cart</span>
//    </button>
//  ```
//

.example-button-10 {
    .lib-button(
        @_button-margin: 3px,
        @_button-icon-use: true,
        @_button-font-content: @icon-cart,
        @_button-icon-font-text-hide: true
    );
    .lib-button-reset();
}

//  # Button with an icon on the left or right side of the text
//
//  <code>@_button-icon-font-position</code> variable is used to set up the icon position
//
//  Use <code>before</code> to set up button icon position on the left:
//  ```css
//  @_button-icon-font-position: before
//  ```
//
//  ```html
//    <button class="example-button-11" type="button" title="Add to cart">
//        <span>Button</span>
//    </button>
//    <button class="example-button-11 :hover" type="button" title="Add to cart">
//        <span>Hover</span>
//    </button>
//    <button class="example-button-11 :active" type="button" title="Add to cart">
//        <span>Active</span>
//    </button>
//    <button class="example-button-11 disabled" type="button" title="Add to cart">
//        <span>Disabled</span>
//    </button>
//  ```
//  Use <code>after</code> to set up button icon position on the right:
//  ```css
//  @_button-icon-font-position: after
//  ```
//  ```html
//    <button class="example-button-12" type="button" title="Add to cart">
//        <span>Button</span>
//    </button>
//    <button class="example-button-12 :hover" type="button" title="Add to cart">
//        <span>Hover</span>
//    </button>
//    <button class="example-button-12 :active" type="button" title="Add to cart">
//        <span>Active</span>
//    </button>
//    <button class="example-button-12 disabled" type="button" title="Add to cart">
//        <span>Disabled</span>
//    </button>
//  ```
//

.example-button-11 {
    .lib-button(
        @_button-margin: 3px,
        @_button-icon-use: true,
        @_button-font-content: @icon-cart,
        @_button-icon-font-position: before
    );
}

.example-button-12 {
    .lib-button(
        @_button-margin: 3px,
        @_button-icon-use: true,
        @_button-font-content: @icon-cart,
        @_button-icon-font-position: after
   );
}

//  # Button with fixed width
//
//  To get a fixed width button, you need to set:
//  ```css
//  @_button-width: 100px
//  ```
//
//  ```html
//    <button class="example-button-13" type="button" title="Add to cart">
//        <span>Button</span>
//    </button>
//    <button class="example-button-13 :hover" type="button" title="Add to cart">
//        <span>Hover</span>
//    </button>
//    <button class="example-button-13 :active" type="button" title="Add to cart">
//        <span>Active</span>
//    </button>
//    <button class="example-button-13 disabled" type="button" title="Add to cart">
//        <span>Disabled</span>
//    </button>
//  ```
//

.example-button-13 {
    .lib-button(@_button-width: 100px, @_button-margin: 3px);
}

//  # Primary button
//
//  The <code>.lib-button-primary()</code> mixin is used to create a **primary button**. By default it uses Primary button variables from _variables.less file.
//
//  ##Primary button big
//  ```html
//  <button class="example-button-4 example-button-5" type="button"><span>Button</span></button>
//  <button class="example-button-4 example-button-5 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-4 example-button-5 :active" type="button"><span>Active</span></button>
//  <button class="example-button-4 example-button-5" type="button" disabled><span>Disabled</span></button>
//  ```
//
//  ##Primary button
//  ```html
//  <button class="example-button-4" type="button"><span>Button</span></button>
//  <button class="example-button-4 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-4 :active" type="button"><span>Active</span></button>
//  <button class="example-button-4 disabled" type="button"><span>Disabled</span></button>
//  ```
//
//  ##Primary button small
//  ```html
//  <button class="example-button-4 example-button-6" type="button"><span>Button</span></button>
//  <button class="example-button-4 example-button-6 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-4 example-button-6 :active" type="button"><span>Active</span></button>
//  <button class="example-button-4 example-button-6" type="button" disabled><span>Disabled</span></button>
//  ```
//

.example-button-4 {
    .lib-button-primary(
        @_button-margin: 3px
    );
    &:active {
        box-shadow: inset 0 3px 1px rgba(0,0,0,.29);
    }
    &.example-button-5 {
        .lib-button-l(@_button-l-padding: 7px 35px);
    }
    &.example-button-6 {
        .lib-button-s();
        color: @color-white;
        &:hover,
        &.active {
            color: @color-white;
        }
    }
}

//  # Primary button variables
//
//  In the variables list primary buttons are configured with <code>@button-primary__</code> prefix. So for example to configure primary button background you should use <code>@_button-background</code> variable of the mixin or <code>@button-primary__background</code> of the global variables list.
//
//  <pre>
//    <table>
//        <tr>
//            <th class="vars_head">Mixin variable</th>
//            <th class="vars_head">Global variable</th>
//            <th class="vars_head">Default value</th>
//            <th class="vars_head">Allowed values</th>
//            <th class="vars_head">Comment</th>
//        </tr>
//        <tr>
//            <th>@_button-line-height</th>
//            <td>@button-primary__line-height</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button line-height</td>
//        </tr>
//        <tr>
//            <th>@_button-width</th>
//            <td>@button-primary__width</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button width</td>
//        </tr>
//        <tr>
//            <th>@_button-margin</th>
//            <td>@button-primary__margin</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button margin</td>
//        </tr>
//        <tr>
//            <th>@_button-padding</th>
//            <td>@button-primary__padding</td>
//            <td class="vars_value">@button__padding</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button padding</td>
//        </tr>
//        <tr>
//            <th>@_button-gradient</th>
//            <td>@button-primary__gradient</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | true</td>
//            <td>Button has gradient background</td>
//        </tr>
//        <tr>
//            <th>@_button-gradient-direction</th>
//            <td>@button-primary__gradient-direction</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | vertical | horizontal</td>
//            <td>Direction of button background gradient (if there is any)</td>
//        </tr>
//        <tr>
//            <th colspan="5" class="vars_section">Button default state</th>
//        </tr>
//        <tr>
//            <th>@_button-background</th>
//            <td>@button-primary__background</td>
//            <td class="vars_value">#1979c3</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button background</td>
//        </tr>
//        <tr>
//            <th>@_button-border</th>
//            <td>@button-primary__border</td>
//            <td class="vars_value">1px solid #1979c3</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button border</td>
//        </tr>
//        <tr>
//            <th>@_button-color</th>
//            <td>@button-primary__color</td>
//            <td class="vars_value">#fff</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button text color</td>
//        </tr>
//        <tr>
//            <th>@_button-gradient-color-start</th>
//            <td>@button-primary__gradient-color-start</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Gradient background start color</td>
//        </tr>
//        <tr>
//            <th>@_button-gradient-color-end</th>
//            <td>@button-primary__gradient-color-end</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Gradient background end color</td>
//        </tr>
//        <tr>
//            <th colspan="5" class="vars_section">Button hover state</th>
//        </tr>
//        <tr>
//            <th>@_button-background-hover</th>
//            <td>@button-primary__hover__background</td>
//            <td class="vars_value">#006bb4</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Hovered button background</td>
//        </tr>
//        <tr>
//            <th>@_button-border-hover</th>
//            <td>@button-primary__hover__border</td>
//            <td class="vars_value">1px solid #006bb4</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Hovered button border</td>
//        </tr>
//        <tr>
//            <th>@_button-color-hover</th>
//            <td>@button-primary__hover__color</td>
//            <td class="vars_value">@button-primary__color</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Hovered button text color</td>
//        </tr>
//        <tr>
//            <th nowrap="nowrap">@_button-gradient-color-start-hover</th>
//            <td>@button-primary__hover__gradient-color-start</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Hovered button gradient background start color</td>
//        </tr>
//        <tr>
//            <th>@_button-gradient-color-end-hover</th>
//            <td>@button-primary__hover__gradient-color-end</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Hovered button gradient background end color</td>
//        </tr>
//        <tr>
//            <th colspan="5" class="vars_section">Button active state</th>
//        </tr>
//        <tr>
//            <th>@_button-background-active</th>
//            <td>@button-primary__active__background</td>
//            <td class="vars_value">@button-primary__hover__background</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Active button background</td>
//        </tr>
//        <tr>
//            <th>@_button-border-active</th>
//            <td>@button-primary__active__border</td>
//            <td class="vars_value">@button-primary__hover__border</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Active button border</td>
//        </tr>
//        <tr>
//            <th>@_button-color-active</th>
//            <td>@button-primary__active__color</td>
//            <td class="vars_value">@button-primary__color</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Active button text color</td>
//        </tr>
//        <tr>
//            <th>@_button-gradient-color-start-active</th>
//            <td>@button-primary__active__gradient-color-start</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Active button gradient background start color</td>
//        </tr>
//        <tr>
//            <th>@_button-gradient-color-end-active</th>
//            <td>@button-primary__active__gradient-color-end</td>
//            <td class="vars_value">false</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Active button gradient background end color</td>
//        </tr>
//    </table>
//  </pre>

//  # Button with gradient background
//
//  The <code>.lib-button()</code> mixin can get its values from _variables.less file or directly
//  ```html
//  <button class="example-button-7" type="button"><span>Button</span></button>
//  <button class="example-button-7 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-7 :active" type="button"><span>Active</span></button>
//  <button class="example-button-7 disabled" type="button"><span>Disabled</span></button>
//  ```
//

.example-button-7 {
    .lib-button(
        @_button-margin: 3px,
        @_button-padding: @button__padding,
        @_button-gradient-color-start: #1979c3,
        @_button-gradient-color-end: #006bb4,
        @_button-color: @color-white,
        @_button-gradient-color-start-hover: #006bb4,
        @_button-gradient-color-end-hover: #1979c3,
        @_button-color-hover: @color-white,
        @_button-gradient-color-start-active: #006bb4,
        @_button-gradient-color-end-active: #006bb4,
        @_button-color-active: @color-white,
        @_button-gradient: true,
        @_button-gradient-direction: vertical,
        @_button-border: @button-primary__border,
        @_button-border-hover: @button-primary__hover__border,
        @_button-border-active: @button-primary__active__border
    );
    border-radius: 3px;
    &:active {
        box-shadow: inset 0 3px 1px rgba(0,0,0,.29);
    }
}

//  # Button as a link
//
//  The <code>.lib-button-as-link()</code> mixin is used to make button look like a link. It resets default button styles.
//
//  ```html
//  <button class="example-button-8" type="button"><span>Button</span></button>
//  <button class="example-button-8 :visited" type="button"><span>Visited</span></button>
//  <button class="example-button-8 :hover" type="button"><span>Hover</span></button>
//  <button class="example-button-8 :active" type="button"><span>Active</span></button>
//  <button class="example-button-8 disabled" type="button"><span>Disabled</span></button>
//  ```
//

.example-button-8 {
    .lib-button-as-link();
    font-weight: normal;
    &:active {
        box-shadow: none;
    }
}

//  # Button as a link variables
//
//  <pre>
//    <table>
//        <tr>
//            <th class="vars_head">Mixin variable</th>
//            <th class="vars_head">Global variable</th>
//            <th class="vars_head">Default value</th>
//            <th class="vars_head">Allowed values</th>
//            <th class="vars_head">Comment</th>
//        </tr>
//        <tr>
//            <th>@_link-color</th>
//            <td>@link__color</td>
//            <td class="vars_value">@link-color</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button as a link color</td>
//        </tr>
//        <tr>
//            <th>@_link-color-hover</th>
//            <td>@link__hover__color</td>
//            <td class="vars_value">@link-color-hover</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button as a link hovered color</td>
//        </tr>
//        <tr>
//            <th>@_line-height</th>
//            <td>@line-height__base</td>
//            <td class="vars_value">@line-height-base</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button as a link line height</td>
//        </tr>
//        <tr>
//            <th>@_margin</th>
//            <td>-</td>
//            <td class="vars_value">0</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button as a link margin</td>
//        </tr>
//        <tr>
//            <th>@_padding</th>
//            <td>-</td>
//            <td class="vars_value">0</td>
//            <td class="vars_value">'' | false | value</td>
//            <td>Button as a link padding</td>
//        </tr>
//        <tr>
//            <th>@_disabled_opacity</th>
//            <td>@button__disabled__opacity</td>
//            <td class="vars_value">.5</td>
//            <td class="vars_value">range between .1 and .9</td>
//            <td>Button as a link opacity</td>
//        </tr>
//    </table>

//  # Link as a button
//
//  The <code>.lib-link-as-button()</code> mixin is used to reset link styles (text-decoration and display inline). Then to make it look like a button, you need to add the <code>.lib-button()</code> mixin with appropriate parameters.
//
//  ```html
//  <a href="#" class="example-button-9"><span>Button</span></a>
//  <a href="#" class="example-button-9 :hover"><span>Hover</span></a>
//  <a href="#" class="example-button-9 :active"><span>Active</span></a>
//  <a href="#" class="example-button-9 disabled"><span>Disabled</span></a>
//  ```
//

.example-button-9 {
    .lib-link-as-button();
    .lib-button();
    margin: 3px;
    border-radius: 3px;
    font-weight: bold;
    &:active {
        box-shadow: inset 0 3px 1px rgba(0,0,0,.29);
    }
}

//  # Button reset
//
//  The <code>.lib-button-reset()</code> mixin is used to fully reset button styles.
//
//  ```html
//  <button class="example-button-14" type="button"><span>Button with reset styles</span></button>
//  ```
//

.example-button-14 {
    .lib-button-reset();
}

//  # Button revert secondary color
//
//  The <code>.lib-button-revert-secondary-color()</code> mixin is used to revert button styles (primary for example) to secondary color styles.
//  Also can be passed any color, background and border if needed.
//
//  ```html
//  <button class="example-button-15" type="button"><span>Reverted color</span></button>
//  <button class="example-button-16" type="button"><span>Custom colors</span></button>
//  ```
//

.example-button-15 {
    .lib-button-primary();
    .lib-button-revert-secondary-color();
}

//  # Button revert secondary color variables
//
//  <pre>
//    <table>
//      <tr>
//        <th class="vars_head">Mixin variable</th>
//        <th class="vars_head">Global variable</th>
//        <th class="vars_head">Default value</th>
//        <th class="vars_head">Allowed values</th>
//        <th class="vars_head">Comment</th>
//      </tr>
//      <tr>
//        <th>@_button-color</th>
//        <td>@button__color</td>
//        <td class="vars_value">@button__color</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button color</td>
//      </tr>
//      <tr>
//        <th>@_button-background</th>
//        <td>@button__background</td>
//        <td class="vars_value">@button__background</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button background</td>
//      </tr>
//      <tr>
//        <th>@_button-border</th>
//        <td>@button__border</td>
//        <td class="vars_value">@button__border</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button border</td>
//      </tr>
//      <tr>
//        <th>@_button-color-hover</th>
//        <td>@button__hover__color</td>
//        <td class="vars_value">@button__hover__color</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button hover color</td>
//      </tr>
//      <tr>
//        <th>@_button-background-hover</th>
//        <td>@button__hover__background</td>
//        <td class="vars_value">@button__hover__background</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button hover background</td>
//      </tr>
//      <tr>
//        <th>@_button-border-hover</th>
//        <td>@button__hover__border</td>
//        <td class="vars_value">@button__hover__border</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button hover border</td>
//      </tr>
//      <tr>
//        <th>@_button-color-active</th>
//        <td>@button__active__color</td>
//        <td class="vars_value">@button__active__color</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button active color</td>
//      </tr>
//      <tr>
//        <th>@_button-background-active</th>
//        <td>@button__active__background</td>
//        <td class="vars_value">@button__active__background</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button active background</td>
//      </tr>
//      <tr>
//        <th>@_button-border-active</th>
//        <td>@button__active__border</td>
//        <td class="vars_value">@button__active__border</td>
//        <td class="vars_value">'' | false | value</td>
//        <td>Button active border</td>
//      </tr>
//    </table>
//  </pre>

//  # Button revert secondary size
//
//  The <code>.lib-button-revert-secondary-size()</code> mixin is used to revert button sizes to secondary button sizes.
//  Also can be passed font-size, line-height and padding if needed.
//
//  ```html
//  <button class="example-button-17" type="button"><span>Reverted size</span></button>
//  <button class="example-button-18" type="button"><span>Custom sizes</span></button>
//  ```
//

.example-button-17 {
    .lib-button-l();
    .lib-button-revert-secondary-size();
}
.example-button-18 {
    .lib-button-revert-secondary-size(
        @_button-font-size: 10px,
        @_button-line-height: 12px,
        @_button-padding: 4px 10px
    );
}

//  # Button revert secondary size variables
//
//  <pre>
//    <table>
//      <tr>
//        <th class="vars_head">Mixin variable</th>
//        <th class="vars_head">Global variable</th>
//        <th class="vars_head">Default value</th>
//        <th class="vars_head">Allowed values</th>
//        <th class="vars_head">Comment</th>
//      </tr>
//      <tr>
//        <th>@_button-font-size</th>
//        <td>@button__font-size</td>
//        <td class="vars_value">@button__font-size</td>
//        <td class="vars_value">'' | value</td>
//        <td>Button font size</td>
//      </tr>
//      <tr>
//        <th>@_button-line-height</th>
//        <td>@button__line-height</td>
//        <td class="vars_value">@button__line-height</td>
//        <td class="vars_value">'' | value</td>
//        <td>Button line-height</td>
//      </tr>
//      <tr>
//        <th>@_button-padding</th>
//        <td>@button__padding</td>
//        <td class="vars_value">@button__padding</td>
//        <td class="vars_value">'' | value</td>
//        <td>Button padding</td>
//      </tr>
//    </table>
//  </pre>