@import url("https://fonts.googleapis.com/css2?family=Ubuntu&display=swap"); * { font-family: "Ubuntu", sans-serif; margin: 0; padding: 0; box-sizing: border-box; } a{ text-decoration: none; } :root { /* Colors */ --body-color: #e4e9f7; --sidebar-color: #fff; --primary-color: #695cfe; --primary-color-light: #f6f5ff; --toggle-color: #ddd; --text-color: #707070; /* Transition */ --tran-02: all 0.2s ease; --tran-03: all 0.3s ease; --tran-04: all 0.4s ease; --tran-05: all 0.5s ease; } body { height: 80vh; background: var(--body-color); transition: var(--tran-05); } body.dark { --body-color: #18191a; --sidebar-color: #242526; --primary-color: #3a3b3c; --primary-color-light: #3a3b3c; --toggle-color: #fff; --text-color: #ccc; } /* ===== Sidebar ==== */ .sidebar { position: fixed; top: 0; left: 0; height: 100%; width: 250px; padding: 10px 14px; background: var(--sidebar-color); transition: var(--tran-05); z-index: 100; } .sidebar.close { width: 88px; } /* ==== reusable CSS ==== */ .sidebar .text { font-size: 16px; font-weight: 500; color: var(--text-color); transition: var(--tran-03); white-space: nowrap; opacity: 1; } .sidebar.close .text { opacity: 0; } .sidebar .image { min-width: 60px; display: flex; align-items: center; justify-content: center; } .sidebar li { height: 50px; margin-top: 10px; list-style: none; display: flex; align-items: center; } .sidebar li .icon { display: flex; align-items: center; justify-content: center; min-width: 60px; font-size: 20px; } .sidebar li .icon, .sidebar li .text { color: var(--text-color); transition: var(--tran-02); } .sidebar header { position: relative; } .sidebar .image-text img { width: 40px; border-radius: 6px; } .sidebar header .image-text { display: flex; align-items: center; } header .image-text .header-text { display: flex; flex-direction: column; } .header-text .name { font-weight: 600; } .header-text .profession { margin-top: -2px; } .sidebar header .toggle { position: absolute; top: 50%; right: -25px; transform: translateY(-50%) rotate(180deg); height: 25px; width: 25px; background: var(--primary-color); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--sidebar-color); font-size: 22px; transition: var(--tran-03); } .sidebar.close header .toggle { transform: translateY(-50%); } body.dark .sidebar header .toggle { transform: rotate(180deg); } .sidebar .menu { margin-top: 35px; } .sidebar .search-box { background: var(--primary-color-light); border-radius: 6px; transition: var(--tran-05); } .search-box input { height: 100%; width: 100%; outline: none; border: none; border-radius: 6px; font-size: 16px; font-weight: 500; background: var(--primary-color-light); } /* .search-box .search_result{ position: absolute; width: 100%; height: 200px; border: 1px solid #fff; margin-top: 10px; border-radius: 10px; display: flex; align-items: flex-start; justify-content: flex-start; flex-direction: column; overflow: auto; } .search-box .search_result::-webkit-scrollbar{ display: none; } .search-box .search_result .card{ width: 100%; min-height: 45px; border: 1px solid #fff; display: flex; align-items: center; padding: 0px 5px; } .search-box .search_result .card img{ width: 35px; height: 35px; border-radius: 5px; } */ .sidebar li a { height: 100%; width: 100%; display: flex; align-items: center; text-decoration: none; border-radius: 6px; transition: var(--tran-04); } .sidebar li a:hover { background: var(--primary-color); } body.dark li a:hover .icon, body.dark li a:hover .text { color: var(--text-color); } .sidebar li a:hover .icon, .sidebar li a:hover .text { color: var(--sidebar-color); } .sidebar .menu-bar { height: calc(100% - 50px); display: flex; flex-direction: column; justify-content: space-between; } .menu-bar .mode { position: relative; border-radius: 6px; background: var(--primary-color-light); } .menu-bar .mode .moon-sun { height: 50px; width: 60px; display: flex; align-items: center; } .menu-bar .mode i { position: absolute; transition: var(--tran-03); } .menu-bar .mode i.sun { opacity: 0; } body.dark .menu-bar .mode i.sun { opacity: 1; } body.dark .menu-bar .mode i.moon { opacity: 0; } .menu-bar .mode .toggle-switch { position: absolute; right: 0; display: flex; align-items: center; justify-content: center; height: 100%; min-width: 60px; /* background: red; */ cursor: pointer; border-radius: 6px; background: var(--primary-color-light); transition: var(--tran-05); } .toggle-switch .switch { position: relative; height: 22px; width: 44px; border-radius: 25px; background: var(--toggle-color); } .switch::before { content: ""; position: absolute; height: 15px; width: 15px; border-radius: 50%; top: 50%; left: 5px; transform: translateY(-50%); background: var(--sidebar-color); transition: var(--tran-03); } body.dark .switch::before { left: 24px; } .home { display: flex; flex-direction: column; position: relative; height: auto; top: 50px; left: 250px; width: calc(100% - 250px); background: var(--body-color); transition: var(--tran-05); } /* recently played section */ .home .text { width: 100%; height: 0px; font-size: 30px; font-weight: 500; color: var(--text-color); padding: 90px 40px; } .count { /* margin-left: 52.2rem; font-size: 19px; font-weight: 400; border-radius: 6px; */ width: 100%; display: flex; } button { font-size: 22px; font-weight: 500; padding: 20px; margin: 30px; width: 170px; background: #ebeef1; cursor: pointer; border: none; border-radius: 50px; color: #00a037; box-shadow: 10px 10px 10px -1px rgba(10, 99, 169, 0.16), -10px -10px 10px -1px rgba(255, 255, 255, 0.7); margin-left: 85%; margin-top: -30px; } button.btn { color: #ed0000; box-shadow: inset 10px 10px 10px -1px rgba(10, 99, 169, 0.16), inset -10px -10px 10px -1px rgba(255, 255, 255, 0.7); } /* .home .text .btn:hover{ border: 2px solid var(--primary-color); color: var(--text-color); background: var(--body-color); transition: var(--tran-02); cursor: pointer; } */ .sidebar.close ~ #myICONS .home { left: 88px; width: calc(100% - 88px); }