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