You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
1.8 KiB

  1. $ax5mask-z-index: 1000 !default;
  2. $ax5mask-bg-opacity: 0.6 !default;
  3. $ax5mask-bg: #000 !default;
  4. $ax5mask-text-color: #fff !default;
  5. $ax5mask-text-shadow:0px 1px 0px #000 !default;
  6. $ax5mask-easing-time-open: 0.25s !default;
  7. $ax5mask-easing-time-close: 0.25s !default;
  8. @mixin ax-mask() {
  9. position: absolute;
  10. }
  11. @mixin ax-panel-mask() {
  12. position: absolute;
  13. }
  14. // mixins --------------------------------------------- end
  15. @include keyframes(ax-mask) {
  16. from {
  17. opacity: 0.0;
  18. }
  19. to {
  20. opacity: $ax5mask-bg-opacity;
  21. }
  22. }
  23. @include keyframes(ax-mask-fade-out) {
  24. from {
  25. opacity: $ax5mask-bg-opacity;
  26. }
  27. to {
  28. opacity: 0.0;
  29. }
  30. }
  31. .ax-masking {
  32. -webkit-filter: blur(3px);
  33. //position: fixed;
  34. @include transform(scale(0.96));
  35. @include transform(translateZ(0));
  36. }
  37. .ax-mask {
  38. box-sizing: border-box;
  39. *,
  40. *:before,
  41. *:after {
  42. box-sizing: border-box;
  43. }
  44. z-index: $ax5mask-z-index;
  45. position: fixed;
  46. left: 0;
  47. top: 0;
  48. width: 100%;
  49. height: 100%;
  50. .ax-mask-bg {
  51. z-index: 1;
  52. position: absolute;
  53. left: 0;
  54. top: 0;
  55. width: 100%;
  56. height: 100%;
  57. background: $ax5mask-bg;
  58. opacity: $ax5mask-bg-opacity;
  59. }
  60. .ax-mask-content {
  61. z-index: 2;
  62. position: absolute;
  63. left: 0;
  64. top: 0;
  65. width: 100%;
  66. height: 100%;
  67. display: table;
  68. vertical-align: middle;
  69. text-align: center;
  70. color: $ax5mask-text-color;
  71. text-shadow: $ax5mask-text-shadow;
  72. * {
  73. color: inherit;
  74. }
  75. > div {
  76. display: table-cell;
  77. vertical-align: middle;
  78. text-align: center;
  79. }
  80. }
  81. &.fade-out {
  82. @include animation(ax-mask-fade-out $ax5mask-easing-time-close);
  83. opacity: 0.0;
  84. }
  85. }