Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [nobr]
- [class name=body]
- display: block;
- width: 100%;
- padding: 10vh 10px;
- box-sizing: border-box;
- overflow: hidden;
- background: linear-gradient(#ffb9c9,#8decff);
- font-smoothing: antialiased;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- [/class]
- [class name=container]
- display: flex;
- width: 100%;
- margin: auto;
- max-width: 850px;
- flex-flow: row wrap;
- justify-content: center;
- align-items: stretch;
- align-content: center;
- overflow: hidden;
- border-radius: 10px;
- [/class]
- [class name=leftcolumn]
- flex: 4 0 280px;
- background: #FFF;
- box-sizing: border-box;
- padding: 20px;
- overflow: hidden;
- display: flex;
- flex-flow: column wrap;
- justify-content: center;
- align-content: center;
- text-align: center;
- [/class]
- [class name=imagecontainer]
- flex: 0 0 225px;
- width: 226px;
- height: 225px;
- background: #FFF url(https://i.imgur.com/2niDXCJ.jpg) no-repeat center center;
- font-size: 0px;
- line-height: 0px;
- display: inline-block;
- margin: auto;
- margin-top: 10px;
- margin-bottom: 10px;
- [/class]
- [class name=mainimage]
- display: block;
- height: 100%;
- width: 100%;
- pointer-events: none;
- mix-blend-mode: screen;
- [/class]
- [class name=title]
- display: block;
- font-family: 'Abril Fatface', serif;
- font-size: 2em;
- color: #ffb9c9;
- text-transform: uppercase;
- [/class]
- [class name=subtitle]
- width: 100%;
- max-width: 215px;
- text-align: center;
- font-family: 'Quicksand', sanserif;
- font-size: .6em;
- text-transform: uppercase;
- margin: auto;
- margin-top: -5px;
- margin-bottom: 20px;
- font-weight: bold;
- color: #8decff;
- [/class]
- [class name=maincontentcolumn]
- flex: 5 0 280px;
- background: rgba(255, 255, 255, 0.6);
- max-height: 550px;
- box-sizing: border-box;
- padding: 20px;
- overflow: hidden;
- [/class]
- [class name=scrollbox]
- display: block;
- height: 100%;
- width: 100%;
- padding-right: 150px;
- overflow-x: visible;
- overflow-y: scroll;
- [/class]
- [class name=tabcontents]
- display: block;
- width: 100%;
- display: none;
- [/class]
- [class name=post]
- display: block;
- width: 100%;
- background: white;
- font-size: .8em;
- font-family: 'Quicksand', sanserif;
- color: #a1a1a1;
- text-align: justify;
- box-sizing: border-box;
- padding: 10px;
- margin-bottom: 25px;
- [/class]
- [class name=emptyspace]
- display: none;
- [/class]
- [class name=image]
- // add pointer events: none if you'd rather not deal with the larger view thing
- font-size: 0px;
- -webkit-filter: contrast(80%) brightness(120%) grayscale(30%);
- filter: contrast(80%) brightness(120%) grayscale(30%);
- -o-transition: all .5s ease-in-out;
- -ms-transition: all .5s ease-in-out;
- -moz-transition: all .5s ease-in-out;
- -webkit-transition: all .5s ease-in-out;
- transition: all .5s ease-in-out;
- [/class]
- [class name=image state=hover]
- // delete this class if planning on disabling the larger view thing
- -webkit-filter: none;
- filter: none;
- [/class]
- [class name=navcolumn]
- flex: 1 0 100px;
- background: #FFF;
- box-sizing: border-box;
- padding: 15px 0px;
- overflow: hidden;
- display: flex;
- flex-flow: row wrap;
- justify-content: center;
- align-items: center;
- align-content: center;
- [/class]
- [class name=navbutton]
- flex: 1 0 100px;
- box-sizing: border-box;
- text-align: center;
- font-family: 'Abril Fatface', serif;
- font-size: 4em;
- color: #ffb9c9;
- padding: 10px;
- -o-transition: all .5s ease-in-out;
- -ms-transition: all .5s ease-in-out;
- -moz-transition: all .5s ease-in-out;
- -webkit-transition: all .5s ease-in-out;
- transition: all .5s ease-in-out;
- cursor: pointer;
- [/class]
- [class name=selectednavbutton]
- flex: 1 0 100px;
- box-sizing: border-box;
- text-align: center;
- font-family: 'Abril Fatface', serif;
- font-size: 4em;
- color: #8decff;
- padding: 10px;
- -o-transition: all .5s ease-in-out;
- -ms-transition: all .5s ease-in-out;
- -moz-transition: all .5s ease-in-out;
- -webkit-transition: all .5s ease-in-out;
- transition: all .5s ease-in-out;
- cursor: pointer;
- [/class]
- [class name=navbutton state=hover]
- color: #8decff;
- [/class]
- [script class=navbutton on=click]
- // resets everything to their default appearance
- hide tabcontents
- removeClass selectednavbutton navbutton
- // cheaty way of doing this lol
- set currentTab (getText)
- // sets which navbutton gets the color change
- if (eq ${currentTab} 1) (addClass selectednavbutton navbuttonone)
- if (eq ${currentTab} 2) (addClass selectednavbutton navbuttontwo)
- if (eq ${currentTab} 3) (addClass selectednavbutton navbuttonthree)
- if (eq ${currentTab} 4) (addClass selectednavbutton navbuttonfour)
- if (eq ${currentTab} 5) (addClass selectednavbutton navbuttonfive)
- // sets which tabcontents gets shown
- if (eq ${currentTab} 1) (show tabcontentsone)
- if (eq ${currentTab} 2) (show tabcontentstwo)
- if (eq ${currentTab} 3) (show tabcontentsthree)
- if (eq ${currentTab} 4) (show tabcontentsfour)
- if (eq ${currentTab} 5) (show tabcontentsfive)
- [/script]
- [div style="display: none;"]
- [font=Abril Fatface]font call[/font]
- [font=Quicksand]font call[/font]
- [/div]
- [div class=body]
- [div class=container]
- [div class=leftcolumn]
- [div class=imagecontainer]
- [div class=mainimage]
- [img]https://i.imgur.com/G4ELxKB.jpg[/img]
- [/div]
- [/div]
- [div class=title]
- ALYANNA
- [/div]
- [div class=subtitle]
- THE BEST THINGS IN LIFE COME IN PASTEL
- [/div]
- [/div]
- [div class=maincontentcolumn]
- [div class=scrollbox]
- [div class="tabcontents tabcontentsone" style="display: block;"]
- [div class=post]
- hello you can put text here. if you'd like a linebreak, add [font=Courier][plain][br][/br][/plain][/font]. this is an empty tag, so don't put anything between them.
- [/div]
- [div class=post]
- [div class=title]title here[/div]
- you can use the title class to add a heading to each post. due to how it's coded, it will be automatically smaller than the name to the left to indicate hierarchy.
- [/div]
- [div class=emptyspace]put new posts for tab1 above this div![/div]
- [/div]
- [div class="tabcontents tabcontentstwo"]
- [div class=post]
- [div class=image][img]https://i.imgur.com/aq5DGoe.jpg[/img][/div]
- [/div]
- [div class=post]
- if you'd like to add an image, make sure to wrap it like [font=Courier][plain][div class=image][img]this[/img][/div][/plain][/font], as that runs it through filters to match the design. it also removes the gutter underneath.
- [/div]
- [div class=emptyspace]put new posts for tab2 above this div![/div]
- [/div]
- [div class="tabcontents tabcontentsthree"]
- [div class=post]
- [div class=title]auto-filter[/div]
- all images as slightly desaturated and brightened automatically; when hovering over a post, one can see the true colors. the trade off is that clicking on the image triggers the view large image. if you'd rather have it disabled, add a pointer-events: none to the image class. unfortunately, this will also disable the hover effect.
- [/div]
- [div class=post]
- [div class=title]auto-filter[/div]
- all images as slightly desaturated and brightened automatically; when hovering over a post, one can see the true colors. unlike most of my codes, clicking on the image will enable click to view larger version. if you'd rather have it disabled, add [font=Courier][plain]pointer-events: none;[/plain][/font] to [font=Courier][plain][class name="image"][/plain][/font]. unfortunately, this will also disable the hover effect.
- [/div]
- [div class=post]
- [div class=title]auto-filter[/div]
- all images as slightly desaturated and brightened automatically; when hovering over a post, one can see the true colors. unlike most of my codes, clicking on the image will enable click to view larger version. if you'd rather have it disabled, add [font=Courier][plain]pointer-events: none;[/plain][/font] to [font=Courier][plain][class name="image"][/plain][/font]. unfortunately, this will also disable the hover effect.
- [/div]
- [div class=emptyspace]put new posts for tab3 above this div![/div]
- [/div]
- [div class="tabcontents tabcontentsfour"]
- [div class=post]
- [div class=title]title here[/div]
- [div class=image][img]https://i.imgur.com/xY9q6SA.jpg[/img][/div]
- [/div]
- [div class=emptyspace]put new posts for tab4 above this div![/div]
- [/div]
- [div class="tabcontents tabcontentsfive"]
- [div class=post]
- [div class=title]artist[/div]
- [div class=img]i used hakusai's images for this sample[/div]
- [/div]
- [div class=emptyspace]put new posts for tab4 above this div![/div]
- [/div]
- [/div]
- [/div]
- [div class=navcolumn][div class="navbutton navbuttonone"]1[/div][div class="navbutton navbuttontwo"]2[/div][div class="navbutton navbuttonthree"]3[/div][div class="navbutton navbuttonfour"]4[/div][div class="navbutton navbuttonfive"]5[/div][/div]
- [/div]
- [/div]
- [/nobr]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement