Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_wcms_ohana
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
WCMS
uw_wcms_ohana
Commits
57ae3050
Commit
57ae3050
authored
2 years ago
by
Martin Leblanc
Committed by
Kevin Paxman
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5898: css for card header section spacing and default spacing without new classes
parent
c7acb352
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!70
ISTWCMS-5898: section-spacing-seperator and column-seperator css
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/patterns/03-layouts/layout/_layout.scss
+9
-1
9 additions, 1 deletion
src/patterns/03-layouts/layout/_layout.scss
src/patterns/04-components/card/card--node/_card--node.scss
+9
-10
9 additions, 10 deletions
src/patterns/04-components/card/card--node/_card--node.scss
with
18 additions
and
11 deletions
src/patterns/03-layouts/layout/_layout.scss
+
9
−
1
View file @
57ae3050
...
...
@@ -654,11 +654,19 @@
}
}
}
// Set default spacing to match old block margin if no classes
.layout.layout--uw-1-col
{
&
:not
(
.uw-section-spacing--default
,
.uw-section-spacing--none
,
.uw-section-spacing--75
,
.uw-section-spacing--50
,
.uw-section-spacing--25
)
{
margin-bottom
:
var
(
--
section-margin
);
&
:last-of-type
{
margin-bottom
:
0
;
}
}
}
.uw-section-has-full-width
.layout.layout--uw-1-col
{
overflow
:
hidden
;
}
.uw-full-width.uw-section-spacing--none.uw-section-separator--bottom
:has
(
img
)
{
padding-bottom
:
0
;
}
...
...
This diff is collapsed.
Click to expand it.
src/patterns/04-components/card/card--node/_card--node.scss
+
9
−
10
View file @
57ae3050
...
...
@@ -10,11 +10,17 @@
>
.card__header
,
>
.card__footer
{
margin
:
0
auto
;
max-width
:
var
(
--
layout-max-width
);
@include
uw-contained-width
(
var
(
--
layout-max-width-narrow
));
@media
(
min-width
:
$screen-xl
)
{
@include
uw-contained-width
(
var
(
--
layout-max-width
));
}
}
.uw-node__with-media
&
{
>
.card__header
{
padding
:
0
;
&
.uw-node__with-media
{
padding
:
var
(
--
size-2
)
0
;
}
}
}
.uw-node__without-media
&
{
...
...
@@ -58,13 +64,9 @@
.uw-node__with-media
&
{
.card__header
{
&
.uw-node__with-media
{
padding
:
var
(
--
size-2
);
@media
(
min-width
:
$screen-xl
)
{
padding
:
var
(
--
size-2
)
0
;
}
padding
:
var
(
--
size-2
)
0
;
}
}
.card__featured-image
{
align-items
:
center
;
background-position
:
center
center
;
...
...
@@ -246,10 +248,7 @@
padding
:
var
(
--
size-2
)
0
;
}
&
.uw-node__with-media
{
padding
:
var
(
--
size-2
);
@media
(
min-width
:
$screen-xl
)
{
padding
:
var
(
--
size-2
)
0
;
}
padding
:
var
(
--
size-2
)
0
;
}
}
.card__footer
,
...
...
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