Skip to content

Instantly share code, notes, and snippets.

@gtkatakura
Forked from OviOvocny/bubble-grid-2017.css
Created November 15, 2017 04:26
Show Gist options
  • Save gtkatakura/e71967767e568c87bbb59db44f8718f3 to your computer and use it in GitHub Desktop.
Save gtkatakura/e71967767e568c87bbb59db44f8718f3 to your computer and use it in GitHub Desktop.
Modern impractical stylesheet for old-style AniList lists.
{ANILIST-COVERS=LRG}
{ANILIST-POPUP}
body {
background-color: hsl(217, 23%, 16%);
}
/**/
#lists > div {
opacity: 0;
transform: translateY(10vh);
transform-origin: top center;
animation: fadeIn .7s .3s cubic-bezier(0.190, 1.000, 0.220, 1.000) forwards;
}
@keyframes fadeIn {
to {
opacity: 1;
transform: none;
}
}
/**/
.list_wrapper table {
box-shadow: none;
}
h3 {
color: white !important;
}
table {
display: block;
background-color: transparent;
}
thead {
display: none;
}
tbody {
/* fallback */
display: flex;
flex-wrap: wrap;
/* grid */
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
grid-gap: 2em 1em;
}
/**/
tr:not(.list-input) {
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
background-size: cover;
border-radius: 50%;
width: 150px;
height: 150px;
margin: 0 auto;
color: white !important;
text-align: center;
}
tr:not(.list-input)::before {
position: absolute;
content: '';
width: 100%;
height: 100%;
display: block;
background-color: hsla(217, 23%, 16%, .7);
border-radius: 50%;
z-index: 0;
transition: opacity .5s;
}
tr * {
transition: opacity .5s .3s;
}
tr:hover * {
transition: opacity 1s 2s;
opacity: 0;
}
tr:hover::before {
transition: opacity 3s .5s;
opacity: 0;
}
td {
position: inherit;
}
td.row__title.hover_icon {
width: 100%;
}
td.row__type,
.row__score.sml_col:empty,
.row__vol
{
display: none;
}
td a {
display: block;
margin-bottom: .5em;
}
td a:hover {
color: inherit;
text-decoration: underline;
}
.sml_col {
position: absolute;
}
.row__score.sml_col {
background-color: hsl(217, 23%, 16%);
width: 40px;
height: 40px;
border-radius: 20px;
left: 0;
bottom: 0;
border: 2px solid;
padding: 0;
line-height: 35px;
font-size: 1.2em;
}
.row__episodes.sml_col,
.row__chap.sml_col {
bottom: 0;
}
/**/
[ng-show*='retype'] {
pointer-events: none;
}
.tag_airing, .tag_notairing {
color: #ffffff;
font-size: .8em;
opacity: 1;
padding-left: 0;
position: absolute;
top: -.5em;
left: 50%;
transform: translateX(-50%);
}
.tag_notes, .tag_re {
opacity: 1;
color: inherit;
}
/**/
.tag_re {
left: -.5em;
}
.hint.hint--re {
display: inline-block;
opacity: 1;
background: none;
left: 1em;
top: -0.3em;
}
.list__tag:hover .hint--notes {
width: initial;
width: max-content;
padding: 1em;
transform: translate(-100%, -100%);
}
/**/
.list-input {
width: 63em;
height: 18em;
}
/**/
#filter {
position: fixed;
top: 15px;
right: 20px;
padding-right: 10px!important;
text-align: right;
font-size: 1.3em;
cursor: pointer
}
#filter::-webkit-input-placeholder {
color: white;
}
#filter:-moz-placeholder {
color: white;
}
#filter:-ms-input-placeholder {
color: white;
}
#list_header {
position: absolute;
width: 155px;
top: 25px;
left: 0;
right: 0;
margin: auto;
background: none;
box-shadow: none
}
#list_header a:not(.display_name) {
display: none
}
.display_name {
font-size: 1.8em!important
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment