|
308 | 308 |
|
309 | 309 | /// |
310 | 310 | /// GRADIENT |
| 311 | + /// Gradient is not for outlined style |
311 | 312 | /// |
312 | | - @if options('button', 'features', 'gradient') { |
313 | | - &.#{class('button', 'gradient')} { |
314 | | - background: $bg-color; |
315 | | - z-index: 1; |
316 | | - position: relative; |
317 | | - @include set-gradient($bg-color, to top); |
318 | | - &:before { |
319 | | - content: ""; |
320 | | - position: absolute; |
321 | | - top: 0; |
322 | | - left: 0; |
323 | | - width: 100%; |
324 | | - height: 100%; |
325 | | - @include set-gradient($bg-color, to bottom, 23%); |
326 | | - opacity: 0; |
327 | | - transition: opacity 0.25s; |
328 | | - z-index: -1; |
329 | | - } |
330 | | - &:hover::before { |
331 | | - opacity: 1; |
332 | | - } |
333 | | - &:active::before, |
334 | | - &:focus::before { |
| 313 | + @if $outlined != true { |
| 314 | + @if options('button', 'features', 'gradient') { |
| 315 | + &.#{class('button', 'gradient')} { |
335 | 316 | background: $bg-color; |
336 | | - @include set-gradient($bg-color, to bottom, 27%); |
337 | | - } |
338 | | - } |
339 | | - /// Gradient Left-To-Right |
340 | | - &.#{class('button', 'gradient')}#{'-ltr'} { |
341 | | - background: linear-gradient(125deg, lighten($bg-color, 21%), darken($bg-color, 5%)); |
342 | | - } |
343 | | - /// Gradient Right-To-Left |
344 | | - &.#{class('button', 'gradient')}#{'-rtl'} { |
345 | | - background: linear-gradient(-125deg, lighten($bg-color, 21%), darken($bg-color, 5%)); |
346 | | - } |
347 | | - &.#{class('button', 'gradient')}#{'-ltr'}, |
348 | | - &.#{class('button', 'gradient')}#{'-rtl'} { |
349 | | - z-index: 1; |
350 | | - position: relative; |
351 | | - &:before { |
352 | | - position: absolute; |
353 | | - content: ""; |
354 | | - width: 100%; |
355 | | - height: 100%; |
356 | | - top: 0; |
357 | | - left: 0; |
358 | | - opacity: 0; |
359 | | - transition: opacity 0.25s; |
360 | | - z-index: -1; |
361 | | - background: linear-gradient(0deg, lighten($bg-color, 21%), darken($bg-color, 2%)); |
362 | | - } |
363 | | - &:hover::before { |
364 | | - opacity: 1; |
| 317 | + z-index: 1; |
| 318 | + position: relative; |
| 319 | + @include set-gradient($bg-color, to top); |
| 320 | + &:before { |
| 321 | + content: ""; |
| 322 | + position: absolute; |
| 323 | + top: 0; |
| 324 | + left: 0; |
| 325 | + width: 100%; |
| 326 | + height: 100%; |
| 327 | + @include set-gradient($bg-color, to bottom, 23%); |
| 328 | + opacity: 0; |
| 329 | + transition: opacity 0.25s; |
| 330 | + z-index: -1; |
| 331 | + } |
| 332 | + &:hover::before { |
| 333 | + opacity: 1; |
| 334 | + } |
| 335 | + &:active::before, |
| 336 | + &:focus::before { |
| 337 | + background: $bg-color; |
| 338 | + @include set-gradient($bg-color, to bottom, 27%); |
| 339 | + } |
365 | 340 | } |
366 | | - &:active::before, |
367 | | - &:focus::before { |
368 | | - background: linear-gradient(0deg, lighten($bg-color, 25%), $bg-color); |
| 341 | + /// Gradient Left-To-Right |
| 342 | + &.#{class('button', 'gradient')}#{'-ltr'} { |
| 343 | + background: linear-gradient(125deg, lighten($bg-color, 21%), darken($bg-color, 5%)); |
| 344 | + } |
| 345 | + /// Gradient Right-To-Left |
| 346 | + &.#{class('button', 'gradient')}#{'-rtl'} { |
| 347 | + background: linear-gradient(-125deg, lighten($bg-color, 21%), darken($bg-color, 5%)); |
| 348 | + } |
| 349 | + &.#{class('button', 'gradient')}#{'-ltr'}, |
| 350 | + &.#{class('button', 'gradient')}#{'-rtl'} { |
| 351 | + z-index: 1; |
| 352 | + position: relative; |
| 353 | + &:before { |
| 354 | + position: absolute; |
| 355 | + content: ""; |
| 356 | + width: 100%; |
| 357 | + height: 100%; |
| 358 | + top: 0; |
| 359 | + left: 0; |
| 360 | + opacity: 0; |
| 361 | + transition: opacity 0.25s; |
| 362 | + z-index: -1; |
| 363 | + background: linear-gradient(0deg, lighten($bg-color, 21%), darken($bg-color, 2%)); |
| 364 | + } |
| 365 | + &:hover::before { |
| 366 | + opacity: 1; |
| 367 | + } |
| 368 | + &:active::before, |
| 369 | + &:focus::before { |
| 370 | + background: linear-gradient(0deg, lighten($bg-color, 25%), $bg-color); |
| 371 | + } |
369 | 372 | } |
370 | 373 | } |
371 | 374 | } |
|
0 commit comments