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

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