Skip to content

Commit

Permalink
refactor(less variables): change publication card height per viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sourtzis committed Mar 10, 2022
1 parent e1a5543 commit d7a5256
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
19 changes: 14 additions & 5 deletions theme/themes/eea/extras/publicationCard.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

.eea.publication.card {
color: @publicationCardtextColor;
//position: relative;
height: @publicationCardHeight;
margin: @publicationCardMargin;
height: @publicationCardMobileHeight;
background-color: @publicationCardBackgroundColor;
display: flex;
flex-direction: column;
Expand All @@ -34,8 +34,6 @@
background-color: @publicationCardDescriptionColor;
height: @cardDescriptionHeight;
padding: @cardDescriptionPadding;
//position: absolute;
//bottom: 0;
width: @cardDescriptionWidth;
max-height: @cardDescriptionMaxHeight;

Expand All @@ -51,9 +49,20 @@
}
}

@media only screen and (min-width: @tabletBreakpoint) {
.eea.publication.card {
height: @publicationCardTabletHeight;

.description {
height: @computerCardDescriptionHeight;
}
}
}

@media only screen and (min-width: @computerBreakpoint) {
.eea.publication.card {
margin: @publicationCardMargin;

height: @publicationCardComputerHeight;

.description {
height: @computerCardDescriptionHeight;
Expand Down
4 changes: 3 additions & 1 deletion theme/themes/eea/extras/publicationCard.variables
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

@publicationCardtextColor: @white;
@publicationCardMargin: 10px 0;
@publicationCardHeight: 268px;
@publicationCardMobileHeight: 286px;
@publicationCardTabletHeight: 352px;
@publicationCardComputerHeight: 268px;

/* Colors */
@publicationCardBackgroundColor: #BCBEC0;
Expand Down

0 comments on commit d7a5256

Please sign in to comment.