Summary Files Commits Branches @commit @diff @stats
path: root / src / chips.less
blob: f865fe997f8e6414a9e5a874f058b87c3268f1d7 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Chips
.chip {
  align-content: space-around;
  align-items: center;
  border: .1rem solid transparent;
  border-radius: .3rem;
  display: flex;
  list-style: none;
  margin: 0;
  padding: .5rem 0;

  .chip-icon {
    flex: 0 0 auto;
  }
  .chip-content {
    flex: 1 1 auto;
    padding: 0 1rem;
    .text-ellipsis;
  }
  .chip-action {
    flex: 0 0 auto;
  }
  .chip-title {
    font-size: 1.4rem;
  }
  .chip-meta {
    color: lighten(@body-font-color, 50%);
    font-size: 1.2rem;
  }
}

// Small chips
.chip-sm {
  align-items: center;
  background: @core-secondary-color;
  border-radius: .3rem;
  color: #666;
  display: inline-flex;
  font-size: 1.2rem;
  height: 2.4rem;
  max-width: 100%;
  padding: .3rem .6rem;
  text-decoration: none;
  vertical-align: middle;

  &:hover,
  &:focus {
    background: darken(@core-secondary-color, 2%);
  }

  .btn-clear {
    margin-top: -.2rem;

    &::before {
      color: darken(@core-color, 10%);
      font-size: 1.6rem;
    }
  }

  &.selected {
    background: @core-color;
    color: @core-light-color;

    .btn-clear {
      &::before {
        color: lighten(@core-color, 40%);
      }
    }
  }

  .chip-name {
    margin-left: .4rem;
    .text-ellipsis;
  }

  .avatar {
    font-size: .8rem;
    height: 1.6rem;
    width: 1.6rem;
  }
}