Add support for community polls to Invidious

This commit is contained in:
syeopite 2021-07-27 00:58:44 -07:00
parent ed4cfd1060
commit 2af442ca2f
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82
42 changed files with 258 additions and 42 deletions

47
assets/css/community.css Normal file
View file

@ -0,0 +1,47 @@
.community-poll {
padding: 0px 10px;
border-radius: 5px;
display: flex;
flex-direction: column;
}
.community-poll-item {
padding: 5px;
border-radius: 5px;
}
.dark-theme .community-poll {
background-color: #363636;
}
.dark-theme .community-poll-item {
background-color: #3d3d3d;
}
@media (prefers-color-scheme: dark) {
.no-theme .community-poll {
background-color: #363636;
}
.no-theme .community-poll-item {
background-color: #3d3d3d;
}
}
.light-theme .community-poll {
background-color: #f2f2f2;
}
.light-theme .community-poll-item {
background-color: #e6e6e6;
}
@media (prefers-color-scheme: light) {
.no-theme .community-poll {
background-color: #f2f2f2;
}
.no-theme .community-poll-item {
background-color: #e6e6e6;
}
}