summaryrefslogtreecommitdiff
path: root/www/lib/ionic/scss/_button-bar.scss
blob: 57bb9c412ab085c191befeb758b99ac4834df712 (plain)
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

/**
 * Button Bar
 * --------------------------------------------------
 */

.button-bar {
  @include display-flex();
  @include flex(1);
  width: 100%;

  &.button-bar-inline {
    display: block;
    width: auto;

    @include clearfix();

    > .button {
      width: auto;
      display: inline-block;
      float: left;
    }
  }
}

.button-bar > .button {
  @include flex(1);
  display: block;

  overflow: hidden;

  padding: 0 16px;

  width: 0;

  border-width: 1px 0px 1px 1px;
  border-radius: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;

  &:before,
  .icon:before {
    line-height: 44px;
  }

  &:first-child {
    border-radius: $button-border-radius 0px 0px $button-border-radius;
  }
  &:last-child {
    border-right-width: 1px;
    border-radius: 0px $button-border-radius $button-border-radius 0px;
  }
  &:only-child {
    border-radius: $button-border-radius;
  }
}

.button-bar > .button-small {
  &:before,
  .icon:before {
    line-height: 28px;
  }
}