hero.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. img{
  17. width:100%;
  18. height: 100%;
  19. object-fit: cover;
  20. }
  21. }
  22. .__img-hero{
  23. width: 100vw;
  24. position: relative;
  25. left: 50%;
  26. right: 50%;
  27. margin-left: -50vw;
  28. margin-right: -50vw;
  29. }
  30. .participant_full{
  31. .hero{
  32. figure{
  33. width:100%;
  34. .__img{
  35. &> div{
  36. margin: auto;
  37. width: 300px;
  38. height: 300px;
  39. }
  40. img{
  41. border-radius: 100%;
  42. width: 100%;
  43. height: 100%;
  44. object-fit: cover;
  45. }
  46. }
  47. figcaption {
  48. align-self: center;
  49. text-align: center;
  50. margin: 2rem 0;
  51. }
  52. }
  53. }
  54. }
  55. @media screen and (min-width: 768px) {
  56. .__img-hero{
  57. height: 500px;
  58. width: auto;
  59. position: relative;
  60. left: 0;
  61. right: 0;
  62. margin-left: auto;
  63. margin-right: auto;
  64. }
  65. }
  66. @media screen and (min-width: 768px) {
  67. .participant_full{
  68. .hero{
  69. figure{
  70. width:100%;
  71. .__img{
  72. margin-right: 2rem;
  73. &> div{
  74. width: 300px;
  75. height: 300px;
  76. }
  77. img{
  78. border-radius: 100%;
  79. width: 100%;
  80. height: 100%;
  81. object-fit: cover;
  82. }
  83. }
  84. figcaption {
  85. align-self: center;
  86. }
  87. }
  88. }
  89. }
  90. }