_buttons.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .button {
  2. @extend %button;
  3. }
  4. .button-group {
  5. position: relative;
  6. display: inline-block;
  7. vertical-align: top;
  8. // real button
  9. > .button:first-child:not(:last-child):not(.dropdown-toggle) {
  10. border-top-right-radius: 0 !important;
  11. border-bottom-right-radius: 0 !important;
  12. }
  13. > .button:first-child {
  14. margin-left: 0 !important;
  15. }
  16. > .button {
  17. }
  18. // toggle caret
  19. > .button + .dropdown-toggle {
  20. text-align: center;
  21. padding-right: 8px;
  22. padding-left: 8px;
  23. i {
  24. margin: 0;
  25. }
  26. }
  27. > .button:last-child:not(:first-child), > .dropdown-toggle:not(:first-child) {
  28. border-top-left-radius: 0 !important;
  29. border-bottom-left-radius: 0 !important;
  30. }
  31. .button + .button, .button + .button-group, .button-group + .button, .button-group + .button-group {
  32. margin-left: -3px;
  33. }
  34. &:last-child {
  35. .dropdown-menu {
  36. left: inherit;
  37. right: 0;
  38. }
  39. }
  40. .dropdown-menu {
  41. position: absolute;
  42. top: 100%;
  43. left: 0;
  44. z-index: 1000;
  45. display: none;
  46. float: left;
  47. min-width: 150px;
  48. padding: 5px 0;
  49. margin: 2px 0 0;
  50. font-size: 14px;
  51. text-align: left;
  52. list-style: none;
  53. -webkit-background-clip: padding-box;
  54. background-clip: padding-box;
  55. border-radius: 4px;
  56. .button {
  57. margin-right: 0 !important;
  58. }
  59. &.language-switcher {
  60. min-width: 50px;
  61. }
  62. &.lang-switcher {
  63. min-width: 150px;
  64. left: inherit;
  65. right: 0;
  66. button {
  67. width: 100%;
  68. }
  69. }
  70. .divider {
  71. height: 1px;
  72. margin: 9px 0;
  73. overflow: hidden;
  74. }
  75. li > a {
  76. display: block;
  77. padding: 3px 20px;
  78. clear: both;
  79. font-weight: 400;
  80. line-height: 1.42857143;
  81. &:focus, &:hover {
  82. text-decoration: none;
  83. }
  84. }
  85. }
  86. }
  87. .open > .dropdown-menu {
  88. display: block;
  89. }
  90. .dropdown-backdrop {
  91. position: fixed;
  92. top: 0;
  93. right: 0;
  94. bottom: 0;
  95. left: 0;
  96. z-index: 990;
  97. }
  98. // Override style for stubborn gumroad button
  99. #admin-main .admin-block a.gumroad-button {
  100. padding: 0.3rem 1.5rem !important;
  101. font-size: inherit !important;
  102. font-weight: 400 !important;
  103. line-height: inherit !important;
  104. font-family: inherit !important;
  105. border-radius: 4px !important;
  106. box-shadow: inherit !important;
  107. .gumroad-button-logo {
  108. display: none !important;
  109. background-image: none !important;
  110. }
  111. }