silbrigthemes

Valentine (Page #5)

Feb 5th, 2018
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.41 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <!--
  5.  
  6. VALENTINE
  7.  
  8. Page #5 by @silbrigthemes
  9.  
  10. A simple page for Valentine's Day, made to display a short love message.
  11.  
  12. RULES
  13.  
  14. 1. Please do not use as a base code.
  15. 2. Please do not distribute as your own.
  16. 3. Please do not edit or remove the credit.
  17. 4. Please do not edit beyond recognition.
  18.  
  19. Helpful annotations have been made to this code.
  20.  
  21. 1. Do the both of us a favor and only change colors, message and font if you need to.
  22. 2. Positioning is hell! Neither of us wants to do that!
  23. 3. Keep the message short and sweet!
  24. 4. Good contrasts, readable fonts and big enough font-sizes make your message more accessible for anyone.
  25.  
  26. // This code was last updated on the 13th September 2018, 11:40PM MEZ.
  27.  
  28. Have fun and spread love!
  29.  
  30. -->
  31.  
  32. <head>
  33.  
  34. <meta charset="utf-16">
  35. <title>Valentine | {Title}</title>
  36. <link rel="shortcut icon" href="{Favicon}"/>
  37. <link rel="alternate" type="application/rss+xml" href="{RSS}"/>
  38. <link rel="apple-touch-icon-precomposed" href="{PortraitURL-128}">
  39.  
  40. <!-- This script is necessary to make the custom font work. -->
  41. <link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700,900" rel="stylesheet">
  42.  
  43. <!-- This script is necessary to make the page responsive -->
  44. <meta name="viewport" content="width=device-width, initial-scale=1">
  45.  
  46. <!-- Necessary for the scripts to work. -->
  47. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  48.  
  49. <!-- Tooltip Script -->
  50. <script src="https://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  51. <script>
  52. (function($){
  53. $(document).ready(function(){
  54. $("[title]").style_my_tooltips({
  55. tip_follows_cursor:true,
  56. tip_delay_time:200,
  57. tip_fade_speed:300
  58. }
  59. );
  60. });
  61. })(jQuery);
  62. </script>
  63.  
  64. <!-- Changes the toolbar color on mobile. -->
  65. <meta name="theme-color" content="#ce1c25"/>
  66.  
  67.  
  68. <style type="text/css">
  69. body{
  70. margin:0;
  71. top:0;
  72. left:0;
  73. background:#f3a5a9; /* body background color*/
  74. /*Custom font Playfair Display, Times New Roman serves as a fallback system font, in case the custom font cannot be displayed.*/
  75. font-family:"Playfair Display", "Times New Roman";
  76. color:#f9d2d4; /*body text color*/
  77. overflow:hidden;
  78. }
  79.  
  80. /* Custom Text Selection */
  81. ::selection{
  82. text-shadow:none;
  83. color:#ce1c25;
  84. background-color:#fce9ea;
  85. }
  86.  
  87. ::-moz-selection{
  88. text-shadow:none;
  89. color:#ce1c25;
  90. background-color:#fce9ea;
  91. }
  92.  
  93. ::-o-selection{
  94. text-shadow:none;
  95. color:#ce1c25;
  96. background-color:#fce9ea;
  97. }
  98.  
  99. ::-webkit-selection{
  100. text-shadow:none;
  101. color:#ce1c25;
  102. background-color:#fce9ea;
  103. }
  104.  
  105. /* Custom Tooltips */
  106. #s-m-t-tooltip{
  107. max-width:300px;
  108. margin:15px;
  109. padding:0.5em;
  110. background-color: #ce1c25;
  111. color:#fce9ea;
  112. z-index:999999;
  113. font-size:12px;
  114. text-transform:uppercase;
  115. font-weight:300;
  116. }
  117.  
  118. #heart-contain{
  119. height:500px;
  120. width:500px;
  121. margin-left:calc(50vw - 250px);
  122. margin-top:calc(50vh - 225px);
  123. display:flex;
  124. justify-content:center;
  125. align-items:center;
  126. }
  127.  
  128. .heart {
  129. background-color: #ce1c25;
  130. /*background color of the small heart*/
  131. display: inline-block;
  132. height: 350px;
  133. margin: 0 10px;
  134. position: relative;
  135. top: 0;
  136. transform: rotate(0deg);
  137. width: 350px;
  138. z-index:-25;
  139. }
  140.  
  141. .heart:before,
  142. .heart:after {
  143. content: "";
  144. background-color: #ce1c25;
  145. /*background color of the small heart*/
  146. border-radius: 50%;
  147. height: 350px;
  148. position: absolute;
  149. width: 350px;
  150. z-index:-25;
  151. }
  152.  
  153. .heart:before {
  154.  
  155. top: -175px;
  156. left: 0;
  157. }
  158.  
  159. .heart:after {
  160.  
  161. left: 175px;
  162. top: 0;
  163. }
  164.  
  165. .heart-2 {
  166. background-color: #fce9ea;
  167. /*background color of the big heart*/
  168. display: inline-block;
  169. height: 375px;
  170. margin: 0 10px;
  171. position: relative;
  172. top: 0;
  173. transform: rotate(-45deg);
  174. width: 375px;
  175. z-index:-50;
  176. display:flex;
  177. align-items:center;
  178. justify-content:center;
  179. }
  180.  
  181. .heart-2:before,
  182. .heart-2:after {
  183. content: "";
  184. background-color: #fce9ea;
  185. /*background color of the big heart*/
  186. border-radius: 50%;
  187. height: 375px;
  188. position: absolute;
  189. width: 375px;
  190. z-index:-50;
  191. }
  192.  
  193. .heart-2:before {
  194.  
  195. top: -187.5px;
  196. left: 0;
  197. }
  198.  
  199. .heart-2:after {
  200.  
  201. left: 187.5px;
  202. top: 0;
  203. }
  204.  
  205. .message{
  206. z-index:1000;
  207. width:450px;
  208. height:450px;
  209. border-radius:50%;
  210. border:1px solid rgba(0,0,0,0);
  211. position:relative;
  212. transform:rotate(45deg);
  213. margin-left:calc(50% - 200px);
  214. margin-top:calc(50% - 250px);
  215. }
  216.  
  217. .message p{
  218. text-align:center;
  219. font-size:4.25em;
  220. font-weight:bold;
  221. font-style:italic;
  222. }
  223.  
  224. /*
  225. Don't delete or alter the credit!
  226. Taking the credit off free things is rude;
  227. I have spent much time on this.
  228. */
  229. #credit img{
  230. height:50px;
  231. right:25px;
  232. bottom:25px;
  233. position:absolute;
  234. transition:0.5s;
  235. -moz-transition:0.5s;
  236. -o-transition:0.5s;
  237. -webkit-transition:0.5s;
  238. }
  239.  
  240. #credit img:hover{
  241. transform:scale(1.05);
  242. transition:0.5s;
  243. -moz-transition:0.5s;
  244. -o-transition:0.5s;
  245. -webkit-transition:0.5s;
  246. }
  247.  
  248. @media only screen and (max-width:690px) {
  249.  
  250. .heart {
  251. height: 250px;
  252. width: 250px;
  253. }
  254.  
  255. .heart:before,
  256. .heart:after {
  257. height: 250px;
  258. width: 250px;
  259. }
  260.  
  261. .heart:before {
  262.  
  263. top: -125px;
  264. }
  265.  
  266. .heart:after {
  267.  
  268. left: 125px;
  269. }
  270.  
  271. .heart-2 {
  272. height: 275px;
  273. width: 275px;
  274. display:flex;
  275. align-items:center;
  276. justify-content:center;
  277. }
  278.  
  279. .heart-2:before,
  280. .heart-2:after {
  281. height: 275px;
  282. width: 275px;
  283. }
  284.  
  285. .heart-2:before {
  286. top: -137.5px;
  287. }
  288.  
  289. .heart-2:after {
  290. left: 137.5px;
  291. }
  292.  
  293. .message{
  294. width:350px;
  295. height:350px;
  296. margin-left:calc(50% - 150px);
  297. margin-top:calc(50% - 200px);
  298. }
  299.  
  300. .message p{
  301. font-size:3.25em;
  302. }
  303.  
  304. }
  305.  
  306. @media only screen and (max-width:500px) {
  307.  
  308. .heart {
  309. height: 200px;
  310. width: 200px;
  311. }
  312.  
  313. .heart:before,
  314. .heart:after {
  315. height: 200px;
  316. width: 200px;
  317. }
  318.  
  319. .heart:before {
  320.  
  321. top: -100px;
  322. }
  323.  
  324. .heart:after {
  325.  
  326. left: 100px;
  327. }
  328.  
  329. .heart-2 {
  330. height: 225px;
  331. width: 225px;
  332. display:flex;
  333. align-items:center;
  334. justify-content:center;
  335. }
  336.  
  337. .heart-2:before,
  338. .heart-2:after {
  339. height: 225px;
  340. width: 225px;
  341. }
  342.  
  343. .heart-2:before {
  344. top: -112.5px;
  345. }
  346.  
  347. .heart-2:after {
  348. left: 112.5px;
  349. }
  350.  
  351. .message{
  352. width:300px;
  353. height:300px;
  354. margin-left:calc(50% - 130px);
  355. margin-top:calc(50% - 170px);
  356. }
  357.  
  358. .message p{
  359. font-size:2.75em;
  360. }
  361.  
  362. }
  363.  
  364. /* Hides the tumblr app button, by @yeoli-thm */
  365. .tmblr-iframe--app-cta-button {
  366. display: none!important;
  367. }
  368.  
  369. /* Hides standard tumblr controls */
  370. body > iframe:first-child {
  371. display: none !important;
  372. }
  373.  
  374. </style>
  375. </head>
  376. <body>
  377. <div id="heart-contain">
  378. <div class="heart-2">
  379. <div class="heart">
  380.  
  381. <div class="message">
  382. <p>I will love you until the end of time.</p>
  383. </div>
  384.  
  385. </div>
  386. </div>
  387.  
  388. </div>
  389.  
  390. <!--
  391. Don't delete or alter the credit!
  392. Taking the credit off free things is rude;
  393. I have spent much time on this.
  394. -->
  395. <div id="credit">
  396. <a href="https://silbrigthemes.tumblr.com/" title="page by silbrigthemes">
  397. <img src="https://78.media.tumblr.com/7854d98ef9b778a43fc9dd83b828ab02/tumblr_p3jmkwDy4c1wsskx3o1_1280.png" alt="credit: @silbrigthemes">
  398. </a>
  399.  
  400. </div>
  401. </body>
  402. </html>
Advertisement
Add Comment
Please, Sign In to add comment