You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

button.scss 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @mixin base-button($primaryStyleName : v-button) {
  2. /*
  3. * Default button (more customizable)
  4. * -------------------------------------- */
  5. .#{$primaryStyleName} {
  6. display: inline-block;
  7. zoom: 1;
  8. text-align: center !important;
  9. text-decoration: none;
  10. border: 2px outset #ddd;
  11. background: #eee;
  12. cursor: pointer;
  13. white-space: nowrap;
  14. margin: 0;
  15. padding: .2em 1em;
  16. color: inherit;
  17. font: inherit;
  18. font-size: $font-size;
  19. line-height: normal;
  20. -webkit-touch-callout: none;
  21. -webkit-user-select: none;
  22. -khtml-user-select: none;
  23. -moz-user-select: none;
  24. -ms-user-select: none;
  25. user-select: none;
  26. -webkit-box-sizing: border-box;
  27. -moz-box-sizing: border-box;
  28. box-sizing: border-box;
  29. }
  30. .#{$primaryStyleName}.v-disabled {
  31. cursor: default;
  32. }
  33. .#{$primaryStyleName}-wrap,
  34. .#{$primaryStyleName}-caption {
  35. vertical-align: baseline;
  36. white-space: nowrap;
  37. font: inherit;
  38. color: inherit;
  39. line-height: normal;
  40. }
  41. .#{$primaryStyleName} .v-icon {
  42. vertical-align: middle;
  43. margin-right: 3px;
  44. border: none;
  45. }
  46. .#{$primaryStyleName} .v-errorindicator {
  47. display: inline-block;
  48. zoom: 1;
  49. vertical-align: middle;
  50. float: none;
  51. }
  52. /* Link style (we really should deprecate this) */
  53. .#{$primaryStyleName}-link {
  54. border: none;
  55. text-align: left !important;
  56. background: transparent;
  57. padding: 0;
  58. color: inherit;
  59. -khtml-user-select: text;
  60. -moz-user-select: text;
  61. -ie-user-select: text;
  62. user-select: text;
  63. }
  64. /* Inset Safari focus outline a bit */
  65. .v-sa & .#{$primaryStyleName}-link:focus{
  66. outline-offset: -3px;
  67. }
  68. .#{$primaryStyleName}-link .#{$primaryStyleName}-caption {
  69. text-decoration: underline;
  70. color: inherit;
  71. text-align: left;
  72. }
  73. }