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

429 lines
7.3 KiB
Text
Raw Normal View History

2018-05-21 18:21:58 -04:00
/*
v2
CMS Generated Pages,
including About and Blog
*/
.cms-page {
&.page-style {
/*
Links and Buttons
*/
a {
color: @link-color;
&:hover {
color: @link-hover-color;
}
}
// correct color property set on <a> above:
.reset-btns;
.alert {
.alert;
}
.alert-info {
.btn-info {
.btn-alert-info;
}
}
}
padding-bottom: 0;
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;
}
/*
Tabs
*/
2018-05-21 18:21:58 -04:00
.tab-content {
padding-left: 0;
padding-right: 0;
2018-05-21 18:21:58 -04:00
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;
}
}
.tab-pane {
.row:first-child {
margin-top: 0;
}
}
/*
quotes
*/
blockquote {
margin: 0;
position: relative;
2018-05-21 18:21:58 -04:00
/*
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;
}
}
.quote-picture-bottom {
border: none;
color: @content-primary;
.h1 {
margin: 0 0 48px 0;
}
p:first-child {
&:before {
color: inherit;
font-size: inherit;
margin-right: 0;
vertical-align: 0;
line-height: inherit;
position: absolute;
top: (@line-height-computed / 2); // match quote padding
left: 3px;
}
&:after {
content: close-quote;
}
}
img {
height: 64px;
width: 64px;
margin-right: 16px;
}
.quote-by-position {
color: @content-secondary;
}
.quote-picture-and-person {
display: flex;
}
}
2018-09-14 11:48:56 -04:00
/*
Tables
*/
.table-styled {
overflow: hidden;
overflow-x: auto;
table {
background: white;
max-width: none;
th,
td {
border: 1px solid @gray-lighter;
padding: @padding-sm;
text-align: center;
word-break: normal;
}
}
}
.table-styled,
.features-table {
.fa-check-square,
.fa-check {
color: @ol-green;
}
}
.features-table {
max-width: none;
th,
td {
border: 1px solid @gray-lighter;
hyphens: auto;
padding: @padding-sm;
text-align: center;
}
th,
td {
width: 20%;
}
.btn {
max-width: 100%;
white-space: pre-wrap;
word-wrap: break-word;
}
&.left-align-first-col {
td,
th {
text-align: left;
}
td + td,
th + th {
text-align: center;
}
}
.hidden-row-above-xs {
display: none;
}
@media screen and (max-width: @screen-xs-max) {
tbody,
thead {
display: block;
}
tr {
display: flex;
flex-flow: row wrap;
justify-content: space-around;
}
td,
th {
display: block;
width: 25%;
}
tr:first-child {
th {
width: 50%;
}
th:first-child {
width: 100%;
}
}
td:first-child {
text-align: center;
width: 100%;
}
.hidden-row-xs {
display: none;
}
.hidden-row-above-xs {
display: flex;
}
.table-header {
text-align: center;
}
}
}
/*
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%;
}
}
.icon-with-content {
display: flex;
h2,
h3,
h4 {
margin-top: 15px;
}
.icon-container {
background-color: @green-10;
padding: 7.5px;
height: 56px;
width: 56px;
border-radius: 50%;
margin-right: 24px;
.icon-inner-container {
align-items: center;
border: @green-30 3.5px solid;
border-radius: 50%;
display: flex;
justify-content: center;
height: 42px;
width: 42px;
}
i {
color: @green;
font-size: 21px;
}
}
}
.svg-arrow-icon {
position: relative;
left: 4px;
bottom: 1px;
}
.vertically-center-col {
// remove margin to better vertically align
// some elements need to be nested within a container, and others are directly within .no-card/.card
.card:first-child,
.no-card:first-child {
.cms-element-container {
> *:first-child {
margin-top: 0;
}
}
> *:first-child:not(.cms-element-container) {
margin-top: 0;
}
}
.card:last-child,
.no-card:last-child {
.cms-element-container {
> *:last-child {
margin-bottom: 0;
}
}
> *:last-child:not(.cms-element-container) {
margin-bottom: 0;
}
}
@media (min-width: @screen-sm-min) {
display: flex;
div[class*='col-'] {
align-self: center;
}
}
}
.reverse-col-order-mobile {
@media (max-width: @screen-sm-min) {
display: flex;
flex-flow: column;
flex-direction: column-reverse;
}
}
.row-within-card {
.no-card {
> :first-child {
margin-top: 0;
}
> :last-child {
margin-bottom: 0;
}
}
}
@media (max-width: @screen-sm-min) {
.col-xs-padding-sm {
.col-xs-12:not(:first-child) {
padding-top: @padding-sm;
}
}
.col-xs-padding-md {
.col-xs-12:not(:first-child) {
padding-top: @padding-md;
}
}
.col-xs-padding-lg {
.col-xs-12:not(:first-child) {
padding-top: @padding-lg;
}
}
.col-xs-padding-xl {
.col-xs-12:not(:first-child) {
padding-top: @padding-xl;
}
}
.col-xs-padding-xxl {
.col-xs-12:not(:first-child) {
padding-top: @padding-xxl;
}
}
}