moviewyrm/fedireads/static/format.css

579 lines
8.8 KiB
CSS
Raw Normal View History

2020-01-29 01:23:38 +00:00
/* some colors that are okay: #247BA0 #70C1B2 #B2DBBF #F3FFBD #FF1654 */
2020-01-25 23:25:19 +00:00
* {
margin: 0;
padding: 0;
line-height: 1.3em;
2020-01-29 01:23:38 +00:00
font-family: sans-serif;
2020-02-15 05:45:13 +00:00
}
2020-02-19 21:42:45 +00:00
html {
background-color: #FFF;
2020-02-19 21:42:45 +00:00
color: black;
}
2020-03-15 21:15:36 +00:00
body {
padding-top: 90px;
}
2020-02-19 21:42:45 +00:00
a {
2020-03-15 21:15:36 +00:00
color: #247BA0;
2020-02-19 21:42:45 +00:00
}
2020-03-15 21:15:36 +00:00
input, button {
padding: 0.2em 0.5em;
}
button {
cursor: pointer;
width: max-content;
2020-02-19 21:42:45 +00:00
}
2020-02-15 05:45:13 +00:00
h1, h2, h3, h4 {
2020-01-29 01:23:38 +00:00
font-weight: normal;
2020-01-25 23:25:19 +00:00
}
2020-01-29 01:23:38 +00:00
h1 {
2020-01-29 20:53:12 +00:00
font-size: 1.5rem;
2020-01-29 01:23:38 +00:00
}
h2 {
font-size: 1rem;
padding: 0.5rem 0.2rem;
margin-bottom: 1rem;
2020-03-16 23:10:59 +00:00
border-bottom: 3px solid #B2DBBF;
2020-01-29 01:23:38 +00:00
}
2020-01-29 20:53:12 +00:00
#top-bar {
2020-03-15 21:15:36 +00:00
overflow: visible;
2020-01-29 20:53:12 +00:00
padding: 0.5rem;
2020-03-15 21:15:36 +00:00
border-bottom: 3px solid #247BA0;
margin-bottom: 1em;
width: 100%;
background-color: #FFF;
position: fixed;
top: 0;
height: 47px;
2020-03-21 19:32:44 +00:00
z-index: 2;
2020-01-29 01:39:07 +00:00
}
2020-02-20 02:12:44 +00:00
#warning {
background-color: #FF1654;
text-align: center;
}
2020-03-15 21:15:36 +00:00
#branding a {
text-decoration: none;
}
#actions {
margin-top: 1em;
}
2020-02-20 02:12:44 +00:00
2020-03-15 21:15:36 +00:00
#actions > * {
display: inline-block;
2020-01-29 01:39:07 +00:00
}
2020-03-16 23:10:59 +00:00
#actions > *:last-child {
margin-left: 0.5em;
}
2020-03-15 21:15:36 +00:00
#notifications .icon {
font-size: 1.1rem;
2020-01-29 01:39:07 +00:00
}
2020-03-15 21:15:36 +00:00
#notifications a {
2020-01-29 08:05:58 +00:00
color: black;
2020-03-15 21:15:36 +00:00
text-decoration: none;
position: relative;
top: 0.2rem;
2020-01-29 08:05:58 +00:00
}
2020-03-15 21:15:36 +00:00
#notifications .count {
background-color: #FF1654;
color: white;
font-size: 0.85rem;
border-radius: 50%;
display: block;
position: absolute;
text-align: center;
top: -0.65rem;
right: -0.5rem;
height: 1rem;
width: 1rem;
2020-01-25 23:25:19 +00:00
}
2020-03-17 01:05:49 +00:00
.notification {
margin-bottom: 1em;
padding: 1em 0;
background-color: #EEE;
}
.notification.unread {
background-color: #DDD;
}
2020-03-15 21:15:36 +00:00
button .icon {
font-size: 1.1rem;
vertical-align: sub;
}
#search button {
border: none;
2020-03-22 16:30:08 +00:00
background: none;
2020-03-15 21:15:36 +00:00
}
#main, header {
2020-01-29 20:53:12 +00:00
margin: 0 auto;
2020-03-15 21:15:36 +00:00
max-width: 55rem;
padding-right: 1em;
}
header {
2020-01-29 01:23:38 +00:00
display: flex;
2020-01-29 20:53:12 +00:00
flex-direction: row;
2020-01-29 09:25:56 +00:00
}
2020-03-15 21:15:36 +00:00
ul.menu {
list-style: none;
text-align: center;
margin-top: 1.5rem;
flex-grow: 1;
font-size: 0.9em;
}
ul.menu li {
display: inline-block;
background-color: white;
padding: 0 0.5em;
text-transform: uppercase;
}
ul.menu a {
color: #555;
text-decoration: none;
font-size: 0.9em;
2020-02-21 23:39:25 +00:00
}
2020-01-29 09:25:56 +00:00
2020-03-15 21:15:36 +00:00
.pulldown-container {
position: relative;
}
.pulldown {
display: none;
position: absolute;
list-style: none;
background: white;
padding: 1em;
right: 0;
box-shadow: 0 5px 10px rgba(0,0,0,0.15);
width: max-content;
}
.pulldown-container:hover .pulldown {
display: block;
}
2020-03-15 22:42:52 +00:00
.pulldown li {
margin-bottom: 0.5em;
}
2020-03-15 21:15:36 +00:00
#feed {
2020-01-29 09:25:56 +00:00
display: flex;
flex-direction: column;
2020-03-15 21:15:36 +00:00
padding-top: 70px;
position: relative;
top: -50px;
2020-03-21 19:32:44 +00:00
z-index: 0;
2020-01-27 01:55:02 +00:00
}
2020-03-15 21:15:36 +00:00
.row {
display: flex;
flex-direction: row;
}
.row > * {
flex-grow: 1;
width: min-content;
2020-03-16 23:10:59 +00:00
margin-right: 1em;
}
.row > *:last-child {
margin-right: 0;
}
.row.shrink > * {
flex-grow: 0;
width: max-content;
}
2020-03-17 00:45:34 +00:00
.row.wrap {
flex-wrap: wrap;
}
.book-grid .book-cover {
height: 11em;
width: auto;
}
.book-grid > * {
margin-bottom: 2em;
}
2020-03-16 23:10:59 +00:00
.follow-requests .row {
margin-bottom: 0.5em;
}
.follow-requests .row > *:first-child {
2020-03-17 01:05:49 +00:00
width: 20em;
2020-03-15 21:15:36 +00:00
}
.login form {
margin-top: 1em;
}
.login form p {
display: flex;
flex-direction: row;
padding: 0.5em 0;
}
.login form label {
width: 0;
flex-grow: 1;
display: inline-block;
}
form input {
flex-grow: 1;
}
.content-container button {
border: none;
background-color: #247BA0;
color: white;
padding: 0.3em 0.8em;
font-size: 0.9em;
border-radius: 0.3em;
}
button.secondary {
background-color: #EEE;
border: 2px solid #247BA0;
color: #247BA0;
}
2020-03-16 23:10:59 +00:00
button.warning {
background-color: #FF1654;
2020-01-29 20:53:12 +00:00
}
.tabs {
display: flex;
flex-direction: row;
2020-03-15 21:15:36 +00:00
border-bottom: 3px solid #FF1654;
padding-left: 1em;
}
.tabs.secondary {
border-bottom: 3px solid #247BA0;
}
.tab {
padding: 0.5em 1em;
border-radius: 0.25em 0.25em 0 0;
}
.secondary .tab {
padding: 0.25em 0.5em;
}
2020-03-15 21:15:36 +00:00
.tabs .tab.active {
background-color: #FF1654;
}
2020-03-15 21:15:36 +00:00
.tabs.secondary .tab.active {
background-color: #247BA0;
}
.tab.active a {
color: black;
}
2020-01-25 23:25:19 +00:00
.user-pic {
2020-01-29 20:53:12 +00:00
width: 2rem;
2020-03-15 21:15:36 +00:00
height: 2rem;
2020-01-25 23:25:19 +00:00
border-radius: 50%;
2020-01-29 23:10:32 +00:00
vertical-align: top;
position: relative;
2020-03-15 21:15:36 +00:00
bottom: 0.35em;
}
2020-03-16 23:10:59 +00:00
.user-pic.large {
width: 5em;
height: 5em;
}
.user-profile h2 a {
text-decoration: none;
font-size: 0.9em;
float: right;
}
.user-profile h2 .icon {
font-size: 1.2em;
}
.user-profile .row > * {
flex-grow: 0;
}
.user-profile .row > *:last-child {
flex-grow: 1;
}
2020-03-15 21:15:36 +00:00
.review-form label {
display: block;
2020-01-25 23:25:19 +00:00
}
2020-02-20 02:41:37 +00:00
.time-ago {
float: right;
display: block;
2020-03-17 01:05:49 +00:00
text-align: right;
2020-02-20 02:41:37 +00:00
}
2020-01-25 23:25:19 +00:00
.book-preview {
2020-03-15 21:15:36 +00:00
overflow: hidden;
2020-03-21 19:32:44 +00:00
z-index: 1;
2020-01-25 23:25:19 +00:00
}
.book-preview img {
float: left;
2020-01-29 20:53:12 +00:00
margin-right: 1em;
2020-01-25 23:25:19 +00:00
}
2020-02-21 17:15:20 +00:00
.book-preview.grid {
float: left;
}
2020-03-15 21:15:36 +00:00
.content-container {
margin: 1rem;
}
.content-container > * {
padding-left: 1em;
padding-right: 1em;
2020-01-29 08:05:58 +00:00
}
2020-03-15 21:15:36 +00:00
.all-shelves {
display: flex;
flex-direction: row;
overflow-y: hidden;
margin-left: 0;
}
.all-shelves > div {
flex-grow: 0;
}
.all-shelves > div:last-child {
padding-right: 0;
flex-grow: 1;
}
.all-shelves > div > * {
padding: 0;
}
.all-shelves > div:first-child > * {
padding-left: 1em;
}
2020-03-16 23:10:59 +00:00
.user-shelves .covers-shelf {
flex-wrap: wrap;
}
.user-shelves > div {
margin: 1em 0;
padding: 0;
}
.user-shelves > div > * {
padding-left: 1em;
}
.user-shelves .covers-shelf .book-cover {
height: 9em;
2020-03-15 21:15:36 +00:00
}
.covers-shelf {
display: flex;
flex-direction: row;
}
.covers-shelf .book-preview {
margin-right: 1em;
font-size: 0.9em;
overflow: unset;
width: min-content;
position: relative;
}
.covers-shelf .book-preview button {
display: block;
margin: 0 auto;
border: none;
}
.covers-shelf .book-preview:last-child {
margin-right: 0;
2020-01-29 20:53:12 +00:00
}
2020-03-15 21:15:36 +00:00
.covers-shelf .book-preview:hover {
cursor: pointer;
}
.covers-shelf .book-preview:hover img {
box-shadow: #F3FFBD 0em 0em 1em 1em;
}
2020-03-15 22:41:23 +00:00
.covers-shelf .book-cover {
2020-03-15 21:15:36 +00:00
float: none;
height: 11rem;
width: auto;
margin: 0;
}
.close {
float: right;
cursor: pointer;
2020-01-29 01:23:38 +00:00
padding: 1rem;
2020-01-25 23:25:19 +00:00
}
2020-03-15 21:15:36 +00:00
.compose-suggestion {
display: none;
}
.compose-suggestion.visible {
display: block;
}
2020-03-15 22:41:23 +00:00
.no-cover {
position: relative;
}
.no-cover div {
position: absolute;
padding: 1em;
color: white;
top: 0;
left: 0;
text-align: center;
}
.no-cover .title {
text-transform: uppercase;
margin-bottom: 1em;
}
.book-cover {
width: 180px;
}
2020-03-15 21:15:36 +00:00
.book-cover.small {
width: 50px;
height: auto;
}
.compose-suggestion .book-preview {
background-color: #EEE;
padding: 1em;
}
2020-02-21 06:19:19 +00:00
.tag {
border: 1px solid black;
display: inline-block;
padding: 0.2em;
border-radius: 0.2em;
background-color: #F3FFBD;
}
.tag form {
display: inline;
}
2020-01-29 01:23:38 +00:00
.review-form textarea {
width: 30rem;
height: 10rem;
2020-01-25 23:25:19 +00:00
}
2020-01-29 09:25:56 +00:00
blockquote {
2020-03-16 23:10:59 +00:00
white-space: pre-line;
margin-left: 2em;
}
blockquote .icon-quote-open {
float: left;
font-size: 2rem;
margin-right: 0.5rem;
color: #888;
2020-01-29 09:25:56 +00:00
}
2020-01-29 20:53:12 +00:00
.interaction {
2020-03-15 21:15:36 +00:00
background-color: #B2DBBF;
border-radius: 0 0 0.5em 0.5em;
2020-03-15 22:25:43 +00:00
display: flex;
flex-direction: row;
padding: 0.5em;
}
.interaction > * {
margin-right: 0.5em;
}
.interaction button:hover {
box-shadow: #247BA0 0em 0em 1em 0em;
color: #247BA0;
}
.interaction button {
background: white;
height: 2em;
min-width: 3em;
padding: 0;
color: #888;
}
2020-03-16 01:12:45 +00:00
.interaction .active button .icon {
2020-03-15 22:25:43 +00:00
color: #FF1654;
2020-01-29 20:53:12 +00:00
}
2020-02-21 23:39:25 +00:00
.interaction textarea {
height: 2em;
2020-03-15 22:25:43 +00:00
width: 23em;
float: left;
padding: 0.25em;
margin-right: 0.5em;
}
.interaction textarea:valid, .interaction textarea:focus {
height: 4em;
2020-02-21 23:39:25 +00:00
}
.hidden {
display: none;
}
2020-01-29 23:10:32 +00:00
table {
border-collapse: collapse;
margin: 1em;
}
tr {
vertical-align: top;
}
tr:nth-child(even) {
2020-03-17 00:29:37 +00:00
background-color: #EEE;
2020-01-29 23:10:32 +00:00
}
th {
font-weight: bold;
}
th, td {
padding: 1em;
text-align: left;
}
2020-02-11 05:49:18 +00:00
.errorlist {
list-style: none;
font-size: 0.8em;
color: #FF1654;
}
.comment-thread .reply h2 {
background: none;
}
.post {
2020-03-15 21:15:36 +00:00
background-color: #EFEFEF;
padding-top: 1em;
padding-bottom: 1em;
}
.post h2, .compose-suggestion h2 {
position: relative;
right: 2em;
2020-03-16 23:10:59 +00:00
border: none;
2020-03-15 21:15:36 +00:00
}
2020-03-15 22:25:43 +00:00
.post .time-ago {
position: relative;
left: 2em;
}
2020-03-15 21:15:36 +00:00
.post .user-pic, .compose-suggestion .user-pic {
right: 0.25em;
}
.comment-thread .post {
margin-left: 4em;
border-left: 2px solid #247BA0;
}
2020-03-15 21:15:36 +00:00
.comment-thread .post.depth-1 {
margin-left: 0;
border: none;
}
2020-03-15 21:15:36 +00:00
.comment-thread .post.depth-2 {
margin-left: 1em;
}
2020-03-15 21:15:36 +00:00
.comment-thread .post.depth-3 {
margin-left: 2em;
}
2020-03-15 21:15:36 +00:00
.comment-thread .post.depth-4 {
margin-left: 3em;
}
2020-03-10 20:31:57 +00:00
2020-03-16 23:10:59 +00:00
a .icon {
color: black;
text-decoration: none;
}
2020-03-15 21:15:36 +00:00
.hidden-text {
height: 0;
width: 0;
position: absolute;
overflow: hidden;
2020-03-10 20:31:57 +00:00
}