Summary Files Commits Branches @commit @diff @stats
path: root / src / mixins.less
blob: bc6d97c9b53e8da20bf622b60d2c4ed671691f72 (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() {
  box-shadow: 0 0 0 .2rem fade(@core-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;
  vertical-align: baseline;
}
.label-variant(@color) {
  background: @color;
  color: @core-light-color;
}