_mixins.scss 1.4 KB

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