Commit | Line | Data |
---|---|---|
b8eab696 AE |
1 | button, |
2 | input[type="button"], | |
3 | input[type="reset"], | |
4 | input[type="submit"], | |
ed8c9052 | 5 | .button, |
487db634 | 6 | a.button { // a.button is required to override link formatting, such as drop-down buttons |
954d51cf | 7 | background-color: $wcfButtonBackground; |
7967ab19 | 8 | border-radius: 2px; |
95cc4d01 | 9 | border-width: 0; |
ed8c9052 | 10 | color: $wcfButtonText; |
b8eab696 AE |
11 | cursor: pointer; |
12 | display: inline-block; | |
bec1bb2e | 13 | font-weight: 400; |
487db634 | 14 | outline: none; |
4d194569 | 15 | padding: 8px 18px; |
7540e2d5 | 16 | text-decoration: none; |
487db634 MW |
17 | |
18 | // input elements do not inherit font family, size and line-height from body | |
19 | font-family: $wcfFontFamily; | |
5908f54f AE |
20 | @include wcfFontDefault; |
21 | @include wcfLineHeight; | |
b8eab696 | 22 | |
a5956329 AE |
23 | // removes UA styling enforced by Safari on iOS |
24 | -webkit-appearance: none; | |
25 | ||
67b6b44e AE |
26 | @include userSelectNone; |
27 | ||
b8eab696 | 28 | .icon { |
7035df9a | 29 | color: inherit; |
b8eab696 AE |
30 | } |
31 | ||
f2b50825 | 32 | &.active, |
b8eab696 | 33 | &:hover { |
954d51cf | 34 | background-color: $wcfButtonBackgroundActive; |
ed8c9052 | 35 | color: $wcfButtonTextActive; |
7540e2d5 | 36 | text-decoration: none; |
b8eab696 AE |
37 | } |
38 | ||
18fbae7c MW |
39 | &:not(.inputPrefix) { |
40 | text-transform: uppercase; | |
41 | } | |
42 | ||
b8eab696 | 43 | &.small { |
4d194569 | 44 | padding: 6px 8px; |
f13f4344 | 45 | text-transform: none; |
945f563e | 46 | |
5908f54f | 47 | @include wcfFontSmall; |
b8eab696 AE |
48 | } |
49 | } | |
50 | ||
51 | button.buttonPrimary, | |
52 | input[type="button"].buttonPrimary, | |
53 | input[type="submit"], | |
ed8c9052 | 54 | .button.buttonPrimary, |
95cc4d01 | 55 | a.button.buttonPrimary { // a.button is required to override link formatting, such as dropdown buttons |
f2b50825 | 56 | background-color: $wcfButtonPrimaryBackground; |
ed8c9052 | 57 | color: $wcfButtonPrimaryText; |
b8eab696 | 58 | |
f2b50825 | 59 | &.active, |
b8eab696 | 60 | &:hover { |
f2b50825 | 61 | background-color: $wcfButtonPrimaryBackgroundActive; |
ed8c9052 | 62 | color: $wcfButtonPrimaryTextActive; |
f2b50825 AE |
63 | } |
64 | } | |
65 | ||
63d349a3 AE |
66 | /* disabled state */ |
67 | button, | |
68 | input[type="button"], | |
69 | input[type="reset"], | |
70 | input[type="submit"], | |
71 | .button, | |
72 | a.button { | |
73 | &:disabled, | |
74 | &.disabled { | |
75 | background-color: $wcfButtonDisabledBackground !important; | |
63d349a3 AE |
76 | color: $wcfButtonDisabledText !important; |
77 | cursor: not-allowed !important; | |
78 | } | |
79 | } | |
80 | ||
f2b50825 AE |
81 | /* force active state for buttons toggling a dropdown */ |
82 | .dropdownOpen { | |
83 | > button, | |
84 | > input[type="button"], | |
85 | > input[type="reset"], | |
86 | > input[type="submit"], | |
ed8c9052 AE |
87 | > .button, |
88 | > a.button { | |
f2b50825 | 89 | background-color: $wcfButtonBackgroundActive; |
ed8c9052 | 90 | color: $wcfButtonTextActive; |
f2b50825 AE |
91 | } |
92 | ||
93 | > button.buttonPrimary, | |
94 | > input[type="button"].buttonPrimary, | |
95 | > input[type="submit"], | |
ed8c9052 AE |
96 | > .button.buttonPrimary, |
97 | > a.button.buttonPrimary { | |
f2b50825 | 98 | background-color: $wcfButtonPrimaryBackgroundActive; |
ed8c9052 | 99 | color: $wcfButtonPrimaryTextActive; |
b8eab696 | 100 | } |
b8eab696 AE |
101 | } |
102 | ||
103 | .buttonList { | |
5908f54f | 104 | @include inlineList; |
b8eab696 AE |
105 | |
106 | &.smallButtons .button { | |
4d194569 | 107 | padding: 6px 8px; |
f13f4344 | 108 | text-transform: none; |
945f563e | 109 | |
5908f54f | 110 | @include wcfFontSmall; |
b8eab696 AE |
111 | } |
112 | ||
113 | /* members list */ | |
114 | &.letters { | |
115 | margin-bottom: -10px; | |
116 | ||
117 | > li { | |
118 | flex: 0 0 10%; | |
119 | margin-bottom: 10px; | |
120 | ||
121 | > a { | |
122 | display: block; | |
20f920dc | 123 | min-width: min-content; |
b8eab696 AE |
124 | text-align: center; |
125 | } | |
126 | } | |
127 | } | |
128 | } | |
129 | ||
130 | .buttonGroupNavigation > ul { | |
5908f54f | 131 | @include inlineList; |
b8eab696 AE |
132 | } |
133 | ||
134 | .buttonGroup { | |
5908f54f | 135 | @include inlineList; |
b8eab696 AE |
136 | |
137 | > li { | |
138 | &:not(:last-child) { | |
b1676884 | 139 | margin-right: 1px; |
b8eab696 AE |
140 | } |
141 | ||
142 | &:first-child .button { | |
7967ab19 AE |
143 | border-top-left-radius: 2px; |
144 | border-bottom-left-radius: 2px; | |
b8eab696 AE |
145 | } |
146 | ||
147 | &:last-child .button { | |
7967ab19 AE |
148 | border-top-right-radius: 2px; |
149 | border-bottom-right-radius: 2px; | |
b8eab696 AE |
150 | } |
151 | ||
152 | .button { | |
153 | border-radius: 0; | |
f2b50825 | 154 | border-width: 0; |
b8eab696 AE |
155 | } |
156 | } | |
157 | } |