Style fixes
gitea/salix/1838-searchbar_refactor This commit looks good
Details
gitea/salix/1838-searchbar_refactor This commit looks good
Details
This commit is contained in:
parent
1c035ca045
commit
d8d6937093
|
@ -0,0 +1,30 @@
|
||||||
|
|
||||||
|
@keyframes nothing {}
|
||||||
|
@keyframes slideIn {
|
||||||
|
from {
|
||||||
|
transform: translate3d(-2em, 0, 0);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translate3d(0, 0, 0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes amplify {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: scale3d(0, 0, 0);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: scale3d(1, 1, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,3 +1,4 @@
|
||||||
|
import './animations.scss';
|
||||||
import './background.scss';
|
import './background.scss';
|
||||||
import './border.scss';
|
import './border.scss';
|
||||||
import './font-family.scss';
|
import './font-family.scss';
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
<vn-layout ng-if="$ctrl.showLayout"></vn-layout>
|
<vn-layout
|
||||||
<ui-view name="login"></ui-view>
|
ng-if="$ctrl.showLayout">
|
||||||
|
</vn-layout>
|
||||||
|
<ui-view
|
||||||
|
name="login"
|
||||||
|
ng-if="!$ctrl.showLayout">
|
||||||
|
</ui-view>
|
||||||
<vn-snackbar vn-id="snackbar"></vn-snackbar>
|
<vn-snackbar vn-id="snackbar"></vn-snackbar>
|
||||||
<vn-debug-info></vn-debug-info>
|
<vn-debug-info></vn-debug-info>
|
|
@ -7,15 +7,11 @@ vn-app {
|
||||||
ui-view {
|
ui-view {
|
||||||
display: block;
|
display: block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
height: inherit;
|
||||||
|
|
||||||
&.ng-enter {
|
&.ng-enter {
|
||||||
transition: all 200ms ease-out;
|
animation-name: nothing, slideIn;
|
||||||
transform: translate3d(-2em, 0, 0);
|
animation-duration: 400ms, 200ms;
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
&.ng-enter.ng-enter-active {
|
|
||||||
transform: translate3d(0, 0, 0);
|
|
||||||
opacity: 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,16 +87,24 @@ vn-layout {
|
||||||
padding-top: $topbar-height;
|
padding-top: $topbar-height;
|
||||||
}
|
}
|
||||||
ui-view {
|
ui-view {
|
||||||
height: inherit;
|
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
display: block;
|
display: block;
|
||||||
padding: $spacing-md;
|
padding: $spacing-md;
|
||||||
}
|
}
|
||||||
|
&.ng-enter {
|
||||||
|
vn-side-menu {
|
||||||
|
opacity: 0;
|
||||||
|
animation: fadeIn 200ms ease-out 200ms;
|
||||||
|
}
|
||||||
|
[fixed-bottom-right] {
|
||||||
|
opacity: 0;
|
||||||
|
animation: amplify 200ms ease-out 200ms;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@media screen and (max-width: $mobile-width) {
|
@media screen and (max-width: $mobile-width) {
|
||||||
& > vn-topbar {
|
& > vn-topbar {
|
||||||
& > .show-menu {
|
.show-menu {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default class SideMenu extends Component {
|
||||||
this.layout.rightMenu = null;
|
this.layout.rightMenu = null;
|
||||||
this.layout.element.classList.remove('right-menu');
|
this.layout.element.classList.remove('right-menu');
|
||||||
} else {
|
} else {
|
||||||
// this.layout.leftMenu = null;
|
this.layout.leftMenu = null;
|
||||||
this.layout.element.classList.remove('left-menu');
|
this.layout.element.classList.remove('left-menu');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue