_buttons.scss 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Component: Button
  3. * -----------------
  4. */
  5. .btn {
  6. // Flat buttons
  7. &.btn-flat {
  8. @include border-radius(0);
  9. -webkit-box-shadow: none;
  10. -moz-box-shadow: none;
  11. box-shadow: none;
  12. border-width: 1px;
  13. }
  14. // input file btn
  15. &.btn-file {
  16. position: relative;
  17. overflow: hidden;
  18. > input[type='file'] {
  19. position: absolute;
  20. top: 0;
  21. right: 0;
  22. min-width: 100%;
  23. min-height: 100%;
  24. font-size: 100px;
  25. text-align: right;
  26. opacity: 0;
  27. outline: none;
  28. background: white;
  29. cursor: inherit;
  30. display: block;
  31. }
  32. }
  33. }
  34. // Button color variations
  35. .btn-default {
  36. background-color: #f4f4f4;
  37. color: #444;
  38. border-color: #ddd;
  39. &:hover,
  40. &:active,
  41. &.hover {
  42. background-color: darken(#f4f4f4, 5%);
  43. }
  44. }
  45. // Application buttons
  46. .btn-app {
  47. @include border-radius(3px);
  48. position: relative;
  49. padding: 15px 5px;
  50. margin: 0 0 10px 10px;
  51. min-width: 80px;
  52. height: 60px;
  53. text-align: center;
  54. color: #666;
  55. border: 1px solid #ddd;
  56. background-color: #f4f4f4;
  57. font-size: 12px;
  58. // Icons within the btn
  59. > .fa,
  60. > .glyphicon,
  61. > .ion {
  62. font-size: 20px;
  63. display: block;
  64. }
  65. &:hover {
  66. background: #f4f4f4;
  67. color: #444;
  68. border-color: #aaa;
  69. }
  70. &:active,
  71. &:focus {
  72. box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  73. }
  74. // The badge
  75. > .badge {
  76. position: absolute;
  77. top: -3px;
  78. right: -10px;
  79. font-size: 10px;
  80. font-weight: 400;
  81. }
  82. }