Blame view

bower_components/Materialize/sass/components/_collapsible.scss 1.71 KB
74249687   Luigi Serra   Cross browser con...
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
82
83
84
85
  .collapsible {
    border-top: 1px solid $collapsible-border-color;
    border-right: 1px solid $collapsible-border-color;
    border-left: 1px solid $collapsible-border-color;
    margin: $element-top-margin 0 $element-bottom-margin 0;
    @extend .z-depth-1;
  }
  
  .collapsible-header {
    display: block;
    cursor: pointer;
    min-height: $collapsible-height;
    line-height: $collapsible-height;
    padding: 0 1rem;
    background-color: $collapsible-header-color;
    border-bottom: 1px solid $collapsible-border-color;
  
    i {
      width: 2rem;
      font-size: 1.6rem;
      line-height: $collapsible-height;
      display: block;
      float: left;
      text-align: center;
      margin-right: 1rem;
    }
  }
  
  .collapsible-body {
    display: none;
    border-bottom: 1px solid $collapsible-border-color;
    @include box-sizing(border-box);
  
    p {
      margin: 0;
      padding: 2rem;
    }
  }
  
  // sideNav collapsible styling
  .side-nav {
  
    .collapsible {
      border: none;
      box-shadow: none;
  
      li { padding: 0; }
    }
  
    .collapsible-header {
      background-color: transparent;
      border: none;
      line-height: inherit;
      height: inherit;
      margin: 0 1rem;
  
      i { line-height: inherit; }
    }
  
    .collapsible-body {
      border: 0;
      background-color: $collapsible-header-color;
  
      li a { margin: 0 1rem 0 2rem; }
    }
  
  }
  
  // Popout Collapsible
  
  .collapsible.popout {
    border: none;
    box-shadow: none;
    > li {
      box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
      // transform: scaleX(.92);
      margin: 0 24px;
      transition: margin .35s cubic-bezier(0.250, 0.460, 0.450, 0.940);
    }
    > li.active {
      box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
      margin: 16px 0;
      // transform: scaleX(1);
    }
  }