xssbook/public/css/home.css
2023-02-01 20:34:22 -05:00

187 lines
No EOL
3.2 KiB
CSS

body {
background-color: var(--secondary);
}
#posts, #create {
display: flex;
flex-direction: column;
align-items: center;
}
.post, .create {
width: 40em;
height: fit-content;
background-color: var(--primary);
border-radius: 10px;
padding: 15px;
box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
margin-bottom: 1.5em;
}
.post {
padding-bottom: 0;
color: var(--text);
}
.create {
display: flex;
flex-direction: row;
}
.create button {
all: unset;
background-color: var(--secondary);
border-radius: 3em;
margin-left: 1em;
flex: 1;
}
.create button:hover {
background-color: var(--hover);
cursor: pointer;
}
.create button p {
margin-left: 1em;
font-size: 18px;
}
.postheader {
display: flex;
flex-direction: row;
margin-bottom: .5em;
}
.postbuttons {
display: flex;
flex-direction: row;
}
.postbuttons>span {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 7px;
border-radius: 5px;
color: var(--medium);
margin: 3px
}
.postbuttons>span:hover {
background-color: var(--hover);
}
.postname {
margin-left: 1em;
display: flex;
flex-direction: column;
}
.icons {
background-image: url('/image/icons.png');
display: inline-block;
width: 18px;
height: 18px;
background-size: auto;
background-repeat: no-repeat;
margin-right: .5em;
filter: invert(39%) sepia(21%) saturate(200%) saturate(109.5%) hue-rotate(174deg) brightness(94%) contrast(86%);
}
.blue {
filter: invert(39%) sepia(57%) saturate(200%) saturate(200%)
saturate(200%) saturate(200%) saturate(200%) saturate(147.75%)
hue-rotate(202deg) brightness(97%) contrast(96%);
}
.like {
background-position: 0px -132px;
}
.comm {
background-position: 0px -113px;
}
.createpost {
position: relative;
background-color: var(--primary);
width: 450px;
padding: 20px;
border-radius: .5em;
box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
}
.createpost .postheader {
margin-top: 20px;
}
.createpost textarea {
border: none;
resize: none;
outline: none;
font-family: sfpro;
font-size: 24px;
margin-top: 10px;
width: 100%;
height: 120px;
margin-bottom: 20px;
background-color: transparent;
color: var(--text);
}
.createpost>span {
margin-top: -10px;
}
.primary {
margin: 0;
width: calc(100% - 20px);
font-family: sfprobold;
height: 15px;
}
.close {
top: 1em;
right: 1em;
}
.comment {
display: flex;
flex-direction: row;
margin-bottom: 10px;
}
.comment p, .post p {
word-break: break-all;
white-space: normal;
}
.comment>span {
display: flex;
flex-direction: column;
margin-left: 10px;
background-color: var(--secondary);
border-radius: 10px;
padding: 10px;
padding-right: 10px;
}
.larger {
font-size: 18px;
}
.newcomment {
display: flex;
flex-direction: row;
}
.comments input {
all: unset;
padding: 10px;
border-radius: 10px;
width: calc(100% - 20px);
background-color: var(--secondary);
font-family: sfpro;
}