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

279 lines
4.4 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;
2023-04-17 16:23:52 +02:00
$typography-spacer-x: 1em !default;
$typography-spacer-y: 1em !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;
2023-04-17 16:23:52 +02:00
line-height: 1.8em;
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%;
2023-04-17 16:23:52 +02:00
margin-top: $typography-spacer-y;
margin-bottom: $typography-spacer-y;
2021-03-03 10:21:38 +01:00
2022-04-18 17:41:38 +02:00
@media (min-width: $typography-breakpoint + 1) {
2023-04-17 16:23:52 +02:00
margin-right: $typography-spacer-x;
margin-left: $typography-spacer-x;
2022-04-18 17:41:38 +02:00
}
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,
2023-06-02 16:30:54 +02:00
&.left {
2022-04-18 17:41:38 +02:00
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) {
2023-04-17 16:23:52 +02:00
margin: 0 $typography-spacer-x $typography-spacer-y 0;
2022-04-18 17:41:38 +02:00
}
2019-06-08 17:20:51 +02:00
}
2019-10-20 01:40:40 +02:00
2023-06-02 16:30:54 +02:00
&.leftAlone {
float: none;
clear: both;
margin-left: 0;
margin-right: auto;
}
2022-04-18 17:41:38 +02:00
&.end,
2023-06-02 16:30:54 +02:00
&.right {
2022-04-18 17:41:38 +02:00
float: right;
clear: right;
@media (min-width: $typography-breakpoint + 1) {
2023-04-17 16:23:52 +02:00
margin: $typography-spacer-y 0 0 $typography-spacer-x;
2022-04-18 17:41:38 +02:00
}
}
2023-06-02 16:30:54 +02:00
&.rightAlone {
float: none;
clear: both;
margin-left: auto;
margin-right: 0;
}
2022-04-18 17:41:38 +02:00
iframe {
width: 100% !important;
2022-07-12 16:45:34 +02:00
max-height: 100% !important;
2022-04-18 17:41:38 +02:00
}
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 {
2023-04-17 16:23:52 +02:00
margin-bottom: $typography-spacer-y !important;
2022-04-18 17:41:38 +02:00
}
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 {
2022-06-24 16:27:25 +02:00
margin-right: -.5rem;
margin-left: -.5rem;
2022-04-18 17:41:38 +02:00
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 {
2023-05-13 03:50:45 +02:00
padding-left: $typography-spacer-x * 2;
2021-03-03 10:21:38 +01:00
2022-04-18 17:41:38 +02:00
li {
position: relative;
margin: .5em 0;
}
2020-01-14 23:47:40 +01:00
}
2023-04-17 17:46:58 +02:00
ol {
padding-left: $typography-spacer-x * 2;
}
2023-04-20 21:27:00 +02:00
/*ul {
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;
2022-06-24 16:27:25 +02:00
display: inline-block;
2022-04-18 17:41:38 +02:00
width: .5em;
height: .5em;
2022-06-24 16:27:25 +02:00
margin-right: 1em;
2022-04-18 17:41:38 +02:00
content: "";
border-radius: .5em;
background: currentColor;
}
2019-10-20 01:40:40 +02:00
}
2023-04-20 21:27:00 +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%;
2023-04-17 16:23:52 +02:00
padding: 0 $typography-spacer-x * .5;
2022-04-18 17:41:38 +02:00
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
}