Advertisement
octomoosey

happy 01 (css)

May 22nd, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. /* ---••• Updates tabs by octomoosey.tumblr - please don't delete this credit! thanks •••--- */
  2. div::-webkit-scrollbar{
  3. height:3px;
  4. width:3px;
  5. background:inherit;}
  6.  
  7. div::-webkit-scrollbar-thumb {
  8. background:#fff;}
  9.  
  10. div::-webkit-scrollbar-track {
  11. background:transparent;}
  12.  
  13. div#accordion {
  14. z-index:9;
  15. position:fixed;
  16. top:20px; /* ---••• Change the margin from top here •••--- */
  17. left:20px; /* ---••• Change the margin from left here - change this to 'right' to place on the right hand side of your page - you will also need to change the 'float' (please see next instruction below!) •••--- */
  18. padding:0;
  19. list-style-type:none;
  20. width:340px;
  21. height:150px; }
  22.  
  23. #accordion div[id=one], #accordion div[id=two], #accordion div[id=three], #accordion div[id=four] {
  24. height:150px;
  25. width:16px;
  26. float:left; /* ---••• Change this to float:right; to place on the right hand side of your page •••--- */
  27. text-decoration:none;
  28. overflow: hidden;
  29. -webkit-transition: all 0.7s ease;
  30. transition: all 0.7s ease;
  31. -moz-transition: all 0.7s ease;
  32. -o-transition: all 0.7s ease;}
  33.  
  34. #accordion:hover div:hover {
  35. width: 240px;
  36. overflow-y: auto;
  37. -webkit-transition: all 0.7s ease;
  38. transition: all 0.7s ease;
  39. -moz-transition: all 0.7s ease;
  40. -o-transition: all 0.7s ease;}
  41.  
  42. /* ---••• This is where you can change the gradients of each block - just enter the hex code for each block - making sure to copy and paste to each line for cross browser compatibility - if you don't want a gradient, just set a single colour in the first line and delete the next 3 lines! •••--- */
  43.  
  44. #one {
  45. background-color: #00ABE5;
  46. background: -webkit-linear-gradient(top, #00ABE5, #8f8f8f );
  47. background: -moz-linear-gradient(top, #00ABE5, #8f8f8f );
  48. background: -ms-linear-gradient(top, #00ABE5, #8f8f8f );
  49. background: -o-linear-gradient(top, #00ABE5, #8f8f8f );}
  50.  
  51. #two {
  52. background-color:#3977D5;
  53. background: -webkit-linear-gradient(top, #3977D5, #f7d0c4);
  54. background: -moz-linear-gradient(top, #3977D5, #f7d0c4);
  55. background: -ms-linear-gradient(top, #3977D5, #f7d0c4);
  56. background: -o-linear-gradient(top, #3977D5, #f7d0c4);}
  57.  
  58. #three {
  59. background-color: #8533C1;
  60. background: -webkit-linear-gradient(top, #8533C1, #fef2c4);
  61. background: -moz-linear-gradient(top, #8533C1, #fef2c4);
  62. background: -ms-linear-gradient(top, #8533C1, #fef2c4);
  63. background: -o-linear-gradient(top, #8533C1, #fef2c4);}
  64.  
  65. #four {
  66. background-color:#BF00B2;
  67. background: -webkit-linear-gradient(top, #BF00B2, #e5fcfc);
  68. background: -moz-linear-gradient(top, #BF00B2, #e5fcfc);
  69. background: -ms-linear-gradient(top, #BF00B2, #e5fcfc);
  70. background: -0-linear-gradient(top, #BF00B2, #e5fcfc);}
  71.  
  72. #accordiancontent {
  73. color:#fff; /* ---••• Change the text color here •••--- */
  74. padding:20px;
  75. max-width:200px;
  76. text-align:justify;
  77. text-shadow: 2px 2px 2px #111;} /* ---••• delete this line (leave the end bracket in tact) if you don't want a text shadow •••--- */
  78.  
  79. #accordiantitle {
  80. font-family: 'Homemade Apple', cursive;
  81. font-size:16px;
  82. text-align:center;}
  83.  
  84. #accordian ul {
  85. list-style-type: circle;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement