Advertisement
sexycullen

theme 216 css part

Sep 14th, 2020 (edited)
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. /* maziekeen's theme 216 - UPDATE TAB CSS PART
  2. accordion (update toggle) by codepen.io/vinsongrant/pen/qbGKed
  3.  
  4. GUIDE HOW TO CUSTOMIZE
  5.  
  6.  
  7. ----------------------------
  8.  
  9. ALL THE COLORS
  10.  
  11.  
  12. - GENERAL COLOR
  13. body text, italic, bold, links: will match your color theme
  14.  
  15. - UPDATE TITLE
  16. find the class name: .update-option, .update-title label a {
  17. add styles you want there
  18.  
  19. - EFFECT ON THE TITLE ONCE YOU CLICKED
  20. find the class name: .update-toggle:checked + .update-title, .update-toggle:checked + .update-title a {
  21. add styles you want there
  22.  
  23. - BACKGROUND COLOR OF THE CONTENT
  24. find the class name: .update-toggle:checked + .update-title + .update-content {
  25. change the color in: background:#ffffff;
  26. *to change the text color inside, just add a style: color:#111111;
  27.  
  28. - BORDERS
  29. find the classes names: .update-toggle:checked + .update-title + .update-content {
  30. AND .update-button {
  31. change the color in: outline:1px solid #ededed;
  32.  
  33. - BOX SHADOW
  34. find the classes names: .update-toggle:checked + .update-title + .update-content {
  35. AND .update-button {
  36.  
  37.  
  38.  
  39. maziekeen's theme 216 - UPDATE TAB CSS PART */
  40.  
  41.  
  42. .update-container {
  43. max-width:150px;
  44. top:65px;
  45. left:15px;
  46. position:fixed;
  47. margin: 5px auto 0px;
  48. z-index:11;
  49. background-color:transparent;
  50. -webkit-box-sizing: border-box;
  51. box-sizing: border-box;
  52. }
  53.  
  54. .update-toggle {
  55. display: none;
  56. }
  57.  
  58. /* this is each option you add */
  59. .update-option {
  60. position: relative;
  61. margin-bottom:5px;
  62. }
  63.  
  64.  
  65. /* title of the option */
  66. .update-option, .update-title label a {
  67. display: inline-block;
  68. text-align: left;
  69. padding-left:10px;
  70. }
  71.  
  72.  
  73. .update-title {
  74. cursor:pointer;
  75. }
  76.  
  77.  
  78. /* content that is hidden (before you click) */
  79. .update-content {
  80. max-height: 0;
  81. outline:0px solid transparent;
  82. overflow: hidden;
  83. -webkit-transition: all 0.2s ease-in-out;
  84. -o-transition: all 0.2s ease-in-out;
  85. transition: all 0.2s ease-in-out;
  86. }
  87.  
  88. .update-title, .update-content {
  89. backface-visibility: hidden;
  90. transform: translateZ(0);
  91. -webkit-transform: translateZ(0);
  92. }
  93.  
  94. /* lists (ul li) styles inside the content */
  95. .update-content li {
  96. margin-bottom:5px;
  97. }
  98.  
  99.  
  100. /* buttons */
  101. .update-button {
  102. display:block;
  103. border:none;
  104. padding: 7px 10px;
  105. margin:7px 0px 10px;
  106. text-align:center;
  107. font-weight:bold;
  108. background-color:#ffffff;
  109. outline: 1px solid #ededed;
  110. -webkit-box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  111. box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  112. }
  113.  
  114.  
  115.  
  116. /* effect on title once you clicked */
  117. .update-toggle:checked + .update-title, .update-toggle:checked + .update-title a {
  118. font-weight:bold;
  119. }
  120.  
  121. /* content that appears once you clicked */
  122. .update-toggle:checked + .update-title + .update-content {
  123. outline:1px solid #ededed;
  124. background-color:#ffffff;
  125. text-align:left;
  126. max-height: 100vh;
  127. width:240px; /* size of the content, adjust as you wish */
  128. padding:10px;
  129. margin: 5px 0px 0px;
  130. z-index:1;
  131. -webkit-box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  132. box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  133. -webkit-transition: all 0.2s ease-in-out;
  134. -o-transition: all 0.2s ease-in-out;
  135. transition: all 0.2s ease-in-out;
  136. }
  137.  
  138. /* maziekeen's theme 216 - UPDATE TAB CSS PART */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement