Advertisement
sebastianslan

Updates Tab 01 (ml: 25px;)

Jul 24th, 2014
1,736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. <style type="text/css">
  2. /** colour of title text and background **/
  3. .h-title {color:#fff; background:#54c1fd;}
  4. /** colour of title background on hover and when tab is open **/
  5. .h-title:hover, .ss-ud input:checked + label .h-title {background:#fc53b3;}
  6. /** colour of close text **/
  7. .close {color:#fc53b3;}
  8. /** colour of close text on hover **/
  9. .close:hover {color:#54c1fd;}
  10. /** colour of border at the bottom of tabs **/
  11. .ss-ud input:checked ~ article {border-bottom:3px solid #fc53b3;}
  12. /** background colour of tabs **/
  13. .ss-ud article {background:#fff;}
  14. /** colour of text in tabs **/
  15. .ss-ud input:checked ~ article {color:#969393;}
  16. /** colour of scrollbar **/
  17. .ac-plus15-lines::-webkit-scrollbar-thumb:vertical {background:#ddd;}
  18.  
  19. #hovertab {width:50px; height:50px; position:fixed; top:8px; left:8px;
  20. z-index:9999; overflow:hidden;}
  21.  
  22. #hovertab img {pointer-events:none; margin-left:0px; width:50px;
  23. opacity:0.6;}
  24.  
  25. #hovertab:hover {width:130px; height:300px;}
  26.  
  27. #hovertab:hover img {margin-left:40px; opacity:1;}
  28.  
  29. #hover-cont {
  30. width:130px; height:800px; margin-top:10px; margin-left:-200px;}
  31.  
  32. #hovertab:hover #hover-cont {margin-left:0px;}
  33.  
  34. .ss-ud article, .ss-ud input:checked ~ article {
  35. transition: height 0.3 ease-in-out, box-shadow 0.6s linear;}
  36.  
  37. .ss-ud {width:120px; margin-left:0px; margin-top:0px;}
  38.  
  39. .h-title, .close {cursor:pointer; margin-top:8px; margin-left:25px;
  40. display:block; width:80px; padding:3px 0px 4px 0px; text-align:center;
  41. font-family:Tahoma; font-size:7px; text-transform:uppercase;
  42. letter-spacing:2px;}
  43.  
  44. .ss-ud input:checked + label .close {padding:0px; opacity:0;
  45. transition:all 0.2s ease-out;
  46. -webkit-transition-duration:all 0.2s ease-out;
  47. -o-transition-transition:all 0.2s ease-out;
  48. -moz-transition-durartion:all 0.2s ease-out;
  49. -ms-transition-durartion:all 0.2s ease-out;}
  50.  
  51. .close {opacity:1; background:transparent;}
  52.  
  53. .ss-ud input:checked + label .h-title {width:120px; margin-left:5px;
  54. transition:all 0.2s ease-out;
  55. -webkit-transition-duration:all 0.2s ease-out;
  56. -o-transition-transition:all 0.2s ease-out;
  57. -moz-transition-durartion:all 0.2s ease-out;
  58. -ms-transition-durartion:all 0.2s ease-out;
  59. }
  60.  
  61. .ss-ud input {display:none;}
  62.  
  63. .ss-ud article {overflow:hidden; height:0px; position:relative;
  64. font-family:Tahoma; text-transform:uppercase; text-align:justify;
  65. font-weight:500; font-size:7px; color:#fff; letter-spacing:1px;
  66. margin-left:25px; padding:0px; width:80px;}
  67.  
  68. .ss-ud input:checked ~ article {width:112px; margin-left:5px; padding:3px 4px; }
  69.  
  70. .ss-ud input:checked ~ article.ac-1-line {height:11px;}
  71. .ss-ud input:checked ~ article.ac-2-lines {height:19px;}
  72. .ss-ud input:checked ~ article.ac-3-lines {height:27px;}
  73. .ss-ud input:checked ~ article.ac-4-lines {height:35px;}
  74. .ss-ud input:checked ~ article.ac-5-lines {height:43px;}
  75. .ss-ud input:checked ~ article.ac-6-lines {height:51px;}
  76. .ss-ud input:checked ~ article.ac-7-lines {height:59px;}
  77. .ss-ud input:checked ~ article.ac-8-lines {height:67px;}
  78. .ss-ud input:checked ~ article.ac-9-lines {height:75px;}
  79. .ss-ud input:checked ~ article.ac-10-lines {height:83px;}
  80. .ss-ud input:checked ~ article.ac-11-lines {height:91px;}
  81. .ss-ud input:checked ~ article.ac-12-lines {height:99px;}
  82. .ss-ud input:checked ~ article.ac-13-lines {height:107px;}
  83. .ss-ud input:checked ~ article.ac-14-lines {height:115px;}
  84. .ss-ud input:checked ~ article.ac-15-lines {height:123px;}
  85. .ss-ud input:checked ~ article.ac-plus15-lines {height:121px;
  86. overflow-y:scroll;}
  87.  
  88. .ac-plus15-lines::-webkit-scrollbar {height:auto; width:3px;
  89. background:#eee;}
  90.  
  91. .ac-plus15-lines::-webkit-scrollbar-thumb:vertical {height:auto;}
  92.  
  93. #hovertab, #hovertab img, #hovertab:hover, #hovertab:hover img,
  94. #hover-cont, #hovertab:hover #hover-cont, .h-title, .h-title-x, .close,
  95. .h-title:hover, .h-title-x:hover, .close:hover, .ss-ud article {
  96. transition:all 0.4s ease-in-out;
  97. -webkit-transition-duration:all 0.4s ease-in-out;
  98. -o-transition-transition:all 0.4s ease-in-out;
  99. -moz-transition-durartion:all 0.4s ease-in-out;
  100. -ms-transition-durartion:all 0.4s ease-in-out;}
  101. </style>
  102.  
  103. <div id="hovertab">
  104.  
  105. <img src="IMAGE URL HERE, 50px by 50px" />
  106.  
  107. <div id="hover-cont"><section class="ss-ud">
  108.  
  109. <div><input id="ac-hover1" name="ss" type="radio" />
  110. <label for="ac-hover1"><div class="h-title">title 1</div></label>
  111. <article class="ac-2-lines">
  112. <!-- In the line above, change the number 2 to however many lines of text you want; i.e. for 5 lines of text "ac-5-lines" for 6 write "ac-6-lines" and so on. The number can be any number between 2 and 15.
  113. If you want only on line of text write "ac-1-line"
  114. If you want more than 15 lines of text write "ac-plus15-line" -->
  115.  
  116. this is where your text for the 1st tab goes.
  117.  
  118. </article></div>
  119.  
  120. <!------------------ TO DELETE TAB 2 DELETE FROM HERE ------------------>
  121. <div><input id="ac-hover2" name="ss" type="radio" />
  122. <label for="ac-hover2"><div class="h-title">title 2</div></label>
  123. <article class="ac-2-lines">
  124.  
  125. this is where your text for the 2nd tab goes.
  126.  
  127. </article></div>
  128. <!------------------------------- TO HERE ------------------------------->
  129.  
  130.  
  131. <!------------------ TO DELETE TAB 3 DELETE FROM HERE ------------------>
  132. <div><input id="ac-hover3" name="ss" type="radio" />
  133. <label for="ac-hover3"><div class="h-title">title 3</div></label>
  134. <article class="ac-2-lines">
  135.  
  136. this is where your text for the 3rd tab goes.
  137.  
  138. </article></div>
  139. <!------------------------------- TO HERE ------------------------------->
  140.  
  141.  
  142. <!------------------ TO DELETE TAB 4 DELETE FROM HERE ------------------>
  143. <div><input id="ac-hover4" name="ss" type="radio" />
  144. <label for="ac-hover4"><div class="h-title">title 4</div></label>
  145. <article class="ac-2-lines">
  146.  
  147. this is where your text for the 4th tab goes.
  148.  
  149. </article></div>
  150. <!------------------------------- TO HERE ------------------------------->
  151.  
  152. <!-- To add more tabs, copy tab four but change "ac-hover4" (both of them). If it's you're fifth tab change it to "ac-hover5", you sixth "ac-hover6" and so on -->
  153.  
  154. <div><input id="ac-hover-close" name="ss" type="radio" checked/>
  155. <label for="ac-hover-close"><!-- cyantists --><div class="close">close</div></label></div>
  156. </section></div></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement