unneeded margin removed
This commit is contained in:
parent
5a3dbe466f
commit
24d8688069
@ -1,6 +1,6 @@
|
|||||||
.editor-wrapper {
|
.editor-wrapper {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 20px auto;
|
margin: 1px auto;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -69,40 +69,64 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
float: left;
|
float: left;
|
||||||
height: 24px;
|
font-size: 15px;
|
||||||
padding: 2px 2px;
|
padding: 2px 2px;
|
||||||
width: 28px;
|
width: 28px;
|
||||||
}
|
}
|
||||||
|
.ql-toolbar.ql-snow{
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.ql-toolbar.ql-snow .ql-formats {
|
.ql-toolbar.ql-snow .ql-formats {
|
||||||
margin-right: 1px;
|
margin-right: 1px;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* for small editor */
|
|
||||||
|
|
||||||
/* Editor height and text */
|
.ql-snow.ql-toolbar button,
|
||||||
.compact-editor .ql-editor {
|
.ql-snow .ql-toolbar button {
|
||||||
min-height: 80px; /* Reduce editor height */
|
background: none;
|
||||||
font-size: 0.85rem; /* Smaller font */
|
border: none;
|
||||||
padding: 6px 10px;
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
height: 18px;
|
||||||
|
padding: 2px 2px;
|
||||||
|
width: 22px;
|
||||||
|
font-size: 14px;
|
||||||
|
/* REMOVE THIS to fix side-alignment */
|
||||||
|
/* float: left; */
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Toolbar size */
|
.ql-snow .ql-picker-label {
|
||||||
.compact-editor .ql-toolbar {
|
font-size: 10px; /* Smaller text */
|
||||||
padding: 5px 8px;
|
padding: 0 6px; /* Horizontal padding */
|
||||||
font-size: 0.85rem;
|
height: 20px; /* Height of the label */
|
||||||
|
line-height: 20px; /* Match height to vertically center single-line text */
|
||||||
|
background-color: #eee;
|
||||||
|
border-radius: 0px;
|
||||||
|
cursor: pointer;
|
||||||
|
color: #333;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
display: flex; /* Enable flexbox */
|
||||||
|
align-items: center; /* Vertical centering */
|
||||||
|
justify-content: center; /* Horizontal centering */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Optional: smaller buttons & spacing */
|
|
||||||
.compact-editor .ql-toolbar button {
|
|
||||||
height: 24px;
|
|
||||||
width: 24px;
|
|
||||||
padding: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.compact-editor .ql-toolbar .ql-formats {
|
/* Remove custom upward-opening styles */
|
||||||
margin-right: 6px;
|
.ql-toolbar .ql-picker.ql-header .ql-picker-options {
|
||||||
|
top: 100%; /* Position it below the label */
|
||||||
|
bottom: auto; /* Cancel the upward positioning */
|
||||||
|
margin-top: 5px; /* Optional spacing */
|
||||||
}
|
}
|
||||||
|
.ql-editor {
|
||||||
|
padding: 4px 15px;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user