2 * Copyright 2015 Google Inc. All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 @import "../variables";
22 margin-right: ($badge-size + $badge-padding);
29 content: attr(data-badge);
34 justify-content: center;
35 align-content: center;
39 top: -($badge-size / 2);
40 right: -($badge-size + $badge-padding);
47 font-family: $preferred_font;
49 font-size: $badge-font-size;
54 background: $badge-background;
58 &.mdl-badge--no-background {
60 color: $badge-color-inverse;
61 background: $badge-background-inverse;
63 box-shadow: 0 0 1px gray;
66 &.mdl-badge--overlap {
67 margin-right: ($badge-size - $badge-overlap);
69 right: -($badge-size - $badge-overlap);