Add LanguageChooser.removeChooser()
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / style / ui / button.scss
CommitLineData
b8eab696
AE
1button,
2input[type="button"],
3input[type="reset"],
4input[type="submit"],
ed8c9052 5.button,
487db634 6a.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
50button.buttonPrimary,
51input[type="button"].buttonPrimary,
52input[type="submit"],
ed8c9052 53.button.buttonPrimary,
95cc4d01 54a.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 */
66button,
67input[type="button"],
68input[type="reset"],
69input[type="submit"],
70.button,
71a.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;
20f920dc 122 min-width: min-content;
b8eab696
AE
123 text-align: center;
124 }
125 }
126 }
127}
128
129.buttonGroupNavigation > ul {
5908f54f 130 @include inlineList;
b8eab696
AE
131}
132
133.buttonGroup {
5908f54f 134 @include inlineList;
b8eab696
AE
135
136 > li {
137 &:not(:last-child) {
b1676884 138 margin-right: 1px;
b8eab696
AE
139 }
140
141 &:first-child .button {
7967ab19
AE
142 border-top-left-radius: 2px;
143 border-bottom-left-radius: 2px;
b8eab696
AE
144 }
145
146 &:last-child .button {
7967ab19
AE
147 border-top-right-radius: 2px;
148 border-bottom-right-radius: 2px;
b8eab696
AE
149 }
150
151 .button {
152 border-radius: 0;
f2b50825 153 border-width: 0;
b8eab696
AE
154 }
155 }
156}