ValerioLyndon

Tilt w/ Cover Images for zFerry98

Mar 19th, 2021 (edited)
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.99 KB | None | 0 0
  1. @\import "https://valeriolyndon.github.io/MAL-Public-List-Designs/Tilt%20Theme/Theme%20-%20Compressed.css";
  2. @\import "https://malscraper.azurewebsites.net/covers/auto/presets/dataimagelinkbefore";
  3.  
  4. /* Variables */
  5.  
  6. :root {
  7.     --cover-width: 180px;
  8.     --cover-height: 250px;
  9.     --score-margin: 15px; /* controls gap from left side - 70px is default */
  10. }
  11.  
  12. /* List Item Box */
  13.  
  14. .list-table-data {
  15.     height: calc(var(--cover-height) + 50px);
  16. }
  17.  
  18. .list-table-data:before {
  19.     top: var(--cover-height);
  20. }
  21.  
  22. /* Cover Image */
  23.  
  24. .data.image a {
  25.     width: calc(var(--cover-width) - 2px) !important;
  26.     height: calc(var(--cover-height) - 2px) !important;
  27. }
  28.  
  29. .data.image .image {
  30.     width: 100% !important;
  31.     height: 100% !important;
  32.     object-fit: cover;
  33. }
  34.  
  35. .data.image a:before {
  36.     content: "";
  37.     position: absolute;
  38.     display: block;
  39.     width: inherit;
  40.     height: inherit;
  41.     background-repeat: no-repeat;
  42.     background-size: cover;
  43.     background-position: center center;
  44. }
  45.  
  46. .add-edit-more {
  47.     display: flex;
  48.     width: calc(var(--cover-width) - 2px);
  49.     height: calc(var(--cover-height) - 2px);
  50.     flex-flow: column nowrap;
  51.     justify-content: center;
  52.     align-items: center;
  53. }
  54.  
  55. /* Title */
  56.  
  57. .data.title {
  58.     width: calc(100% - (var(--cover-width) + 8px));
  59.     height: calc(var(--cover-height) - 2px);
  60.     padding-left: calc(var(--cover-width) + 4px) !important;
  61. }
  62.  
  63. .data.title .link.sort {
  64.     max-height: calc(var(--cover-height) - 4px);
  65. }
  66.  
  67. .rewatching, .rereading, .content-status {
  68.     top: calc(var(--cover-height) + 10px);
  69.     left: calc(var(--score-margin) + 20px);
  70. }
  71.  
  72. /* Edit/More Buttons */
  73.  
  74. .add-edit-more a {
  75.     position: relative;
  76.     top: 0 !important;
  77.     width: 100% !important;
  78. }
  79.  
  80. /* Score */
  81.  
  82. .data.score {
  83.     margin-left: var(--score-margin);
  84. }
  85.  
  86. /* Tags */
  87.  
  88. .data.tags {
  89.     top: var(--cover-height);
  90. } .data.tags:hover {
  91.     width: calc(270px - var(--score-margin));
  92. }
  93.  
  94. .data.studio:after {
  95.     top: var(--cover-height);
  96. }
  97.  
  98. /* More Info */
  99.  
  100. .td1 {
  101.     display: block;
  102.     width: 320px;
  103.     word-wrap: break-word;
  104. }
Add Comment
Please, Sign In to add comment