Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Avoid color sparkles when switching modes.
Browse files Browse the repository at this point in the history
- the search bar (desktop view)
- the site title.
  • Loading branch information
cotes2020 committed May 8, 2020
1 parent b0017a6 commit efb3c46
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
17 changes: 8 additions & 9 deletions assets/css/_addon/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $sidebar-display: "sidebar-display";
background: rgb(42, 30, 107);
background: var(--sidebar-bg);
a {
@include sidebar-icon;
@include sidebar-links;
}
.sidebar-bottom {
.icon-border+a { // the icon behide mode-toggle
Expand Down Expand Up @@ -168,7 +168,7 @@ $sidebar-display: "sidebar-display";

#mode-toggle-wrapper {
i {
@include sidebar-icon;
@include sidebar-links;
margin-right: 0;
font-size: 1.05rem;
text-align: center;
Expand Down Expand Up @@ -226,11 +226,10 @@ $sidebar-display: "sidebar-display";
img {
width: 100%;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
-webkit-transition: all .5s !important;
-moz-transition: all .5s !important;
transition: all .5s !important;
-webkit-transition: transform .5s;
-moz-transition: transform .5s;
transition: transform .5s;

&:hover {
-ms-transform: scale(1.2);
-moz-transform: scale(1.2);
Expand All @@ -243,7 +242,7 @@ $sidebar-display: "sidebar-display";
#site-title {
text-align: center;
a {
color: var(--site-title-color);
// color: var(--site-title-color);
font-weight: 900;
font-size: 1.5rem;
letter-spacing: .5px;
Expand Down Expand Up @@ -323,7 +322,6 @@ $sidebar-display: "sidebar-display";
border: 1px solid var(--search-wrapper-bg);
background: var(--search-wrapper-bg);
padding: 0 .5rem;
transition: background-color .15s ease-in-out,border-color .15s ease-in-out;
i {
z-index: 2;
font-size: .9rem;
Expand Down Expand Up @@ -921,6 +919,7 @@ table {
box-shadow: none;
border-color: var(--input-focus-border-color) !important;
background: center !important;
transition: background-color .15s ease-in-out,border-color .15s ease-in-out;
}

/*--- Responsive Design ---*/
Expand Down
4 changes: 2 additions & 2 deletions assets/css/_addon/module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
text-decoration: none;
}

@mixin sidebar-icon {
color: rgba(255, 255, 255, 0.5);
@mixin sidebar-links($color: rgba(255, 255, 255, 0.5)) {
color: $color;
transition: color 0.35s ease-in-out;
user-select: none;
margin: 0 .25rem;
Expand Down
1 change: 0 additions & 1 deletion assets/css/_colors/dark-typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
--label-color: rgb(108, 117, 125);

/* Sidebar */
--site-title-color: rgba(255, 255, 255, 0.5);
--nav-cursor-color: rgb(183, 182, 182);
--sidebar-bg: radial-gradient(circle, #242424 0%, #1d1f27 100%);

Expand Down
4 changes: 0 additions & 4 deletions assets/css/_colors/light-typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@

/* Sidebar */

--site-title-color: #b6b6b6;

--sidebar-bg: radial-gradient(
circle, rgba(42, 30, 107, 1) 0%, rgba(35, 37, 46, 1) 100%);

Expand All @@ -57,8 +55,6 @@

--topbar-text-color: rgb(78, 78, 78);

--search-wrapper-bg: #fff;

--search-wrapper-bg: #f5f5f5;

--search-tag-bg: #f8f9fa;
Expand Down

0 comments on commit efb3c46

Please sign in to comment.