Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_wcms_gesso
Commits
f4482042
Commit
f4482042
authored
Jan 31, 2022
by
Martin Leblanc
Committed by
Martin Leblanc
Jan 31, 2022
Browse files
ISTWCMS-5329: adjustments to the profile card
parent
5c0f1cd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
2 deletions
+42
-2
source/_patterns/04-components/card/card--teaser/_card--teaser.scss
...tterns/04-components/card/card--teaser/_card--teaser.scss
+30
-0
source/_patterns/04-components/card/card-elements/_header.twig
...e/_patterns/04-components/card/card-elements/_header.twig
+3
-1
source/_patterns/04-components/view/_view.scss
source/_patterns/04-components/view/_view.scss
+9
-1
No files found.
source/_patterns/04-components/card/card--teaser/_card--teaser.scss
View file @
f4482042
...
...
@@ -20,5 +20,35 @@
padding
:
0
;
}
}
&
--profile
{
.card
{
&
__image
{
margin
:
0
;
max-width
:
5rem
;
}
&
__header
{
display
:grid
;
grid-template-columns
:
auto
1fr
;
//grid-template-rows: minmax(3rem, auto);
.uw-image__profiles
{
grid-column
:
1
/
2
;
grid-row
:
1
/
3
;
margin-right
:
1rem
;
}
.card__position
{
grid-column
:
2
/
3
;
grid-row
:
2
/
3
;
}
.card__title
{
grid-column
:
2
/
3
;
grid-row
:
1
/
2
;
margin
:
0
;
}
}
&
__body
{
grid-column
:
1
/
3
;
}
}
}
}
source/_patterns/04-components/card/card-elements/_header.twig
View file @
f4482042
<div
class=
"card__header"
>
{%
if
bundle
==
'uw_ct_profile'
%}
<div
class=
"uw-image__profiles"
style=
"width: 150px; height: 180px;"
>
{%
if
image
%}
<div
class=
"uw-image__profiles"
>
{%
include
'@components/card/card-elements/_image.twig'
with
{
'image'
:
image
,
'bundle'
:
bundle
}
%}
</div>
{%
endif
%}
{%
endif
%}
{%
if
header.date
%}
...
...
source/_patterns/04-components/view/_view.scss
View file @
f4482042
...
...
@@ -295,7 +295,6 @@ $sidebar-width: 18.75rem;
.path-events
,
.view-uw-view-events
,
.path-taxonomy
,
.path-profiles
,
.path-opportunities
{
.view-content
{
@include
uw-flex-grid
();
...
...
@@ -308,6 +307,15 @@ $sidebar-width: 18.75rem;
}
}
}
.path-profiles
{
.view-content
{
@include
uw-flex-grid
();
padding
:
0
;
.views-row
{
@include
uw-flex-term-item
();
}
}
}
.path-contacts
{
.views-row
{
width
:
100%
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment