Skip to content

Commit

Permalink
*: update css .site-nav .menu-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Dec 13, 2024
1 parent 31d0955 commit 8d58889
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 20 deletions.
30 changes: 20 additions & 10 deletions _site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -352,25 +352,35 @@ a:visited { color: #205caa; }
.site-nav {
position: fixed;
z-index: 10;
top: 14px; right: 8px;
top: 14px;
right: 8px;
background-color: white;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #e8e8e8;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for a subtle effect */
}

.site-nav .menu-icon {
display: block;
font-size: 24px;
color: #505050;
float: right;
display: flex;
justify-content: center; /* Ensures icon is centered horizontally */
align-items: center; /* Ensures icon is centered vertically */
width: 36px;
text-align: center;
line-height: 36px;
height: 36px;
background-color: #f8f8f8; /* Optional: gives a background to the button */
border-radius: 5px; /* Keeps the round corners */
cursor: pointer; /* Indicates it's clickable */
}

.site-nav .menu-icon svg {
width: 20px; /* Adjust width to make icon a bit larger */
height: 20px; /* Adjust height to make icon a bit larger */
fill: #505050; /* Ensures the icon's color matches the desired theme */
}

.site-nav .menu-icon svg { width: 18px; height: 16px; }
/* Optional hover effect */
.site-nav .menu-icon:hover {
background-color: #e0e0e0;
}

.site-nav .trigger {
clear: both;
Expand Down
30 changes: 20 additions & 10 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -352,25 +352,35 @@ a:visited { color: #205caa; }
.site-nav {
position: fixed;
z-index: 10;
top: 14px; right: 8px;
top: 14px;
right: 8px;
background-color: white;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
border: 1px solid #e8e8e8;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for a subtle effect */
}

.site-nav .menu-icon {
display: block;
font-size: 24px;
color: #505050;
float: right;
display: flex;
justify-content: center; /* Ensures icon is centered horizontally */
align-items: center; /* Ensures icon is centered vertically */
width: 36px;
text-align: center;
line-height: 36px;
height: 36px;
background-color: #f8f8f8; /* Optional: gives a background to the button */
border-radius: 5px; /* Keeps the round corners */
cursor: pointer; /* Indicates it's clickable */
}

.site-nav .menu-icon svg {
width: 20px; /* Adjust width to make icon a bit larger */
height: 20px; /* Adjust height to make icon a bit larger */
fill: #505050; /* Ensures the icon's color matches the desired theme */
}

.site-nav .menu-icon svg { width: 18px; height: 16px; }
/* Optional hover effect */
.site-nav .menu-icon:hover {
background-color: #e0e0e0;
}

.site-nav .trigger {
clear: both;
Expand Down

0 comments on commit 8d58889

Please sign in to comment.