hero.scss 1.6 KB

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