github.com/mithrandie/csvq@v1.18.1/docs/_sass/components/_buttons.scss (about) 1 // shared styles 2 .btn, 3 .btn-flat { 4 border: $button-border; 5 border-radius: $button-radius; 6 display: inline-block; 7 height: $button-height; 8 line-height: $button-height; 9 padding: $button-padding; 10 text-transform: uppercase; 11 vertical-align: middle; 12 // Gets rid of tap active state 13 -webkit-tap-highlight-color: transparent; 14 } 15 16 // Disabled shared style 17 .btn.disabled, 18 .btn-floating.disabled, 19 .btn-large.disabled, 20 .btn-flat.disabled, 21 .btn:disabled, 22 .btn-floating:disabled, 23 .btn-large:disabled, 24 .btn-flat:disabled, 25 .btn[disabled], 26 .btn-floating[disabled], 27 .btn-large[disabled], 28 .btn-flat[disabled] { 29 pointer-events: none; 30 background-color: $button-disabled-background !important; 31 box-shadow: none; 32 color: $button-disabled-color !important; 33 cursor: default; 34 35 &:hover { 36 background-color: $button-disabled-background !important; 37 color: $button-disabled-color !important; 38 } 39 } 40 41 // Shared icon styles 42 .btn, 43 .btn-floating, 44 .btn-large, 45 .btn-flat { 46 font-size: $button-font-size; 47 outline: 0; 48 49 i { 50 font-size: $button-icon-font-size; 51 line-height: inherit; 52 } 53 } 54 55 // Shared focus button style 56 .btn, 57 .btn-floating { 58 &:focus { 59 background-color: darken($button-raised-background, 10%); 60 } 61 } 62 63 // Raised Button 64 .btn { 65 text-decoration: none; 66 color: $button-raised-color; 67 background-color: $button-raised-background; 68 text-align: center; 69 letter-spacing: .5px; 70 @extend .z-depth-1; 71 transition: .2s ease-out; 72 cursor: pointer; 73 74 &:hover { 75 background-color: $button-raised-background-hover; 76 @extend .z-depth-1-half; 77 } 78 } 79 80 // Floating button 81 .btn-floating { 82 &:hover { 83 background-color: $button-floating-background-hover; 84 @extend .z-depth-1-half; 85 } 86 87 &:before { 88 border-radius: 0; 89 } 90 91 &.btn-large { 92 &.halfway-fab { 93 bottom: -$button-floating-large-size / 2; 94 } 95 96 width: $button-floating-large-size; 97 height: $button-floating-large-size; 98 i { 99 line-height: $button-floating-large-size; 100 } 101 } 102 103 &.halfway-fab { 104 &.left { 105 right: auto; 106 left: 24px; 107 } 108 109 position: absolute; 110 right: 24px; 111 bottom: -$button-floating-size / 2; 112 } 113 114 display: inline-block; 115 color: $button-floating-color; 116 position: relative; 117 overflow: hidden; 118 z-index: 1; 119 width: $button-floating-size; 120 height: $button-floating-size; 121 line-height: $button-floating-size; 122 padding: 0; 123 background-color: $button-floating-background; 124 border-radius: $button-floating-radius; 125 @extend .z-depth-1; 126 transition: .3s; 127 cursor: pointer; 128 vertical-align: middle; 129 130 i { 131 width: inherit; 132 display: inline-block; 133 text-align: center; 134 color: $button-floating-color; 135 font-size: $button-large-icon-font-size; 136 line-height: $button-floating-size; 137 } 138 } 139 140 // button fix 141 button.btn-floating { 142 border: $button-border; 143 } 144 145 // Fixed Action Button 146 .fixed-action-btn { 147 &.active { 148 ul { 149 visibility: visible; 150 } 151 } 152 153 &.horizontal { 154 padding: 0 0 0 15px; 155 156 ul { 157 text-align: right; 158 right: 64px; 159 top: 50%; 160 transform: translateY(-50%); 161 height: 100%; 162 left: auto; 163 width: 500px; /*width 100% only goes to width of button container */ 164 165 li { 166 display: inline-block; 167 margin: 15px 15px 0 0; 168 } 169 } 170 } 171 172 &.toolbar { 173 &.active { 174 & > a i { 175 opacity: 0; 176 } 177 } 178 179 padding: 0; 180 height: $button-floating-large-size; 181 182 ul { 183 display: flex; 184 top: 0; 185 bottom: 0; 186 187 li { 188 flex: 1; 189 display: inline-block; 190 margin: 0; 191 height: 100%; 192 transition: none; 193 194 a { 195 display: block; 196 overflow: hidden; 197 position: relative; 198 width: 100%; 199 height: 100%; 200 background-color: transparent; 201 box-shadow: none; 202 color: #fff; 203 line-height: $button-floating-large-size; 204 z-index: 1; 205 206 i { 207 line-height: inherit; 208 } 209 } 210 } 211 } 212 } 213 214 position: fixed; 215 right: 23px; 216 bottom: 23px; 217 padding-top: 15px; 218 margin-bottom: 0; 219 z-index: 998; 220 221 ul { 222 left: 0; 223 right: 0; 224 text-align: center; 225 position: absolute; 226 bottom: 64px; 227 margin: 0; 228 visibility: hidden; 229 230 li { 231 margin-bottom: 15px; 232 } 233 234 a.btn-floating { 235 opacity: 0; 236 } 237 } 238 239 .fab-backdrop { 240 position: absolute; 241 top: 0; 242 left: 0; 243 z-index: -1; 244 width: $button-floating-size; 245 height: $button-floating-size; 246 background-color: $button-floating-background; 247 border-radius: $button-floating-radius; 248 transform: scale(0); 249 } 250 } 251 252 // Flat button 253 .btn-flat { 254 box-shadow: none; 255 background-color: transparent; 256 color: $button-flat-color; 257 cursor: pointer; 258 transition: background-color .2s; 259 260 &:focus, 261 &:active { 262 background-color: transparent; 263 } 264 265 &:focus, 266 &:hover { 267 background-color: rgba(0,0,0,.1); 268 box-shadow: none; 269 } 270 271 &:active { 272 background-color: rgba(0,0,0,.2); 273 } 274 275 &.disabled { 276 background-color: transparent !important; 277 color: $button-flat-disabled-color !important; 278 cursor: default; 279 } 280 } 281 282 // Large button 283 .btn-large { 284 @extend .btn; 285 height: $button-large-height; 286 line-height: $button-large-height; 287 288 i { 289 font-size: $button-large-icon-font-size; 290 } 291 } 292 293 // Block button 294 .btn-block { 295 display: block; 296 }