Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Villkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Team Elrant
Villkey
Commits
d2fc5a24
Commit
d2fc5a24
authored
2 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
refactor(client): use css modules
parent
e6d666e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/frontend/src/ui/deck.vue
+28
-18
28 additions, 18 deletions
packages/frontend/src/ui/deck.vue
packages/frontend/src/ui/universal.vue
+3
-1
3 additions, 1 deletion
packages/frontend/src/ui/universal.vue
with
31 additions
and
19 deletions
packages/frontend/src/ui/deck.vue
+
28
−
18
View file @
d2fc5a24
...
...
@@ -52,7 +52,12 @@
<button
:class=
"$style.postButton"
class=
"_button"
@
click=
"os.post()"
><i
:class=
"$style.navButtonIcon"
class=
"ti ti-pencil"
></i></button>
</div>
<Transition
:name=
"$store.state.animation ? 'menu-back' : ''"
>
<Transition
:enter-active-class=
"$store.state.animation ? $style.transition_menuDrawerBg_enterActive : ''"
:leave-active-class=
"$store.state.animation ? $style.transition_menuDrawerBg_leaveActive : ''"
:enter-from-class=
"$store.state.animation ? $style.transition_menuDrawerBg_enterFrom : ''"
:leave-to-class=
"$store.state.animation ? $style.transition_menuDrawerBg_leaveTo : ''"
>
<div
v-if=
"drawerMenuShowing"
:class=
"$style.menuBg"
...
...
@@ -62,8 +67,15 @@
></div>
</Transition>
<Transition
:name=
"$store.state.animation ? 'menu' : ''"
>
<XDrawerMenu
v-if=
"drawerMenuShowing"
class=
"menu"
/>
<Transition
:enter-active-class=
"$store.state.animation ? $style.transition_menuDrawer_enterActive : ''"
:leave-active-class=
"$store.state.animation ? $style.transition_menuDrawer_leaveActive : ''"
:enter-from-class=
"$store.state.animation ? $style.transition_menuDrawer_enterFrom : ''"
:leave-to-class=
"$store.state.animation ? $style.transition_menuDrawer_leaveTo : ''"
>
<div
v-if=
"drawerMenuShowing"
:class=
"$style.menu"
>
<XDrawerMenu/>
</div>
</Transition>
<XCommon/>
...
...
@@ -222,31 +234,29 @@ async function deleteProfile() {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.
menu-
enter
-a
ctive
,
.
menu-
leave
-a
ctive
{
<
style
lang=
"scss"
module
>
.
transition_menuDrawerBg_
enter
A
ctive
,
.
transition_menuDrawerBg_
leave
A
ctive
{
opacity
:
1
;
transform
:
translateX
(
0
);
transition
:
transform
300ms
cubic-bezier
(
0
.23
,
1
,
0
.32
,
1
)
,
opacity
300ms
cubic-bezier
(
0
.23
,
1
,
0
.32
,
1
);
transition
:
opacity
300ms
cubic-bezier
(
0
.23
,
1
,
0
.32
,
1
);
}
.
menu-
enter
-f
rom
,
.
menu-leave-active
{
.
transition_menuDrawerBg_
enter
F
rom
,
.
transition_menuDrawerBg_leaveTo
{
opacity
:
0
;
transform
:
translateX
(
-240px
);
}
.
menu-back-
enter
-a
ctive
,
.
menu-back-
leave
-a
ctive
{
.
transition_menuDrawer_
enter
A
ctive
,
.
transition_menuDrawer_
leave
A
ctive
{
opacity
:
1
;
transition
:
opacity
300ms
cubic-bezier
(
0
.23
,
1
,
0
.32
,
1
);
transform
:
translateX
(
0
);
transition
:
transform
300ms
cubic-bezier
(
0
.23
,
1
,
0
.32
,
1
)
,
opacity
300ms
cubic-bezier
(
0
.23
,
1
,
0
.32
,
1
);
}
.
menu-back-
enter
-f
rom
,
.
menu-back-leave-active
{
.
transition_menuDrawer_
enter
F
rom
,
.
transition_menuDrawer_leaveTo
{
opacity
:
0
;
transform
:
translateX
(
-240px
);
}
</
style
>
<
style
lang=
"scss"
module
>
.root
{
$nav-hide-threshold
:
650px
;
// TODO: どこかに集約したい
...
...
This diff is collapsed.
Click to expand it.
packages/frontend/src/ui/universal.vue
+
3
−
1
View file @
d2fc5a24
...
...
@@ -47,7 +47,9 @@
:enter-from-class=
"$store.state.animation ? $style.transition_menuDrawer_enterFrom : ''"
:leave-to-class=
"$store.state.animation ? $style.transition_menuDrawer_leaveTo : ''"
>
<XDrawerMenu
v-if=
"drawerMenuShowing"
:class=
"$style.menuDrawer"
/>
<div
v-if=
"drawerMenuShowing"
:class=
"$style.menuDrawer"
>
<XDrawerMenu/>
</div>
</Transition>
<Transition
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment