This commit is contained in:
Chrystal Griffiths 2018-08-24 15:23:12 +01:00
parent 6c7301fb09
commit f3c47320cf
3 changed files with 124 additions and 76 deletions

View file

@ -1,3 +1,4 @@
@import "app/sidebar-v2-dash-pane.less";
@import "app/front-chat-widget.less";
@import "app/ol-chat.less";
@import "app/templates-v2.less";

View file

@ -0,0 +1,113 @@
.template-title {
margin-bottom: @margin-xl;
}
.field-title {
font-weight: bold;
}
.filters {
float: right;
margin-bottom: @margin-lg;
@media (max-width: @screen-md-min) {
float: none;
}
}
.cta-links {
margin-top: @margin-lg;
.cta-link.btn {
margin: 0 @margin-sm;
}
}
.tag-link {
margin-right: @margin-xs;
}
.template-thumbnail {
.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;
h3 {
color:@link-color;
margin: 10px 0px 10px 20px;
}
display: flex;
justify-content: center;
align-items: center;
}
.caption {
// 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;
}
}
/* Media Queries */
@media (max-width: @screen-md-min) {
.thumbnail {
height: 400px;
width: 300px;
margin: 5% auto;
}
img {
width: 90%;
}
.caption .description {
padding: 5px 50px;
}
}
}
.section-preview {
margin-top: @margin-xl;
.abstract {
padding-right:10%;
padding-bottom: 10%;
@media (max-width: @screen-md-min) {
padding: 5%;
}
}
}
.section-tags {
margin-bottom: @margin-xl;
margin-top: @margin-xl;
}

View file

@ -1,25 +1,10 @@
.template-title {
margin-bottom: 40px;
.template-page-header {
padding-top: unit(@line-height-base,rem);
h1, h2 {
margin-top: 6px;
margin-right: @line-height-base * 5;
line-height: 1;
}
.field-title {
font-weight: bold;
}
.cta-links {
margin-top: 30px;
.cta-link {
display: inline;
}
.cta-link.btn {
margin: 0 10px;
}
}
.tag-link {
margin-right: 5px;
}
.template-thumbnail {
@ -27,12 +12,8 @@
.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;
img {
width: 100%;
height: 100%;
}
}
@ -42,38 +23,11 @@
color:@link-color;
margin: 10px 0px 10px 20px;
}
display: flex;
justify-content: center;
align-items: center;
}
.caption {
text-align:center;
.description {
font-style: italic;
padding: 5px 0;
}
}
/* Media Queries */
@media (max-width: @screen-md-min) {
.thumbnail {
height: 400px;
width: 300px;
margin: 5% auto;
}
img {
width: 90%;
}
.caption .description {
padding: 5px 50px;
}
background: lighten(@gray-lightest, 3%);
border-top: 1px solid #ddd;
}
}
@ -82,26 +36,6 @@
margin-top: 0px;
}
.section-preview {
margin-top: 40px;
.abstract {
padding: 0 10% 10% 0;
@media (max-width: @screen-md-min) {
padding: 5%;
}
}
}
.section-tags {
margin: 40px 0;
}
.section-find-more {
padding-left: 5%;
}
.download-buttons, .social_buttons {
padding-top: 20px;
}