Advertisement
sardine_

Polaroids CSS

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