Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
section_library
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
section_library
Merge requests
!31
3195007: allow filter by type and improve compatibility with layout builder iframe modal
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
3195007: allow filter by type and improve compatibility with layout builder iframe modal
issue/section_library-3195007:3195007-allow-filter-by-type
into
1.2.x
Overview
0
Commits
15
Pipelines
12
Changes
11
Merged
Jess Straatmann
requested to merge
issue/section_library-3195007:3195007-allow-filter-by-type
into
1.2.x
6 months ago
Overview
0
Commits
15
Pipelines
12
Changes
11
Expand
Checkpoints
File an issue
Addition/Change/Update/Fix
Merge request
Testing to ensure no regression
Automated unit testing coverage
Automated functional testing coverage
UX/UI designer responsibilities
Readability
Accessibility
Performance
Security
Documentation
Code review by maintainers
Full testing and approval
Credit contributors
Review with the product owner
Closes
#3195007
Edited
4 months ago
by
Jess Straatmann
0
0
Merge request reports
Compare
1.2.x
version 12
4b56c011
4 months ago
version 11
f267e5e4
4 months ago
version 10
a31d2605
4 months ago
version 9
13e0deb7
4 months ago
version 8
e7f63c79
4 months ago
version 7
34c750e3
4 months ago
version 6
84ac5cb6
4 months ago
version 5
b57bc45c
4 months ago
version 4
4d697de3
4 months ago
version 3
1064e357
4 months ago
version 2
1d0994ee
5 months ago
version 1
3ad9d3b4
6 months ago
1.2.x (base)
and
latest version
latest version
e049a122
15 commits,
4 months ago
version 12
4b56c011
15 commits,
4 months ago
version 11
f267e5e4
14 commits,
4 months ago
version 10
a31d2605
13 commits,
4 months ago
version 9
13e0deb7
12 commits,
4 months ago
version 8
e7f63c79
11 commits,
4 months ago
version 7
34c750e3
10 commits,
4 months ago
version 6
84ac5cb6
9 commits,
4 months ago
version 5
b57bc45c
7 commits,
4 months ago
version 4
4d697de3
4 commits,
4 months ago
version 3
1064e357
2 commits,
4 months ago
version 2
1d0994ee
1 commit,
5 months ago
version 1
3ad9d3b4
1 commit,
6 months ago
11 files
+
260
−
4513
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
11
Search (e.g. *.vue) (Ctrl+P)
css/section-library.css
+
81
−
53
Options
@@ -3,66 +3,99 @@
}
.section-library-links
{
padding
:
0
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.section-library-links
li
{
display
:
flex
;
padding
:
0
0.5rem
1rem
0.5rem
;
width
:
50%
;
justify-content
:
space-between
;
}
.section-library-links
li
a
{
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
padding
:
1.5rem
;
width
:
100%
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
center
;
align-items
:
flex-end
;
}
.section-library-links
li
a
:hover
{
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
text-decoration
:
none
;
}
margin
:
0
-10px
;
padding
:
0
;
.section-library-links
li
a
img
{
width
:
100%
;
&
li
{
display
:
flex
;
justify-content
:
space-between
;
width
:
calc
(
33.3333%
-
2rem
);
padding
:
0
0.5rem
1rem
0.5rem
;
}
&
.js-layout-builder-section-library-link
{
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
flex-end
;
justify-content
:
center
;
width
:
100%
;
padding
:
1.5rem
;
transition
:
all
0.3s
ease-in-out
;
border-radius
:
8px
;
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
&:hover
{
text-decoration
:
none
;
background-color
:
rgba
(
0
,
0
,
0
,
0.5
);
}
}
}
.section-library-link-img
{
max-width
:
100%
;
margin
:
0
auto
;
display
:
block
;
width
:
100%
;
img
{
display
:
block
;
max-width
:
100%
;
max-height
:
150px
;
margin
:
0
auto
;
}
}
.section-library-link-label
{
padding-top
:
1rem
;
display
:
block
;
padding-top
:
1rem
;
text-align
:
center
;
}
/* If #layout_builder_modal enabled */
#layout-builder-modal
.section-library-filter.form-search
{
box-sizing
:
border-box
;
.section-library-filters
{
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
;
margin-right
:
-15px
;
margin-left
:
-15px
;
&
>
div
{
flex-basis
:
0
;
flex-grow
:
1
;
min-width
:
0
;
max-width
:
100%
;
padding-right
:
15px
;
padding-left
:
15px
;
&:last-child
{
flex-grow
:
initial
;
flex-shrink
:
1
;
width
:
30%
;
min-width
:
170px
;
}
}
}
#layout-builder-modal
.section-library-links
li
{
width
:
33.3333333333%
;
/* If #layout_builder_modal enabled */
#layout-builder-modal
{
>
.section-library-filter.form-search
{
box-sizing
:
border-box
;
}
>
.section-library-filters
>
div
:last-child
{
min-width
:
calc
(
33.3333%
+
5px
);
}
>
.section-library-links
li
{
width
:
33.33333%
;
}
}
/* links */
.layout-builder__link--add-section-to-library
{
padding-left
:
1.6em
;
/* LTR */
padding-left
:
1.6em
;
/* LTR */
color
:
#686868
;
border-bottom
:
none
;
background
:
url(../images/icons/787878/save.svg)
transparent
center
left
/
1.5em
no-repeat
;
/* LTR */
background
:
url(../images/icons/787878/save.svg)
transparent
center
left
/
1.5em
no-repeat
;
/* LTR */
}
[
dir
=
"rtl"
]
.layout-builder__link--add-section-to-library
{
@@ -72,12 +105,10 @@
}
.layout-builder__link--import-from-library
{
padding-left
:
1.3em
;
/* LTR */
padding-left
:
1.3em
;
/* LTR */
color
:
#686868
;
border-bottom
:
none
;
background
:
url(../images/icons/787878/import.svg)
transparent
center
left
/
1em
no-repeat
;
/* LTR */
background
:
url(../images/icons/787878/import.svg)
transparent
center
left
/
1em
no-repeat
;
/* LTR */
}
[
dir
=
"rtl"
]
.layout-builder__link--import-from-library
{
@@ -89,23 +120,20 @@
.layout-builder__link--add-section-to-library
,
.layout-builder__link--import-from-library
{
margin-left
:
1rem
;
}
.layout-builder__link--add-section-to-library
:hover
,
.layout-builder__link--add-section-to-library
:active
,
.layout-builder__link--add-section-to-library
:focus
,
.layout-builder__link--import-from-library
:hover
,
.layout-builder__link--import-from-library
:active
,
.layout-builder__link--import-from-library
:focus
{
color
:
#000
;
border-bottom-style
:
none
;
&:hover,
&:active,
&.focus
{
color
:
#000
;
border-bottom-style
:
none
;
}
}
.layout-builder__link--add-template-to-library
{
display
:
block
;
text-align
:
center
;
margin
:
1rem
0
;
padding
:
1rem
;
text-align
:
center
;
border
:
1px
solid
#eee
;
margin
:
1rem
0
;
background
:
#eee
;
}
Loading