Coder Social home page Coder Social logo

222-responsive-icon-nav-css's Introduction

222-responsive-icon-nav-css's People

Contributors

b4ry avatar codediodeio avatar furknyavuz avatar maiconm avatar nicestdev avatar tiphainelaurent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

222-responsive-icon-nav-css's Issues

Themeing Option Fix

Awesome menu! Everything worked great except for themes, because local storage is never set, so it's always empty. If you check for local storage first, then set it to a default, it works like champ:

const themeMap = {
    dark: "light",
    light: "solar",
    solar: "dark"
};

if (localStorage.theme) {
    const theme = localStorage.getItem("theme");
    const bodyClass = document.body.classList;
    theme && bodyClass.add(theme);
    function toggleTheme() {
        const current = localStorage.getItem("theme");
        const next = themeMap[current];

        bodyClass.replace(current, next);
        localStorage.setItem("theme", next);
    }
} else {
    localStorage.setItem("theme", "light");
}

document.getElementById("themeButton").onclick = toggleTheme;

Thanks for the great videos!

navbar on phone dont work

hi i open this project and on mobile navbar dont work
i cahnge with dev tool to mobile and its look not responsive..

Strange transition on Chrome

This works beautifully on FireFox but on Google Chrome when you unhover a link it first transitions to the black base color of the svg icon and then snaps to the gray color. This also happens when you first hover the navbar, all the icons start in there base black color and then snap to gray.

Any ideas on how to make it compatible with Chrome?

CSS - Nav Scroll showing

.navbar { position: fixed; background-color: var(--bg-primary); transition: width 600ms ease; overflow: scroll; }

Change overflow to "hidden"

Changing the Icon

I've been trying to figure out how to change the icons and simply replacing fa-cat or the data-icon, anyway i can customize it to the icons i want?

css: .link-text being displayed in small screen

because the display property is set to block on hover for .link-text, on small screen it results in a weird transition.
Set it as :
@media (max-width:600px){
.navbar:hover {
width: 100vw;
}
.navbar:hover .link-text {
display: none;
}}

theme not work

svg for theme and toggle theme doesnt appear and work

no theme

when I run the code there is no icon on themify and clicking it did nothing, I added:
let fh = localStorage.setItem('theme', 'dark')
in theme.js on line 5 and now it works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.