I have this section that is flexbox with a flex-direction: column, and i want to put the title as the first element only in the mobile view.
But i don't know how to use the order property to make this work.
<section class="section section--team">
<img
class="section--team__image"
src="./imagens/requite.jpeg"
alt="Time da Instalura" />
<div class="section--team__content">
<h1 class="section--team__title">Nossa Equipe</h1>
<p class="section__text section--team__text">
O instalura foi criado por uma equipe compentente utilizando que há de
mais moderno na tecnologia, mas sempre primando pela experiência do
usuário.
</p>
<p class="section__text section--team__text">
Venha conhecer nossa equipe. Quem sabe até trabalhar conosco!
</p>
<ul class="section--team__links">
<li><i class="fas fa-users"></i> <a> Conheça nossa equipe </a></li>
<li>
<i class="fas fa-project-diagram"></i> <a> Trabalhe com a gente </a>
</li>
</ul>
</div>
</section>
My Stylesheet of the Section and the elements. Now, i think it will be more clear to help me
&--team {
display: flex;
justify-content: space-around;
align-items: flex-start;
padding-top: 3rem;
padding-left: 3rem;
padding-right: 3rem;
background-color: $ocean-blue;
@media (min-width: 320px) and (max-width: 480px) {
flex-direction: column;
align-items: center;
justify-content: center;
}
&__content {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
height: 100%;
}
&__title,
&__links li {
a {
color: $white;
margin-left: 2px;
}
.fa-users,
.fa-project-diagram {
color: $blue-lighten;
}
}
&__text,
&__links {
margin-left: 2rem;
@media (min-width: 320px) and (max-width: 480px) {
margin-left: 0rem;
}
}
&__title {
color: $white;
font-size: $font-xl;
align-self: center;
margin-bottom: $margin-sm;
}
&__text {
margin-bottom: $margin-xs;
}
&__links {
margin-top: $margin-xs;
li {
margin-top: $margin-xs;
}
}
&__image {
height: 10rem;
margin-bottom: 3rem;
border-radius: 3px;
}
}