Rev 6794 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@mixin widget {
border: 1px solid lightgray;
border-radius: 10px;
background-color: #fff;
}
@mixin icon {
background-color: #0000;
border: none;
color: rgba(0, 0, 0, 0.6);
cursor: pointer;
display: grid;
padding: 0;
place-items: center;
position: relative;
&::before {
content: "";
border-radius: 50%;
height: 3rem;
width: 3rem;
transition: all 0.2s;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
&:hover::before {
background-color: rgba(0, 0, 0, 0.08);
}
}
.button-icon {
@include icon;
}
.profile__layout {
column-gap: 1rem;
row-gap: 0.5rem;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-rows: auto;
grid-template-areas:
"main"
"aside";
@media screen and (min-width: 768px) {
grid-template-areas: "main aside";
grid-template-columns: minmax(0, 17fr) minmax(300px, 7fr);
}
}
.profile__user-card {
@include widget;
display: flex;
flex-direction: column;
overflow: hidden;
.cover__image-container {
width: 100%;
height: 300px;
position: relative;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.cover__edit-btn {
position: absolute;
top: 20px;
right: 20px;
background-color: #fff;
color: blueviolet;
border-radius: 50%;
height: 3rem;
width: 3rem;
font-size: 1.1rem;
&::before {
content: initial;
}
}
}
.card-content {
display: flex;
align-items: flex-start;
justify-content: space-between;
flex-wrap: wrap;
.card-info {
display: flex;
flex-direction: column;
align-items: flex-start;
h1 {
font-size: 24px;
font-weight: 600;
line-height: 1.25;
}
p {
font-size: 1rem;
font-weight: 400;
line-height: 1.25;
}
span {
font-size: 0.9rem;
font-weight: 400;
}
a {
color: #0a66c2;
font-weight: 600;
}
}
}
.card__image-options {
display: flex;
justify-content: space-between;
align-items: flex-end;
.img {
width: 152px;
height: 152px;
margin-top: -112px;
border-radius: 50%;
border: 4px solid #fff;
background-color: #c9ced4;
}
}
.description__label {
label {
font-size: 1rem;
font-weight: 600;
}
p {
font-size: 0.9rem;
}
margin-bottom: 1rem;
}
.card-experiences {
width: 232px;
ul {
display: flex;
flex-direction: column;
align-items: flex-start;
span {
font-weight: 600;
font-size: 0.9rem;
}
}
}
.button-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.button {
border-radius: 30px;
align-items: center;
padding-left: 1rem !important;
padding-right: 1rem !important;
border: none;
width: fit-content;
cursor: pointer;
font-weight: 600;
display: inline-flex;
justify-content: center;
min-width: 6.4rem;
max-width: 480px;
overflow: hidden;
text-align: center;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
// Experience
.experience__user-card {
@include widget;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
grid-column: 1;
.card__options-container {
display: flex;
justify-content: space-between;
align-items: center;
h2,
h4 {
font-weight: 600;
font-size: 1.4rem;
}
.card__options-icons {
display: flex;
gap: 1.5rem;
}
}
.card__items {
display: flex;
flex-direction: column;
h4,
p,
span {
line-height: 1.25;
}
h4 {
font-weight: 600;
font-size: 1rem;
}
p,
span {
font-weight: 400;
}
span {
font-size: 0.9rem;
color: rgba(0, 0, 0, 0.6);
}
p:nth-last-child(1) {
margin-top: 0.5rem;
}
}
}