|
| 1 | +/* Container holding both TOC and post content */ |
| 2 | +.toc-content-container { |
| 3 | + display: flex; |
| 4 | + gap: 30px; /* Increased space between TOC and post content */ |
| 5 | + margin-top: 20px; |
| 6 | + max-width: calc(100% - 320px); |
| 7 | +} |
| 8 | + |
| 9 | +/* TOC Widget Styling */ |
| 10 | +.toc-widget { |
| 11 | + position: sticky; |
| 12 | + top: 20px; |
| 13 | + max-width: 300px; |
| 14 | + padding: 15px; |
| 15 | + background-color: #f8f9fa; |
| 16 | + border: 1px solid #ddd; |
| 17 | + border-radius: 5px; |
| 18 | + flex-shrink: 0; |
| 19 | +} |
| 20 | + |
| 21 | +/* Post Content Styling */ |
| 22 | +.post-content { |
| 23 | + background-color: #F8F9FA; |
| 24 | + border-radius: 8px; |
| 25 | + padding: 0 20px 20px 20px; |
| 26 | + border: 1px solid #ddd; |
| 27 | + |
| 28 | + flex-grow: 1; |
| 29 | + max-width: calc(100% - 320px); /* Adjust the content area to take up more space */ |
| 30 | + |
| 31 | +} |
| 32 | + |
| 33 | +/* TOC List Styling */ |
| 34 | +.toc-list { |
| 35 | + list-style-type: none; |
| 36 | + padding-left: 0; |
| 37 | +} |
| 38 | + |
| 39 | +.toc-list li { |
| 40 | + margin-bottom: 8px; |
| 41 | +} |
| 42 | + |
| 43 | +.toc-list li a { |
| 44 | + text-decoration: none; |
| 45 | + color: #0073aa; |
| 46 | + font-size: 14px; /* Adjusted font size for better readability */ |
| 47 | +} |
| 48 | + |
| 49 | +.toc-list li a:hover { |
| 50 | + text-decoration: underline; |
| 51 | +} |
| 52 | + |
| 53 | +/* TOC Heading Styling */ |
| 54 | +.toc-widget h2 { |
| 55 | + font-size: 18px !important; /* Smaller heading for TOC to match modern design */ |
| 56 | + margin-bottom: 10px; |
| 57 | + font-weight: bold; |
| 58 | +} |
| 59 | + |
| 60 | +/* Post Title Styling */ |
| 61 | +.post-content h1 { |
| 62 | + font-size: 20px; /* Adjust the size as per your design */ |
| 63 | + margin-bottom: 20px; |
| 64 | +} |
| 65 | + |
| 66 | +.wp-block-post-title { |
| 67 | + display: none !important; |
| 68 | +} |
| 69 | + |
| 70 | +.tutorial_page_title { |
| 71 | + font-weight: bold; |
| 72 | + font-size: 30px !important; |
| 73 | +} |
| 74 | + |
| 75 | +h2 { |
| 76 | + font-size: 25px !important; |
| 77 | + font-weight: bold; |
| 78 | +} |
| 79 | + |
| 80 | +h3 { |
| 81 | + font-size: 20px !important; |
| 82 | + font-weight: bold; |
| 83 | +} |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +.post-meta { |
| 89 | + display: block; |
| 90 | + |
| 91 | + margin: 40px 10px 0px 10px; |
| 92 | + font-size: 14px; |
| 93 | + color: #666; |
| 94 | +} |
| 95 | + |
| 96 | +.author-info img { |
| 97 | + display: block !important; |
| 98 | + float: left !important; |
| 99 | +} |
| 100 | + |
| 101 | +.author-info { |
| 102 | + display: block !important; |
| 103 | + float: left !important; |
| 104 | +} |
| 105 | + |
| 106 | +.author-info .avatar { |
| 107 | + border-radius: 50%; |
| 108 | + margin-right: 10px; |
| 109 | +} |
| 110 | + |
| 111 | +.post-meta p { |
| 112 | + margin: 0; |
| 113 | + line-height: 1.6; |
| 114 | +} |
| 115 | + |
| 116 | +.post-content img { |
| 117 | + border-radius: 10px; |
| 118 | +} |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | +/* Knowledge Base */ |
| 123 | +.knowledge-base-container { |
| 124 | + max-width: 900px; |
| 125 | + margin: 0 auto; |
| 126 | + padding: 40px 20px; |
| 127 | + background-color: #f7f8fa; |
| 128 | + border-radius: 8px; |
| 129 | + /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/ |
| 130 | +} |
| 131 | + |
| 132 | +.knowledge-base-title { |
| 133 | + text-align: center; |
| 134 | + font-size: 2.5em; |
| 135 | + margin-bottom: 30px; |
| 136 | + color: #333; |
| 137 | +} |
| 138 | + |
| 139 | +.articles-list { |
| 140 | + display: grid; |
| 141 | + grid-template-columns: 1fr; |
| 142 | + gap: 20px; |
| 143 | +} |
| 144 | + |
| 145 | +.article-item { |
| 146 | + background-color: #ffffff; |
| 147 | + padding: 20px; |
| 148 | + border-radius: 8px; |
| 149 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); |
| 150 | + transition: transform 0.3s, box-shadow 0.3s; |
| 151 | +} |
| 152 | + |
| 153 | +.article-item:hover { |
| 154 | + transform: translateY(-5px); |
| 155 | + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); |
| 156 | +} |
| 157 | + |
| 158 | +.article-header { |
| 159 | + display: flex; |
| 160 | + align-items: center; |
| 161 | + margin-bottom: 10px; |
| 162 | +} |
| 163 | + |
| 164 | +.article-title { |
| 165 | + font-size: 1.5em; |
| 166 | + margin: 0; |
| 167 | + color: #0073aa; |
| 168 | + flex: 1; |
| 169 | +} |
| 170 | + |
| 171 | +.article-title a { |
| 172 | + text-decoration: none; |
| 173 | + color: inherit; |
| 174 | + transition: color 0.3s; |
| 175 | +} |
| 176 | + |
| 177 | +.article-title a:hover { |
| 178 | + color: #00507c; |
| 179 | +} |
| 180 | + |
| 181 | +.article-meta { |
| 182 | + font-size: 0.9em; |
| 183 | + color: #666; |
| 184 | + margin-bottom: 15px; |
| 185 | +} |
| 186 | + |
| 187 | +.article-excerpt { |
| 188 | + font-size: 1em; |
| 189 | + color: #555; |
| 190 | +} |
| 191 | + |
| 192 | +.lock-icon { |
| 193 | + margin-right: 10px; |
| 194 | + color: #e63946; |
| 195 | +} |
| 196 | + |
| 197 | +.article-status { |
| 198 | + background-color: #e63946; |
| 199 | + color: #ffffff; |
| 200 | + padding: 2px 8px; |
| 201 | + border-radius: 4px; |
| 202 | + font-size: 0.8em; |
| 203 | + margin-left: 10px; |
| 204 | + text-transform: uppercase; |
| 205 | +} |
| 206 | + |
| 207 | +.article-locked { |
| 208 | + margin-top: 20px; |
| 209 | + padding: 10px; |
| 210 | + background-color: #f8f9fa; |
| 211 | + border: 1px solid #ddd; |
| 212 | + border-radius: 5px; |
| 213 | + text-align: center; |
| 214 | +} |
| 215 | + |
| 216 | +.article-locked p { |
| 217 | + margin-bottom: 15px; |
| 218 | + font-size: 1em; |
| 219 | + color: #333; |
| 220 | +} |
0 commit comments