HummingBirdAnimeClient/public/css/base.myth.css

643 lines
12 KiB
CSS
Raw Normal View History

@import "./marx.myth.css";
2015-06-18 10:30:28 -04:00
:root {
2016-01-04 10:53:03 -05:00
--link-shadow: 1px 1px 1px #000;
2015-06-18 10:30:28 -04:00
--shadow: 1px 2px 1px rgba(0, 0, 0, 0.85);
--title-overlay: rgba(0, 0, 0, 0.45);
2017-02-17 08:25:19 -05:00
--title-overlay-fallback: #000;
2015-06-18 10:30:28 -04:00
--text-color: #ffffff;
--normal-padding: 0.25em 0.125em;
2016-01-04 10:53:03 -05:00
--link-hover-color: #7d12db;
--edit-link-hover-color: #db7d12;
--edit-link-color: #12db18;
--radius: 5px;
2015-06-18 10:30:28 -04:00
}
template, [hidden="hidden"], .media[hidden] {display:none}
body {margin: 0.5em;}
2015-06-18 10:30:28 -04:00
2016-02-01 09:49:18 -05:00
button {
background:rgba(255,255,255,0.65);
margin: 0;
2016-01-04 10:53:03 -05:00
}
2015-06-18 10:30:28 -04:00
table {
2016-02-02 11:34:03 -05:00
min-width:85%;
2015-06-18 10:30:28 -04:00
margin: 0 auto;
}
2016-02-01 09:49:18 -05:00
td {
padding:1em;
padding:1rem;
2015-06-18 10:30:28 -04:00
}
2016-02-01 09:49:18 -05:00
thead td, thead th {
padding:0.5em;
padding:0.5rem;
}
2016-01-04 10:53:03 -05:00
input[type=number] {
width: 4em;
}
2016-02-01 09:49:18 -05:00
tbody > tr:nth-child(odd) {
background: #ddd;
2016-01-04 10:53:03 -05:00
}
2016-02-01 09:49:18 -05:00
a:hover, a:active {
color: var(--link-hover-color)
2016-01-04 10:53:03 -05:00
}
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 {
color: var(--edit-link-color);
}
2016-01-04 10:53:03 -05:00
.bracketed, h1 a {
text-shadow: var(--link-shadow);
}
.bracketed:before {content: '[\00a0'}
.bracketed:after {content: '\00a0]'}
.bracketed:hover, .bracketed:active {
color: var(--edit-link-hover-color)
}
.grow-1 {flex-grow: 1}
.flex-wrap {flex-wrap: wrap}
.flex-no-wrap {flex-wrap: nowrap}
.flex-align-end {align-items: flex-end}
.flex-align-space-around {align-content: space-around}
.flex-justify-space-around {justify-content: space-around}
.flex-self-center {align-self:center}
.flex {display: flex}
.small-font {
font-size:1.6rem;
}
2016-02-01 09:49:18 -05:00
.justify {text-align:justify}
.align_center {text-align:center}
2016-02-01 09:49:18 -05:00
.align_left {text-align:left}
.align_right {text-align:right}
.valign_top {vertical-align:top}
2016-02-01 09:49:18 -05:00
.no_border {border:none}
2015-06-18 10:30:28 -04:00
.media-wrap {
text-align:center;
margin:0 auto;
}
.danger {
background-color: #ff4136;
border-color: #924949;
color:#fff;
}
.danger:hover, .danger:active {
background-color: #924949;
border-color: #ff4136;
color:#fff;
}
2016-04-21 11:14:21 -04:00
.user-btn {
border-color: var(--edit-link-color);
color: var(--edit-link-color);
2016-04-22 10:47:18 -04:00
text-shadow: var(--link-shadow);
padding:0 0.5em;
padding:0 0.5rem;
2016-04-21 11:14:21 -04:00
}
.user-btn:hover, .user-btn:active {
border-color: var(--edit-link-hover-color);
background-color: var(--edit-link-hover-color);
}
2017-01-13 16:49:46 -05:00
.full_width {
width: 100%;
}
2016-02-01 09:49:18 -05:00
/* -----------------------------------------------------------------------------
CSS loading icon
------------------------------------------------------------------------------*/
.cssload-loader {
position: relative;
left: calc(50% - 31px);
width: 62px;
height: 62px;
border-radius: 50%;
perspective: 780px;
}
.cssload-inner {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
border-radius: 50%;
}
.cssload-inner.cssload-one {
left: 0%;
top: 0%;
animation: cssload-rotate-one 1.15s linear infinite;
border-bottom: 3px solid rgb(0,0,0);
}
.cssload-inner.cssload-two {
right: 0%;
top: 0%;
animation: cssload-rotate-two 1.15s linear infinite;
border-right: 3px solid rgb(0,0,0);
}
.cssload-inner.cssload-three {
right: 0%;
bottom: 0%;
animation: cssload-rotate-three 1.15s linear infinite;
border-top: 3px solid rgb(0,0,0);
}
@keyframes cssload-rotate-one {
0% {
transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
}
100% {
transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
}
}
@keyframes cssload-rotate-two {
0% {
transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
}
100% {
transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
}
}
@keyframes cssload-rotate-three {
0% {
transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
}
100% {
transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
}
}
/* -----------------------------------------------------------------------------
Table sorting and form styles
------------------------------------------------------------------------------*/
.sorting,
.sorting_asc,
.sorting_desc {
2016-02-01 09:49:18 -05:00
vertical-align:text-bottom;
}
.sorting::before {
content: " ↕\00a0";
}
.sorting_asc::before {
content: " ↑\00a0";
}
.sorting_desc::before {
content: " ↓\00a0";
}
.form { width:100%; }
.form thead th, .form thead tr {
background: inherit;
border:0;
}
.form tr > td:nth-child(odd) {
text-align:right;
min-width:25px;
max-width:30%;
}
.form tr > td:nth-child(even) {
text-align:left;
width:70%;
2016-02-01 09:49:18 -05:00
}
.invisible tbody > tr:nth-child(odd) {
2016-02-01 09:49:18 -05:00
background: inherit;
}
.invisible tr, .invisible td, .invisible th {
2016-02-01 09:49:18 -05:00
border:0;
}
/* -----------------------------------------------------------------------------
Message boxes
------------------------------------------------------------------------------*/
.message{
position:relative;
margin:0.5em auto;
padding:0.5em;
width:95%;
}
.message .close{
width:1em;
height:1em;
position:absolute;
right:0.5em;
top:0.5em;
text-align:center;
vertical-align:middle;
line-height:1em;
}
.message:hover .close:after {
content: '☒';
}
.message:hover {
cursor:pointer;
}
.message .icon{
left:0.5em;
top:0.5em;
margin-right:1em;
}
.message.error{
border:1px solid #924949;
background: #f3e6e6;
}
.message.error .icon::after {
content: '✘';
}
.message.success{
border:1px solid #1f8454;
background: #70dda9;
}
.message.success .icon::after {
content: '✔'
}
.message.info{
border:1px solid #bfbe3a;
background: #FFFFCC;
}
.message.info .icon::after {
content: '⚠';
}
/* -----------------------------------------------------------------------------
Base list styles
------------------------------------------------------------------------------*/
.media, .character, .small_character {
2015-06-18 10:30:28 -04:00
position:relative;
vertical-align:top;
display:inline-block;
text-align:center;
width:220px;
height:311px;
2015-06-18 10:30:28 -04:00
margin: var(--normal-padding);
}
.media > img,
.character > img,
.small_character > img {
width: 100%;
}
.media .edit_buttons > button {
margin:0.5em auto;
}
2015-06-18 10:30:28 -04:00
.name,
.media_metadata > div,
.medium_metadata > div,
.row {
text-shadow: var(--shadow);
2017-02-17 08:25:19 -05:00
background: var(--title-overlay-fallback);
2015-06-18 10:30:28 -04:00
background: var(--title-overlay);
color: var(--text-color);
padding: var(--normal-padding);
text-align:right;
}
.media_type, .age_rating {
text-align:left;
}
.media > .media_metadata {
position:absolute;
bottom:0;
right:0;
}
.media > .medium_metadata {
position:absolute;
bottom: 0;
left:0;
}
.media > .name {
position:absolute;
top: 0;
}
.small_character:hover > .name,
.character:hover > .name,
2015-06-18 10:30:28 -04:00
.media:hover > .name,
.media:hover > .media_metadata > div,
.media:hover > .medium_metadata > div,
.media:hover > .table .row
{
2016-01-04 10:53:03 -05:00
transition: .25s ease;
2015-06-18 10:30:28 -04:00
background:rgba(0,0,0,0.75);
}
.media:hover > button[hidden],
.media:hover > .edit_buttons[hidden]
{
2016-01-04 10:53:03 -05:00
transition: .25s ease;
display:block;
}
.small_character > .name a,
.small_character > .name a small,
.character > .name a,
.character > .name a small,
.media > .name a,
.media > .name a small
{
2015-06-18 10:30:28 -04:00
background:none;
color:#fff;
text-shadow: var(--shadow);
}
2015-06-18 10:30:28 -04:00
/* -----------------------------------------------------------------------------
Anime-list-specific styles
------------------------------------------------------------------------------*/
.anime .name, .manga .name {
2015-06-18 10:30:28 -04:00
text-align:center;
width:100%;
padding:0.5em 0.25em;
2015-06-18 10:30:28 -04:00
}
.anime .media_type,
.anime .airing_status,
.anime .user_rating,
.anime .completion,
.anime .age_rating,
.anime .edit,
.anime .delete {
2015-06-18 10:30:28 -04:00
background: none;
text-align:center;
}
.anime .table, .manga .table {
2015-06-18 10:30:28 -04:00
position:absolute;
bottom:0;
left:0;
width:100%;
}
.anime .row, .manga .row {
2015-06-18 10:30:28 -04:00
width:100%;
2017-02-17 08:25:19 -05:00
background: var(--title-overlay-fallback);
2015-06-18 10:30:28 -04:00
background: var(--title-overlay);
display: flex;
align-content: space-around;
2015-06-18 10:30:28 -04:00
justify-content: space-around;
text-align:center;
padding:0 inherit;
}
2016-01-04 10:53:03 -05:00
.anime .row > span, .manga .row > span {
text-align:left;
}
.anime .row > div, .manga .row > div {
2015-06-18 10:30:28 -04:00
font-size:0.8em;
display:flex-item;
align-self:center;
text-align:center;
vertical-align:middle;
}
.anime .media > button.plus_one {
position:absolute;
2016-01-04 10:53:03 -05:00
top: 138px;
top: calc(50% - 21.5px);
left: 44px;
left: calc(50% - 66.5px);
}
2015-06-18 10:30:28 -04:00
/* -----------------------------------------------------------------------------
Manga-list-specific styles
------------------------------------------------------------------------------*/
2016-01-06 11:08:56 -05:00
.manga .row {
padding:1px;
}
2015-06-18 10:30:28 -04:00
.manga .media {
border:1px solid #ddd;
height:310px;
2015-06-18 10:30:28 -04:00
margin:0.25em;
}
.manga .media > .edit_buttons {
position:absolute;
2016-01-06 11:08:56 -05:00
top: 86px;
top: calc(50% - 58.5px);
left: 43.5px;
left: calc(50% - 66.5px);
2015-06-18 10:30:28 -04:00
}
2016-02-01 09:49:18 -05:00
/* -----------------------------------------------------------------------------
Search page styles
2016-02-01 09:49:18 -05:00
------------------------------------------------------------------------------*/
.media.search > .name {
background-color:#555;
background-color: rgba(000,000,000,0.35);
background-size: cover;
background-size: contain;
background-repeat: no-repeat;
}
.big-check {
display:none;
}
.big-check:checked + label {
transition: .25s ease;
background:rgba(0,0,0,0.75);
}
.big-check:checked + label:after {
content: '✓';
font-size: 15em;
font-size: 15rem;
text-align:center;
color: greenyellow;
position:absolute;
2017-01-13 16:49:46 -05:00
top:147px;
2016-02-01 09:49:18 -05:00
left:0;
height:100%;
width:100%;
}
#series_list article.media {
position:relative;
}
#series_list .name, #series_list .name label {
position:absolute;
display:block;
top:0;
left:0;
2016-02-01 09:49:18 -05:00
height:100%;
width:100%;
vertical-align:middle;
2017-01-10 21:13:44 -05:00
line-height: 1.25em;
2016-02-01 09:49:18 -05:00
}
#series_list .name small {
color: #fff;
}
2016-02-01 09:49:18 -05:00
/* ----------------------------------------------------------------------------
Details page styles
-----------------------------------------------------------------------------*/
.details {
margin: 1.5rem auto 0 auto;
padding:1rem;
font-size:inherit;
}
2016-02-01 09:49:18 -05:00
2017-03-31 13:37:53 -04:00
.details.fixed {
max-width:93rem;
}
.details .cover {
2017-01-13 16:49:46 -05:00
display: block;
width: 284px;
/* height: 402px; */
}
.details h2 {
margin-top: 0;
}
.details .flex > div {
margin: 1rem;
}
2016-02-01 09:49:18 -05:00
2017-01-13 16:49:46 -05:00
.details .media_details {
max-width:300px;
}
2017-01-13 16:49:46 -05:00
.details .media_details td {
padding:0 1.5rem;
}
.details p {
text-align:justify;
}
2017-01-13 16:49:46 -05:00
.details .media_details td:nth-child(odd) {
width:1%;
white-space:nowrap;
text-align:right;
}
2017-01-13 16:49:46 -05:00
.details .media_details td:nth-child(even) {
text-align:left;
}
.character,
.small_character {
background: rgba(0,0,0,0.5);
width: 225px;
height: 350px;
vertical-align: middle;
white-space: nowrap;
}
.small_character a {
display:inline-block;
width: 100%;
height: 100%;
}
.small_character .name,
.character .name {
position: absolute;
bottom: 0;
left: 0;
z-index: 10;
}
.small_character img,
.character img {
position: relative;
top: 50%;
transform: translateY(-50%);
z-index: 5;
width: 100%;
}
2017-03-31 13:37:53 -04:00
/* ----------------------------------------------------------------------------
User page styles
-----------------------------------------------------------------------------*/
.small_character {
width: 160px;
height: 250px;
}
.user-page .media-wrap {
text-align: left;
2017-03-31 13:37:53 -04:00
}
.media a {
display: inline-block;
width: 100%;
height: 100%;
}
2017-03-31 13:37:53 -04:00
/* ----------------------------------------------------------------------------
Viewport-based styles
-----------------------------------------------------------------------------*/
@media screen and (max-width: 40em) {
nav a {
line-height:4em;
line-height:4rem;
}
.media {
margin:2px 0;
}
main {
padding:0 0,5em 0.5em;
padding:0 0.5rem 0.5rem;
}
2017-01-27 12:35:28 -05:00
}
/* ----------------------------------------------------------------------------
Images / Logos
-----------------------------------------------------------------------------*/
.streaming-logo {
width: 50px;
height: 50px;
vertical-align:middle;
2017-01-31 12:52:43 -05:00
}
.cover_streaming_link .streaming-logo {
width: 20px;
height: 20px;
}