overleaf/services/web/public/stylesheets/app/cms-page.less

154 lines
2.8 KiB
Text
Raw Normal View History

2018-05-21 18:21:58 -04:00
/*
v2
CMS Generated Pages,
including About and Blog
*/
.cms-page {
2018-09-11 08:46:38 -04:00
img {
height: auto;
max-width: 100%;
}
2018-06-21 18:05:14 -04:00
.btn-description {
2018-05-21 18:21:58 -04:00
margin-right: @margin-sm;
}
.tab-content {
float: left;
width: 100%;
}
/*
When on preview mode
*/
.cms-preview {
background-color: @blue;
2018-06-21 18:05:14 -04:00
color: white;
2018-05-21 18:21:58 -04:00
font-weight: bold;
height: @navbar-padding-vertical;
left: 0;
line-height: @navbar-padding-vertical;
opacity: 0.8;
position: fixed;
text-align: center;
top: 0;
width: 100%;
z-index: 1;
&:after {
content: 'Preview';
width: 100%;
top: 0;
left: 0;
}
}
/*
All content from CMS is in .row-spaced.
Margin below is to fix extra whitespace for first rows
*/
2018-09-21 18:09:08 -04:00
.container > .row:nth-child(2), .content-container > .row:first-child {
//- .container first child is page header, don't correct margin
2018-05-21 18:21:58 -04:00
margin-top: 0;
}
.tab-pane {
.row:first-child {
margin-top: 0;
}
}
/*
quotes
*/
blockquote {
/*
type.less sets <p> inline, so that quotation mark is inline
but sometimes we have multiple <p>,
so hide quotation mark from type.less and add one here
*/
&:before {
/* hide quotation from type.less */
display: none;
}
p {
display: block;
}
p:first-child {
/* below copied from type.less */
&:before {
content: open-quote;
font-size: @blockquote-font-size * 3;
color: @blockquote-border-color;
margin-right: 0.25em;
vertical-align: -0.4em;
line-height: 0.1em;
}
}
}
.quote-full-width {
img {
margin-right: @margin-sm;
margin-bottom: @margin-sm;
}
}
2018-09-14 11:48:56 -04:00
/*
universities page
*/
#universities-container {
padding: @padding-md;
width: 100%;
.row {
border-bottom: 1px solid @gray-lightest;
div {
padding: @padding-md;
vertical-align: middle;
}
}
.row:first-child {
// parent container contains padding
div {
padding-top: 0;
}
}
.row:last-child {
border: 0;
// parent container contains padding
div {
border: 0;
padding-bottom: 0;
}
}
p {
margin: 0 auto;
width: 100%;
}
// Logos
.uni-logo {
margin: 0 auto;
max-height: 55px;
min-width: 55px;
}
.university-claim-btn {
text-align: center;
}
@media only screen and (min-width: @screen-xs-min) {
display: table;
table-layout: fixed;
.row {
display: table-row;
div {
border-bottom: 1px solid @gray-lightest;
display: table-cell;
float: none;
}
}
}
}
2018-09-14 11:48:56 -04:00
/*
videos
*/
video {
height: auto;
max-width: 100%;
}
2018-05-21 18:21:58 -04:00
}