AutorÃa | Ultima modificación | Ver Log |
.mainSection {
display: grid;
grid-template-columns: 1fr;
}
.feedSection {
display: flex;
flex-direction: column;
gap: 10px;
overflow-x: hidden;
padding-top: 10px;
}
.sectionHeader {
display: flex;
flex-direction: column;
}
.suggestions {
background: $bg-color;
margin-bottom: 1rem;
}
.postsList {
display: flex;
align-items: flex-start;
padding: 1rem;
gap: 0.5rem;
flex-direction: column;
border-top: 1px solid $border-primary;
h4 {
font-weight: bold;
font-size: 1.1rem;
}
span {
font-size: 0.9rem;
}
img {
width: 100%;
height: 180px;
object-fit: cover;
}
}
.suggestionList {
margin-top: 1rem;
max-height: 30vh;
overflow: auto;
}
.peopleYouMayKnow {
display: none;
}
.userProfile {
background-color: $bg-color;
margin-bottom: 1rem;
padding: 0.5rem;
position: relative;
border-radius: 10px;
border: solid 1px rgb(0 0 0 / 25%);
&__header {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
margin-bottom: 1rem;
position: relative;
z-index: 0;
&__imgContainer {
margin-bottom: 0.5rem;
width: 100px;
max-height: 100px;
img {
border-radius: 50%;
}
}
}
&__headerBackground {
display: none;
background-color: $bg-color;
position: absolute;
height: 60px;
width: 100%;
top: 0;
left: 0;
z-index: 0;
border-radius: 5px 5px 0 0;
}
&__connectionInfo {
display: flex;
justify-content: space-around;
align-items: center;
&__infoContainer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex: 50%;
&__title {
font-size: 0.9rem;
}
&__info {
font-size: 0.9rem;
padding: 0 0.3rem;
color: $font-color;
}
}
}
}
.widget {
display: flex;
align-items: center;
justify-content: space-around;
background-color: $bg-color;
padding: 0.5rem;
margin-bottom: 1rem;
border: solid 1px rgb(0 0 0 / 25%);
border-radius: 10px;
&__app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 100%;
text-align: center;
&__img {
width: 50px;
height: 50px;
}
&__title {
color: $title-color;
font-size: 0.9rem;
}
}
}
@include maxwidth("medium") {
.mobile_widget {
display: none;
}
.widget {
flex-direction: column;
&__app:not(:first-child) {
margin-top: 0.5rem;
}
}
.mainSection {
grid-template-columns: 30% 70%;
gap: 1.5rem;
grid-template-areas:
"header feed"
"peopleknow feed"
". feed"
"news news";
padding: 0 10%;
}
.sectionHeader {
display: flex;
flex-direction: column;
grid-area: header;
}
.userProfile {
display: block;
&__header {
display: flex;
}
&__headerBackground {
display: block;
}
&__connectionInfo {
flex-direction: column;
&__infoContainer:not(:last-child) {
margin-bottom: 0.5rem;
}
}
}
.peopleYouMayKnow {
display: block;
grid-area: peopleknow;
}
.feedSection {
grid-area: feed;
}
.suggestions {
display: block;
// grid-area: news;
}
}
@include maxwidth("large") {
.mainSection {
grid-template-columns: 25% 50% 25%;
grid-template-rows: auto auto auto;
grid-template-areas:
"header feed peopleknow"
"news feed ."
". feed .";
}
}
@include maxwidth("desktop") {
.mainSection {
grid-template-columns: 23% 50% 23% !important;
padding: 0% 5% !important;
// grid-template-columns: auto 16% minmax(520px, 30%) 16% auto;
//grid-template-areas:
//". header feed peopleknow ."
//". news feed . ."
// ". . feed . .";
}
}