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

257 lines
3.5 KiB
SCSS
Raw Normal View History

2021-08-18 20:38:12 +02:00
@import "../_variables";
2019-06-08 17:20:51 +02:00
2021-08-18 20:38:12 +02:00
@import "~bootstrap/scss/tables";
2019-06-08 17:20:51 +02:00
2021-08-18 20:38:12 +02:00
$typography-breakpoint: map-get($grid-breakpoints, "sm") - 1 !default;
2020-04-20 10:36:11 +02:00
2021-06-19 19:31:41 +02:00
html,
body {
2021-08-18 20:38:12 +02:00
background: $body-bg;
color: $body-color;
2021-06-19 19:31:41 +02:00
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
2021-08-18 20:38:12 +02:00
color: $headings-color;
2021-06-19 19:31:41 +02:00
}
2020-04-29 09:48:09 +02:00
a {
2021-08-18 20:38:12 +02:00
color: $link-color;
2020-04-29 09:48:09 +02:00
}
2019-10-20 01:40:40 +02:00
img,
.captionImage,
.image,
.ss-htmleditorfield-file {
2021-08-18 20:38:12 +02:00
display: block;
margin-bottom: $element-reduced-spacer-y;
margin-top: $element-reduced-spacer-y;
max-width: 100%;
@media (min-width: $typography-breakpoint + 1) {
margin-left: $element-reduced-spacer-x;
margin-right: $element-reduced-spacer-x;
}
&.center {
margin-left: auto;
margin-right: auto;
text-align: center;
}
2021-03-03 10:21:38 +01:00
2021-08-18 20:38:12 +02:00
&.w-100 {
margin-left: 0;
margin-right: 0;
text-align: center;
}
2019-06-08 17:20:51 +02:00
2021-08-18 20:38:12 +02:00
&.start,
&.left,
&.leftAlone {
clear: left;
float: left;
2021-03-03 10:21:38 +01:00
2021-08-18 20:38:12 +02:00
@media (min-width: $typography-breakpoint + 1) {
margin: 0 $element-reduced-spacer-x $element-reduced-spacer-y 0;
2019-10-20 01:40:40 +02:00
}
2021-08-18 20:38:12 +02:00
}
2019-10-20 01:40:40 +02:00
2021-08-18 20:38:12 +02:00
&.end,
&.right,
&.rightAlone {
clear: right;
float: right;
2021-03-03 10:21:38 +01:00
2021-08-18 20:38:12 +02:00
@media (min-width: $typography-breakpoint + 1) {
margin: $element-reduced-spacer-y 0 0 $element-reduced-spacer-x;
2019-06-08 17:20:51 +02:00
}
2021-08-18 20:38:12 +02:00
}
2019-10-20 01:40:40 +02:00
2021-08-18 20:38:12 +02:00
iframe {
height: 100% !important;
width: 100% !important;
}
2019-06-08 17:20:51 +02:00
}
2020-05-10 11:36:56 +02:00
.captionImage {
2021-08-18 20:38:12 +02:00
img {
margin-bottom: $element-reduced-spacer-y !important;
}
2021-03-03 10:21:38 +01:00
2021-08-18 20:38:12 +02:00
.caption {
font-size: 0.8rem;
}
2020-05-10 11:36:56 +02:00
}
2021-03-03 10:21:38 +01:00
.left,
2021-02-20 07:00:59 +01:00
.text-left,
.text-start {
2021-08-18 20:38:12 +02:00
text-align: left;
2019-06-08 17:20:51 +02:00
}
2021-03-03 10:21:38 +01:00
.center,
2019-06-08 17:20:51 +02:00
.text-center {
2021-08-18 20:38:12 +02:00
text-align: center;
2019-06-08 17:20:51 +02:00
}
2021-03-03 10:21:38 +01:00
.right,
2021-02-20 07:00:59 +01:00
.text-right,
.text-end {
2021-08-18 20:38:12 +02:00
text-align: right;
2019-06-08 17:20:51 +02:00
}
.text-justify {
2021-08-18 20:38:12 +02:00
text-align: justify;
2019-06-08 17:20:51 +02:00
}
table {
2021-08-18 20:38:12 +02:00
border-collapse: collapse;
max-width: 100%;
width: 100%;
@extend .table;
@extend .table-striped;
@extend .table-bordered;
&.table-none {
@extend .table-borderless;
border: 0;
tr,
td,
th {
background: none !important;
border: 0;
box-shadow: none !important;
2019-06-08 17:20:51 +02:00
}
2021-08-18 20:38:12 +02:00
}
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 {
2021-08-18 20:38:12 +02:00
padding-left: $spacer;
2021-03-03 10:21:38 +01:00
2021-08-18 20:38:12 +02:00
li {
margin: 0.5em 0;
padding-left: 0.5em;
position: relative;
}
2020-01-14 23:47:40 +01:00
}
2019-10-20 01:40:40 +02:00
ul {
2021-08-18 20:38:12 +02:00
list-style: none;
li {
2019-10-20 01:40:40 +02:00
list-style: none;
2021-08-18 20:38:12 +02:00
padding-left: 0;
2019-10-20 01:40:40 +02:00
2021-08-18 20:38:12 +02:00
&:before {
content: "\2022";
display: inline-block;
font-size: 1em;
left: -0.75em;
margin-right: 0.5em;
opacity: 0.5;
position: absolute;
top: -0.1em;
2019-10-20 01:40:40 +02:00
}
2021-08-18 20:38:12 +02:00
}
2019-10-20 01:40:40 +02:00
}
2020-04-08 11:35:36 +02:00
table,
p,
tr,
th,
td,
img,
2019-10-20 01:40:40 +02:00
iframe {
2021-08-18 20:38:12 +02:00
max-width: 100% !important;
@media (max-width: $typography-breakpoint) {
border: 0 !important;
display: block;
padding-left: 0 !important;
padding-right: 0 !important;
width: 100% !important;
}
2020-04-20 10:36:11 +02:00
}
table,
p,
tr,
th,
td,
img {
2021-08-18 20:38:12 +02:00
@media (max-width: $typography-breakpoint) {
height: auto !important;
}
2019-10-20 01:40:40 +02:00
}
2021-01-25 17:04:47 +01:00
@media (max-width: $typography-breakpoint) {
2021-08-18 20:38:12 +02:00
.d-typography-breakpoint-none {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
width: 1px;
}
thead {
display: block;
text-align: center;
2021-03-03 10:21:38 +01:00
2021-08-18 20:38:12 +02:00
> tr {
display: flex;
2021-02-20 07:00:59 +01:00
}
2021-08-18 20:38:12 +02:00
}
2021-03-03 10:21:38 +01:00
2021-08-18 20:38:12 +02:00
tbody {
display: block;
}
td {
display: flex;
flex-direction: column;
2021-02-20 07:00:59 +01:00
2021-08-18 20:38:12 +02:00
&:before {
content: attr(data-label);
display: block;
font-weight: bold;
min-width: 50%;
padding: 0 $spacer * 0.5;
width: 50%;
2021-01-25 17:04:47 +01:00
}
2021-08-18 20:38:12 +02:00
}
2021-01-25 17:04:47 +01:00
}
2021-06-19 19:31:41 +02:00
img {
2021-08-18 20:38:12 +02:00
border: 1px dashed;
2021-06-19 19:31:41 +02:00
}
.ss-htmleditorfield-file.embed {
@include responsive-ratio(4,3,true);
position: relative;
iframe {
2021-09-05 21:05:55 +02:00
bottom: 0;
left: 0;
2021-09-05 21:05:55 +02:00
position: absolute;
right: 0;
2021-09-05 21:05:55 +02:00
top: 0;
}
2021-09-05 21:05:55 +02:00
}