overleaf/services/web/frontend/stylesheets/app/templates-v2.less

163 lines
2.6 KiB
Text
Raw Normal View History

.gallery-item-title {
* {
vertical-align: middle;
}
margin-top: @line-height-computed; // match h1 header margin-top
margin-bottom: @margin-xl;
h1 {
display: inline;
margin: 0;
}
}
.gallery-official {
margin-left: @margin-sm;
&:extend(.label);
&:extend(.label-info);
cursor: default;
font-size: 14px;
padding: 3px 8px;
2018-08-24 10:23:12 -04:00
}
.field-title {
font-weight: bold;
2018-08-24 10:23:12 -04:00
}
.filters {
float: right;
margin-bottom: @margin-lg;
2018-08-24 10:23:12 -04:00
@media (max-width: @screen-md-min) {
float: none;
}
2018-08-24 10:23:12 -04:00
}
.cta-links {
.cta-link.btn {
margin: 0 @margin-sm @margin-sm 0;
}
}
.popular-tags {
.gallery-thumbnail {
margin: 0 0 1em 0 !important;
}
2018-08-24 10:23:12 -04:00
}
.tag-link {
margin: 0 @margin-xs @margin-sm 0;
max-width: 100%;
white-space: inherit;
}
.gallery-abstract {
word-break: break-word;
hyphens: auto;
a {
hyphens: none;
}
2018-08-24 10:23:12 -04:00
}
.gallery-thumbnail {
display: inline-block;
margin: 0 0 2em;
width: 100%;
.thumbnail {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin: 0 0 @margin-sm 0;
padding: 0px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
width: 100%;
h3 {
color: @link-color-alt;
margin: 10px 0px 10px 20px;
}
&.thumbnail-tag {
height: 100px;
}
}
.caption {
// Override ShareLatex template styles
background: none;
border: none;
text-align: center;
}
.caption__description {
font-style: italic;
padding: 0 0 5px 0;
.text-overflow();
}
.gallery-list-item-title {
display: flex;
align-items: center;
justify-content: center;
* {
flex-basis: content;
cursor: inherit;
}
}
.caption__title {
text-align: center;
.text-overflow();
}
a {
&:hover {
text-decoration: none; // disable underlining label
.caption__title {
text-decoration: underline;
}
}
}
}
2018-09-19 13:10:36 -04:00
.gallery-large-pdf-preview {
border: solid 1px @gray-lightest;
margin-top: @margin-lg;
img {
max-width: 100%;
}
}
2018-08-24 10:23:12 -04:00
/* Media Queries */
@media (max-width: @screen-xs-max) {
.gallery-container {
column-count: 2;
column-gap: 2em;
}
}
@media (min-width: @screen-sm-min) {
.gallery-container {
&.use-column {
column-count: 3;
column-gap: 3em;
}
&.use-percent {
margin: 0 -1.5em;
.gallery-thumbnail {
width: 33.3333333%;
padding: 0 1.5em;
}
}
}
2018-08-24 10:23:12 -04:00
}
@media (min-width: @screen-md-min) {
.gallery-large-pdf-preview {
margin-top: 0;
}
}
.section-tags {
margin-bottom: @margin-xl;
margin-top: @margin-md;
2018-10-11 07:09:42 -04:00
}