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 AE |
7 | background-color: $wcfButtonBackground; |
8 | border: 1px solid $wcfButtonBorder; | |
ed8c9052 | 9 | color: $wcfButtonText; |
b8eab696 AE |
10 | cursor: pointer; |
11 | display: inline-block; | |
487db634 MW |
12 | outline: none; |
13 | padding: 4px 12px; | |
14 | ||
15 | // input elements do not inherit font family, size and line-height from body | |
16 | font-family: $wcfFontFamily; | |
5908f54f AE |
17 | @include wcfFontDefault; |
18 | @include wcfLineHeight; | |
b8eab696 AE |
19 | |
20 | .icon { | |
7035df9a | 21 | color: inherit; |
b8eab696 AE |
22 | } |
23 | ||
f2b50825 | 24 | &.active, |
b8eab696 | 25 | &:hover { |
954d51cf AE |
26 | background-color: $wcfButtonBackgroundActive; |
27 | border-color: $wcfButtonBorderActive; | |
ed8c9052 | 28 | color: $wcfButtonTextActive; |
b8eab696 AE |
29 | } |
30 | ||
31 | &.small { | |
b8eab696 | 32 | padding: 4px 7px; |
945f563e | 33 | |
5908f54f | 34 | @include wcfFontSmall; |
b8eab696 AE |
35 | } |
36 | } | |
37 | ||
38 | button.buttonPrimary, | |
39 | input[type="button"].buttonPrimary, | |
40 | input[type="submit"], | |
ed8c9052 | 41 | .button.buttonPrimary, |
487db634 | 42 | a.button.buttonPrimary { // a.button is required to override link formatting, such as drop-down buttons |
f2b50825 AE |
43 | background-color: $wcfButtonPrimaryBackground; |
44 | border-color: $wcfButtonPrimaryBorder; | |
ed8c9052 | 45 | color: $wcfButtonPrimaryText; |
b8eab696 | 46 | |
f2b50825 | 47 | &.active, |
b8eab696 | 48 | &:hover { |
f2b50825 AE |
49 | background-color: $wcfButtonPrimaryBackgroundActive; |
50 | border-color: $wcfButtonPrimaryBorderActive; | |
ed8c9052 | 51 | color: $wcfButtonPrimaryTextActive; |
f2b50825 AE |
52 | } |
53 | } | |
54 | ||
55 | /* force active state for buttons toggling a dropdown */ | |
56 | .dropdownOpen { | |
57 | > button, | |
58 | > input[type="button"], | |
59 | > input[type="reset"], | |
60 | > input[type="submit"], | |
ed8c9052 AE |
61 | > .button, |
62 | > a.button { | |
f2b50825 AE |
63 | background-color: $wcfButtonBackgroundActive; |
64 | border-color: $wcfButtonBorderActive; | |
ed8c9052 | 65 | color: $wcfButtonTextActive; |
f2b50825 AE |
66 | |
67 | .icon { | |
68 | color: $wcfButtonTextActive; | |
69 | } | |
70 | } | |
71 | ||
72 | > button.buttonPrimary, | |
73 | > input[type="button"].buttonPrimary, | |
74 | > input[type="submit"], | |
ed8c9052 AE |
75 | > .button.buttonPrimary, |
76 | > a.button.buttonPrimary { | |
f2b50825 AE |
77 | background-color: $wcfButtonPrimaryBackgroundActive; |
78 | border-color: $wcfButtonPrimaryBorderActive; | |
ed8c9052 | 79 | color: $wcfButtonPrimaryTextActive; |
f2b50825 AE |
80 | |
81 | .icon { | |
82 | color: $wcfButtonPrimaryTextActive; | |
b8eab696 AE |
83 | } |
84 | } | |
b8eab696 AE |
85 | } |
86 | ||
87 | .buttonList { | |
5908f54f | 88 | @include inlineList; |
b8eab696 AE |
89 | |
90 | &.smallButtons .button { | |
b8eab696 | 91 | padding: 4px 7px; |
945f563e | 92 | |
5908f54f | 93 | @include wcfFontSmall; |
b8eab696 AE |
94 | } |
95 | ||
96 | /* members list */ | |
97 | &.letters { | |
98 | margin-bottom: -10px; | |
99 | ||
100 | > li { | |
101 | flex: 0 0 10%; | |
102 | margin-bottom: 10px; | |
103 | ||
104 | > a { | |
105 | display: block; | |
106 | text-align: center; | |
107 | } | |
108 | } | |
109 | } | |
110 | } | |
111 | ||
112 | .buttonGroupNavigation > ul { | |
5908f54f | 113 | @include inlineList; |
b8eab696 AE |
114 | } |
115 | ||
116 | .buttonGroup { | |
5908f54f | 117 | @include inlineList; |
b8eab696 AE |
118 | |
119 | > li { | |
120 | &:not(:last-child) { | |
1223c43c | 121 | // TODO: border-right: 1px solid $wcfContentBorder; |
b8eab696 AE |
122 | margin-right: 0; |
123 | } | |
124 | ||
125 | &:first-child .button { | |
66dba3c5 MW |
126 | border-top-left-radius: 3px; |
127 | border-bottom-left-radius: 3px; | |
b8eab696 AE |
128 | } |
129 | ||
130 | &:last-child .button { | |
66dba3c5 MW |
131 | border-top-right-radius: 3px; |
132 | border-bottom-right-radius: 3px; | |
b8eab696 AE |
133 | } |
134 | ||
135 | .button { | |
136 | border-radius: 0; | |
f2b50825 | 137 | border-width: 0; |
b8eab696 AE |
138 | } |
139 | } | |
140 | } |