Advertisement
enbythemes

page 04: sul sul

Nov 27th, 2020 (edited)
1,047
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 KB | None | 0 0
  1. <!--
  2. sul sul © xroub.tumblr.com
  3.  
  4. biography icons by https://v2.jam-icons.com/
  5. about dropdown boxes icons by http://honeybee.suiomi.com/
  6.  
  7. -->
  8. <!DOCTYPE html>
  9. <html>
  10. <head>
  11. <link rel="shortcut icon" href="{Favicon}" />
  12. <link rel="alternate" type="application/rss+xml" href="{RSS}" />
  13. <title>{Title}</title>
  14.  
  15. <!-- scripts -->
  16. <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap" rel="stylesheet">
  17.  
  18. <link rel="stylesheet" href="https://unpkg.com/jam-icons/css/jam.min.css">
  19.  
  20. <link href="//solrainha.github.io/honeybee/honeybee.css" rel="stylesheet">
  21.  
  22. <style>
  23. body {
  24. margin: 0;
  25. background: #f0f0f0; /* main background color */
  26. font-family: 'Poppins', sans-serif;
  27. font-size: 13px;
  28. }
  29.  
  30. main {
  31. width: 700px;
  32. height: 450px;
  33. display: flex;
  34. background: linear-gradient(to bottom, #edeff7, #ffffff); /* gradient background. if you don't want just delete this line*/
  35. background-color: #edeff7; /* solid background color for any browsers that don't support gradients */
  36. border-radius: 6px;
  37. position: absolute;
  38. top: 50%;
  39. left: 50%;
  40. transform: translate(-50%,-50%);
  41. border: 1px solid #dddddd; /* light gray border around the box */
  42. overflow: hidden;
  43. }
  44.  
  45. /* if the image has a transparent bg */
  46. #transparent {
  47. background: linear-gradient(to bottom, #bae0a1, #bae0a1);
  48. max-width: 200px;
  49. height: calc(100% - 20px);
  50. padding: 15px 0;
  51. object-fit: cover;
  52. }
  53.  
  54. /* if the image does not have a transparent bg*/
  55. #full {
  56. max-width: 200px;
  57. height: 100%;
  58. object-fit: cover;
  59. }
  60.  
  61. /* bio section */
  62. .user {
  63. width: calc(100% - 210px - 350px);
  64. padding: 15px 10px;
  65. list-style: none;
  66. }
  67.  
  68. .user h2 {
  69. font-size: 1.1em;
  70. margin: 0 0 15px 5px;
  71. color: #0a4aab; /* light blue text color */
  72. font-weight: 500;
  73. letter-spacing: 1px;
  74. }
  75.  
  76. .user .jam {
  77. background: #fff; /* background color of the icons in the bio */
  78. border: 1px solid #dddddd; /* light gray border around the icons */
  79. border-radius: 5px;
  80. padding: 5px 6px;
  81. vertical-align: middle;
  82. margin-right: 4px;
  83. color: #000; /* icon color */
  84. }
  85.  
  86. .user li {
  87. margin: 0 0 1.25em;
  88. color: #0a4aab; /* light blue text color */
  89. font-weight: 500;
  90. text-transform: capitalize;
  91. }
  92.  
  93. /* about section */
  94. .about {
  95. width: 330px;
  96. padding: 10px;
  97. }
  98.  
  99. h1.name {
  100. width: 100%;
  101. margin: 0;
  102. text-transform: capitalize;
  103. font-weight: 500;
  104. padding: 0 10px;
  105. text-align: center;
  106. color: #0a4aab; /* light blue text color */
  107. }
  108.  
  109. .heading {
  110. width: 100%;
  111. font-size: 1.25em;
  112. text-transform: capitalize;
  113. font-weight: 500;
  114. color: #f0f0f0;
  115. margin: 5px 0 5px;
  116. padding: 4px;
  117. text-align: center;
  118. background: linear-gradient(to bottom, #a7e37e 0%, #4db835 60%); /* gradient backgrounds on the dropdown buttons */
  119. background: #a7e37e; /* solid background for browsers that don't support gradients */
  120. border-radius: 6px;
  121. box-shadow: 2px 3px 3px rgba(0,0,0,0.2);
  122. -webkit-box-shadow: 2px 3px 3px rgba(0,0,0,0.2);
  123. cursor: pointer;
  124. border: none;
  125. outline: none;
  126. }
  127.  
  128. /* icon on dropdown buttons */
  129. .heading:after {
  130. font-family: 'jam-icons';
  131. content: "\e9ba";
  132. color: #f0f0f0;
  133. font-weight: bold;
  134. float: right;
  135. margin-left: 5px;
  136. transition: all 0.4s ease;
  137. -webkit-transition: all 0.4s ease;
  138. -moz-transition: all 0.4s ease;
  139. -o-transition: all 0.4s ease;
  140. -ms-transition: all 0.4s ease;
  141. }
  142.  
  143. .active:after {transform: rotate(180deg)}
  144.  
  145. /* about / dropdown boxes */
  146. .panel {
  147. background: #fff;
  148. padding: 0 10px;
  149. color: #0a4aab; /* light blue text color */
  150. text-transform: capitalize;
  151. font-weight: 500;
  152. line-height: 250%;
  153. max-height: 0;
  154. overflow: hidden;
  155. transition: max-height 0.4s ease-out;
  156. -webkit-transition: max-height 0.4s ease-out;
  157. -moz-transition: max-height 0.4s ease-out;
  158. -o-transition: max-height 0.4s ease-out;
  159. -ms-transition: max-height 0.4s ease-out;
  160. }
  161.  
  162. /* icons inside of the about boxes */
  163. .panel .th {
  164. font-size: .9em;
  165. padding: 4px;
  166. border-radius: 4px;
  167. border: 1px solid #ddd;
  168. color: #000;
  169. margin-right: 2px;
  170. }
  171.  
  172. .panel li {
  173. list-style: none;
  174. display: inline-block;
  175. }
  176.  
  177. .panel li:not(:last-of-type) {margin-right: 4px;}
  178.  
  179. /* tumblr controls */
  180. .iframe-controls--desktop {
  181. position:fixed;
  182. top: 10px;
  183. right: 5px;
  184. z-index: 214748364789123456789;
  185. filter:invert(100%);
  186. -webkit-filter:invert(100%);
  187. -webkit-transform:scale(0.6,0.6);
  188. -webkit-transform-origin: 100% 0%;
  189. -ms-transform-origin:100% 0%;
  190. -ms-transform:scale(0.6,0.6);
  191. transform:scale(0.6,0.6);
  192. transform-origin:100% 0%;
  193. }
  194.  
  195. /* credit, DO NOT TOUCH*/
  196. .crd {
  197. position: fixed;
  198. bottom: 10px;
  199. right: 10px;
  200. padding: 4px;
  201. }
  202.  
  203. .crd a {
  204. text-decoration: none;
  205. color: #000;
  206. text-transform: uppercase;
  207. }
  208. </style>
  209. </head>
  210. <body>
  211. <main>
  212. <!-- sidebar image -->
  213. <!-- if the image has a transparent background -->
  214. <img src="" class="pic" id="#transparent">
  215.  
  216. <!-- if the image does not have a transparent background -->
  217. <img src="" class="pic" id="#full">
  218.  
  219. <!-- bio section begins -->
  220. <div class="user">
  221. <h2>Biogrophy:</h2>
  222. <li><span class="jam jam-user"></span>age</li>
  223. <li><span class="jam jam-female"></span>pronouns</li>
  224. <li><span class="jam jam-heart"></span>spouse</li>
  225. </div>
  226. <!-- bio section ends -->
  227.  
  228. <div class="about">
  229. <h1 class="name">About First Last</h1>
  230.  
  231. <!-- traits begin -->
  232. <div class="traits">
  233. <button class="heading">Traits</button>
  234. <div class="panel">
  235. <p>
  236. <li><span class="th th-like"></span> trait #1</li>
  237. <li><span class="th th-home"></span> trait #2</li>
  238. <li><span class="th th-rose"></span> trait #3</li>
  239. <li><span class="th th-users"></span> bonus trait?</li>
  240. </p>
  241. </div>
  242. </div>
  243. <!-- traits ends -->
  244.  
  245. <!-- career begins -->
  246. <div class="job">
  247. <button class="heading">Career</button>
  248. <div class="panel">
  249. <p>
  250. <li><span class="th th-loupe-o"></span> lorem ipsum</li>
  251. </p>
  252. </div>
  253. </div>
  254. <!-- career ends -->
  255.  
  256. <!-- relationships begin -->
  257. <div class="rel">
  258. <button class="heading">Relationships</button>
  259. <div class="panel">
  260. <p>
  261. <li><span class="th th-heart-1"></span> #1</li>
  262. <li><span class="th th-female"></span> #2</li>
  263. <li><span class="th th-male"></span> #3</li>
  264. <li><span class="th th-dog-1-o"></span> #5</li>
  265. <li><span class="th th-cat-o"></span> #5</li>
  266. </p>
  267. </div>
  268. </div>
  269. <!-- relationships end -->
  270. </main>
  271.  
  272. <!-- about / accordion script, don't touch -->
  273. <script>
  274. var acc = document.getElementsByClassName("heading");
  275. var i;
  276.  
  277. for (i = 0; i < acc.length; i++) {
  278. acc[i].addEventListener("click", function() {
  279. this.classList.toggle("active");
  280. var panel = this.nextElementSibling;
  281. if (panel.style.maxHeight) {
  282. panel.style.maxHeight = null;
  283. } else {
  284. panel.style.maxHeight = panel.scrollHeight + "px";
  285. }
  286. });
  287. }
  288. </script>
  289. <!-- DO NOT REMOVE AND/OR EDIT -->
  290. <!-- If you ever want to move my credit, send me a message first -->
  291. <div class="crd">
  292. <a href="https://enbythemes.tumblr.com" title="code by rou">enby</a>
  293. </div>
  294. </body>
  295. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement