HummingBirdAnimeClient/public/css/base.css

161 lines
2.5 KiB
CSS
Raw Normal View History

2015-05-27 09:03:42 -04:00
body {
margin: 0.5em;
}
table {
width:85%;
margin: 0 auto;
}
tbody > tr:nth-child(odd) {
background: #ddd;
}
.align_left {
text-align:left;
}
.align_right {
text-align:right;
}
.round_all {
border-radius:0.5em;
}
.round_top {
border-radius: 0;
border-top-right-radius:0.5em;
border-top-left-radius:0.5em;
}
.round_bottom {
border-radius: 0;
border-bottom-right-radius:0.5em;
border-bottom-left-radius:0.5em;
}
2015-05-22 12:36:26 -04:00
.media-wrap {
text-align:center;
margin:0 auto;
}
.media {
position:relative;
vertical-align:top;
display:inline-block;
text-align:center;
width:220px;
height:319px;
margin:0.25em;
}
2015-06-17 08:50:01 -04:00
2015-06-04 20:59:56 -04:00
.name, .media_type, .airing_status, .user_rating, .completion, .age_rating {
text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.85);
2015-05-22 12:36:26 -04:00
background: rgba(0, 0, 0, 0.45);
color: #fff;
padding:0.25em;
text-align:right;
}
2015-06-04 20:59:56 -04:00
.media_type, .age_rating {
text-align:left;
}
2015-05-22 12:36:26 -04:00
.media > .media_metadata {
position:absolute;
bottom:0;
right:0;
}
2015-06-04 20:59:56 -04:00
.media > .medium_metadata {
position:absolute;
bottom: 0;
left:0;
}
2015-05-22 12:36:26 -04:00
.media > .name {
position:absolute;
top: 0;
}
.media:hover > .name,
.media:hover > .media_metadata > div,
2015-06-17 08:50:01 -04:00
.media:hover > .medium_metadata > div,
.media:hover > .table .row
{
2015-06-17 08:50:01 -04:00
background:rgba(0,0,0,0.75);
2015-05-22 12:36:26 -04:00
}
.media > .name > a {
text-align:justify;
background:none;
color:#fff;
text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.85);
}
2015-06-17 08:50:01 -04:00
/* -----------------------------------------------------------------------------
Anime-list-specific styles
------------------------------------------------------------------------------*/
.anime .name {width:100%;}
.anime .media_type,
.anime .airing_status,
.anime .user_rating,
.anime .completion,
.anime .age_rating {
background: none;
text-align:center;
}
.anime .table {
position:absolute;
bottom:0;
left:0;
width:100%;
}
.anime .row {
width:100%;
background: rgba(0, 0, 0, 0.45);
display:table;
text-align:center;
padding:0 inherit;
}
.anime .row > div {
font-size:0.8em;
display:table-cell;
text-align:center;
vertical-align:middle;
2015-05-22 12:36:26 -04:00
}
/* -----------------------------------------------------------------------------
Manga-list-specific styles
------------------------------------------------------------------------------*/
.manga .media > .name {
padding:0.5em;
margin:1em;
}
.manga .media {
border:1px solid #ddd;
width:200px;
height:290px;
margin:0.25em;
}
.manga .completion::before {
content: "";
}
.manga .media_metadata {
padding: 0.25em;
margin: 0.75em;
}