_mixins.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. @mixin filet{
  2. width: 100%;
  3. text-align: center;
  4. display: -webkit-inline-box;
  5. display: -ms-inline-flexbox;
  6. display: inline-flex;
  7. width: 100%;
  8. -webkit-box-align: center;
  9. -ms-flex-align: center;
  10. align-items: center;
  11. &::after{
  12. right: 0;
  13. content: " ";
  14. width: 50%;
  15. height: 0px;
  16. border: $border-red;
  17. margin-left: 20px;
  18. }
  19. &::before{
  20. left: 0;
  21. content: " ";
  22. width: 50%;
  23. height: 0px;
  24. border: $border-red;
  25. margin-right: 20px;
  26. }
  27. }
  28. @mixin filet-b{
  29. width: 100%;
  30. text-align: center;
  31. display: -webkit-inline-box;
  32. display: -ms-inline-flexbox;
  33. display: inline-flex;
  34. width: 100%;
  35. -webkit-box-align: center;
  36. -ms-flex-align: center;
  37. align-items: center;
  38. &::after{
  39. right: 0;
  40. content: " ";
  41. width: 50%;
  42. height: 0px;
  43. border: $border-blue;
  44. margin-left: 20px;
  45. }
  46. &::before{
  47. left: 0;
  48. content: " ";
  49. width: 50%;
  50. height: 0px;
  51. border: $border-blue;
  52. margin-right: 20px;
  53. }
  54. }
  55. @mixin triangle{
  56. position: absolute;
  57. z-index: 1;
  58. -webkit-transform: rotate(-135deg);
  59. transform: rotate(-135deg);
  60. width: 0;
  61. height: 0;
  62. top: -70px;
  63. left: -70px;
  64. border: 70px solid $blue;
  65. border-top-color: transparent;
  66. border-right-color: transparent;
  67. border-bottom-color: transparent;
  68. }
  69. @mixin rotateH{
  70. -webkit-transform: rotate(90deg);
  71. transform: rotate(90deg);
  72. position: absolute;
  73. top: -8px;
  74. left: -75px;
  75. }
  76. @mixin arrow{
  77. width: 0!important;
  78. height: 0;
  79. top: 35px;
  80. left: 50%;
  81. right: 50%;
  82. border: 50px solid white;
  83. border-left-color: transparent;
  84. border-right-color: transparent;
  85. border-bottom-color: transparent;
  86. position: absolute;
  87. -webkit-transform: translateX(-50%);
  88. transform: translateX(-50%);
  89. }