mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 17:43:40 +00:00
Merge pull request #898 from sharelatex/cmg-portal-templates
Set fixed height for portal titles
This commit is contained in:
commit
46b14064a0
2 changed files with 31 additions and 44 deletions
|
@ -27,66 +27,53 @@
|
|||
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 {
|
||||
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;
|
||||
|
||||
&.thumbnail-tag {
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
padding:0px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
|
||||
h3 {
|
||||
color:@link-color;
|
||||
margin: 10px 0px 10px 20px;
|
||||
}
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
&.thumbnail-tag {
|
||||
height: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
.caption {
|
||||
// Override ShareLatex template styles
|
||||
background: none;
|
||||
border: none;
|
||||
|
||||
// Override ShareLatex template styles
|
||||
background: none;
|
||||
border: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.description {
|
||||
font-style: italic;
|
||||
padding: 5px 0;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.caption__description {
|
||||
font-style: italic;
|
||||
padding: 5px 0;
|
||||
.text-overflow();
|
||||
}
|
||||
|
||||
/* Media Queries */
|
||||
@media (max-width: @screen-md-min) {
|
||||
.thumbnail {
|
||||
height: 400px;
|
||||
width: 300px;
|
||||
|
||||
margin: 5% auto;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.caption .description {
|
||||
padding: 5px 50px;
|
||||
}
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
margin-top: -@line-height-computed; //- adjusted for portal-name
|
||||
padding: @padding-lg 0 @padding-md;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: @link-color;
|
||||
&:hover {
|
||||
background-color: transparent!important;
|
||||
border: 0!important;
|
||||
color: @link-hover-color!important;
|
||||
a {
|
||||
color: @link-color;
|
||||
&:hover {
|
||||
background-color: transparent!important;
|
||||
border: 0!important;
|
||||
color: @link-hover-color!important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue