hero.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. body{
  2. overflow-x: hidden;
  3. }
  4. .home{
  5. .__img-hero{
  6. width: 100vw;
  7. position: relative;
  8. left: 50%;
  9. right: 50%;
  10. margin-left: -50vw;
  11. margin-right: -50vw;
  12. }
  13. }
  14. .__img-hero{
  15. height: 300px;
  16. width: 100vw;
  17. position: relative;
  18. left: 50%;
  19. right: 50%;
  20. margin-left: -50vw;
  21. margin-right: -50vw;
  22. img{
  23. width:100%;
  24. height: 100%;
  25. object-fit: cover;
  26. }
  27. }
  28. .participant_full{
  29. flex-direction: column;
  30. margin-top: 2rem;
  31. @media screen and (min-width: 992px) {
  32. margin-top: 0rem;
  33. }
  34. .hero{
  35. figure{
  36. width:100%;
  37. .__img{
  38. &> div{
  39. margin: auto;
  40. width: 250px;
  41. height: 250px;
  42. }
  43. img{
  44. border-radius: 100%;
  45. width: 100%;
  46. height: 100%;
  47. object-fit: cover;
  48. }
  49. }
  50. figcaption {
  51. align-self: center;
  52. text-align: center;
  53. margin: 2rem 0;
  54. }
  55. }
  56. }
  57. }
  58. @media screen and (min-width: 768px) {
  59. .__img-hero{
  60. height: 500px;
  61. width: auto;
  62. position: relative;
  63. left: 0;
  64. right: 0;
  65. margin-left: auto;
  66. margin-right: auto;
  67. }
  68. }
  69. @media screen and (min-width: 768px) {
  70. .participant_full{
  71. .hero{
  72. figure{
  73. width:100%;
  74. .__img{
  75. margin-right: 2rem;
  76. &> div{
  77. width: 300px;
  78. height: 300px;
  79. }
  80. img{
  81. border-radius: 100%;
  82. width: 100%;
  83. height: 100%;
  84. object-fit: cover;
  85. }
  86. }
  87. figcaption {
  88. align-self: center;
  89. }
  90. }
  91. }
  92. }
  93. }