Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>ylfva's oc template!</title>
- <!-- this page DOESN'T use the style.css file, all the CSS is located in the <style> tag. i tried to keep everything as organized as i could.
- this is just the basic ver if you want to do most of the CSS yourself. i have other versions of this page with more of a cohesive theme.
- this page works well with my oc info template!-->
- <style>
- /* under 768px */
- @media only screen and (max-width: 768px) {
- body {
- background-color:#ffd1dc;
- color: black;
- font-family: Verdana;
- }
- #directory {
- margin:auto;
- width:100%;
- min-height:1100px;
- display:flex;
- justify-content:space-between;
- background-color:white;
- z-index:-1;
- }
- /* full page styling END */
- /* sidebar styling */
- #sidebar {
- display:none;
- }
- .on, .hideable:hover {
- background-color:grey;
- }
- .hideable {
- border:none;
- outline:none;
- width:100%;
- background-color:grey;
- margin-top:-10px;
- height:60px;
- padding-top:10px;
- padding-bottom:10px;
- }
- .menu {
- width:100%;
- display:none;
- background:grey;
- }
- #menu2 {
- padding:10px;
- }
- /* sidebar styling END */
- /* main section styling */
- #ocs {
- width:80%;
- display:flex;
- flex-direction:column;
- margin-top:20px;
- margin-bottom:30px;
- margin-left:auto;
- margin-right:auto;
- }
- /* Style the button that is used to open and close the collapsible content */
- .collapsible {
- background-color: #eee;
- color: #444;
- cursor: pointer;
- padding: 20px;
- width: 90%;
- border: none;
- text-align: left;
- outline: none;
- font-size: 15px;
- margin-top:30px;
- }
- /* style the button if it is clicked on and when you hover over it */
- .active, .collapsible:hover {
- background-color: #ccc;
- }
- /* Style the collapsible content. Note: hidden by default */
- .content {
- display: none;
- width:inherit;
- margin-left:40px;
- z-index:2;
- }
- }
- /* 768px to 1200px */
- @media only screen and (min-width: 768px) {
- body {
- background-color:#ffd1dc;
- color: black;
- font-family: Verdana;
- }
- #topbar {
- display:none;
- }
- #directory {
- margin:auto;
- width:100%;
- min-height:1100px;
- display:flex;
- justify-content:space-between;
- background-color:white;
- margin-top:-10px;
- }
- /* full page styling END */
- /* sidebar styling */
- #sidebar {
- width:25%;
- background-color:grey;
- }
- #links {
- width:80%;
- text-align:center;
- margin-left:10%;
- }
- #links .individual a {
- margin:auto;
- margin-top:10px;
- background-color:white;
- width:70%;
- height:25px;
- display:flex;
- align-items:center;
- flex-direction:column;
- justify-content:center;
- text-decoration:none;
- }
- #sidebar img {
- width:80%;
- margin-left:10%;
- }
- #sidetitle {
- width:80%;
- margin-left:10%;
- margin-top:50px;
- }
- #sidetitle h2 {
- font-size:18px;
- }
- #description {
- width:70%;
- height:300px;
- overflow-y:hidden;
- margin-left:10%;
- margin-top:20px;
- margin-bottom:20px;
- background-color:white;
- padding-left:5%;
- padding-right:5%;
- padding-bottom:5%;
- }
- /* sidebar styling END */
- /* main section styling */
- #ocs {
- width:65%;
- display:flex;
- flex-direction:column;
- margin-top:20px;
- margin-bottom:30px;
- }
- /* Style the button that is used to open and close the collapsible content */
- .collapsible {
- background-color: #eee;
- color: #444;
- cursor: pointer;
- padding: 20px;
- width: 75%;
- border: none;
- text-align: left;
- outline: none;
- font-size: 15px;
- margin-top:30px;
- }
- /* style the button if it is clicked on and when you hover over it */
- .active, .collapsible:hover {
- background-color: #ccc;
- }
- /* Style the collapsible content. Note: hidden by default */
- .content {
- display: none;
- width:inherit;
- margin-left:40px;
- }
- }
- /* 1599px to 1200px */
- @media only screen and (min-width: 1200px) {
- /* full page styling */
- body {
- background-color:#ffd1dc;
- color: black;
- font-family: Verdana;
- }
- #directory {
- margin:auto;
- width:80%;
- min-width:1180px;
- min-height:950px;
- display:flex;
- justify-content:space-between;
- background-color:white;
- margin-top:-10px;
- }
- /* full page styling END */
- /* sidebar styling */
- #sidebar {
- width:20%;
- background-color:grey;
- }
- #links {
- width:80%;
- text-align:center;
- margin-left:10%;
- }
- #links .individual a {
- margin:auto;
- margin-top:10px;
- background-color:white;
- width:70%;
- height:25px;
- display:flex;
- align-items:center;
- flex-direction:column;
- justify-content:center;
- text-decoration:none;
- }
- #sidebar img {
- width:80%;
- margin-left:10%;
- }
- #sidetitle {
- width:80%;
- margin-left:10%;
- margin-top:50px;
- }
- #sidetitle h2 {
- font-size:18px;
- }
- #description {
- width:70%;
- height:300px;
- overflow-y:hidden;
- margin-left:10%;
- margin-top:20px;
- margin-bottom:20px;
- background-color:white;
- padding-left:5%;
- padding-right:5%;
- padding-bottom:5%;
- }
- /* sidebar styling END */
- /* main section styling */
- #ocs {
- width:75%;
- display:flex;
- flex-direction:column;
- margin-top:20px;
- margin-bottom:30px;
- }
- /* Style the button that is used to open and close the collapsible content */
- .collapsible {
- background-color: #eee;
- color: #444;
- cursor: pointer;
- padding: 20px;
- width: 75%;
- border: none;
- text-align: left;
- outline: none;
- font-size: 15px;
- margin-top:30px;
- }
- /* style the button if it is clicked on and when you hover over it */
- .active, .collapsible:hover {
- background-color: #ccc;
- }
- /* Style the collapsible content. Note: hidden by default */
- .content {
- display: none;
- width:inherit;
- margin-left:40px;
- }
- }
- /* FULL WIDTH: 1600PX AND UP */
- @media only screen and (min-width: 1600px) {
- /* full page styling */
- body {
- background-color:#ffd1dc;
- color: black;
- font-family: Verdana;
- }
- #directory {
- margin:auto;
- width:75%;
- max-width:1300px;
- min-width:900px;
- min-height:950px;
- display:flex;
- justify-content:space-between;
- background-color:white;
- margin-top:-10px;
- }
- /* full page styling END */
- /* sidebar styling */
- #sidebar {
- width:20%;
- background-color:grey;
- }
- #links {
- width:80%;
- text-align:center;
- margin-left:10%;
- }
- #links .individual a {
- margin:auto;
- margin-top:10px;
- background-color:white;
- width:50%;
- height:25px;
- display:flex;
- align-items:center;
- flex-direction:column;
- justify-content:center;
- text-decoration:none;
- }
- #sidebar img {
- width:80%;
- margin-left:10%;
- }
- #sidetitle {
- max-width:80%;
- margin-left:10%;
- margin-top:50px;
- }
- #sidetitle h2 {
- font-size:22px;
- }
- #description {
- width:70%;
- height:200px;
- overflow-y:hidden;
- margin-left:10%;
- margin-top:20px;
- margin-bottom:20px;
- background-color:white;
- padding-left:5%;
- padding-right:5%;
- padding-bottom:5%;
- }
- /* sidebar styling END */
- /* main section styling */
- #ocs {
- width:75%;
- display:flex;
- flex-direction:column;
- margin-top:20px;
- margin-bottom:30px;
- }
- /* Style the button that is used to open and close the collapsible content */
- .collapsible {
- background-color: #eee;
- color: #444;
- cursor: pointer;
- padding: 20px;
- width: 75%;
- border: none;
- text-align: left;
- outline: none;
- font-size: 15px;
- margin-top:30px;
- }
- /* style the button if it is clicked on and when you hover over it */
- .active, .collapsible:hover {
- background-color: #ccc;
- }
- /* Style the collapsible content. Note: hidden by default */
- .content {
- display: none;
- width:inherit;
- margin-left:40px;
- }
- /* main section styling END */
- }
- </style>
- </head>
- <body>
- <div id="topbar">
- <button type="button" class="hideable"><h3>info</h3></button>
- <div class="menu">
- <div id="menu2">
- <div id="sidetitle">
- <h2>This Guy's OCs</h2>
- </div>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>
- </div>
- </div>
- </div>
- <div id="directory"> <!-- this is the full page, everything basically -->
- <div id="sidebar"> <!-- grey sidebar -->
- <div id="sidetitle">
- <h2>This Guy's OCs</h2>
- </div>
- <div id="sideicon">
- <img src="default.jpg">
- </div>
- <div id="description">
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p> <!-- try not to make this too long, the desc. has a max height of 200px -->
- </div>
- <div id="links">
- <div class="individual">
- <a href=""><p>link one</p></a>
- </div>
- <div class="individual">
- <a href=""><p>link two</p></a>
- </div>
- <div class="individual">
- <a href=""><p>link three</p></a>
- </div>
- <div class="individual">
- <a href=""><p>link four</p></a>
- </div>
- <div class="individual">
- <a href=""><p>link five</p></a>
- </div>
- <div class="individual">
- <a href=""><p>link six</p></a>
- </div>
- </div>
- </div> <!-- sidebar end -->
- <div id="ocs"> <!-- main portion of the page (in white) -->
- <div id="dirtitle">
- <h1>Directory of OCs</h1>
- </div>
- <button type="button" class="collapsible">category one</button> <!-- clickable button -->
- <div class="content"> <!-- hidden by default -->
- <div id="category">
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- </div>
- </div> <!-- hidden content end -->
- <button type="button" class="collapsible">category two</button> <!-- clickable button -->
- <div class="content"> <!-- hidden by default -->
- <div id="category">
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- </div>
- </div> <!-- hidden content end -->
- <button type="button" class="collapsible">category three</button> <!-- clickable button -->
- <div class="content"> <!-- hidden by default -->
- <div id="category">
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- </div>
- </div> <!-- hidden content end -->
- <button type="button" class="collapsible">category four</button> <!-- clickable button -->
- <div class="content"> <!-- hidden by default -->
- <div id="category">
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- </div>
- </div> <!-- hidden content end -->
- <button type="button" class="collapsible">category five</button> <!-- clickable button -->
- <div class="content"> <!-- hidden by default -->
- <div id="category">
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- <a href=""><p>Nameguy Jones</p></a>
- </div>
- </div> <!-- hidden content end -->
- </div> <!-- main portion end -->
- </div> <!-- full page end -->
- <!-- DONT TOUCH THE <script> TAG. DONT DO IT. TRUST ME. -->
- <!-- <script> controls the buttons, unless you wanna mess that up i'd leave this bit alone -->
- <script>
- var coll = document.getElementsByClassName("collapsible");
- var i;
- for (i = 0; i < coll.length; i++) {
- coll[i].addEventListener("click", function() {
- this.classList.toggle("active");
- var content = this.nextElementSibling;
- if (content.style.display === "block") {
- content.style.display = "none";
- } else {
- content.style.display = "block";
- }
- });
- }
- var coll = document.getElementsByClassName("hideable");
- var i;
- for (i = 0; i < coll.length; i++) {
- coll[i].addEventListener("click", function() {
- this.classList.toggle("on");
- var content = this.nextElementSibling;
- if (content.style.display === "block") {
- content.style.display = "none";
- } else {
- content.style.display = "block";
- }
- });
- }
- </script>
- </body>
- </html>
- <!-- that's it! -->
Add Comment
Please, Sign In to add comment