1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 21:53:26 +00:00

Avoid color sparkles when switching modes.

- the search bar (desktop view)
- the site title.
This commit is contained in:
Cotes Chung
2020-05-05 04:57:40 +08:00
parent 9c3d3fdeed
commit 3f843f010a
4 changed files with 10 additions and 16 deletions

View File

@@ -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
@@ -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;
@@ -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);
@@ -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;
@@ -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;
@@ -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 ---*/

View File

@@ -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;