Merge pull request #898 from sharelatex/cmg-portal-templates

Set fixed height for portal titles
This commit is contained in:
Jessica Lawshe 2018-09-20 11:15:38 -05:00 committed by GitHub
commit 46b14064a0
2 changed files with 31 additions and 44 deletions

View file

@ -27,66 +27,53 @@
margin-right: @margin-xs; margin-right: @margin-xs;
} }
.template-thumbnail { .templates-container {
column-count: 3;
column-gap: 1em;
}
.template-thumbnail {
display: inline-block;
margin: 0 0 1em;
width: 100%;
.thumbnail { .thumbnail {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
-webkit-box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);
height: 465px;
margin: 5% 0; margin: 5% 0;
&.thumbnail-tag {
height: 100px;
}
img {
width: 100%;
height: 100%;
}
}
a {
padding:0px; padding:0px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
h3 { h3 {
color:@link-color; color:@link-color;
margin: 10px 0px 10px 20px; margin: 10px 0px 10px 20px;
} }
display: flex; &.thumbnail-tag {
justify-content: center; height: 100px;
align-items: center; }
} }
.caption { .caption {
// Override ShareLatex template styles // Override ShareLatex template styles
background: none; background: none;
border: none; border: none;
text-align: center; text-align: center;
}
.description { .caption__description {
font-style: italic; font-style: italic;
padding: 5px 0; padding: 5px 0;
text-overflow: ellipsis; .text-overflow();
overflow: hidden;
white-space: nowrap;
}
} }
/* Media Queries */ /* Media Queries */
@media (max-width: @screen-md-min) { @media (max-width: @screen-md-min) {
.thumbnail { .thumbnail {
height: 400px;
width: 300px;
margin: 5% auto; margin: 5% auto;
} }
img {
width: 90%;
}
.caption .description { .caption .description {
padding: 5px 50px; padding: 5px 50px;
} }

View file

@ -6,14 +6,14 @@
margin-top: -@line-height-computed; //- adjusted for portal-name margin-top: -@line-height-computed; //- adjusted for portal-name
padding: @padding-lg 0 @padding-md; padding: @padding-lg 0 @padding-md;
text-align: center; text-align: center;
}
a { a {
color: @link-color; color: @link-color;
&:hover { &:hover {
background-color: transparent!important; background-color: transparent!important;
border: 0!important; border: 0!important;
color: @link-hover-color!important; color: @link-hover-color!important;
}
} }
} }