|
5 | 5 | */ |
6 | 6 |
|
7 | 7 | .item { |
8 | | - @include item-style($item-default-bg, $item-default-border, $item-default-text, $item-default-active-bg, $item-default-active-border); |
| 8 | + @include item-style($item-default-bg, $item-default-border, $item-default-text); |
9 | 9 |
|
10 | 10 | position: relative; |
11 | 11 |
|
|
52 | 52 | margin-bottom: 0; |
53 | 53 | } |
54 | 54 |
|
55 | | - // Align badges within list items |
| 55 | + // Align badges within items |
56 | 56 | .badge { |
57 | 57 | float: right; |
58 | 58 | } |
59 | 59 | .badge + .badge { |
60 | 60 | margin-right: 5px; |
61 | 61 | } |
62 | 62 |
|
63 | | - // Different themes for list items |
| 63 | + // Different themes for items |
64 | 64 | &.item-light { |
65 | | - @include item-style($item-light-bg, $item-light-border, $item-light-text, $item-light-active-bg, $item-light-active-border); |
| 65 | + @include item-style($item-light-bg, $item-light-border, $item-light-text); |
66 | 66 | } |
67 | 67 | &.item-stable { |
68 | | - @include item-style($item-stable-bg, $item-stable-border, $item-stable-text, $item-stable-active-bg, $item-stable-active-border); |
| 68 | + @include item-style($item-stable-bg, $item-stable-border, $item-stable-text); |
69 | 69 | } |
70 | 70 | &.item-positive { |
71 | | - @include item-style($item-positive-bg, $item-positive-border, $item-positive-text, $item-positive-active-bg, $item-positive-active-border); |
| 71 | + @include item-style($item-positive-bg, $item-positive-border, $item-positive-text); |
72 | 72 | } |
73 | 73 | &.item-calm { |
74 | | - @include item-style($item-calm-bg, $item-calm-border, $item-calm-text, $item-calm-active-bg, $item-calm-active-border); |
| 74 | + @include item-style($item-calm-bg, $item-calm-border, $item-calm-text); |
75 | 75 | } |
76 | 76 | &.item-assertive { |
77 | | - @include item-style($item-assertive-bg, $item-assertive-border, $item-assertive-text, $item-assertive-active-bg, $item-assertive-active-border); |
| 77 | + @include item-style($item-assertive-bg, $item-assertive-border, $item-assertive-text); |
78 | 78 | } |
79 | 79 | &.item-balanced { |
80 | | - @include item-style($item-balanced-bg, $item-balanced-border, $item-balanced-text, $item-balanced-active-bg, $item-balanced-active-border); |
| 80 | + @include item-style($item-balanced-bg, $item-balanced-border, $item-balanced-text); |
81 | 81 | } |
82 | 82 | &.item-energized { |
83 | | - @include item-style($item-energized-bg, $item-energized-border, $item-energized-text, $item-energized-active-bg, $item-energized-active-border); |
| 83 | + @include item-style($item-energized-bg, $item-energized-border, $item-energized-text); |
84 | 84 | } |
85 | 85 | &.item-royal { |
86 | | - @include item-style($item-royal-bg, $item-royal-border, $item-royal-text, $item-royal-active-bg, $item-royal-active-border); |
| 86 | + @include item-style($item-royal-bg, $item-royal-border, $item-royal-text); |
87 | 87 | } |
88 | 88 | &.item-dark { |
89 | | - @include item-style($item-dark-bg, $item-dark-border, $item-dark-text, $item-dark-active-bg, $item-dark-active-border); |
| 89 | + @include item-style($item-dark-bg, $item-dark-border, $item-dark-text); |
90 | 90 | } |
91 | 91 |
|
92 | 92 | } |
93 | 93 |
|
| 94 | +// Link and Button Active States |
| 95 | +a.item, button.item { |
| 96 | + @include item-active-style($item-default-active-bg, $item-default-active-border); |
| 97 | + |
| 98 | + // Different active themes for <a> and <button> items |
| 99 | + &.item-light { |
| 100 | + @include item-active-style($item-light-active-bg, $item-light-active-border); |
| 101 | + } |
| 102 | + &.item-stable { |
| 103 | + @include item-active-style($item-stable-active-bg, $item-stable-active-border); |
| 104 | + } |
| 105 | + &.item-positive { |
| 106 | + @include item-active-style($item-positive-active-bg, $item-positive-active-border); |
| 107 | + } |
| 108 | + &.item-calm { |
| 109 | + @include item-active-style($item-calm-active-bg, $item-calm-active-border); |
| 110 | + } |
| 111 | + &.item-assertive { |
| 112 | + @include item-active-style($item-assertive-active-bg, $item-assertive-active-border); |
| 113 | + } |
| 114 | + &.item-balanced { |
| 115 | + @include item-active-style($item-balanced-active-bg, $item-balanced-active-border); |
| 116 | + } |
| 117 | + &.item-energized { |
| 118 | + @include item-active-style($item-energized-active-bg, $item-energized-active-border); |
| 119 | + } |
| 120 | + &.item-royal { |
| 121 | + @include item-active-style($item-royal-active-bg, $item-royal-active-border); |
| 122 | + } |
| 123 | + &.item-dark { |
| 124 | + @include item-active-style($item-dark-active-bg, $item-dark-active-border); |
| 125 | + } |
| 126 | +} |
| 127 | + |
94 | 128 | // Handle text overflow |
95 | 129 | .item, |
96 | 130 | .item h1, |
|
0 commit comments