MediaWiki:Vector.css : Différence entre versions
Ligne 40 : | Ligne 40 : | ||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); | ||
} | } | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.btn-default > a { | .btn-default > a { | ||
color: #333; | color: #333; | ||
Ligne 55 : | Ligne 46 : | ||
border-color: #ccc; | border-color: #ccc; | ||
} | } | ||
− | .btn-default:hover, | + | .btn-default > a:hover, |
− | .btn-default:focus, | + | .btn-default > a:focus, |
− | .btn-default:active | + | .btn-default > a:active { |
− | |||
− | |||
color: #333; | color: #333; | ||
background-color: #ebebeb; | background-color: #ebebeb; | ||
border-color: #adadad; | border-color: #adadad; | ||
} | } | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.btn-primary > a{ | .btn-primary > a{ | ||
color: #fff; | color: #fff; | ||
Ligne 110 : | Ligne 73 : | ||
background-image: none; | background-image: none; | ||
} | } | ||
− | + | ||
− | + | .btn-primary .badge > a { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .btn-primary .badge { | ||
color: #428bca; | color: #428bca; | ||
background-color: #fff; | background-color: #fff; | ||
Ligne 147 : | Ligne 93 : | ||
} | } | ||
.btn-success:active > a, | .btn-success:active > a, | ||
− | .btn-success.active | + | .btn-success.active, |
.open .dropdown-toggle.btn-success { | .open .dropdown-toggle.btn-success { | ||
background-image: none; | background-image: none; | ||
} | } | ||
− | + | .btn-success .badge > a { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .btn-success .badge { | ||
color: #5cb85c; | color: #5cb85c; | ||
background-color: #fff; | background-color: #fff; | ||
Ligne 178 : | Ligne 106 : | ||
border-color: #46b8da; | border-color: #46b8da; | ||
} | } | ||
− | .btn-info:hover, | + | .btn-info > a:hover, |
− | .btn-info:focus, | + | .btn-info > a:focus, |
− | .btn-info:active, | + | .btn-info > a:active, |
.btn-info.active, | .btn-info.active, | ||
.open .dropdown-toggle.btn-info { | .open .dropdown-toggle.btn-info { | ||
Ligne 187 : | Ligne 115 : | ||
border-color: #269abc; | border-color: #269abc; | ||
} | } | ||
− | .btn-info:active, | + | .btn-info > a:active, |
.btn-info.active, | .btn-info.active, | ||
.open .dropdown-toggle.btn-info { | .open .dropdown-toggle.btn-info { | ||
background-image: none; | background-image: none; | ||
} | } | ||
− | + | .btn-info .badge > a { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .btn-info .badge { | ||
color: #5bc0de; | color: #5bc0de; | ||
background-color: #fff; | background-color: #fff; | ||
} | } | ||
− | .btn-warning { | + | .btn-warning > a{ |
color: #fff; | color: #fff; | ||
background-color: #f0ad4e; | background-color: #f0ad4e; | ||
border-color: #eea236; | border-color: #eea236; | ||
} | } | ||
− | .btn-warning:hover, | + | .btn-warning > a:hover, |
− | .btn-warning:focus, | + | .btn-warning > a:focus, |
− | .btn-warning:active, | + | .btn-warning > a:active, |
.btn-warning.active, | .btn-warning.active, | ||
.open .dropdown-toggle.btn-warning { | .open .dropdown-toggle.btn-warning { | ||
Ligne 228 : | Ligne 138 : | ||
border-color: #d58512; | border-color: #d58512; | ||
} | } | ||
− | .btn-warning:active, | + | .btn-warning > a:active, |
.btn-warning.active, | .btn-warning.active, | ||
.open .dropdown-toggle.btn-warning { | .open .dropdown-toggle.btn-warning { | ||
background-image: none; | background-image: none; | ||
} | } | ||
− | + | .btn-warning .badge > a { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .btn-warning .badge { | ||
color: #f0ad4e; | color: #f0ad4e; | ||
background-color: #fff; | background-color: #fff; | ||
} | } | ||
− | .btn-danger { | + | .btn-danger > a{ |
color: #fff; | color: #fff; | ||
background-color: #d9534f; | background-color: #d9534f; | ||
border-color: #d43f3a; | border-color: #d43f3a; | ||
} | } | ||
− | .btn-danger:hover, | + | .btn-danger > a:hover, |
− | .btn-danger:focus, | + | .btn-danger > a:focus, |
− | .btn-danger:active, | + | .btn-danger > a:active, |
.btn-danger.active, | .btn-danger.active, | ||
.open .dropdown-toggle.btn-danger { | .open .dropdown-toggle.btn-danger { | ||
Ligne 269 : | Ligne 161 : | ||
border-color: #ac2925; | border-color: #ac2925; | ||
} | } | ||
− | .btn-danger:active, | + | .btn-danger > a:active, |
.btn-danger.active, | .btn-danger.active, | ||
.open .dropdown-toggle.btn-danger { | .open .dropdown-toggle.btn-danger { | ||
background-image: none; | background-image: none; | ||
} | } | ||
− | + | .btn-danger .badge > a { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .btn-danger .badge { | ||
color: #d9534f; | color: #d9534f; | ||
background-color: #fff; | background-color: #fff; | ||
} | } | ||
− | + | ||
− | + | .btn-lg > a{ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .btn-lg { | ||
padding: 10px 16px; | padding: 10px 16px; | ||
font-size: 18px; | font-size: 18px; | ||
Ligne 335 : | Ligne 177 : | ||
border-radius: 6px; | border-radius: 6px; | ||
} | } | ||
− | .btn-sm { | + | .btn-sm > a { |
padding: 5px 10px; | padding: 5px 10px; | ||
font-size: 12px; | font-size: 12px; | ||
Ligne 341 : | Ligne 183 : | ||
border-radius: 3px; | border-radius: 3px; | ||
} | } | ||
− | .btn-xs { | + | .btn-xs > a { |
padding: 1px 5px; | padding: 1px 5px; | ||
font-size: 12px; | font-size: 12px; | ||
Ligne 347 : | Ligne 189 : | ||
border-radius: 3px; | border-radius: 3px; | ||
} | } | ||
− | .btn-block { | + | .btn-block > a{ |
display: block; | display: block; | ||
width: 100%; | width: 100%; | ||
Ligne 353 : | Ligne 195 : | ||
padding-left: 0; | padding-left: 0; | ||
} | } | ||
− | .btn-block + .btn-block { | + | .btn-block > a + .btn-block > a { |
margin-top: 5px; | margin-top: 5px; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } |
Version actuelle datée du 14 février 2014 à 23:10
/* Le CSS placé ici affectera les utilisateurs de l’habillage Vector. */
.btn > a {
color:#fff;
text-decoration:none;
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: normal;
line-height: 1.428571429;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
}
.btn > a:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.btn > a:hover,
.btn > a:focus {
color: #333;
text-decoration: none;
}
.btn:active > a,
.btn.active > a {
background-image: none;
outline: 0;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.btn-default > a {
color: #333;
background-color: #fff;
border-color: #ccc;
}
.btn-default > a:hover,
.btn-default > a:focus,
.btn-default > a:active {
color: #333;
background-color: #ebebeb;
border-color: #adadad;
}
.btn-primary > a{
color: #fff;
background-color: #428bca;
border-color: #357ebd;
}
.btn-primary > a:hover,
.btn-primary > a:focus,
.btn-primary > a:active,
.btn-primary.active > a,
.open .dropdown-toggle.btn-primary {
color: #fff;
background-color: #3276b1;
border-color: #285e8e;
}
.btn-primary:active > a,
.btn-primary.active > a,
.open .dropdown-toggle.btn-primary {
background-image: none;
}
.btn-primary .badge > a {
color: #428bca;
background-color: #fff;
}
.btn-success > a{
color: #fff;
background-color: #5cb85c;
border-color: #4cae4c;
}
.btn-success > a:hover,
.btn-success > a:focus,
.btn-success > a:active,
.btn-success.active > a,
.open .dropdown-toggle.btn-success {
color: #fff;
background-color: #47a447;
border-color: #398439;
}
.btn-success:active > a,
.btn-success.active,
.open .dropdown-toggle.btn-success {
background-image: none;
}
.btn-success .badge > a {
color: #5cb85c;
background-color: #fff;
}
.btn-info > a{
color: #fff;
background-color: #5bc0de;
border-color: #46b8da;
}
.btn-info > a:hover,
.btn-info > a:focus,
.btn-info > a:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
color: #fff;
background-color: #39b3d7;
border-color: #269abc;
}
.btn-info > a:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
background-image: none;
}
.btn-info .badge > a {
color: #5bc0de;
background-color: #fff;
}
.btn-warning > a{
color: #fff;
background-color: #f0ad4e;
border-color: #eea236;
}
.btn-warning > a:hover,
.btn-warning > a:focus,
.btn-warning > a:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
color: #fff;
background-color: #ed9c28;
border-color: #d58512;
}
.btn-warning > a:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
background-image: none;
}
.btn-warning .badge > a {
color: #f0ad4e;
background-color: #fff;
}
.btn-danger > a{
color: #fff;
background-color: #d9534f;
border-color: #d43f3a;
}
.btn-danger > a:hover,
.btn-danger > a:focus,
.btn-danger > a:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
color: #fff;
background-color: #d2322d;
border-color: #ac2925;
}
.btn-danger > a:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
background-image: none;
}
.btn-danger .badge > a {
color: #d9534f;
background-color: #fff;
}
.btn-lg > a{
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
border-radius: 6px;
}
.btn-sm > a {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-xs > a {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-block > a{
display: block;
width: 100%;
padding-right: 0;
padding-left: 0;
}
.btn-block > a + .btn-block > a {
margin-top: 5px;
}