Blame view

bower_components/Materialize/sass/components/_buttons.scss 2.88 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
  // shared styles
  .btn, .btn-flat {
    border: none;
    border-radius: 2px;
    display: inline-block;
    height: $button-height;
    line-height: $button-line-height;
    // margin-bottom: 15px;
    outline: 0;
    padding: 0 2rem;
    text-transform: uppercase;
    vertical-align: middle;
    // Gets rid of tap active state
    -webkit-tap-highlight-color: transparent;
  }
  // Disabled shared style
  .btn.disabled, .btn-floating.disabled, .btn-large.disabled, .btn:disabled, .btn-large:disabled, .btn-floating:disabled {
    background-color: $button-bg-color-disabled !important;
    box-shadow: none;
    color: $button-color-disabled !important;
    cursor: default;
    * {
      pointer-events: none;
    }
  
    &:hover {
      background-color: $button-bg-color-disabled;
      color: $button-color-disabled;
    }
  }
  // Shared icon styles
  .btn, .btn-floating, .btn-large, .btn-flat {
    i {
      font-size: $button-font-size-shared;
      line-height: inherit;
    }
  }
  
  // Raised Button
  .btn {
    text-decoration:none;
    color: $button-color-raised;
    background-color: $button-color;
    text-align: center;
    letter-spacing: .5px;
    @extend .z-depth-1;
    @include transition(.2s ease-out);
    cursor: pointer;
  
    &:hover {
      background-color: lighten($button-color, 5%);
      @extend .z-depth-1-half;
    }
  }
  
  // Floating button
  .btn-floating {
    display: inline-block;
    color: $button-color-raised;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: $button-floating-size;
    height: $button-floating-size;
    line-height: $button-floating-size;
    padding: 0;
    background-color: $button-color;
    border-radius: 50%;
    @extend .z-depth-1;
    transition: .3s;
    cursor: pointer;
    vertical-align: middle;
  
    i {
      width: inherit;
      display: inline-block;
      text-align: center;
      color: $button-color-raised;
      font-size: $button-large-icon-font-size;
      line-height: $button-floating-size;
    }
  
    &:hover {
      @extend .z-depth-1-half;
    }
    &:before {
      border-radius: 0;
    }
    &.btn-large {
      width: $button-floating-size * 1.5;
      height: $button-floating-size * 1.5;
      i{
        line-height: $button-floating-size * 1.5;
      }
    }
  
  }
  // button fix
  button.btn-floating {
    border: none;
  }
  
  // Fixed Action Button
  .fixed-action-btn {
    position: fixed;
    right: 23px;
    bottom: 23px;
    padding-top: 15px;
    margin-bottom: 0;
    z-index: 998;
  
    ul {
      left: 0;
      right: 0;
      text-align: center;
      position: absolute;
      bottom: 64px;
      margin: 0;
  
      li {
        margin-bottom: 15px;
      }
  
      a.btn-floating {
        opacity: 0;
      }
    }
  }
  
  // Flat button
  .btn-flat {
    box-shadow: none;
    background-color: transparent;
    color: $button-color-flat;
    cursor: pointer;
  
    &.disabled {
      color: lighten(#999, 10%);
      cursor: default;
    }
  }
  
  // Large button
  .btn-large {
    @extend .btn;
    height: $button-height * 1.5;
    line-height: 56px;
  
    i {
      font-size: $button-large-icon-font-size;
    }
  }
  
  // Block button
  .btn-block {
    display: block;
  }