HummingBirdAnimeClient/public/css/base.css

187 lines
3.2 KiB
CSS
Raw Normal View History

2015-05-27 09:03:42 -04:00
body {
2015-06-18 10:30:28 -04:00
margin: 0.5em;
2015-05-27 09:03:42 -04:00
}
table {
2015-06-18 10:30:28 -04:00
width: 85%;
margin: 0 auto;
}
tbody > tr:nth-child(odd) {
2015-06-18 10:30:28 -04:00
background: #ddd;
}
.align_left {
2015-06-18 10:30:28 -04:00
text-align: left;
}
.align_right {
2015-06-18 10:30:28 -04:00
text-align: right;
}
.round_all {
2015-06-18 10:30:28 -04:00
border-radius: 0.5em;
}
.round_top {
2015-06-18 10:30:28 -04:00
border-radius: 0;
border-top-right-radius: 0.5em;
border-top-left-radius: 0.5em;
}
.round_bottom {
2015-06-18 10:30:28 -04:00
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 {
2015-06-18 10:30:28 -04:00
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: space-around;
-ms-flex-line-pack: distribute;
align-content: space-around;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
text-align: center;
margin: 0 auto;
2015-05-22 12:36:26 -04:00
}
.media {
2015-06-18 10:30:28 -04:00
position: relative;
vertical-align: top;
display: inline-block;
text-align: center;
width: 220px;
height: 319px;
margin: 0.25em;
}
.name,
.media_metadata > div,
.medium_metadata > div,
.row {
text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.85);
background: rgba(0, 0, 0, 0.45);
color: #ffffff;
padding: 0.25em;
text-align: right;
}
.media_type,
.age_rating {
text-align: left;
}
2015-05-22 12:36:26 -04:00
2015-06-18 10:30:28 -04:00
.media > .media_metadata {
position: absolute;
bottom: 0;
right: 0;
}
.media > .medium_metadata {
position: absolute;
bottom: 0;
left: 0;
}
.media > .name {
position: absolute;
top: 0;
}
.media:hover > .name,
.media:hover > .media_metadata > div,
.media:hover > .medium_metadata > div,
.media:hover > .table .row {
background: rgba(0,0,0,0.75);
}
.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
------------------------------------------------------------------------------*/
2015-06-18 10:30:28 -04:00
2015-06-17 16:46:10 -04:00
.anime .name {
2015-06-18 10:30:28 -04:00
text-align: center;
width: 100%;
padding: 0.5em 0.6em;
2015-06-17 16:46:10 -04:00
}
2015-06-17 08:50:01 -04:00
2015-06-17 16:46:10 -04:00
.anime .media_type,
2015-06-17 08:50:01 -04:00
.anime .airing_status,
2015-06-17 16:46:10 -04:00
.anime .user_rating,
.anime .completion,
2015-06-17 08:50:01 -04:00
.anime .age_rating {
2015-06-18 10:30:28 -04:00
background: none;
text-align: center;
2015-06-17 08:50:01 -04:00
}
.anime .table {
2015-06-18 10:30:28 -04:00
position: absolute;
bottom: 0;
left: 0;
width: 100%;
2015-06-17 08:50:01 -04:00
}
.anime .row {
2015-06-18 10:30:28 -04:00
width: 100%;
background: rgba(0, 0, 0, 0.45);
display: table;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-justify-content: space-around;
-ms-flex-pack: distribute;
justify-content: space-around;
text-align: center;
padding: 0 inherit;
2015-06-17 08:50:01 -04:00
}
.anime .row > div {
2015-06-18 10:30:28 -04:00
font-size: 0.8em;
display: flex-item;
-webkit-align-self: center;
-ms-flex-item-align: center;
align-self: center;
text-align: center;
vertical-align: middle;
2015-05-22 12:36:26 -04:00
}
/* -----------------------------------------------------------------------------
Manga-list-specific styles
------------------------------------------------------------------------------*/
.manga .media > .name {
2015-06-18 10:30:28 -04:00
padding: 0.5em;
margin: 1em;
}
.manga .media {
2015-06-18 10:30:28 -04:00
border: 1px solid #ddd;
width: 200px;
height: 290px;
margin: 0.25em;
}
.manga .media_metadata {
2015-06-18 10:30:28 -04:00
padding: 0.25em;
margin: 0.75em;
}