source: spip-zone/_plugins_/bootstrap/trunk/bootstrap2spip/css/_buttons.scss @ 115267

Last change on this file since 115267 was 115267, checked in by cedric@…, 18 months ago

Fix button & form : la combinaison du :not(.btn-link) et des .btn:not() cibles par le @extend cassaient certains selecteurs
Cette variante est plus saine et evite de produire plein de code superflu par combinaisons multiples des selecteurs css etendus

File size: 1.6 KB
Line 
1@import "bootstrap/css/_buttons";
2
3// for simple .btn extension : copy of native .btn to avoid an expensive @extend .btn
4%btn-base {
5  display: inline-block;
6  font-family: $btn-font-family;
7  font-weight: $btn-font-weight;
8  color: $body-color;
9  text-align: center;
10  vertical-align: middle;
11  user-select: none;
12  background-color: transparent;
13  border: $btn-border-width solid transparent;
14  @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
15  @include transition($btn-transition);
16
17  @include hover {
18    color: $body-color;
19    text-decoration: none;
20  }
21
22  &:focus,
23  &.focus {
24    outline: 0;
25    box-shadow: $btn-focus-box-shadow;
26  }
27
28  // Disabled comes first so active can properly restyle
29  &.disabled,
30  &:disabled {
31    opacity: $btn-disabled-opacity;
32    @include box-shadow(none);
33  }
34
35  &:not(:disabled):not(.disabled):active,
36  &:not(:disabled):not(.disabled).active {
37    @include box-shadow($btn-active-box-shadow);
38
39    &:focus {
40      @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
41    }
42  }
43}
44
45/* boutons admin forum */
46.boutons.modererforum .submit {
47  @extend %btn-base;
48  @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
49  font-size: 0.7rem;
50  line-height: 1.2;
51}
52
53.boutons.modererforum .poubelle .submit {
54  @include button-variant(theme-color("danger"), theme-color("danger"));
55}
56.boutons.modererforum .spam .submit {
57  @include button-variant(theme-color("dark"), theme-color("dark"));
58}
59
60/* boutons d'admin */
61body .spip-admin-bloc, body .spip-admin-float {z-index: $zindex-sticky + 1;}
Note: See TracBrowser for help on using the repository browser.