_buttons.scss 1.9 KB

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