xssbook/public/css/profile.css
2023-02-15 14:34:09 -05:00

199 lines
3.3 KiB
CSS

body {
background-color: var(--secondary);
max-width: 100%;
}
.spacer {
margin-bottom: 3.5em;
}
#top {
background-color: var(--primary);
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
}
#banner {
background-image: linear-gradient(var(--banner), var(--primary), var(--primary));
height: 30em;
width: 100%;
display: flex;
justify-content: center;
}
#banner .bg, #banner img {
width: 80em;
max-width: 100%;
height: inherit;
background-color: var(--hover);
border-radius: 0px 0px 20px 20px;
object-fit: cover;
}
#info {
width: 80em;
max-width: 100%;
display: flex;
flex-direction: row;
}
.face {
background-color: var(--hover);
height: 12em;
width: 12em;
border-radius: 7em;
border: solid 5px var(--primary);
margin-top: -2em;
margin-left: 2em;
margin-right: 2em;
}
.face img {
height: 12em;
width: 12em;
border-radius: 7em;
}
.changeavatar, .changebanner {
all: unset;
position: absolute;
width: 3em;
height: 3em;
margin-left: -3em;
margin-top: 9em;
border-radius: 3em;
background-color: var(--secondary);
z-index: 10000 !important;
text-align: center;
background-image: url('/image/change.png');
cursor: pointer;
}
.changebanner {
position: relative;
margin-left: -4em;
margin-top: 26em;
}
.infodata {
margin-top: 2em;
display: flex;
flex-direction: column;
}
.infodata span {
margin-bottom: .5em;
}
.profilebuttons {
width: 80em;
max-width: 100%;
height: 3em;
display: flex;
align-items: center;
justify-content: space-between;
}
.profilebuttons button {
all: unset;
font-family: sfprobold;
padding: 0px 50px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: var(--medium);
cursor: pointer;
flex: 0;
}
.profilebuttons button:hover {
background-color: var(--mild);
}
.selected {
color: var(--logo) !important;
border-bottom: 3px solid var(--logo) !important;
}
#about, #friends, #followers, #following {
margin-top: 2em;
align-self: center;
padding: 0;
display: flex;
flex-direction: column;
}
#about {
flex-direction: row;
}
#posts {
max-width: 100%;
margin-top: 2em;
}
#about .ltext {
border-right: 2px solid var(--mild);
padding: 10px;
padding-right: 3em;
max-width: 100%;
}
#about .data {
display: flex;
flex-direction: column;
padding: 10px;
padding-left: 20px;
padding-top: 15px;
max-width: 100%;
}
#about .data span {
margin-bottom: 10px;
width: 28em;
margin-bottom: 5px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
max-width: 100%;
}
.logout {
flex: 1;
}
.follow {
display: flex;
justify-content: center;
align-items: center;
height: 40px;
width: 175px;
background-color: var(--secondary);
border-radius: 10px;
cursor: pointer;
}
.follow>span {
color: var(--medium);
}
.friend {
background-color: var(--logo);
border: 1px solid var(#ffffff)
}
.friend>span {
color: #ffffff;
}
.right {
flex: 1;
display: flex;
justify-content: end;
align-items: center;
padding-right: 50px;
}