|
| 1 | +@import 'variables'; |
| 2 | +@import 'core'; |
| 3 | + |
| 4 | +/* ========================================================================== |
| 5 | + #TAG |
| 6 | + ========================================================================== */ |
| 7 | + |
| 8 | +.nhsuk-tag { |
| 9 | + @include nhsuk-font($size: 16, $weight: bold, $line-height: 1); |
| 10 | + background-color: shade($color_nhsuk-blue, 10%); |
| 11 | + color: $color_nhsuk-white; |
| 12 | + display: inline-block; |
| 13 | + letter-spacing: 1px; |
| 14 | + outline: 2px solid transparent; |
| 15 | + outline-offset: -2px; |
| 16 | + padding: nhsuk-spacing(1) nhsuk-spacing(2); |
| 17 | + text-decoration: none; |
| 18 | + width: fit-content; |
| 19 | + text-transform: uppercase; |
| 20 | + |
| 21 | + &--white { |
| 22 | + background-color: $color_nhsuk-white; |
| 23 | + border: 1px solid $color_nhsuk-black; |
| 24 | + color: $color_nhsuk-black; |
| 25 | + } |
| 26 | + |
| 27 | + &--grey { |
| 28 | + background-color: tint($color_nhsuk-grey-1, 80%); |
| 29 | + color: shade($color_nhsuk-grey-1, 30%); |
| 30 | + } |
| 31 | + |
| 32 | + &--green { |
| 33 | + background-color: tint($color_nhsuk-green, 80%); |
| 34 | + color: shade($color_nhsuk-green, 40%); |
| 35 | + } |
| 36 | + |
| 37 | + &--aqua-green { |
| 38 | + background-color: tint($color_nhsuk-aqua-green, 80%); |
| 39 | + color: shade($color_nhsuk-aqua-green, 50%); |
| 40 | + } |
| 41 | + |
| 42 | + &--blue { |
| 43 | + background-color: tint($color_nhsuk-blue, 80%); |
| 44 | + color: shade($color_nhsuk-blue, 30%); |
| 45 | + } |
| 46 | + |
| 47 | + &--purple { |
| 48 | + background-color: tint($color_nhsuk-purple, 80%); |
| 49 | + color: shade($color_nhsuk-purple, 30%); |
| 50 | + } |
| 51 | + |
| 52 | + &--pink { |
| 53 | + background-color: tint($color_nhsuk-pink, 80%); |
| 54 | + color: shade($color_nhsuk-pink, 50%); |
| 55 | + } |
| 56 | + |
| 57 | + &--red { |
| 58 | + background-color: tint($color_nhsuk-red, 80%); |
| 59 | + color: shade($color_nhsuk-red, 50%); |
| 60 | + } |
| 61 | + |
| 62 | + &--orange { |
| 63 | + background-color: tint($color_nhsuk-warm-yellow, 50%); |
| 64 | + color: shade($color_nhsuk-warm-yellow, 70%); |
| 65 | + } |
| 66 | + |
| 67 | + &--yellow { |
| 68 | + background-color: tint($color_nhsuk-yellow, 50%); |
| 69 | + color: shade($color_nhsuk-yellow, 70%); |
| 70 | + } |
| 71 | +} |
0 commit comments