Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
layout_paragraphs
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
layout_paragraphs
Commits
8ed4f1b4
Commit
8ed4f1b4
authored
4 weeks ago
by
Justin Toupin
Browse files
Options
Downloads
Patches
Plain Diff
Keyboard navigation. Custom events instead of jQuery.
parent
1de01fab
No related branches found
No related tags found
No related merge requests found
Pipeline
#430119
failed
4 weeks ago
Stage: build
Stage: validate
Stage: test
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
css/builder.css
+12
-13
12 additions, 13 deletions
css/builder.css
js/builder.js
+374
-385
374 additions, 385 deletions
js/builder.js
layout_paragraphs.module
+0
-14
0 additions, 14 deletions
layout_paragraphs.module
with
386 additions
and
412 deletions
css/builder.css
+
12
−
13
View file @
8ed4f1b4
...
...
@@ -63,22 +63,22 @@
cursor
:
default
;
}
}
.js-lpb-component
[
data-
focus
=
"true"
]
{
.js-lpb-component
[
data-
active
=
"true"
]
{
outline
:
var
(
--lp-focus-outline-width
)
solid
var
(
--lp-focus-outline-color
);
&:hover
{
cursor
:
grab
;
}
}
.js-lpb-component
[
data-
focus
=
"true"
]
.js-lpb-region
{
.js-lpb-component
[
data-
active
=
"true"
]
.js-lpb-region
{
outline
:
1px
dotted
blue
;
}
.js-lpb-component
[
data-
focus
=
"true"
]
.js-lpb-component
:not
([
data-
focus
=
"true"
])
.js-lpb-region
{
.js-lpb-component
[
data-
active
=
"true"
]
.js-lpb-component
:not
([
data-
active
=
"true"
])
.js-lpb-region
{
outline
:
none
;
}
.lp-builder.is-dragging
.js-lpb-region
,
.lp-builder.is-navigating
.js-lpb-region
,
.lp-builder.is-dragging
.js-lpb-component
,
.lp-builder.is-navigating
.js-lpb-component
:not
([
data-
focus
=
"true"
])
{
.lp-builder.is-navigating
.js-lpb-component
:not
([
data-
active
=
"true"
])
{
outline
:
1px
dotted
blue
;
}
...
...
@@ -86,20 +86,19 @@
.js-lpb-ui
{
transition
:
opacity
.25s
linear
;
}
.js-lpb-component
:not
([
data-focus
=
"true"
])
.js-lpb-ui
,
.js-lpb-component
[
data-focus
=
"true"
]
.js-lpb-component
:not
([
data-focus
=
"true"
])
.js-lpb-ui
{
visibility
:
hidden
;
}
.js-lpb-component
[
data-focus
=
"true"
]
:not
(
.is-dragging
)
.js-lpb-ui
{
visibility
:
visible
;
.js-lpb-component
:not
([
data-active
=
"true"
])
.js-lpb-ui
,
.js-lpb-component
[
data-active
=
"true"
]
.js-lpb-component
:not
([
data-active
=
"true"
])
.lpb-controls
{
opacity
:
0
;
}
.js-lpb-component
[
data-
focus
=
"true"
]
:not
(
.is-dragging
)
.lpb-controls
{
.js-lpb-component
[
data-
active
=
"true"
]
:not
(
.is-dragging
)
.lpb-controls
{
opacity
:
1
;
}
.js-lpb-component
[
data-focus
=
"true"
]
:not
(
.is-dragging
)
:hover
>
.js-lpb-ui
{
.js-lpb-component
[
data-active
=
"true"
]
:not
(
.is-dragging
)
:hover
>
.lpb-btn--add
,
.js-lpb-component
[
data-active
=
"true"
]
:not
(
.is-dragging
)
>
.lpb-btn--add
:focus
{
opacity
:
1
;
}
.js-lpb-component
[
data-focus
=
"true"
]
.js-lpb-region
:hover
>
.js-lpb-ui
{
.js-lpb-component
[
data-active
=
"true"
]
.js-lpb-region
:hover
>
.lpb-btn--add
,
.js-lpb-component
[
data-active
=
"true"
]
.js-lpb-region
>
.lpb-btn--add
:focus
{
opacity
:
1
;
}
...
...
This diff is collapsed.
Click to expand it.
js/builder.js
+
374
−
385
View file @
8ed4f1b4
This diff is collapsed.
Click to expand it.
layout_paragraphs.module
+
0
−
14
View file @
8ed4f1b4
...
...
@@ -150,20 +150,6 @@ function layout_paragraphs_preprocess_layout_paragraphs_builder_controls(&$varia
$id
=
Html
::
getUniqueId
(
'lpb-controls'
);
$variables
[
'controls'
]
+=
[
'drag_handle'
=>
[
'#type'
=>
'link'
,
'#title'
=>
t
(
'Drag'
),
'#url'
=>
Url
::
fromUri
(
'internal:#move'
),
'#attributes'
=>
[
'class'
=>
[
'lpb-drag'
,
'lpb-tooltip--hover'
,
'lpb-tooltip--focus'
,
],
'aria-describedby'
=>
$id
.
'--tip'
,
],
'#weight'
=>
10
,
],
'nav_tooltip'
=>
[
'#type'
=>
'html_tag'
,
'#tag'
=>
'span'
,
...
...
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