_buttons.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. .dropdown-menu {
  35. position: absolute;
  36. top: 100%;
  37. left: 0;
  38. z-index: 1000;
  39. display: none;
  40. float: left;
  41. min-width: 150px;
  42. padding: 5px 0;
  43. margin: 2px 0 0;
  44. font-size: 14px;
  45. text-align: left;
  46. list-style: none;
  47. -webkit-background-clip: padding-box;
  48. background-clip: padding-box;
  49. border-radius: 4px;
  50. &.language-switcher {
  51. min-width: 50px;
  52. }
  53. &.lang-switcher {
  54. min-width: 150px;
  55. left: inherit;
  56. button {
  57. width: 100%;
  58. }
  59. }
  60. .divider {
  61. height: 1px;
  62. margin: 9px 0;
  63. overflow: hidden;
  64. }
  65. li > a {
  66. display: block;
  67. padding: 3px 20px;
  68. clear: both;
  69. font-weight: 400;
  70. line-height: 1.42857143;
  71. &:focus, &:hover {
  72. text-decoration: none;
  73. }
  74. }
  75. }
  76. }
  77. .open > .dropdown-menu {
  78. display: block;
  79. }
  80. .dropdown-backdrop {
  81. position: fixed;
  82. top: 0;
  83. right: 0;
  84. bottom: 0;
  85. left: 0;
  86. z-index: 990;
  87. }
  88. // Override style for stubborn gumroad button
  89. #admin-main .admin-block a.gumroad-button {
  90. padding: 0.3rem 1.5rem !important;
  91. font-size: inherit !important;
  92. font-weight: 300 !important;
  93. line-height: inherit !important;
  94. font-family: inherit !important;
  95. border-radius: 4px !important;
  96. box-shadow: inherit !important;
  97. .gumroad-button-logo {
  98. display: none !important;
  99. background-image: none !important;
  100. }
  101. }