_buttons.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. .btn.btn-like {
  2. @include button-outline-variant($secondary, lighten($red, 15%), rgba(lighten($red, 10%), 0.15), rgba(lighten($red, 10%), 0.5));
  3. &:not(:disabled):not(.disabled):active,
  4. &:not(:disabled):not(.disabled).active {
  5. color: lighten($red, 15%);
  6. }
  7. &:not(:disabled):not(.disabled):not(:hover) {
  8. background-color: transparent;
  9. }
  10. box-shadow: none !important;
  11. }
  12. .btn.btn-bookmark {
  13. @include button-outline-variant($secondary, $orange, rgba(lighten($orange, 20%), 0.5), rgba(lighten($orange, 20%), 0.5));
  14. &:not(:disabled):not(.disabled):active,
  15. &:not(:disabled):not(.disabled).active {
  16. color: $orange;
  17. }
  18. &:not(:disabled):not(.disabled):not(:hover) {
  19. background-color: transparent;
  20. }
  21. box-shadow: none !important;
  22. }
  23. .btn-copy,
  24. .btn-edit {
  25. &:not(:hover):not(:active) {
  26. background-color: transparent !important;
  27. }
  28. opacity: 0.5;
  29. }
  30. .btn-edit-tags {
  31. opacity: 0.5;
  32. &.no-tags {
  33. opacity: 0.7;
  34. }
  35. }
  36. .rounded-pill-weak {
  37. border-radius: 60px;
  38. }
  39. // fill button style
  40. :root .btn.btn-fill {
  41. position: relative;
  42. display: flex;
  43. justify-content: space-between;
  44. min-width: 130px;
  45. padding: 0px;
  46. overflow: hidden;
  47. color: white;
  48. text-align: center;
  49. background-color: rgba(lighten(black, 15%), 0.5);
  50. border: none;
  51. &:not(:disabled) {
  52. cursor: pointer;
  53. }
  54. .btn-label {
  55. position: relative;
  56. z-index: 1;
  57. padding: 9px 15px;
  58. color: white;
  59. text-decoration: none;
  60. }
  61. .btn-label-text {
  62. position: relative;
  63. z-index: 1;
  64. margin: auto;
  65. color: white;
  66. text-align: center;
  67. text-decoration: none;
  68. }
  69. // effect
  70. .eff {
  71. position: absolute;
  72. top: -50px;
  73. left: 0px;
  74. z-index: 0;
  75. width: 100%;
  76. height: 100%;
  77. transition: all 0.5s ease;
  78. }
  79. &:hover {
  80. .eff {
  81. top: 0;
  82. }
  83. }
  84. }
  85. // Page Management Dropdown icon
  86. .grw-btn-page-management {
  87. background-color: transparent;
  88. transition: 0.3s;
  89. }
  90. // define disabled button w/o pointer-events, see _override-bootstrap.scss
  91. .btn.disabled,
  92. .btn[disabled],
  93. fieldset[disabled] .btn {
  94. &.grw-pointer-events-none {
  95. pointer-events: none;
  96. }
  97. }