Plugin Directory

Changeset 3336003


Ignore:
Timestamp:
07/29/2025 01:49:22 PM (8 months ago)
Author:
sinergodata
Message:

Upload version 1.0.2 – includes updated CSS and styling options

Location:
smarttoc-lite/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • smarttoc-lite/trunk/css/smarttoc-lite.css

    r3335881 r3336003  
    1 .smarttoc-lite-header{
     1.smarttoc-lite-toc .smarttoc-lite-header{
    22    display: flex;
    33    align-items: center;
    44    justify-content: space-between;
    55}
    6 .smarttoc-list-wrapper{
     6.smarttoc-lite-toc .smarttoc-list-wrapper{
    77    display: grid;
    88    grid-template-rows: 1fr;
    99    transition: grid-template-rows 200ms ease;
    1010}
    11 .smarttoc-list-wrapper.smarttoc-hidden {
     11.smarttoc-lite-toc .smarttoc-list-wrapper.smarttoc-hidden {
    1212    grid-template-rows: 0fr;
    1313}
    14 .smarttoc-list-wrapper.smarttoc-expanded {
     14.smarttoc-lite-toc .smarttoc-list-wrapper.smarttoc-expanded {
    1515    grid-template-rows: 1fr;
    1616}
    17 .smarttoc-list-content{
     17.smarttoc-lite-toc .smarttoc-list-content{
    1818    overflow: hidden;
    1919}
     
    5353    background: transparent;
    5454}
    55 .smarttoc-lite-toc .toc-title{
     55.smarttoc-lite-toc .smarttoc-lite-header .toc-title{
    5656    margin-top: 15px;
    5757    margin-bottom: 15px;
     58    font-family: inherit;
    5859}
    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;
    6163}
    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;
    6466}
    65 .smarttoc-lite-toc li{
     67.smarttoc-lite-toc #smarttoc-list .smarttoc-list-content li{
    6668    padding-top: 7px;
    6769}
  • smarttoc-lite/trunk/includes/class-smarttoc-lite.php

    r3335881 r3336003  
    310310    if ($numbering_style === 'custom') {
    311311        $dynamic_css .= "
    312         .smarttoc-lite-toc ul {
     312        .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul {
    313313            list-style: none;
    314314            padding-left: 0;
    315315            list-style-position: inside;
    316316        }
    317         .smarttoc-lite-toc ul ul{
     317        .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul ul{
    318318            padding-left: 1.5em;
    319319        }
    320         .smarttoc-lite-toc ul li::before {
     320        .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul li::before {
    321321            content: '" . esc_attr($custom_bullet) . " ';
    322322            display: inline-block;
     
    327327    } else {
    328328        $dynamic_css .= "
    329         .smarttoc-lite-toc ul {
     329        .smarttoc-lite-toc #smarttoc-list .smarttoc-list-content ul {
    330330            list-style-type: " . esc_attr($numbering_style) . ";
    331331            padding-left: 1.5em;
     
    352352    }
    353353
    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;
    357357        font-weight: " . esc_attr($title_weight) . ";
    358358    }
    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;
    363363        font-weight: " . esc_attr($item_weight) . ";
    364364    }
    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;
    368368    }
    369369    .smarttoc-lite-toc.smarttoc-theme-minimal .smarttoc-lite-toggle,
     
    391391        fill: " . esc_attr($icon_color) . ";
    392392    }
    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;
    395395        text-decoration: none;
    396396    }
    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;
    399399    }
    400400    ";
  • smarttoc-lite/trunk/includes/generate-toc.php

    r3335881 r3336003  
    119119
    120120    $output = '<ul>';
    121     $current_level = 2; // Presupunem că H2 este de bază
     121    $current_level = 2;
    122122
    123123    foreach ($headings as $heading) {
  • smarttoc-lite/trunk/readme.txt

    r3335908 r3336003  
    55Tested up to: 6.8 
    66Requires PHP: 7.2 
    7 Stable tag: 1.0.1 
     7Stable tag: 1.0.2 
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5858== Changelog ==
    5959
     60= 1.0.2 =
     61* Updated CSS styles for better theme compatibility
     62
    6063= 1.0.1 =
    6164* Added "Settings" link in plugin list
     
    6568
    6669== Upgrade Notice ==
     70
     71= 1.0.2 =
     72CSS update – improves compatibility and styling consistency.
    6773
    6874= 1.0.1 =
  • smarttoc-lite/trunk/smarttoc-lite.php

    r3335908 r3336003  
    44 * Plugin URI:
    55 * 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.1
     6 * Version: 1.0.2
    77 * Author: SinergoData
    88 * Author URI: https://sinergodata.com/
Note: See TracChangeset for help on using the changeset viewer.