Advertisement
sardine_

Polaroids CSS (w/ borders)

May 17th, 2021 (edited)
1,489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.57 KB | None | 0 0
  1. /*--- VARIABLE SETTINGS ---*/
  2. $textHover: #FDB0BB; /* Sets the colour of the caption when hovered over */
  3. $favHover:  #FDB0BB; /* Sets colour of the favourite button, remove for default */
  4. $textFont: Consolas, 'Lucida Console', monospace; /* Sets the font of the caption, remove for TH default. To learn how to set fonts, check out this link https://www.w3schools.com/howto/howto_google_fonts.asp */
  5.  
  6. /*---------------------------
  7.    Don't edit below here unless you have prior CSS knowledge. If the code breaks, just copy and paste a fresh one.
  8.    Make sure to paste this in USER or FOLDER CSS, NOT CHARACTER. Probably works with other CSS, may require some tweaking.
  9.    Polaroids (CSS Snippet) by sardiine
  10. ---------------------------*/
  11.  
  12. /*--- CENTER GALLERY ---*/
  13. .user-characters-gallery.characters-gallery .gallery-row {justify-content: center;}
  14.  
  15. /*--- CHARACTER NAME ---*/
  16. .thumb-caption .thumb-character-name .btn {
  17.   text-transform: uppercase;
  18.   letter-spacing: 2px!important;
  19.   font-size: 14px!important;
  20.   font-family: $textFont;
  21.   line-height: 1;
  22.   color: #757575;
  23. }
  24.  
  25. /*--- CHARACTER NAME HOVER ---*/
  26. a.character-name-badge:hover, a.character-name-badge:focus, a.character-name-badge:active,{
  27.   color: $textHover!important;
  28.   box-shadow: none;
  29. }
  30.  
  31. /*--- CHARACTER THUMBNAIL ---*/  
  32. .gallery-thumb.character-thumb.gallery-item {
  33.   margin-left: 10px;
  34.   padding: 5px 5px 2px 5px;
  35.   background: #fff;
  36.   box-shadow: 2px 4px rgba(0, 0, 0, 0.2);
  37.   border: 1px solid rgba(80, 80, 80, 0.4);
  38.   transform: rotate(-1deg);
  39. }
  40. .gallery-thumb .thumb-image >.img-thumbnail img {
  41.   border-radius:0;
  42. }
  43. .gallery-thumb.character-thumb .thumb-image :before {
  44.   content: url(https://i.imgur.com/2NzAxxP.png);
  45.   position: absolute;
  46.   left: -15px;
  47.   top: -20px;
  48.   z-index: 100000;
  49. }
  50. .img-thumbnail >img {background:#F8F8F8;}
  51. .character-thumb .thumb-image .img-thumbnail {
  52.   padding:0px!important;
  53.   border:0px!important;
  54. }
  55.  
  56. /*--- CHARACTER THUMBNAIL HOVER ---*/
  57. .gallery-thumb .thumb-image >a:hover{
  58.   box-shadow: none!important;
  59.   filter: grayscale(50%)!important;
  60.   transition: .5s;
  61. }
  62.  
  63. /*--- DISAPPEAR CHARACTER USERNAME AND STATS ---*/
  64. .thumb-caption .btn {
  65.   background-color: transparent!important;
  66.   border-color: transparent!important;
  67.   cursor: pointer!important;
  68.   margin-top: 0!important;
  69.   outline: none!important
  70. }
  71. .thumb-character-stat.images {display: none;}
  72. .thumb-character-stat.comments {display: none;}
  73. .thumb-character-stat.links {display: none;}
  74. .thumb-character-stat.literatures {display: none;}
  75. .thumb-character-stat.tabs {display: none;}
  76. .thumb-character-stat.worlds {display: none;}
  77. .thumb-character-edit {
  78.   position: absolute;
  79.   right: 3px;
  80.   bottom: 10px;
  81.   opacity: .4;
  82. }
  83. .thumb-character-edit:hover {opacity: 1;}
  84.  
  85. /*--- FAVOURITES BUTTON ---*/
  86. .thumb-character-stat.favorites {
  87.   border-radius: 100%;
  88.   background-color: #fff;
  89.   padding: 5px 5px 2px;
  90.   text-align: center;
  91.   font-size: 10px;
  92.   position: absolute;
  93.   bottom: 26px;
  94.   left: 3px;
  95. }
  96.  
  97. .thumb-character-stat.favorites i:before {
  98.   font-weight: 400;
  99.   font-family: "Font Awesome 5 Pro";
  100.   content: "\f004";
  101. }
  102. .thumb-character-stats .favorites.favorited i:before {font-weight: 800; color: $favHover;}
  103. .thumb-character-stat.favorites i {
  104.   margin: 0 !important;
  105.   font-size: 12px;
  106. }
  107.  
  108. span.th-favorite-count {display: none;}
  109.  
  110. /*--- CREDIT (this is optional, i just left it here so others could find the og code) ---*/
  111. #content:after {
  112.   content: 'polaroid css by sardiine';
  113.   font-size: 10px;
  114.   opacity: .6;
  115.   right: 15px;
  116.   bottom: 10px;
  117.   position: absolute;
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement