mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Remove the-transition
This commit is contained in:
parent
c7ea1abe64
commit
d905a28d6a
@ -2,6 +2,7 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
margin: 20px - $sidebar-offset -10px -20px;
|
margin: 20px - $sidebar-offset -10px -20px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
transition: opacity $transition-ease;
|
||||||
|
|
||||||
if (!hexo-config('back2top.scrollpercent')) {
|
if (!hexo-config('back2top.scrollpercent')) {
|
||||||
span {
|
span {
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
opacity: $b2t-opacity;
|
opacity: $b2t-opacity;
|
||||||
padding: 0 6px;
|
padding: 0 6px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
transition-property: bottom;
|
transition: bottom $transition-ease;
|
||||||
z-index: $zindex-3;
|
z-index: $zindex-3;
|
||||||
|
|
||||||
if (hexo-config('back2top.scrollpercent')) {
|
if (hexo-config('back2top.scrollpercent')) {
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
if (hexo-config('back2top.enable')) {
|
if (hexo-config('back2top.enable')) {
|
||||||
.back-to-top {
|
.back-to-top {
|
||||||
font-size: $b2t-font-size;
|
font-size: $b2t-font-size;
|
||||||
the-transition();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@import (hexo-config('back2top.sidebar') ? 'back-to-top-sidebar' : 'back-to-top');
|
@import (hexo-config('back2top.sidebar') ? 'back-to-top-sidebar' : 'back-to-top');
|
||||||
|
|||||||
@ -61,8 +61,7 @@
|
|||||||
margin: 30px 0;
|
margin: 30px 0;
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition-property: border;
|
transition: border $transition-ease;
|
||||||
the-transition();
|
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
background: $grey;
|
background: $grey;
|
||||||
@ -74,9 +73,8 @@
|
|||||||
margin-left: -4px;
|
margin-left: -4px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: $font-size-smallest;
|
top: $font-size-smallest;
|
||||||
transition-property: background;
|
transition: background $transition-ease;
|
||||||
width: 6px;
|
width: 6px;
|
||||||
the-transition();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
float: right;
|
float: right;
|
||||||
font-size: $font-size-larger;
|
font-size: $font-size-larger;
|
||||||
margin-left: -1.2em;
|
margin-left: -1.2em;
|
||||||
the-transition-ease-in();
|
transition: color $transition-ease-in;
|
||||||
|
|
||||||
+mobile-small() {
|
+mobile-small() {
|
||||||
margin-left: initial;
|
margin-left: initial;
|
||||||
@ -45,9 +45,9 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
transform: scaleX(0);
|
transform: scaleX(0);
|
||||||
|
transition: transform $transition-ease;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
the-transition();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover::before {
|
&:hover::before {
|
||||||
|
|||||||
@ -13,8 +13,8 @@
|
|||||||
line-height: 2;
|
line-height: 2;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
|
transition: all $transition-ease;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
the-transition();
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $sidebar-highlight;
|
background: $sidebar-highlight;
|
||||||
|
|||||||
@ -111,7 +111,6 @@ if (hexo-config('algolia_search.enable')) {
|
|||||||
.algolia-hit-item-link {
|
.algolia-hit-item-link {
|
||||||
border-bottom: 1px dashed $grey-light;
|
border-bottom: 1px dashed $grey-light;
|
||||||
display: block;
|
display: block;
|
||||||
the-transition();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.algolia-pagination {
|
.algolia-pagination {
|
||||||
|
|||||||
@ -1,10 +1,9 @@
|
|||||||
.book-mark-link {
|
.book-mark-link {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
display: inline-block;
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: $b2t-position-right;
|
right: $b2t-position-right;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
transition: .3s;
|
transition: top .3s;
|
||||||
|
|
||||||
+tablet-mobile() {
|
+tablet-mobile() {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@ -24,8 +24,7 @@
|
|||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
display: block;
|
display: block;
|
||||||
font-size: $font-size-smaller;
|
font-size: $font-size-smaller;
|
||||||
transition-property: border-color;
|
transition: border-color $transition-ease;
|
||||||
the-transition();
|
|
||||||
|
|
||||||
&:hover, &.menu-item-active {
|
&:hover, &.menu-item-active {
|
||||||
background: var(--menu-item-bg-color);
|
background: var(--menu-item-bg-color);
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
if (hexo-config('social_icons.transition')) {
|
if (hexo-config('social_icons.transition')) {
|
||||||
the-transition();
|
transition: all $transition-ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
|
|||||||
@ -12,8 +12,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
transition-property: all;
|
transition: all $transition-ease;
|
||||||
the-transition();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ body {
|
|||||||
font-family: $font-family-base;
|
font-family: $font-family-base;
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
line-height: $line-height-base;
|
line-height: $line-height-base;
|
||||||
the-transition();
|
transition: all $transition-ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
|||||||
@ -8,8 +8,7 @@
|
|||||||
line-height: 2;
|
line-height: 2;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition-property: background-color;
|
transition: background-color $transition-ease;
|
||||||
the-transition();
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--btn-default-hover-bg);
|
background: var(--btn-default-hover-bg);
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
the-transition();
|
transition: opacity $transition-ease;
|
||||||
|
|
||||||
if (hexo-config('codeblock.copy_button.style') == 'flat') {
|
if (hexo-config('codeblock.copy_button.style') == 'flat') {
|
||||||
background: white;
|
background: white;
|
||||||
|
|||||||
@ -17,8 +17,7 @@ $page-number-basic {
|
|||||||
@extend $page-number-basic;
|
@extend $page-number-basic;
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
border-top: 1px solid $pagination-link-border;
|
border-top: 1px solid $pagination-link-border;
|
||||||
transition-property: border-color;
|
transition: border-color $transition-ease;
|
||||||
the-transition();
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-top-color: $pagination-link-hover-border;
|
border-top-color: $pagination-link-hover-border;
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hexo-config('tabs.transition.tabs')) {
|
if (hexo-config('tabs.transition.tabs')) {
|
||||||
the-transition-ease-out();
|
transition: all $transition-ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@ -55,7 +55,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hexo-config('tabs.transition.labels')) {
|
if (hexo-config('tabs.transition.labels')) {
|
||||||
the-transition-ease-out();
|
transition: all $transition-ease-out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,3 @@
|
|||||||
the-transition() {
|
|
||||||
transition-delay: 0s;
|
|
||||||
transition-duration: .2s;
|
|
||||||
transition-timing-function: ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
the-transition-ease-in() {
|
|
||||||
transition-delay: 0s;
|
|
||||||
transition-duration: .2s;
|
|
||||||
transition-timing-function: ease-in;
|
|
||||||
}
|
|
||||||
|
|
||||||
the-transition-ease-out() {
|
|
||||||
transition-delay: 0s;
|
|
||||||
transition-duration: .2s;
|
|
||||||
transition-timing-function: ease-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
mobile-smallest() {
|
mobile-smallest() {
|
||||||
@media (max-width: 413px) {
|
@media (max-width: 413px) {
|
||||||
{block};
|
{block};
|
||||||
|
|||||||
@ -44,7 +44,7 @@ if (hexo-config('sidebar.position') == 'right') {
|
|||||||
.sidebar {
|
.sidebar {
|
||||||
width: $sidebar-desktop;
|
width: $sidebar-desktop;
|
||||||
z-index: $zindex-2;
|
z-index: $zindex-2;
|
||||||
the-transition-ease-out();
|
transition: all $transition-ease-out;
|
||||||
|
|
||||||
a, span.exturl {
|
a, span.exturl {
|
||||||
border-bottom-color: $black-light;
|
border-bottom-color: $black-light;
|
||||||
|
|||||||
@ -3,8 +3,7 @@
|
|||||||
// ==================================================
|
// ==================================================
|
||||||
|
|
||||||
|
|
||||||
// Colors
|
// Color system
|
||||||
// colors for use across theme.
|
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
$whitesmoke = #f5f5f5;
|
$whitesmoke = #f5f5f5;
|
||||||
$gainsboro = #eee;
|
$gainsboro = #eee;
|
||||||
@ -23,6 +22,13 @@ $blue-deep = #262a30;
|
|||||||
$orange = #fc6423;
|
$orange = #fc6423;
|
||||||
|
|
||||||
|
|
||||||
|
// Transition
|
||||||
|
// --------------------------------------------------
|
||||||
|
$transition-ease = .2s ease-in-out;
|
||||||
|
$transition-ease-in = .2s ease-in;
|
||||||
|
$transition-ease-out = .2s ease-out;
|
||||||
|
|
||||||
|
|
||||||
// Scaffolding
|
// Scaffolding
|
||||||
// Settings for some of the most global styles.
|
// Settings for some of the most global styles.
|
||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user