HummingBirdAnimeClient/public/css/general.css

902 lines
15 KiB
CSS
Raw Normal View History

:root {
2018-08-10 20:09:28 -04:00
--blue-link: rgb(18, 113, 219);
--link-shadow: 1px 1px 1px #000;
2018-08-10 20:09:28 -04:00
--white-link-shadow: 1px 1px 1px #fff;
--shadow: 2px 2px 2px #000;
--title-overlay: rgba(0, 0, 0, 0.45);
--title-overlay-fallback: #000;
--text-color: #ffffff;
--normal-padding: 0.25em 0.125em;
--link-hover-color: #7d12db;
--edit-link-hover-color: #db7d12;
--edit-link-color: #12db18;
--radius: 5px;
}
2018-08-10 20:09:28 -04:00
template, [hidden="hidden"], .media[hidden] {
display: none
}
2018-08-10 20:09:28 -04:00
body {
margin: 0.5em;
}
2016-02-01 09:49:18 -05:00
button {
2019-05-08 11:14:11 -04:00
background: #fff;
background: linear-gradient(#ddd, #eee, #fff, #eee, #ddd);
2019-05-08 08:50:57 -04:00
border-radius: 0.5em;
margin: 0;
2019-05-08 11:14:11 -04:00
text-transform: none;
border-color: #555;
color: #555;
}
button:hover {
background: #bbb;
background: linear-gradient(#cfcfcf, #dfdfdf, #efefef, #dfdfdf, #cfcfcf);
border-color: #555;
color: #555;
}
button:active {
background: #ddd;
background: linear-gradient(#ddd, #ddd);
}
.media:hover button {
background: linear-gradient(#bbb, #ccc, #ddd, #ccc, #bbb);
}
.media:hover button:hover {
background: linear-gradient(#afafaf, #bfbfbf, #cfcfcf, #bfbfbf, #afafaf);
2016-01-04 10:53:03 -05:00
}
table {
2018-08-13 15:13:20 -04:00
/* min-width: 85%; */
2018-11-01 22:01:09 -04:00
box-shadow: 0 48px 80px -32px rgba(0, 0, 0, 0.3);
margin: 0 auto;
}
2016-02-01 09:49:18 -05:00
td {
2018-08-10 20:09:28 -04:00
padding: 1em;
padding: 1rem;
}
thead td, thead th {
2018-08-10 20:09:28 -04:00
padding: 0.5em;
padding: 0.5rem;
}
2016-01-04 10:53:03 -05:00
input[type=number] {
2019-05-08 14:17:57 -04:00
min-width: 0;
width: 4.5em;
}
input[type=checkbox], input[type=radio] {
min-width: auto;
vertical-align: inherit;
}
input, textarea {
min-width: 30em;
min-width: 30rem;
2016-01-04 10:53:03 -05:00
}
2016-02-01 09:49:18 -05:00
tbody > tr:nth-child(odd) {
background: #ddd;
2016-01-04 10:53:03 -05:00
}
a:hover, a:active {
color: var(--link-hover-color)
2016-01-04 10:53:03 -05:00
}
iframe {
display: block;
margin: 0 auto;
}
2016-02-01 09:49:18 -05:00
/* -----------------------------------------------------------------------------
Utility classes
------------------------------------------------------------------------------*/
2016-01-04 10:53:03 -05:00
2016-02-01 09:49:18 -05:00
.bracketed {
2018-08-10 20:09:28 -04:00
color: var(--edit-link-color);
}
2018-08-10 20:09:28 -04:00
.bracketed, #main-nav a {
text-shadow: var(--link-shadow);
}
2018-08-10 20:09:28 -04:00
.bracketed:before {
content: '[\00a0'
}
.bracketed:after {
content: '\00a0]'
}
.bracketed:hover, .bracketed:active {
color: var(--edit-link-hover-color)
2015-06-26 16:39:10 -04:00
}
2018-08-10 20:09:28 -04:00
.grow-1 {
flex-grow: 1
}
.flex-wrap {
flex-wrap: wrap
}
.flex-no-wrap {
flex-wrap: nowrap
}
.flex-align-start {
align-content: flex-start;
}
2018-08-10 20:09:28 -04:00
.flex-align-end {
align-items: flex-end
}
.flex-align-space-around {
align-content: space-around
}
.flex-justify-start {
justify-content: flex-start;
}
2018-08-10 20:09:28 -04:00
.flex-justify-space-around {
justify-content: space-around
}
2018-10-30 13:05:49 -04:00
.flex-center {
justify-content: center;
}
2018-08-10 20:09:28 -04:00
.flex-self-center {
align-self: center
}
.flex-space-evenly {
justify-content: space-evenly;
}
2018-08-10 20:09:28 -04:00
.flex {
2018-11-01 22:01:09 -04:00
display: inline-block;
2018-08-10 20:09:28 -04:00
display: flex
}
.small-font {
2018-08-10 20:09:28 -04:00
font-size: 1.6rem;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.justify {
text-align: justify
}
.align-center {
2018-08-10 20:09:28 -04:00
text-align: center !important
}
.align-left {
2018-08-10 20:09:28 -04:00
text-align: left !important
}
.align-right {
2018-08-10 20:09:28 -04:00
text-align: right !important
}
.valign-top {
2018-08-10 20:09:28 -04:00
vertical-align: top
}
.no-border {
2018-08-10 20:09:28 -04:00
border: none
}
2016-02-01 09:49:18 -05:00
.media-wrap {
2018-11-01 22:01:09 -04:00
text-align: center;
2018-08-10 20:09:28 -04:00
margin: 0 auto;
position: relative;
}
2018-10-30 13:05:49 -04:00
.media-wrap-flex {
2018-11-01 22:01:09 -04:00
display: inline-block;
2018-10-30 13:05:49 -04:00
display: flex;
flex-wrap: wrap;
align-content: space-evenly;
justify-content: space-between;
position: relative;
2018-10-30 13:05:49 -04:00
}
td .media-wrap-flex {
justify-content: center;
}
.danger {
background-color: #ff4136;
border-color: #924949;
2019-05-08 11:14:11 -04:00
color: #924949;
/* color: #fff; */
}
.danger:hover, .danger:active {
background-color: #924949;
border-color: #ff4136;
2019-05-08 11:14:11 -04:00
color: #ff4136;
/* color: #fff; */
}
2019-05-08 14:17:57 -04:00
td.danger, td.danger:hover, td.danger:active {
background-color: transparent;
color: #924949;
}
2016-04-21 11:14:21 -04:00
.user-btn {
2019-05-08 11:14:11 -04:00
background: transparent;
border-color: var(--edit-link-color);
color: var(--edit-link-color);
text-shadow: var(--link-shadow);
2018-08-10 20:09:28 -04:00
padding: 0 0.5em;
padding: 0 0.5rem;
2016-04-21 11:14:21 -04:00
}
2018-08-10 20:09:28 -04:00
.user-btn:hover, .user-btn:active {
2019-05-08 11:14:11 -04:00
background: transparent;
border-color: var(--edit-link-hover-color);
2019-05-08 11:14:11 -04:00
color: var(--edit-link-hover-color);
}
.user-btn:active {
background: var(--edit-link-hover-color);
color: #fff;
2016-04-21 11:14:21 -04:00
}
.full-width {
2017-01-13 16:49:46 -05:00
width: 100%;
}
2018-11-01 22:01:09 -04:00
.full-height {
max-height: none;
}
.toph {
margin-top: 0;
}
2018-08-10 20:09:28 -04:00
/* -----------------------------------------------------------------------------
Main Nav
------------------------------------------------------------------------------*/
#main-nav {
font-family: var(--default-font-list);
margin: 2em 0 1.6em;
margin: 2rem 0 1.6rem;
border-bottom: .1rem solid rgba(0, 0, 0, 0.2);
font-size: 3.6em;
font-size: 3.6rem;
font-style: normal;
font-weight: 500;
}
2016-02-01 09:49:18 -05:00
/* -----------------------------------------------------------------------------
Table sorting and form styles
------------------------------------------------------------------------------*/
.sorting,
.sorting-asc,
.sorting-desc {
2018-08-10 20:09:28 -04:00
vertical-align: text-bottom;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
2016-02-01 09:49:18 -05:00
.sorting::before {
content: " ↕\00a0";
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.sorting-asc::before {
content: " ↑\00a0";
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.sorting-desc::before {
content: " ↓\00a0";
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.form {
2018-08-13 15:13:20 -04:00
/* width: 100%; */
2018-08-10 20:09:28 -04:00
}
2016-02-01 09:49:18 -05:00
.form thead th, .form thead tr {
background: inherit;
2018-08-10 20:09:28 -04:00
border: 0;
2016-02-01 09:49:18 -05:00
}
.form tr > td:nth-child(odd) {
2018-08-10 20:09:28 -04:00
text-align: right;
min-width: 25px;
max-width: 30%;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
2016-02-01 09:49:18 -05:00
.form tr > td:nth-child(even) {
2018-08-10 20:09:28 -04:00
text-align: left;
2018-08-13 15:13:20 -04:00
/* width: 70%; */
2016-02-01 09:49:18 -05:00
}
.invisible tbody > tr:nth-child(odd) {
background: inherit;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
2018-11-01 22:01:09 -04:00
.borderless,
.borderless tr,
.borderless td,
.borderless th,
.invisible tr,
.invisible td,
.invisible th {
box-shadow: none;
2018-08-10 20:09:28 -04:00
border: 0;
2016-02-01 09:49:18 -05:00
}
/* -----------------------------------------------------------------------------
Message boxes
------------------------------------------------------------------------------*/
.message, .static-message {
2018-08-10 20:09:28 -04:00
position: relative;
margin: 0.5em auto;
padding: 0.5em;
width: 95%;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.message .close {
width: 1em;
height: 1em;
position: absolute;
right: 0.5em;
top: 0.5em;
text-align: center;
vertical-align: middle;
line-height: 1em;
2016-02-01 09:49:18 -05:00
}
.message:hover .close:after {
content: '☒';
2016-02-01 09:49:18 -05:00
}
.message:hover {
2018-08-10 20:09:28 -04:00
cursor: pointer;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.message .icon {
left: 0.5em;
top: 0.5em;
margin-right: 1em;
2016-02-01 09:49:18 -05:00
}
.message.error, .static-message.error {
2018-08-10 20:09:28 -04:00
border: 1px solid #924949;
background: #f3e6e6;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.message.error .icon::after {
content: '✘';
}
2016-02-01 09:49:18 -05:00
.message.success, .static-message.success {
2018-08-10 20:09:28 -04:00
border: 1px solid #1f8454;
background: #70dda9;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.message.success .icon::after {
content: '✔'
}
.message.info, .static-message.info {
2018-08-10 20:09:28 -04:00
border: 1px solid #bfbe3a;
background: #FFFFCC;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
.message.info .icon::after {
content: '⚠';
}
2016-02-01 09:49:18 -05:00
/* -----------------------------------------------------------------------------
Base list styles
------------------------------------------------------------------------------*/
.media, .character, .small-character {
2018-08-10 20:09:28 -04:00
position: relative;
vertical-align: top;
display: inline-block;
text-align: center;
width: 220px;
2018-12-06 13:04:54 -05:00
height: 312px;
margin: var(--normal-padding);
2018-08-10 20:09:28 -04:00
z-index: 0;
background: rgba(0, 0, 0, 0.15);
}
.details picture.cover,
picture.cover {
display: initial;
width: 100%;
}
.media > img,
.character > img,
.small-character > img {
width: 100%;
}
.media .edit-buttons > button {
2018-08-10 20:09:28 -04:00
margin: 0.5em auto;
}
2018-08-10 20:09:28 -04:00
.name,
.media-metadata > div,
.medium-metadata > div,
2018-08-10 20:09:28 -04:00
.row {
text-shadow: var(--shadow);
color: var(--text-color);
padding: var(--normal-padding);
text-align: right;
z-index: 2;
}
.media-type, .age-rating {
2018-08-10 20:09:28 -04:00
text-align: left;
}
.media > .media-metadata {
2018-08-10 20:09:28 -04:00
position: absolute;
bottom: 0;
right: 0;
}
.media > .medium-metadata {
2018-08-10 20:09:28 -04:00
position: absolute;
bottom: 0;
left: 0;
}
.media > .name {
position: absolute;
top: 0;
}
.media > .name a {
2018-10-30 13:05:49 -04:00
display: inline-block;
2018-08-10 20:09:28 -04:00
transition: none;
}
.media .name a::before {
/* background: var(--title-overlay-fallback);
background: var(--title-overlay); */
content: '';
display: block;
2018-12-06 13:04:54 -05:00
height: 312px;
2018-08-10 20:09:28 -04:00
left: 0;
position: absolute;
top: 0;
width: 220px;
z-index: -1; /* Put the pseudo-element behind its parent */
}
.media-list .media:hover .name a::before {
/* transition: .25s ease; */
background: rgba(0, 0, 0, 0.75);
}
.media > .name span.canonical {
font-weight: bold;
}
2018-08-10 20:09:28 -04:00
.media > .name small {
font-weight: normal;
}
2018-08-10 20:09:28 -04:00
.media:hover .name {
background: rgba(0, 0, 0, 0.75);
}
.media-list .media > .name a:hover,
.media-list .media > .name a:hover small {
color: var(--blue-link);
}
.media:hover > button[hidden],
.media:hover > .edit-buttons[hidden] {
2018-08-10 20:09:28 -04:00
transition: .25s ease;
display: block;
}
.media:hover {
transition: .25s ease;
}
.small-character > .name a,
.small-character > .name a small,
2018-08-10 20:09:28 -04:00
.character > .name a,
.character > .name a small,
.media > .name a,
.media > .name a small {
background: none;
color: #fff;
text-shadow: var(--shadow);
}
/* -----------------------------------------------------------------------------
Anime-list-specific styles
------------------------------------------------------------------------------*/
.anime .name, .manga .name {
2018-08-10 20:09:28 -04:00
background: var(--title-overlay-fallback);
background: var(--title-overlay);
text-align: center;
width: 100%;
padding: 0.5em 0.25em;
}
.anime .media-type,
.anime .airing-status,
.anime .user-rating,
.anime .completion,
.anime .age-rating,
.anime .edit,
.anime .delete {
background: none;
2018-08-10 20:09:28 -04:00
text-align: center;
}
.anime .table, .manga .table {
2018-08-10 20:09:28 -04:00
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}
.anime .row, .manga .row {
2018-08-10 20:09:28 -04:00
width: 100%;
2018-11-01 22:01:09 -04:00
display: inline-block;
display: flex;
align-content: space-around;
justify-content: space-around;
2018-08-10 20:09:28 -04:00
text-align: center;
padding: 0 inherit;
}
.anime .row > span, .manga .row > span {
2018-08-10 20:09:28 -04:00
text-align: left;
z-index: 2;
}
.anime .row > div, .manga .row > div {
2018-08-10 20:09:28 -04:00
font-size: 0.8em;
2018-11-01 22:01:09 -04:00
display: inline-block;
2018-08-10 20:09:28 -04:00
display: flex-item;
align-self: center;
text-align: center;
vertical-align: middle;
z-index: 2;
}
.anime .media > button.plus-one {
2018-08-10 20:09:28 -04:00
border-color: hsla(0, 0%, 100%, .65);
position: absolute;
top: 138px;
2019-05-08 11:14:11 -04:00
top: calc(50% - 21.2px);
left: 44px;
2019-05-08 11:14:11 -04:00
left: calc(50% - 57.8px);
2018-08-10 20:09:28 -04:00
z-index: 50;
}
/* -----------------------------------------------------------------------------
Manga-list-specific styles
------------------------------------------------------------------------------*/
2016-01-06 11:08:56 -05:00
.manga .row {
2018-08-10 20:09:28 -04:00
padding: 1px;
2016-01-06 11:08:56 -05:00
}
.manga .media {
2018-08-13 15:13:20 -04:00
/* border: 1px solid #ddd; */
2018-08-10 20:09:28 -04:00
height: 310px;
margin: 0.25em;
}
.manga .media > .edit-buttons {
2018-08-10 20:09:28 -04:00
position: absolute;
top: 86px;
2018-08-10 20:09:28 -04:00
/* top: calc(50% - 58.5px); */
2019-05-08 11:14:11 -04:00
top: calc(50% - 21.2px);
left: 43.5px;
2019-05-08 11:14:11 -04:00
left: calc(50% - 57.8px);
2018-08-13 15:13:20 -04:00
z-index: 40;
2018-08-10 20:09:28 -04:00
}
.manga .media > .edit-buttons button {
2018-08-10 20:09:28 -04:00
border-color: hsla(0, 0%, 100%, .65);
}
2016-02-01 09:49:18 -05:00
/* -----------------------------------------------------------------------------
Search page styles
2016-02-01 09:49:18 -05:00
------------------------------------------------------------------------------*/
.media.search > .name {
2018-08-10 20:09:28 -04:00
background-color: #555;
background-color: rgba(000, 000, 000, 0.35);
background-size: cover;
background-size: contain;
background-repeat: no-repeat;
2016-02-01 09:49:18 -05:00
}
.media.search > .row {
z-index: 6;
}
.big-check, .mal-check {
2018-08-10 20:09:28 -04:00
display: none;
2016-02-01 09:49:18 -05:00
}
.big-check:checked + label {
transition: .25s ease;
2018-08-10 20:09:28 -04:00
background: rgba(0, 0, 0, 0.75);
2016-02-01 09:49:18 -05:00
}
.big-check:checked + label:after {
content: '✓';
font-size: 15em;
font-size: 15rem;
2018-08-10 20:09:28 -04:00
text-align: center;
color: greenyellow;
2018-08-10 20:09:28 -04:00
position: absolute;
top: 147px;
left: 0;
width: 100%;
z-index: 5;
2016-02-01 09:49:18 -05:00
}
#series-list article.media {
2018-08-10 20:09:28 -04:00
position: relative;
2016-02-01 09:49:18 -05:00
}
2018-08-10 20:09:28 -04:00
#series-list .name, #series-list .name label {
2018-08-10 20:09:28 -04:00
position: absolute;
display: block;
top: 0;
left: 0;
height: 100%;
width: 100%;
vertical-align: middle;
2017-01-10 21:13:44 -05:00
line-height: 1.25em;
}
2018-08-10 20:09:28 -04:00
#series-list .name small {
color: #fff;
}
/* ----------------------------------------------------------------------------
Details page styles
-----------------------------------------------------------------------------*/
.details {
margin: 1.5rem auto 0 auto;
2018-08-10 20:09:28 -04:00
padding: 1rem;
font-size: inherit;
}
2017-04-05 13:02:48 -04:00
.description {
2018-08-10 20:09:28 -04:00
max-width: 80rem;
2017-04-05 13:02:48 -04:00
}
.fixed {
/* max-width: 100rem; */
max-width: 80%;
margin: 0 auto;
}
.details .cover {
2017-01-13 16:49:46 -05:00
display: block;
}
.details .flex > * {
margin: 1rem;
}
.details .media-details td {
2018-08-10 20:09:28 -04:00
padding: 0 1.5rem;
}
.details p {
2018-08-10 20:09:28 -04:00
text-align: justify;
}
.details .media-details td:nth-child(odd) {
2018-08-10 20:09:28 -04:00
width: 1%;
white-space: nowrap;
text-align: right;
}
2018-08-10 20:09:28 -04:00
.details .media-details td:nth-child(even) {
2018-08-10 20:09:28 -04:00
text-align: left;
}
2018-11-01 22:01:09 -04:00
.details a h1,
.details a h2 {
margin-top: 0;
}
.character,
.small-character,
.person {
2018-08-10 20:09:28 -04:00
/* background: rgba(0,0,0,0.5); */
width: 225px;
height: 350px;
vertical-align: middle;
white-space: nowrap;
position: relative;
}
.person {
width: 225px;
height: 338px;
}
.small-person {
2018-11-01 22:01:09 -04:00
width: 200px;
height: 300px;
}
.character a {
height: 350px;
}
2018-08-10 20:09:28 -04:00
.character:hover .name,
.small-character:hover .name {
2018-08-10 20:09:28 -04:00
background: rgba(0, 0, 0, 0.8);
}
.small-character a {
2018-08-10 20:09:28 -04:00
display: inline-block;
width: 100%;
height: 100%;
}
.small-character .name,
2018-08-10 20:09:28 -04:00
.character .name {
position: absolute;
bottom: 0;
left: 0;
z-index: 10;
}
.small-character img,
.character img,
.small-character picture,
.character picture,
.person img,
.person picture {
position: absolute;
2018-08-10 20:09:28 -04:00
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2018-08-10 20:09:28 -04:00
z-index: 5;
max-height: 350px;
max-width: 225px;
}
.person img,
.person picture {
max-height: 338px;
2018-08-10 20:09:28 -04:00
}
.small-person img,
.small-person picture {
2018-11-01 22:01:09 -04:00
max-height: 300px;
max-width: 200px;
}
2017-04-05 13:02:48 -04:00
.min-table {
min-width: 0;
margin-left: 0;
}
2018-11-01 22:01:09 -04:00
.max-table {
min-width: 100%;
2018-11-01 22:01:09 -04:00
margin: 0;
}
aside.info {
/* max-width: 390px; */
max-width: 33%;
}
.fixed aside.info {
max-width: 390px;
}
/* .fixed aside.info + article {
max-width: inherit;
} */
aside.info picture, aside.info img {
display: block;
margin: 0 auto;
}
aside.info + article {
max-width: 66%;
}
2017-03-31 13:37:53 -04:00
/* ----------------------------------------------------------------------------
User page styles
-----------------------------------------------------------------------------*/
.small-character {
width: 160px;
height: 250px;
}
.small-character img,
.small-character picture {
max-height: 250px;
max-width: 160px;
}
.user-page .media-wrap {
text-align: left;
}
.media a {
display: inline-block;
width: 100%;
height: 100%;
2017-03-31 13:37:53 -04:00
}
2017-01-27 12:35:28 -05:00
/* ----------------------------------------------------------------------------
Images / Logos
-----------------------------------------------------------------------------*/
.streaming-logo {
width: 50px;
height: 50px;
2018-08-10 20:09:28 -04:00
vertical-align: middle;
}
.cover-streaming-link {
display: none;
2018-08-10 20:09:28 -04:00
}
.media:hover .cover-streaming-link {
2018-08-10 20:09:28 -04:00
display: block;
2017-01-31 12:52:43 -05:00
}
.cover-streaming-link .streaming-logo {
2017-01-31 12:52:43 -05:00
width: 20px;
height: 20px;
2018-08-10 20:09:28 -04:00
-webkit-filter: drop-shadow(0 -1px 4px #fff);
filter: drop-shadow(0 -1px 4px #fff);
}
/* ----------------------------------------------------------------------------
Settings Form
-----------------------------------------------------------------------------*/
.settings.form .content article {
margin: 1em;
display: inline-block;
width: auto;
2018-08-10 20:09:28 -04:00
}
2018-08-08 17:04:35 -04:00
/* ----------------------------------------------------------------------------
iFrame container
2018-08-08 17:04:35 -04:00
-----------------------------------------------------------------------------*/
.responsive-iframe {
margin-top: 1em;
overflow: hidden;
padding-bottom: 56.25%;
2018-11-01 22:01:09 -04:00
position: relative;
height: 0;
2018-11-01 22:01:09 -04:00
}
.responsive-iframe iframe {
left: 0;
top: 0;
height: 100%;
width: 100%;
position: absolute;
}