Changeset 3336003
- Timestamp:
- 07/29/2025 01:49:22 PM (8 months ago)
- Location:
- smarttoc-lite/trunk
- Files:
-
- 5 edited
-
css/smarttoc-lite.css (modified) (2 diffs)
-
includes/class-smarttoc-lite.php (modified) (4 diffs)
-
includes/generate-toc.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
smarttoc-lite.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smarttoc-lite/trunk/css/smarttoc-lite.css
r3335881 r3336003 1 .smarttoc-lite- header{1 .smarttoc-lite-toc .smarttoc-lite-header{ 2 2 display: flex; 3 3 align-items: center; 4 4 justify-content: space-between; 5 5 } 6 .smarttoc-li st-wrapper{6 .smarttoc-lite-toc .smarttoc-list-wrapper{ 7 7 display: grid; 8 8 grid-template-rows: 1fr; 9 9 transition: grid-template-rows 200ms ease; 10 10 } 11 .smarttoc-li st-wrapper.smarttoc-hidden {11 .smarttoc-lite-toc .smarttoc-list-wrapper.smarttoc-hidden { 12 12 grid-template-rows: 0fr; 13 13 } 14 .smarttoc-li st-wrapper.smarttoc-expanded {14 .smarttoc-lite-toc .smarttoc-list-wrapper.smarttoc-expanded { 15 15 grid-template-rows: 1fr; 16 16 } 17 .smarttoc-li st-content{17 .smarttoc-lite-toc .smarttoc-list-content{ 18 18 overflow: hidden; 19 19 } … … 53 53 background: transparent; 54 54 } 55 .smarttoc-lite-toc . toc-title{55 .smarttoc-lite-toc .smarttoc-lite-header .toc-title{ 56 56 margin-top: 15px; 57 57 margin-bottom: 15px; 58 font-family: inherit; 58 59 } 59 .smarttoc-lite-toc a{ 60 text-decoration: none; 60 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content a{ 61 text-decoration: none !important; 62 font-family: inherit; 61 63 } 62 .smarttoc-lite-toc.smarttoc-theme-underline a{63 text-decoration: underline ;64 .smarttoc-lite-toc.smarttoc-theme-underline #smarttoc-list .smarttoc-list-content a{ 65 text-decoration: underline !important; 64 66 } 65 .smarttoc-lite-toc li{67 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content li{ 66 68 padding-top: 7px; 67 69 } -
smarttoc-lite/trunk/includes/class-smarttoc-lite.php
r3335881 r3336003 310 310 if ($numbering_style === 'custom') { 311 311 $dynamic_css .= " 312 .smarttoc-lite-toc ul {312 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul { 313 313 list-style: none; 314 314 padding-left: 0; 315 315 list-style-position: inside; 316 316 } 317 .smarttoc-lite-toc ul ul{317 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul ul{ 318 318 padding-left: 1.5em; 319 319 } 320 .smarttoc-lite-toc ul li::before {320 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul li::before { 321 321 content: '" . esc_attr($custom_bullet) . " '; 322 322 display: inline-block; … … 327 327 } else { 328 328 $dynamic_css .= " 329 .smarttoc-lite-toc ul {329 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul { 330 330 list-style-type: " . esc_attr($numbering_style) . "; 331 331 padding-left: 1.5em; … … 352 352 } 353 353 354 .smarttoc-lite-toc . toc-title {355 color: " . esc_attr($title_color) . " ;356 font-size: " . esc_attr($title_size) . "px ;354 .smarttoc-lite-toc .smarttoc-lite-header .toc-title { 355 color: " . esc_attr($title_color) . " !important; 356 font-size: " . esc_attr($title_size) . "px !important; 357 357 font-weight: " . esc_attr($title_weight) . "; 358 358 } 359 .smarttoc-lite-toc ul,360 .smarttoc-lite-toc li {361 color: " . esc_attr($text_color) . " ;362 font-size: " . esc_attr($item_size) . "px ;359 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul, 360 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content li { 361 color: " . esc_attr($text_color) . " !important; 362 font-size: " . esc_attr($item_size) . "px !important; 363 363 font-weight: " . esc_attr($item_weight) . "; 364 364 } 365 .smarttoc-lite-toc ul ul,366 .smarttoc-lite-toc ul ul li {367 font-size: " . esc_attr($child_size) . "px ;365 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul ul, 366 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul ul li { 367 font-size: " . esc_attr($child_size) . "px !important; 368 368 } 369 369 .smarttoc-lite-toc.smarttoc-theme-minimal .smarttoc-lite-toggle, … … 391 391 fill: " . esc_attr($icon_color) . "; 392 392 } 393 .smarttoc-lite-toc a {394 color: " . esc_attr($link) . " ;393 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content a { 394 color: " . esc_attr($link) . " !important; 395 395 text-decoration: none; 396 396 } 397 .smarttoc-lite-toc a:hover {398 color: " . esc_attr($hover) . " ;397 .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content a:hover { 398 color: " . esc_attr($hover) . " !important; 399 399 } 400 400 "; -
smarttoc-lite/trunk/includes/generate-toc.php
r3335881 r3336003 119 119 120 120 $output = '<ul>'; 121 $current_level = 2; // Presupunem că H2 este de bază121 $current_level = 2; 122 122 123 123 foreach ($headings as $heading) { -
smarttoc-lite/trunk/readme.txt
r3335908 r3336003 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.2 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 58 58 == Changelog == 59 59 60 = 1.0.2 = 61 * Updated CSS styles for better theme compatibility 62 60 63 = 1.0.1 = 61 64 * Added "Settings" link in plugin list … … 65 68 66 69 == Upgrade Notice == 70 71 = 1.0.2 = 72 CSS update – improves compatibility and styling consistency. 67 73 68 74 = 1.0.1 = -
smarttoc-lite/trunk/smarttoc-lite.php
r3335908 r3336003 4 4 * Plugin URI: 5 5 * Description: Create a responsive Table of Contents (TOC) for WordPress posts and pages. Features include automatic insertion, customizable styles, live preview, shortcode support, and accessibility. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Author: SinergoData 8 8 * Author URI: https://sinergodata.com/
Note: See TracChangeset
for help on using the changeset viewer.