webpack-bootstrap-ui-kit/src/scss/types/editor.scss

167 lines
2.4 KiB
SCSS
Raw Normal View History

2019-12-31 12:55:51 +01:00
@import '../_variables';
2019-06-08 17:20:51 +02:00
2019-12-31 12:55:51 +01:00
@import '~bootstrap/scss/tables';
2019-06-08 17:20:51 +02:00
2020-04-20 10:36:11 +02:00
$typography-breakpoint: map-get($grid-breakpoints, 'sm') - 1 !default;
2020-04-29 09:48:09 +02:00
a {
color: $link-color;
}
2019-10-20 01:40:40 +02:00
img,
.captionImage,
.image,
.ss-htmleditorfield-file {
display: block;
margin: 1rem;
max-width: 100%;
&.center {
margin-left: auto;
margin-right: auto;
text-align: center;
}
2019-06-08 17:20:51 +02:00
&.left {
float: left;
clear: left;
margin: 0 1rem 1rem 0;
}
2019-10-20 01:40:40 +02:00
&.right {
float: right;
clear: right;
margin: 1rem 0 0 1rem;
2019-06-08 17:20:51 +02:00
}
2019-10-20 01:40:40 +02:00
&.leftAlone {
float: left;
clear: left;
margin: 0 1rem 1rem 0;
}
&.rightAlone {
2019-06-08 17:20:51 +02:00
float: right;
clear: right;
margin: 1rem 0 0 1rem;
}
2019-10-20 01:40:40 +02:00
iframe {
width: 100% !important;
2019-12-31 12:55:51 +01:00
height: 100% !important;
2019-10-20 01:40:40 +02:00
}
2019-06-08 17:20:51 +02:00
}
2020-05-10 11:36:56 +02:00
.captionImage {
img {
2020-05-10 11:46:17 +02:00
margin-bottom: 0.5rem !important;
2020-05-10 11:36:56 +02:00
}
.caption {
font-size: 0.8rem;
}
}
2019-06-08 17:20:51 +02:00
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-justify {
text-align: justify;
}
table {
width: 100%;
max-width: 100%;
border-collapse: collapse;
@extend .table;
@extend .table-bordered;
&.table-none {
border: 0;
2019-12-31 12:55:51 +01:00
tr,
td,
th {
2019-06-08 17:20:51 +02:00
border: 0;
background: none !important;
}
}
2020-07-30 12:57:28 +02:00
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
2019-06-08 17:20:51 +02:00
}
2019-10-20 01:40:40 +02:00
2020-01-14 23:47:40 +01:00
ul,
ol {
padding-left: $grid-gutter-width;
li {
position: relative;
padding-left: 0;
}
}
2019-10-20 01:40:40 +02:00
ul {
list-style: none;
li {
list-style: none;
2020-05-13 16:47:49 +02:00
margin: 0.5em 0;
2019-10-20 01:40:40 +02:00
&:before {
2019-12-31 12:55:51 +01:00
content: '\2022';
2019-10-20 01:40:40 +02:00
display: inline-block;
2019-12-31 12:55:51 +01:00
margin-right: 0.5em;
2020-01-14 23:47:40 +01:00
position: absolute;
left: -0.75em;
font-size: 1.5em;
top: -0.25em;
2019-10-20 01:40:40 +02:00
}
}
}
2020-04-08 11:35:36 +02:00
div,
table,
p,
tr,
th,
td,
img,
2019-10-20 01:40:40 +02:00
iframe {
2020-04-11 15:25:41 +02:00
max-width: 100% !important;
2020-04-20 10:36:11 +02:00
@media (max-width: $typography-breakpoint) {
2020-04-11 15:25:41 +02:00
display: block;
width: 100% !important;
2020-04-20 10:36:11 +02:00
border: 0 !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
}
div,
table,
p,
tr,
th,
td,
img {
@media (max-width: $typography-breakpoint) {
height: auto !important;
2020-04-11 15:25:41 +02:00
}
2019-10-20 01:40:40 +02:00
}