Advertisement
sexycullen

theme 214 css part (light)

Jul 31st, 2020 (edited)
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. /* maziekeen's theme 214 - UPDATE TAB CSS PART (light)
  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. - THE 'PLUS' ICON before the title
  16. find the class name: .update-title:after, .update-title:before {
  17. change the color in: background-color: #ab99c4
  18.  
  19. - TITLE USED INSIDE THE CONTENT
  20. find the class name: .update-inside-title {
  21. change the color in: color:#6272a4
  22.  
  23. - EFFECT ON THE TITLE ONCE YOU CLICKED
  24. find the class name: .update-toggle:checked + .update-title, .update-toggle:checked + .update-title a {
  25. change the color in: color:#ab99c4
  26.  
  27. - BACKGROUND COLOR OF THE CONTENT
  28. find the class name: .update-toggle:checked + .update-title + .update-content {
  29. change the color in: background:#fcfcfc (to change the text color inside, just add color:#b6bad1;)
  30.  
  31. - BORDERS
  32. find the class name: .update-toggle:checked + .update-title + .update-content {
  33. change the color in: border:1px solid #ededed
  34. you also need to change the color to the same in .update-content {
  35.  
  36.  
  37.  
  38. maziekeen's theme 214 - UPDATE TAB CSS PART */
  39.  
  40.  
  41. .update-container {
  42. max-width:240px; /* same width of .update-toggle:checked + .update-title + .update-content */
  43. top:65px;
  44. left:25px;
  45. position:fixed;
  46. margin: 5px auto 0px;
  47. box-sizing:border-box;
  48. z-index:11;
  49. background-color:transparent;
  50. }
  51.  
  52. .update-toggle {
  53. display: none;
  54. }
  55.  
  56. .update-option { /* this is each option you add */
  57. position: relative;
  58. margin-bottom:5px;
  59. }
  60.  
  61.  
  62. .update-option, .update-title label a {
  63. display: inline-block;
  64. text-align: left;
  65. padding-left:15px;
  66. }
  67.  
  68.  
  69. .update-title { /* title of the option */
  70. cursor:pointer;
  71. font-style:italic;
  72. }
  73.  
  74. .update-title,
  75. .content {
  76. backface-visibility: hidden;
  77. transform: translateZ(0);
  78. transition: all 0.2s;
  79. }
  80.  
  81. .update-title:after, .update-title:before { /* the plus "icon" */
  82. content: "";
  83. position: absolute;
  84. left: 5px;
  85. top:4.2px;
  86. width: 2px;
  87. height: 8px;
  88. background-color:#ab99c4;
  89. transition: all 0.2s;
  90. cursor:auto;
  91. }
  92.  
  93. .update-title:after {
  94. transform: rotate(90deg);
  95. }
  96.  
  97. .update-inside-title { /* title used inside the content */
  98. font-weight: bold;
  99. color:#6272a4;
  100. margin:5px 0px;
  101. }
  102.  
  103. .update-inside-title a {
  104. font-weight: bold;
  105. }
  106.  
  107. .update-content { /* content that appears when you click */
  108. max-height: 0;
  109. padding:0px 5px;
  110. border:0px solid #ededed; /* change the color to the same on .update-toggle:checked + .update-title + .update-content */
  111. overflow: hidden;
  112. transition:all 0.3s;
  113. }
  114.  
  115. .update-content li {
  116. line-height:13px;
  117. margin-bottom:4px;
  118. }
  119.  
  120. .update-toggle:checked + .update-title, .update-toggle:checked + .update-title a { /* effect on title once you clicked */
  121. font-weight:bold;
  122. color:#ab99c4;
  123. }
  124.  
  125. .update-toggle:checked + .update-title + .update-content { /* effect on the content once you clicked */
  126. border:1px solid #ededed;
  127. background:#fcfcfc;
  128. text-align:left;
  129. max-height: 100vh;
  130. width:240px; /* size of the content, adjust as you wish but also change the max-width in .update-container */
  131. padding:0px 5px;
  132. margin: 5px 0px 0px;
  133. z-index:1;
  134. transition:all 0.3s;
  135. }
  136.  
  137. .update-toggle:checked + .update-title:before {
  138. transform: rotate(90deg) !important;
  139. }
  140. /* maziekeen's theme 214 - UPDATE TAB CSS PART (light) */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement