Logo

Geekaxon

Welcome User

General Scrollbar

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

:root {
        --light-scrollbar-track-background: #fff;
        --light-scrollbar-track-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        --light-scrollbar-thumb-background: #6562fb;
        --light-primary: #6562fb;
        --light-success-1: #00aa44;
        --light-info-1: #06b9ef;
        --light-warning-1: #ff960b;
        --light-danger-1: #f93131;
        --light-light-1: #fff;
        --light-dark-1: #21242b;
        --scrollbar-width: 0px;
        --scrollbar-height: 0px;
        --xl-scrollbar-width: 8px;
        --xl-scrollbar-height: 8px;
    }
    .scrollbar-x {
        overflow-x: auto;
    }
    .scrollbar-y {
        overflow-y: auto;
    }
    .scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
        background-color: transparent;
    }
    .scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
        background-color: transparent;
    }
    .scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
        background-color: transparent;
    }
    .scrollbar-x::-webkit-scrollbar {
        height: var(--scrollbar-height);
    }
    .scrollbar-y::-webkit-scrollbar {
        width: var(--scrollbar-width);
    }

    /* Media Query For >= 1200px */
    @media (min-width: 1200px) {
        .scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
            background-color: var(--light-scrollbar-track-background);
            -webkit-box-shadow: var(--light-scrollbar-track-shadow);
                    box-shadow: var(--light-scrollbar-track-shadow);
        }
        .scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
            background-color: var(--light-scrollbar-track-background);
        }
        .scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
            background-color: var(--light-scrollbar-thumb-background);
            -webkit-box-shadow: var(--light-scrollbar-track-shadow);
                    box-shadow: var(--light-scrollbar-track-shadow);
        }
        .scrollbar-x.thumb-primary::-webkit-scrollbar-thumb, .scrollbar-y.thumb-primary::-webkit-scrollbar-thumb {
            background-color: var(--light-primary) !important;
        }
        .scrollbar-x.thumb-success::-webkit-scrollbar-thumb, .scrollbar-y.thumb-success::-webkit-scrollbar-thumb {
            background-color: var(--light-success-1) !important;
        }
        .scrollbar-x.thumb-info::-webkit-scrollbar-thumb, .scrollbar-y.thumb-info::-webkit-scrollbar-thumb {
            background-color: var(--light-info-1) !important;
        }
        .scrollbar-x.thumb-warning::-webkit-scrollbar-thumb, .scrollbar-y.thumb-warning::-webkit-scrollbar-thumb {
            background-color: var(--light-warning-1) !important;
        }
        .scrollbar-x.thumb-danger::-webkit-scrollbar-thumb, .scrollbar-y.thumb-danger::-webkit-scrollbar-thumb {
            background-color: var(--light-danger-1) !important;
        }
        .scrollbar-x.thumb-light::-webkit-scrollbar-thumb, .scrollbar-y.thumb-light::-webkit-scrollbar-thumb {
            background-color: var(--light-light-1) !important;
        }
        .scrollbar-x.thumb-dark::-webkit-scrollbar-thumb, .scrollbar-y.thumb-dark::-webkit-scrollbar-thumb {
            background-color: var(--light-dark-1) !important;
        }
        .scrollbar-x::-webkit-scrollbar {
            height: var(--xl-scrollbar-height);
        }
        .scrollbar-y::-webkit-scrollbar {
            width: var(--xl-scrollbar-width);
        }
    }

Customize the scrollbar's orientation and appearance using these classes.

Orientation:

  • scrollbar-y: Adds a vertical scrollbar (y-axis).
  • scrollbar-x: Adds a horizontal scrollbar (x-axis).

Color Options:

  • thumb-primary: Applies the theme's primary color to the scrollbar thumb.
  • thumb-success: Green-colored scrollbar thumb.
  • thumb-info: Light blue-colored scrollbar thumb.
  • thumb-warning: Yellow-colored scrollbar thumb.
  • thumb-danger: Red-colored scrollbar thumb.
  • thumb-light: White-colored scrollbar thumb.
  • thumb-dark: Dark-colored scrollbar thumb.

These classes allow you to easily style scrollbars to match the design and functionality of your application.

Rounded Scrollbar

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

:root {
    --light-scrollbar-track-background: #fff;
    --light-scrollbar-track-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    --light-scrollbar-thumb-background: #6562fb;
    --light-primary: #6562fb;
    --light-success-1: #00aa44;
    --light-info-1: #06b9ef;
    --light-warning-1: #ff960b;
    --light-danger-1: #f93131;
    --light-light-1: #fff;
    --light-dark-1: #21242b;
    --scrollbar-width: 0px;
    --scrollbar-height: 0px;
    --xl-scrollbar-width: 8px;
    --xl-scrollbar-height: 8px;
}
.scrollbar-x {
    overflow-x: auto;
}
.scrollbar-y {
    overflow-y: auto;
}
.scrollbar-x.rounded-bar::-webkit-scrollbar-track, .scrollbar-x.rounded-bar::-webkit-scrollbar-thumb, .scrollbar-y.rounded-bar::-webkit-scrollbar-track, .scrollbar-y.rounded-bar::-webkit-scrollbar-thumb {
    border-radius: 50px;
}
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
    background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
    background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
    background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar {
    height: var(--scrollbar-height);
}
.scrollbar-y::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

/* Media Query For >= 1200px */
@media (min-width: 1200px) {
    .scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
        background-color: var(--light-scrollbar-track-background);
        -webkit-box-shadow: var(--light-scrollbar-track-shadow);
                box-shadow: var(--light-scrollbar-track-shadow);
    }
    .scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
        background-color: var(--light-scrollbar-track-background);
    }
    .scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
        background-color: var(--light-scrollbar-thumb-background);
        -webkit-box-shadow: var(--light-scrollbar-track-shadow);
                box-shadow: var(--light-scrollbar-track-shadow);
    }
    .scrollbar-x.thumb-primary::-webkit-scrollbar-thumb, .scrollbar-y.thumb-primary::-webkit-scrollbar-thumb {
        background-color: var(--light-primary) !important;
    }
    .scrollbar-x.thumb-success::-webkit-scrollbar-thumb, .scrollbar-y.thumb-success::-webkit-scrollbar-thumb {
        background-color: var(--light-success-1) !important;
    }
    .scrollbar-x.thumb-info::-webkit-scrollbar-thumb, .scrollbar-y.thumb-info::-webkit-scrollbar-thumb {
        background-color: var(--light-info-1) !important;
    }
    .scrollbar-x.thumb-warning::-webkit-scrollbar-thumb, .scrollbar-y.thumb-warning::-webkit-scrollbar-thumb {
        background-color: var(--light-warning-1) !important;
    }
    .scrollbar-x.thumb-danger::-webkit-scrollbar-thumb, .scrollbar-y.thumb-danger::-webkit-scrollbar-thumb {
        background-color: var(--light-danger-1) !important;
    }
    .scrollbar-x.thumb-light::-webkit-scrollbar-thumb, .scrollbar-y.thumb-light::-webkit-scrollbar-thumb {
        background-color: var(--light-light-1) !important;
    }
    .scrollbar-x.thumb-dark::-webkit-scrollbar-thumb, .scrollbar-y.thumb-dark::-webkit-scrollbar-thumb {
        background-color: var(--light-dark-1) !important;
    }
    .scrollbar-x::-webkit-scrollbar {
        height: var(--xl-scrollbar-height);
    }
    .scrollbar-y::-webkit-scrollbar {
        width: var(--xl-scrollbar-width);
    }
}

Customize the scrollbar's orientation, color, and border-radius using these classes.

Orientation:

  • scrollbar-y: Adds a vertical scrollbar (y-axis).
  • scrollbar-x: Adds a horizontal scrollbar (x-axis).

Color Options:

  • thumb-primary: Applies the theme's primary color to the scrollbar thumb.
  • thumb-success: Green-colored scrollbar thumb.
  • thumb-info: Light blue-colored scrollbar thumb.
  • thumb-warning: Yellow-colored scrollbar thumb.
  • thumb-danger: Red-colored scrollbar thumb.
  • thumb-light: White-colored scrollbar thumb.
  • thumb-dark: Dark-colored scrollbar thumb.

Border Radius:

  • rounded-bar: Adds a rounded, pill-like style to the scrollbar thumb for a sleek, modern appearance.

These classes provide a complete solution for styling scrollbars, including direction, color, and shape.

Scrollbar Sizes

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

:root {
    --light-scrollbar-track-background: #fff;
    --light-scrollbar-track-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    --light-scrollbar-thumb-background: #6562fb;
    --light-primary: #6562fb;
    --light-success-1: #00aa44;
    --light-info-1: #06b9ef;
    --light-warning-1: #ff960b;
    --light-danger-1: #f93131;
    --light-light-1: #fff;
    --light-dark-1: #21242b;
    --scrollbar-width: 0px;
    --scrollbar-height: 0px;
    --xl-scrollbar-width: 8px;
    --xl-scrollbar-height: 8px;
    --xl-scrollbar-xl-width: 12px;
    --xl-scrollbar-xl-height: 12px;
    --xl-scrollbar-lg-width: 10px;
    --xl-scrollbar-lg-height: 10px;
    --xl-scrollbar-sm-width: 6px;
    --xl-scrollbar-sm-height: 6px;
    --xl-scrollbar-xsm-width: 4px;
    --xl-scrollbar-xsm-height: 4px;
}
.scrollbar-x {
    overflow-x: auto;
}
.scrollbar-y {
    overflow-y: auto;
}
.scrollbar-x.rounded-bar::-webkit-scrollbar-track, .scrollbar-x.rounded-bar::-webkit-scrollbar-thumb, .scrollbar-y.rounded-bar::-webkit-scrollbar-track, .scrollbar-y.rounded-bar::-webkit-scrollbar-thumb {
    border-radius: 50px;
}
.scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
    background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
    background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
    background-color: transparent;
}
.scrollbar-x::-webkit-scrollbar {
    height: var(--scrollbar-height);
}
.scrollbar-y::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

/* Media Query For >= 1200px */
@media (min-width: 1200px) {
    .scrollbar-x::-webkit-scrollbar-track, .scrollbar-y::-webkit-scrollbar-track {
        background-color: var(--light-scrollbar-track-background);
        -webkit-box-shadow: var(--light-scrollbar-track-shadow);
                box-shadow: var(--light-scrollbar-track-shadow);
    }
    .scrollbar-x::-webkit-scrollbar, .scrollbar-y::-webkit-scrollbar {
        background-color: var(--light-scrollbar-track-background);
    }
    .scrollbar-x::-webkit-scrollbar-thumb, .scrollbar-y::-webkit-scrollbar-thumb {
        background-color: var(--light-scrollbar-thumb-background);
        -webkit-box-shadow: var(--light-scrollbar-track-shadow);
                box-shadow: var(--light-scrollbar-track-shadow);
    }
    .scrollbar-x.thumb-primary::-webkit-scrollbar-thumb, .scrollbar-y.thumb-primary::-webkit-scrollbar-thumb {
        background-color: var(--light-primary) !important;
    }
    .scrollbar-x.thumb-success::-webkit-scrollbar-thumb, .scrollbar-y.thumb-success::-webkit-scrollbar-thumb {
        background-color: var(--light-success-1) !important;
    }
    .scrollbar-x.thumb-info::-webkit-scrollbar-thumb, .scrollbar-y.thumb-info::-webkit-scrollbar-thumb {
        background-color: var(--light-info-1) !important;
    }
    .scrollbar-x.thumb-warning::-webkit-scrollbar-thumb, .scrollbar-y.thumb-warning::-webkit-scrollbar-thumb {
        background-color: var(--light-warning-1) !important;
    }
    .scrollbar-x.thumb-danger::-webkit-scrollbar-thumb, .scrollbar-y.thumb-danger::-webkit-scrollbar-thumb {
        background-color: var(--light-danger-1) !important;
    }
    .scrollbar-x.thumb-light::-webkit-scrollbar-thumb, .scrollbar-y.thumb-light::-webkit-scrollbar-thumb {
        background-color: var(--light-light-1) !important;
    }
    .scrollbar-x.thumb-dark::-webkit-scrollbar-thumb, .scrollbar-y.thumb-dark::-webkit-scrollbar-thumb {
        background-color: var(--light-dark-1) !important;
    }
    .scrollbar-x::-webkit-scrollbar {
        height: var(--xl-scrollbar-height);
    }
    .scrollbar-x.scrollbar-xl::-webkit-scrollbar {
        height: var(--xl-scrollbar-xl-height);
    }
    .scrollbar-x.scrollbar-lg::-webkit-scrollbar {
        height: var(--xl-scrollbar-lg-height);
    }
    .scrollbar-x.scrollbar-sm::-webkit-scrollbar {
        height: var(--xl-scrollbar-sm-height);
    }
    .scrollbar-x.scrollbar-xsm::-webkit-scrollbar {
        height: var(--xl-scrollbar-xsm-height);
    }
    .scrollbar-y::-webkit-scrollbar {
        width: var(--xl-scrollbar-width);
    }
    .scrollbar-y.scrollbar-xl::-webkit-scrollbar {
        width: var(--xl-scrollbar-xl-width);
    }
    .scrollbar-y.scrollbar-lg::-webkit-scrollbar {
        width: var(--xl-scrollbar-lg-width);
    }
    .scrollbar-y.scrollbar-sm::-webkit-scrollbar {
        width: var(--xl-scrollbar-sm-width);
    }
    .scrollbar-y.scrollbar-xsm::-webkit-scrollbar {
        width: var(--xl-scrollbar-xsm-width);
    }
}

Customize the scrollbar's size, color, and rounded style using these classes.

Size Options:

  • scrollbar-xl: Extra-large scrollbar for prominent visibility.
  • scrollbar-lg: Large scrollbar for better accessibility.
  • scrollbar-sm: Small scrollbar for a compact look.
  • scrollbar-xsm: Extra-small scrollbar for minimal visual impact.

Orientation:

  • scrollbar-y: Adds a vertical scrollbar (y-axis).
  • scrollbar-x: Adds a horizontal scrollbar (x-axis).

Color Options:

  • thumb-primary: Applies the theme's primary color to the scrollbar thumb.
  • thumb-success: Green-colored scrollbar thumb.
  • thumb-info: Light blue-colored scrollbar thumb.
  • thumb-warning: Yellow-colored scrollbar thumb.
  • thumb-danger: Red-colored scrollbar thumb.
  • thumb-light: White-colored scrollbar thumb.
  • thumb-dark: Dark-colored scrollbar thumb.

Border Radius:

  • rounded-bar: Adds a rounded, pill-like style to the scrollbar thumb for a sleek, modern appearance.

These classes give you complete control over scrollbar size, shape, and color, enhancing both aesthetics and functionality.