dollcrds

neocities tutorial #4 css

Oct 28th, 2025 (edited)
955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. // delete this line <meta name="viewport" content="width=device-width, initial-scale=1.0">
  2. // important for correct mobile viewing
  3.  
  4. // font
  5. @font-face {
  6. font-family: MS San Serif;
  7. src: url(https://cdn.glitch.me/9bbfdfb3-4bfa-4c39-8743-5621c8b9df21/MS%20Sans%20Serif.ttf);
  8. }
  9.  
  10. // body code (just copy and paste this directly)
  11. // prevents infinite scroll
  12. body
  13. {
  14. overflow-y: hidden;
  15. }
  16.  
  17. // optional - copy and paste this directly
  18. // for colors of "linked" text
  19. a {
  20. color: inherit !important;
  21. text-decoration: none !important;
  22. }
  23.  
  24. // container
  25. // invisible - for positioning purposes
  26. margin: auto;
  27. width: 600px;
  28. height: 600px;
  29. position: relative;
  30. top: 60px;
  31.  
  32. // main (what all content goes into)
  33. margin: auto;
  34. padding: 25px;
  35. border-radius: 0px 0px 5px 5px;
  36. background: #E8E8D8;
  37. border-left: 3px solid #094ED5;
  38. border-right: 3px solid #094ED5;
  39. border-bottom: 3px solid #094ED5;
  40. width: 544px;
  41. height: 485px;
  42. font-family: MS San Serif;
  43. font-size: 1.25em;
  44.  
  45. // top (Display picture container)
  46. border-left: 1px solid #094ED5;
  47. border-right: 1px solid #094ED5;
  48. border-top: 1px solid #094ED5;
  49. background: #E8E8D8;
  50. padding: 5px;
  51. margin-top: 25px;
  52. height: 15px;
  53. width: 250px;
  54. font-family: MS San Serif;
  55.  
  56. // bottom (where the menu is)
  57. border-left: 1px solid #094ED5;
  58. border-right: 1px solid #094ED5;
  59. border-bottom: 1px solid #094ED5;
  60. background: white;
  61. height: 350px;
  62. width: 260px;
  63. font-family: MS San Serif;
  64. overflow-y: scroll;
  65.  
  66. // images
  67. width: 75px;
  68. display: inline-block;
  69. vertical-align: top;
  70.  
  71. // text
  72. font-family: MS San Serif;
  73. line-height: 5em;
  74. padding-left: 5px;
  75. display: inline-block;
  76. vertical-align: top;
  77. margin-left: -2.5px;
  78.  
  79. // highlight (mark to make individual hover possible)
  80. font-family: MS San Serif;
  81. line-height: 5em;
  82. display: inline-block;
  83. vertical-align: top;
  84. margin-left: -5px;
  85. text-indent: 5px;
  86.  
  87. // just copy and paste this directly (line height and width may need to be adjusted)
  88. highlight:hover
  89. {
  90. background-color: blue;
  91. color: white;
  92. line-height: 5em;
  93. width: 167.75px;
  94. }
  95.  
  96. // next
  97. // container positioning for browse, remove buttons and preview text
  98. position: relative;
  99. left: 300px;
  100. top: -378px;
  101.  
  102. // lyrics
  103. // positioning and animation for scrollboxes with info text (or in my case, lyrics)
  104. position: relative;
  105. left: 300px;
  106. top: -370px;
  107. -webkit-animation: fade-in-fwd 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
  108. animation: fade-in-fwd 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
  109.  
  110. // just copy and paste this directly, code to ensure proper hover scrollbox behavior
  111. figure.blurfilter{
  112. margin: 0;
  113. padding: 0;
  114. display: inline-block;
  115. position: relative;
  116. border: 3px inset #E8E8D8;
  117. overflow: hidden; /
  118. }
  119.  
  120. .figcaption img {
  121. width: 10px;
  122. }
  123.  
  124. figure.blurfilter img{
  125. display: block;
  126. width: 15em;
  127. height: auto;
  128. transition: all 0.4s 0.4s;
  129. }
  130.  
  131. figure.blurfilter figcaption{
  132. position: absolute;
  133. display: block;
  134. text-align: left;
  135. -webkit-box-sizing: border-box;
  136. -moz-box-sizing: border-box;
  137. box-sizing: border-box;
  138. text-align: center;
  139. background: white;
  140. padding: 10px;
  141. z-index: 100;
  142. width: 90%;
  143. height: 90%;
  144. overflow: auto;
  145. top: 5%;
  146. left: 5%;
  147. font-family: MS San Serif;
  148. font-size: 15px;
  149. opacity: 0;
  150. -moz-transition: all 0.4s;
  151. -webkit-transition: all 0.4s;
  152. transition: all .4s;
  153. }
  154.  
  155. figure.blurfilter figcaption h3{
  156. border-bottom: 1px solid red;
  157. text-align: left;
  158. width: 90%;
  159. margin: 0;
  160. }
  161.  
  162. figure.blurfilter figcaption p{
  163. text-align: left;
  164. margin-top: 10px;
  165. line-height: 1.5;
  166. }
  167.  
  168. figure.blurfilter figcaption a{
  169. text-decoration: none;
  170. }
  171.  
  172. figure.blurfilter:hover img{
  173. -webkit-filter: blur(5px);
  174. filter: blur(5px);
  175. -webkit-transform: scale(1.3);
  176. transform: scale(1.3);
  177. -moz-transition: all 0.4s;
  178. -webkit-transition: all 0.4s;
  179. transition: all 0.4s;
  180. }
  181.  
  182. figure.blurfilter:hover figcaption{
  183. opacity: 1;
  184. -moz-transition: all .4s .4s;
  185. -webkit-transition: all .4s .4s;
  186. transition: all .4s .4s;
  187. }
  188.  
  189. figure.slidey figcaption{
  190. -webkit-transform: rotateY(90deg);
  191. transform: rotateY(90deg);
  192. }
  193.  
  194. figure.slidey:hover figcaption{
  195. -webkit-transform: rotateY(0);
  196. transform: rotateY(0);
  197. }
  198. figcaption {
  199. overflow-y: scroll;
  200. }
  201.  
  202. // link (positioning and style for Download more pictures text)
  203. position: relative;
  204. left: 300px;
  205. top: -100px;
  206. color: #0000FF;
  207. text-decoration: underline;
  208.  
  209. // copy and paste this directly - optional hover behavior
  210. .link:hover {
  211. color: white;
  212. }
  213.  
  214. // buttons (positioning for 3 buttons on the bottom)
  215. position: relative;
  216. top: -310px;
Advertisement
Add Comment
Please, Sign In to add comment