Summary Files Commits Branches @commit @diff @stats
path: root / src / mixins.less
blob: d2c5c7ac07f1b759caf1ccc47b37c9713097244a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Core mixins
.clearfix() {
  &::after {
    clear: both;
    content: "";
    display: table;
  }
}
.control-shadow(@color: @primary-color) {
  box-shadow: 0 0 0 .2rem fade(@color, 15%);
}
.control-transition() {
  transition: all .2s ease;
}
.toast-variant(@color) {
  background: fade(@color, 90%);
  border-color: @color;
}
.label-base() {
  border-radius: .2rem;
  display: inline-block;
  line-height: 1;
  padding: .3rem .4rem;
  vertical-align: baseline;
}
.label-variant(@color) {
  background: @color;
  color: @light-color;
}