Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en" dir="ltr">
- <!----------------------------------------------------
- credits:
- - honeybee icon font by suiomi
- - Overlay Scrollbars by Rene Haas
- - postcard page by annasthms (dec 24, 2018)
- more info @ https://annasthms.tumblr.com/more/page/05
- made for the #happyholidayschallenge
- rules:
- 1. don't remove the credit
- 2. don't steal/claim as yours
- 3. don't use as a base code
- thank you!! ♡♡♡
- ----------------------------------------------------->
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>cards | {title}</title>
- <link href="https://solrainha.github.io/honeybee/honeybee.css" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Karla" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Noto+Serif+TC" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Euphoria+Script" rel="stylesheet">
- <link href="https://cdnjs.cloudflare.com/ajax/libs/overlayscrollbars/1.6.0/css/OverlayScrollbars.min.css" rel="stylesheet">
- <link href="https://static.tumblr.com/0podkko/Gs9pjuqza/os_thin_dark.css" rel="stylesheet">
- <style>
- /***** GENERAL *****/
- * {
- position: relative;
- }
- body {
- color: #000; /* default font color */
- font-family: 'Karla', sans-serif;
- font-size: 16px; /* font size */
- line-height: 1.35em;
- background: #99b9a7; /* background color */
- }
- a {
- text-decoration: none;
- color: #c60936; /* link color */
- cursor: help;
- }
- a:hover {
- color: #711128; /* link hover color */
- }
- img {
- display: block;
- max-height: 100%;
- max-width: 100%;
- height: auto;
- width: auto;
- margin: auto;
- object-fit: cover;
- }
- p:first-child {
- margin-top: 0;
- }
- p:last-child {
- margin-bottom: 0;
- }
- /***** UNORDERED LISTS (BULLET POINTS) *****/
- ul {
- margin: 0;
- padding: 0;
- list-style: none;
- }
- ul li {
- padding-left: 1em;
- }
- ul li::before {
- content: "";
- position: absolute;
- display: block;
- height: 1.5px;
- width: 0.65em;
- top: 50%;
- left: 0;
- background: #c60936; /* unordered list dash color */
- }
- /***** SCROLLBAR STATE: NORMAL *****/
- .os-theme-thin-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle:before {
- background: rgba(249, 126, 155, 0.5);
- }
- /***** SCROLLBAR STATE: HOVER *****/
- .os-theme-thin-dark > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle:hover:before,
- .os-theme-thin-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle:hover:before {
- background: rgba(198, 9, 54, 0.5);
- }
- /***** SCROLLBAR STATE: ACTIVE (CLICKED) *****/
- .os-theme-thin-dark > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle.active:before,
- .os-theme-thin-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle.active:before {
- background: #c60936;
- }
- /***** POSTCARD CONTAINER *****/
- div#postcard_container {
- display: none;
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 3;
- opacity: 0;
- transition: 0.25s opacity;
- }
- div#postcard_container.show {
- opacity: 1;
- }
- /***** POSTCARD OVERLAY *****/
- div#postcard_back {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background: #fff;
- background: rgba(255,255,255,0.65); /* overlay color */
- }
- /***** POSTCARD *****/
- div#postcard {
- height: 425px;
- width: 600px;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- position: absolute;
- background: #fff; /* postcard background color */
- box-sizing: border-box;
- border: 6px solid #c60936; /* postcard border */
- box-shadow: 0 0 2em rgba(0,0,0,0.25); /* postcard shadow */
- }
- div#postcard::before {
- content: "";
- position: absolute;
- display: block;
- height: 100%;
- width: 1px;
- background: #fafafa;
- background: rgba(0,0,0,0.05); /* postcard middle line color */
- top: 0;
- left: calc(50% - .5px);
- }
- /***** POSTCARD TITLE *****/
- div#postcard_title {
- width: 25%;
- margin: auto;
- padding: 2em 1.5em;
- text-align: center;
- color: #000; /* postcard title font color */
- font-weight: bold;
- font-family: 'Noto Serif TC', serif; /* postcard title font */
- text-transform: uppercase;
- letter-spacing: 3px;
- background: #fff;
- }
- /***** POSTCARD STAMP *****/
- div#stamp {
- top: 1em;
- right: 1em;
- position: absolute;
- }
- div#links, div#stamp img {
- display: inline-block;
- vertical-align: top;
- }
- /***** BLOG LINKS *****/
- div#links {
- max-width: 5em;
- margin-right: 0.75em;
- text-align: right;
- line-height: 1.45em;
- font-size: 0.8em;
- }
- div#links a {
- display: block;
- word-break: break-word;
- }
- /***** STAMP IMAGE/BLOG AVATAR *****/
- div#stamp img {
- width: 0.87em;
- height: 0.979em;
- font-size: 5em;
- }
- /***** TUMBLR CONTROLS *****/
- div#controls {
- font-size: 0.7em;
- margin-top: 0.5em;
- text-align: right;
- }
- div#controls a {
- display: inline-block;
- margin-left: 0.35em;
- }
- /***** POSTCARD SECTIONS *****/
- div#postcard .left, div#postcard .right {
- position: absolute;
- width: 50%;
- max-height: 100%;
- box-sizing: border-box;
- padding: 2.75em;
- bottom: 0;
- overflow: auto;
- }
- /***** POSTCARD LEFT *****/
- div#postcard .left {
- max-height: 350px;
- }
- div#postcard .left .os-scrollbar-vertical {
- padding: 2.5em 1em 2.5em 0;
- }
- /***** POSTCARD RIGHT *****/
- div#postcard .right {
- right: 0;
- }
- /***** BLOG INFO *****/
- div#blog_info {
- background: linear-gradient(to bottom, transparent 1.45em, #ccc 0.05em);
- background-size: 100% 1.5em;
- line-height: 1.5em;
- padding: 0.1em 0.25em 0;
- max-height: 225px;
- overflow: auto;
- }
- /***** USERNAME *****/
- div#blog_name {
- font-weight: bold;
- color: #000; /* username font color */
- }
- /***** BLOG DESCRIPTION *****/
- div#blog_description {
- color: #000; /* blog description font color */
- }
- div#blog_description p {
- margin: 0;
- }
- div#blog_info .os-scrollbar-vertical {
- right: -0.35em;
- }
- /***** POSTCARD ICON (AIRPLANE) *****/
- div#postcard_icon {
- position: absolute;
- bottom: 0;
- right: 0;
- height: 1em;
- width: 1em;
- background: #c60936; /* postcard icon background color */
- padding: 0.5em;
- font-size: 1.5em;
- color: #fff; /* postcard icon color */
- border-radius: 100%;
- transform: translate(40%, 40%);
- transition: 0.35s box-shadow;
- }
- div#postcard_icon:hover {
- box-shadow: 0 0 0.35em 0 #711128; /* postcard icon shadow */
- }
- div#postcard_icon span {
- display: block;
- height: 1em;
- width: 1em;
- }
- /***** CARDS CONTAINER *****/
- div#container {
- max-height: 75vh;
- width: 85vw;
- margin: 12.5vh auto;
- padding: 3em 1em 3em 3em;
- background: #fff; /* container background color */
- box-sizing: border-box;
- box-shadow: 0 0 2em rgba(0,0,0,0.1); /* container shadow */
- opacity: 0;
- transition: 0.35s opacity;
- }
- div#container.show {
- opacity: 1;
- }
- /***** CARDS CONTAINER SCROLLBAR *****/
- /***** SCROLLBAR STATE: NORMAL *****/
- div#container .os-theme-thin-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle:before {
- background: #99b9a7;
- }
- /***** SCROLLBAR STATE: HOVER *****/
- div#container .os-theme-thin-dark > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle:hover:before, div#container .os-theme-thin-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle:hover:before {
- background: #1a6239;
- }
- /***** SCROLLBAR STATE: ACTIVE (CLICKED) *****/
- div#container .os-theme-thin-dark > .os-scrollbar-horizontal > .os-scrollbar-track > .os-scrollbar-handle.active:before, div#container .os-theme-thin-dark > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle.active:before {
- background: #004f22;
- }
- /***** BLOG INFO ICON (ENVELOPE) *****/
- div#mail_icon {
- position: absolute;
- bottom: 0;
- right: 0;
- height: 1em;
- width: 1em;
- background: #004f22; /* icon background */
- padding: 0.5em;
- font-size: 2em;
- color: #fff; /* icon color */
- border-radius: 100%;
- transform: translate(40%, 40%);
- transition: 0.35s box-shadow;
- }
- div#mail_icon:hover {
- box-shadow: 0 0 0.35em 0 #087537; /* icon shadow */
- }
- div#mail_icon span {
- display: block;
- height: 1em;
- width: 1em;
- }
- /***** PAGE TITLE *****/
- div#page_title {
- position: absolute;
- top: -1em;
- left: -1em;
- font-size: 1.5em;
- padding: 0.75em;
- background: #fff; /* page title background */
- color: #000; /* page title font color */
- font-style: italic;
- font-family: 'Euphoria Script', cursive; /* page title font */
- font-weight: bold;
- letter-spacing: 0.05em;
- box-shadow: 2px 2px 3px #888; /* page title shadow */
- }
- /***** INNER CARD CONTAINER *****/
- div#cards {
- max-height: calc(75vh - 6em);
- overflow: auto;
- }
- /***** CARD *****/
- .card {
- display: inline-block;
- margin: 0 2em 2.5em 0;
- height: 300px; /* card height */
- width: 200px; /* card width */
- top: 0;
- left: 0;
- transition: 0.25s all;
- vertical-align: top;
- }
- .card:hover, .card.selected {
- box-shadow: 5px 5px 5px rgba(0,0,0,0.15); /* card shadow on hover */
- top: -2.5px;
- left: -2.5px;
- }
- /***** CARD FRONT *****/
- .card .front {
- height: 100%;
- width: 100%;
- padding: 55px 1.5em;
- background: #c60936; /* default card front background */
- background-size: cover;
- background-position: center center;
- text-align: center;
- box-sizing: border-box;
- }
- /***** CARD FRONT ICON *****/
- .card .front .icon {
- height: 1em;
- width: 1em;
- margin: 0 auto 20px;
- padding: 1em;
- background: #fff; /* default card icon background */
- color: #c60936; /* default card icon color */
- font-size: 2.25em;
- border-radius: 100%;
- }
- .card .front .icon.i {
- height: 3em;
- width: 3em;
- padding: 0;
- }
- .card .front .icon.i img {
- height: 100%;
- width: 100%;
- border-radius: 100%;
- }
- /***** CARD FRONT GREETING *****/
- .card .front .tline {
- padding: .7em;
- color: #fff; /* card front greeting color */
- font-family: 'Euphoria Script', cursive; /* card front greeting font */
- font-size: 1.5em;
- text-shadow: 2px 1px 1px #000; /* card front greeting text shadow */
- }
- /***** HIDE CONTENTS *****/
- .contents {
- display: none;
- }
- /***** CARD POPUP CONTAINER *****/
- div#pop {
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 1;
- opacity: 0;
- transition: 0.25s opacity;
- }
- div#pop.show {
- opacity: 1;
- }
- /***** CARD POPUP OVERLAY *****/
- div#back {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background: #fff;
- background: rgba(255,255,255,0.5); /* card popup overlay color */
- }
- /***** CARD POPUP *****/
- div#wrap {
- height: 500px; /* card popup height */
- width: 800px; /* card popup width */
- max-width: 95%;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- position: absolute;
- background: #fff; /* card popup background */
- box-sizing: border-box;
- box-shadow: 0 0 2em rgba(0,0,0,0.25); /* card popup shadow */
- }
- /***** CARD CENTER LINE *****/
- div#wrap::before {
- content: "";
- position: absolute;
- display: block;
- height: 100%;
- width: 1px;
- background: #fafafa;
- background: rgba(0,0,0,0.05); /* line background */
- top: 0;
- left: calc(50% - .5px);
- box-shadow: 0 0 10px rgba(0,0,0,0.225); /* line shadow */
- }
- /***** CARD SECTIONS *****/
- div#wrap > div {
- box-sizing: border-box;
- border: 3em solid transparent;
- border-right-width: 1.5em;
- padding-right: 1.5em;
- overflow: auto;
- }
- /***** CARD LEFT *****/
- div#wrap .left {
- position: absolute;
- width: 50%;
- height: 100%;
- }
- /***** CARD RIGHT *****/
- div#wrap .right {
- position: absolute;
- right: 0;
- top: 0;
- width: 50%;
- height: 100%;
- }
- /***** HIDE DEFAULT TUMBLR CONTROLS *****/
- .tmblr-iframe{display:none!important;}
- /***** MAKE PAGE RESPONSIVE (DON'T TOUCH) *****/
- @media screen and (max-width: 750px) {
- div#wrap {
- max-width: 95%;
- overflow: auto;
- }
- div#wrap::before {
- display: none;
- }
- div#wrap .left, div#wrap .right {
- position: relative;
- width: 100%;
- height: auto;
- }
- div#wrap .left + .right::before {
- content: "";
- display: block;
- position: absolute;
- top: -3em;
- left: -3em;
- right: -1.5em;
- height: 3px;
- background: #fafafa;
- background: rgba(0,0,0,0.05);
- }
- }
- @media screen and (max-width: 650px) {
- div#postcard {
- max-width: 90%;
- max-height: 80%;
- height: auto;
- }
- div#postcard::before {
- display: none;
- }
- div#postcard_title {
- margin: 0;
- }
- div#stamp + div {
- margin-top: 3em;
- padding-top: 0!important;
- padding-bottom: 0!important;
- }
- div#postcard .left, div#postcard .right {
- position: relative;
- width: 100%;
- max-height: calc(35vh - 4em);
- }
- div#postcard .left + .right {
- padding: 0;
- border: 2.75em solid transparent;
- }
- div#postcard .left + .right::before {
- content: "";
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- height: 3px;
- }
- }
- </style>
- <style>
- /***** SOME PROVIDED STYLING *****/
- .i-list img:first-child {
- height: 150px;
- width: 150px;
- margin: 0 auto 2em;
- border-radius: 100%;
- }
- .i-list .th:first-child {
- display: block;
- height: 1em;
- width: 1em;
- margin: 0 auto 1em;
- padding: 1em;
- color: #fff;
- background: #c60936;
- font-size: 2.5em;
- border-radius: 100%;
- }
- .i-center, .i-center .os-content {
- display: flex;
- align-items: center;
- height: 100%!important;
- }
- .i-center img:first-child:last-child {
- height: 200px;
- width: 200px;
- margin: 0 auto;
- border-radius: 100%;
- }
- .i-center .th:first-child:last-child {
- display: block;
- height: 1em;
- width: 1em;
- margin: 0 auto;
- padding: 1em;
- color: #fff;
- background: #c60936;
- font-size: 3em;
- border-radius: 100%;
- }
- </style>
- </head>
- <body>
- <div id="postcard_container">
- <div id="postcard_back" onclick="hidePostcard()"></div>
- <div id="postcard">
- <!---------------
- POSTCARD TITLE
- --------------
- if you don't want it called postcard, you can change it
- keep it short though
- ---------------->
- <div id="postcard_title">postcard</div>
- <div id="stamp">
- <!---------------
- POSTCARD "STAMP"
- ----------------
- LINKS:
- to edit the links:
- - change url to the link's url (make sure to keep the "")
- - change link [#] to the link's title
- to add more links, paste <a href="url">title</a> after the last link
- - change url to the link's url (make sure to keep the "")
- - change title to the link's title
- ICON:
- if you don't want the image to be your blog's avatar, change {PortraitURL-96} to the url of the image of your choice
- TUMBLR CONTROLS:
- please don't touch
- ---------------->
- <div id="links">
- <a href="/">back</a>
- <a href="url">link 1</a>
- <a href="url">link 2</a>
- </div>
- <img src="{PortraitURL-96}" alt="stamp">
- <div id="controls">
- <a href="https://tumblr.com" target="_blank" title="dashboard"><span class="th th-house-1-o"></span></a>
- <a href="https://www.tumblr.com/message/{Name}" target="_blank" title="message"><span class="th th-chat-bubbles"></span></a>
- <a href="https://www.tumblr.com/follow/{Name}" target="_blank" title="follow"><span class="th th-plus-2-o"></span></a>
- <a href="https://annasthms.tumblr.com" target="_blank" title="page by anna"><span class="th th-code"></span></a>
- </div>
- </div>
- <div class="left">
- <iframe frameborder="0" scrolling="no" width="100%" height="190" src="https://www.tumblr.com/ask_form/{name}.tumblr.com" id="ask_form"></iframe>
- </div>
- <div class="right">
- <div id="blog_info">
- <!---------------
- POSTCARD "ADDRESS"
- ------------------
- 1. change name to your name/username
- 2. change blog description to your blog description
- please keep it to 2-3 lines!
- ---------------->
- <div id="blog_name">name</div>
- <div id="blog_description">blog description</div>
- </div>
- </div>
- <div id="postcard_icon" onclick="hidePostcard()"><span class="th th-paper-plane-o"></span></div>
- </div>
- </div>
- <div id="container">
- <div id="mail_icon" onclick="showPostcard()"><span class="th th-envelope-o"></span></div>
- <!---------------
- PAGE TITLE
- ----------
- change "to all my friends..." to the page title of your choice, though please keep it short
- ---------------->
- <div id="page_title">to all my friends...</div>
- <div id="cards">
- <div class="card">
- <div class="front">
- <!---------------
- CARD FRONT
- ----------
- customizing the icon:
- icon font: change th-chtristmas-tree-o to the icon you want from http://honeybee.suiomi.com/
- image: change <span class="th th-christmas-tree-o"></span> to <img src="url" alt="icon">, changing url to the url of the image (make sure to keep the "")
- customizing the greeting: change merry christmas to the greeting of your choice
- ---------------->
- <div class="icon">
- <span class="th th-christmas-tree-o"></span>
- </div>
- <div class="tline">merry christmas!</div>
- </div>
- <div class="contents">
- <!---------------
- CARD CONTENTS
- -------------
- you may delete either one if you don't need it
- ---------------->
- <div class="left">
- <!-- content on the left side of the card -->
- </div>
- <div class="right">
- <!-- content on the right side of the card -->
- </div>
- </div>
- </div>
- <!-----------------------------------------------------
- CARD TEMPLATE
- -------------
- to add more cards, paste this after the last </div> of the last card:
- <div class="card">
- <div class="front">
- <div class="icon">
- <span class="th th-christmas-tree-o"></span>
- </div>
- <div class="tline">merry christmas!</div>
- </div>
- <div class="contents">
- <div class="left">
- content on the left side of the card
- </div>
- <div class="right">
- content on the right side of the card
- </div>
- </div>
- </div>
- ------------------------------------------------------>
- </div>
- </div>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/overlayscrollbars/1.6.0/js/OverlayScrollbars.min.js" charset="utf-8"></script>
- <script src="https://static.tumblr.com/0podkko/qodpjuqz3/annasthms_cards.js" charset="utf-8"></script>
- <script type="text/javascript">
- /******************************
- CARD BACKGROUNDS
- ----------------
- for each card:
- type 1: same color for both background and icon
- simply type the color in quotes
- e.g. "#93819c"
- type 2: different colors for the backgound and icon
- type the two colors in quotes, separated by a comma, in square brackets
- the first color is the background, the second color is the icon
- e.g. ["#382219", "#dcddaf"]
- type 3: using an image for the background
- type the image's url in quotes
- if you wish to specify an icon color, add it in quotes
- e.g. ["image url", "#a5f092"]
- type 4: using the default colors
- simply type ""
- separate each card with commas!
- e.g. const backgrounds = ["#93819c", ["#382219", "#dcddaf"], ["image url", "#a5f092"], ""];
- go to annasthms.tumblr.com/more/page/05#backgrounds for more help
- ******************************/
- const backgrounds = [];
- generateCards(backgrounds);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment