2
0
Fork 0
Vmeda.Online/src/theme/format-text.scss

154 lines
2.9 KiB
SCSS
Raw Normal View History

/** Styles to match web platform */
ion-app.app-root core-format-text,
ion-app.app-root .item core-format-text,
ion-app.app-root .core-rte-editor {
@include core-headings();
p {
margin-bottom: 1rem;
}
// Fix lists styles in core-format-text.
ul {
padding-left: 1rem;
list-style-type: disc;
}
ol {
list-style-type: decimal;
}
ul, ol {
-webkit-padding-start: 15px;
list-style-position: inside;
ul {
list-style-type: circle;
}
ol {
list-style-type: lower-latin;
}
ul, ol {
list-style-position: inside;
@include margin(null, null, null, 15px);
}
}
.badge {
position: initial !important;
}
.core-disable-media-adapt,
.core-disable-media-adapt .core-media-adapt-width {
max-width: none !important;
max-height: none !important;
width: initial !important;
height: initial !important;
display: inline-block !important;
}
img.icon {
font-size: 16px;
width: 16px;
height: 16px;
margin: 0;
padding: 0;
-webkit-box-sizing: content-box;
box-sizing: content-box;
margin-right: .5rem;
}
// Atto styles
// -------------------------
.atto_image_preview {
width: 100%;
height: 100%;
margin-left: auto;
margin-right: auto;
}
.atto_image_preview_box {
max-height: 200px;
margin-bottom: 1em;
overflow: auto;
}
.editor_atto_content img {
cursor: pointer;
}
.atto_image_size {
display: inline-block;
}
.atto_image_size input[type=checkbox] {
@include margin(null, 1em, null, 1em);
}
.atto_image_size input[type=text] {
width: 3em;
}
.atto_image_size label {
display: inline-block;
}
.atto_image_button_text-top,
.atto_image_button_middle,
.atto_image_button_text-bottom,
.atto_image_button_left,
.atto_image_button_right {
vertical-align: middle;
max-width: 100%;
height: auto;
width: auto;
display: inline-block;
margin: 0 0.5em;
&.img-responsive {
/* If the image is display: block then linking the image to URLs won't work. */
/*display: inline-block;*/
max-width: 100%;
height: auto;
width: auto;
}
}
.atto_image_button_text-top {
vertical-align: text-top;
}
.atto_image_button_middle {
vertical-align: middle;
}
.atto_image_button_text-bottom {
vertical-align: text-bottom;
}
/*rtl:begin:ignore*/
.atto_image_button_left {
@include float(start);
@include margin(0, 0.5em, 0, 0);
}
.atto_image_button_right {
@include float(end);
@include margin(0, 0, 0, 0.5em);
}
/*rtl:end:ignore*/
}
}
// Special fixes
// -------------------------
ion-app.app-root {
// Images in ion-card have width 100% and display block. Remove that when the image is in core-format-text.
ion-card core-format-text img {
width: min-content;
display: inline;
}
// Message item.
.item-message core-format-text > p:only-child {
display: inline;
}
}