-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update ui and project structure
- Loading branch information
Showing
41 changed files
with
491 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.style-switcher { | ||
position: fixed; | ||
top: 20px; | ||
right: 0; | ||
z-index: 10; | ||
background-color: #fff; | ||
padding: 15px; | ||
border: 1px solid #d4d4e3; | ||
border-right: none; | ||
border-radius: 0 0 0 5px; | ||
-webkit-transform: translateX(100%); | ||
transform: translateX(100%); | ||
-webkit-transition: all 0.3s ease; | ||
transition: all 0.3s ease; | ||
} | ||
.style-switcher.open { | ||
-webkit-transform: translateX(0%); | ||
transform: translateX(0%); | ||
} | ||
.style-switcher h5 { | ||
font-size: 16px; | ||
color: #302e4d; | ||
margin-bottom: 8px; | ||
padding-bottom: 5px; | ||
border-bottom: 1px solid #e8dfec; | ||
} | ||
.style-switcher ul { | ||
margin: 0; | ||
padding: 0; | ||
display: block; | ||
margin-bottom: 5px; | ||
list-style: none; | ||
} | ||
.style-switcher ul li { | ||
display: inline-block; | ||
} | ||
.style-switcher ul li a { | ||
height: 30px; | ||
width: 30px; | ||
display: block; | ||
border-radius: 50%; | ||
cursor: pointer; | ||
text-decoration: none; | ||
margin-right: 3px; | ||
} | ||
.style-switcher .toggle-style-switcher { | ||
position: absolute; | ||
height: 45px; | ||
width: 45px; | ||
background-color: #fff; | ||
left: -46px; | ||
top: -1px; | ||
border: 1px solid #d4d4e3; | ||
border-right: none; | ||
text-align: center; | ||
cursor: pointer; | ||
border-radius: 5px 0 0 5px; | ||
} | ||
.style-switcher .toggle-style-switcher .fa { | ||
font-size: 20px; | ||
line-height: 43px; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
const links = document.querySelectorAll(".alternate-style"), | ||
totalLinks = links.length; | ||
|
||
function setActiveStyle(color) { | ||
for (let i = 0; i < totalLinks; i++) { | ||
if (color === links[i].getAttribute("title")) { | ||
links[i].removeAttribute("disabled"); | ||
} else { | ||
links[i].setAttribute("disabled", "true"); | ||
} | ||
} | ||
} | ||
|
||
// | ||
|
||
const bodySkin = document.querySelectorAll(".body-skin"), | ||
totalBodySkin = bodySkin.length; | ||
for (let i = 0; i < totalBodySkin; i++) { | ||
bodySkin[i].addEventListener("change", function () { | ||
if (this.value === "dark") { | ||
document.body.className = "dark"; | ||
} else { | ||
document.body.className = ""; | ||
} | ||
}); | ||
} | ||
|
||
document | ||
.querySelector(".toggle-style-switcher") | ||
.addEventListener("click", () => { | ||
document.querySelector(".style-switcher").classList.toggle("open"); | ||
}); |
Oops, something went wrong.