Advertisement
LatviaCPI

Adrian's tumblr theme

May 28th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <title>W3.CSS</title>
  4. <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  5. <link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-green.css">
  6. <style>
  7. .w3-theme-l5 {color:#000 !important; background-color:#e7ffeb !important}
  8. .w3-theme-l4 {color:#000 !important; background-color:#afffbb !important}
  9. .w3-theme-l3 {color:#000 !important; background-color:#60ff78 !important}
  10. .w3-theme-l2 {color:#fff !important; background-color:#10ff34 !important}
  11. .w3-theme-l1 {color:#fff !important; background-color:#00c01d !important}
  12. .w3-theme-d1 {color:#fff !important; background-color:#00650f !important}
  13. .w3-theme-d2 {color:#fff !important; background-color:#005a0d !important}
  14. .w3-theme-d3 {color:#fff !important; background-color:#004f0c !important}
  15. .w3-theme-d4 {color:#fff !important; background-color:#00430a !important}
  16. .w3-theme-d5 {color:#fff !important; background-color:#003808 !important}
  17.  
  18. .w3-theme-light {color:#000 !important; background-color:#e7ffeb !important}
  19. .w3-theme-dark {color:#fff !important; background-color:#003808 !important}
  20. .w3-theme-action {color:#fff !important; background-color:#003808 !important}
  21.  
  22. .w3-theme {color:#fff !important; background-color:#007011 !important}
  23. .w3-text-theme {color:#007011 !important}
  24. .w3-border-theme {border-color:#007011 !important}
  25.  
  26. .w3-hover-theme:hover {color:#fff !important; background-color:#007011 !important}
  27. .w3-hover-text-theme {color:#007011 !important}
  28. .w3-hover-border-theme:hover {border-color:#007011 !important}
  29.  
  30. body {
  31. background: url('http://img04.deviantart.net/61a3/i/2013/107/c/f/green_space_by_ecvcm-d620con.jpg');
  32. background-size: cover;
  33. background-repeat: no-repeat;
  34. }
  35.  
  36. h2 {
  37. color: white;
  38. }
  39.  
  40. p {
  41. color: white;
  42. }
  43.  
  44. </style>
  45. <body>
  46.  
  47. <div class="w3-sidebar w3-bar-block w3-black w3-card-2" style="width:130px">
  48. <h3 class="w3-bar-item w3-margin-top"></h3>
  49. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'One')">Placeholder 1</button>
  50. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Two')">Placeholder 2</button>
  51. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Three')">Placeholder 3</button>
  52. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Four')">Placeholder 4</button>
  53. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Five')">Placeholder 5</button>
  54. <button class="w3-bar-item w3-button tablink" onclick="openLink(event, 'Six')">Placeholder 6</button>
  55. </div>
  56.  
  57. <div style="margin-left:130px">
  58.  
  59. <div id="One" class="w3-container info w3-border w3-border-green w3-margin-left w3-margin-right w3-display-middle w3-center" style="display:none">
  60. <h2>Title Placeholder</h2>
  61. <p>Text Placeholder</p>
  62. </div>
  63.  
  64. <div id="Two" class="w3-container info w3-border w3-border-green w3-margin-left w3-margin-right w3-display-middle w3-center" style="display:none">
  65. <h2>Title Placeholder</h2>
  66. <p>Text Placeholder</p>
  67. </div>
  68.  
  69. <div id="Three" class="w3-container info w3-border w3-border-green w3-margin-left w3-margin-right w3-display-middle w3-center" style="display:none">
  70. <h2>Title Placeholder</h2>
  71. <p>Text Placeholder</p>
  72. </div>
  73.  
  74. <div id="Four" class="w3-container info w3-border w3-border-green w3-margin-left w3-margin-right w3-display-middle w3-center" style="display:none">
  75. <h2>Title Placeholder</h2>
  76. <p>Text Placeholder</p>
  77. </div>
  78.  
  79. <div id="Five" class="w3-container info w3-border w3-border-green w3-margin-left w3-margin-right w3-display-middle w3-center" style="display:none">
  80. <h2>Title Placeholder</h2>
  81. <p>Text Placeholder</p>
  82. </div>
  83.  
  84. <div id="Six" class="w3-container info w3-border w3-border-green w3-margin-left w3-margin-right w3-display-middle w3-center" style="display:none">
  85. <h2>Title Placeholder</h2>
  86. <p>Text Placeholder</p>
  87. </div>
  88.  
  89. </div>
  90.  
  91. <script>
  92. function openLink(evt, animName) {
  93. var i, x, tablinks;
  94. x = document.getElementsByClassName("info");
  95. for (i = 0; i < x.length; i++) {
  96. x[i].style.display = "none";
  97. }
  98. tablinks = document.getElementsByClassName("tablink");
  99. for (i = 0; i < x.length; i++) {
  100. tablinks[i].className = tablinks[i].className.replace(" w3-theme-l2", "");
  101. }
  102. document.getElementById(animName).style.display = "block";
  103. evt.currentTarget.className += " w3-theme-l2";
  104. }
  105. </script>
  106.  
  107. </body>
  108. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement